summaryrefslogtreecommitdiff
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2016-03-30 08:46:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-04 14:48:39 -0700
commit5b616a05de88d4be0136156a26fae9da855939f6 (patch)
treeb492763830b8b85c49bb7a50534f4a1d5a9447c3 /drivers/block/loop.c
parent8c9aef03d3b540b6885e7534a885ea25f62dd9ed (diff)
block: partition: initialize percpuref before sending out KOBJ_ADD
commit b30a337ca27c4f40439e4bfb290cba5f88d73bb7 upstream. The initialization of partition's percpu_ref should have been done before sending out KOBJ_ADD uevent, which may cause userspace to read partition table. So the uninitialized percpu_ref may be accessed in data path. This patch fixes this issue reported by Naveen. Reported-by: Naveen Kaje <nkaje@codeaurora.org> Tested-by: Naveen Kaje <nkaje@codeaurora.org> Fixes: 6c71013ecb7e2(block: partition: convert percpu ref) Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/block/loop.c')
0 files changed, 0 insertions, 0 deletions