summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2016-03-30 03:46:31 +0300
committerJens Axboe <axboe@fb.com>2016-03-30 04:18:14 +0300
commitb30a337ca27c4f40439e4bfb290cba5f88d73bb7 (patch)
tree07da263067ec36686177990a48000beb0ceb2eae /tools/objtool
parent1993b176a8224e371e0732ffada7ab9eb3b0912b (diff)
downloadlinux-b30a337ca27c4f40439e4bfb290cba5f88d73bb7.tar.xz
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: Naveen Kaje <nkaje@codeaurora.org> Tested-by: Naveen Kaje <nkaje@codeaurora.org> Fixes: 6c71013ecb7e2(block: partition: convert percpu ref) Cc: <stable@vger.kernel.org> # v4.3+ Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/objtool')
0 files changed, 0 insertions, 0 deletions