Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 6c71013(block: partition: convert percpu ref) Cc: <[email protected]> # v4.3+ Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information