diff options
author | Ming Lei <[email protected]> | 2016-03-30 08:46:31 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-03-29 19:18:14 -0600 |
commit | b30a337ca27c4f40439e4bfb290cba5f88d73bb7 (patch) | |
tree | 07da263067ec36686177990a48000beb0ceb2eae /net | |
parent | 1993b176a8224e371e0732ffada7ab9eb3b0912b (diff) |
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 <[email protected]>
Tested-by: Naveen Kaje <[email protected]>
Fixes: 6c71013ecb7e2(block: partition: convert percpu ref)
Cc: <[email protected]> # v4.3+
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions