Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bb110137 authored by Jens Axboe's avatar Jens Axboe Committed by Sridhar Arra
Browse files

block: don't use blocking queue entered for recursive bio submits



If we end up splitting a bio and the queue goes away between
the initial submission and the later split submission, then we
can block forever in blk_queue_enter() waiting for the reference
to drop to zero. This will never happen, since we already hold
a reference.

Mark a split bio as already having entered the queue, so we can
just use the live non-blocking queue enter variant.

Thanks to Tetsuo Handa for the analysis.

Change-Id: Ifb03a192324bcb53c79f6d249422cce37cae2776
Reported-by: default avatar <syzbot+c4f9cebf9d651f6e54de@syzkaller.appspotmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Git-commit: cd4a4ae4683dc2e09380118e205e057896dcda2b
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block


Signed-off-by: default avatarSridhar Arra <sarra@codeaurora.org>
parent 0265a24b
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