diff options
author | Christoph Hellwig <[email protected]> | 2021-08-16 15:46:24 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-23 12:54:31 -0600 |
commit | d152c682f03ceb65c0d9663d4ba6ee2d46aa784d (patch) | |
tree | 31cc1a85256072b4d65d881472c2f6ace7c10178 /lib/debugobjects.c | |
parent | 61a35cfc26334fe1c8e970ca8fafeae2daae257d (diff) |
block: add an explicit ->disk backpointer to the request_queue
Replace the magic lookup through the kobject tree with an explicit
backpointer, given that the device model links are set up and torn
down at times when I/O is still possible, leading to potential
NULL or invalid pointer dereferences.
Fixes: edb0872f44ec ("block: move the bdi from the request_queue to the gendisk")
Reported-by: syzbot <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Sven Schnelle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions