Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b30a337c authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

block: partition: initialize percpuref before sending out KOBJ_ADD



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: default avatarNaveen Kaje <nkaje@codeaurora.org>
Tested-by: default avatarNaveen Kaje <nkaje@codeaurora.org>
Fixes: 6c71013e(block: partition: convert percpu ref)
Cc: <stable@vger.kernel.org> # v4.3+
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 1993b176
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment