summaryrefslogtreecommitdiffstats
path: root/block/bounce.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-24 08:24:04 +0100
committerJens Axboe <axboe@kernel.dk>2021-02-24 16:55:00 +0100
commit5407334c53e9922c1c3fb28801e489d0b74f2c8d (patch)
tree5d805446be4e3225c43f07bb7c26439edce53508 /block/bounce.c
parentblock: fix logging on capacity change (diff)
downloadlinux-5407334c53e9922c1c3fb28801e489d0b74f2c8d.tar.xz
linux-5407334c53e9922c1c3fb28801e489d0b74f2c8d.zip
block-crypto-fallback: use a bio_set for splitting bios
bio_split with a NULL bs argumen used to fall back to kmalloc the bio, which does not guarantee forward progress and could to deadlocks. Now that the overloading of the NULL bs argument to bio_alloc_bioset has been removed it crashes instead. Fix all that by using a special crafted bioset. Fixes: 3175199ab0ac ("block: split bio_kmalloc from bio_alloc_bioset") Reported-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bounce.c')
0 files changed, 0 insertions, 0 deletions