summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2017-04-28 09:49:19 -0400
committerJens Axboe <axboe@fb.com>2017-04-28 08:04:01 -0600
commit60ae36ad0340b1ba88530d6a5e141455dd3afd81 (patch)
tree53c39316d3556a156734ef78ab5300874ff53d6a /block
parentbf290f8f98b1a22fe131fa517ef66efb846cf849 (diff)
downloadop-kernel-dev-60ae36ad0340b1ba88530d6a5e141455dd3afd81.zip
op-kernel-dev-60ae36ad0340b1ba88530d6a5e141455dd3afd81.tar.gz
nbd: fix use after free on module unload
list_for_each_entry() isn't super safe if we're freeing the objects while we traverse the list. Also don't bother taking the extra reference, the module refcounting stuff will save us from having anybody messing with the device while we're trying to unload. Reported-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud