Skip to content
Commit 5407334c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: 3175199a ("block: split bio_kmalloc from bio_alloc_bioset")
Reported-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 452c0bf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment