This is a note to let you know that I've just added the patch titled pktcdvd: check for NULL returna fter calling bio_split_to_limits() to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: pktcdvd-check-for-null-returna-fter-calling-bio_split_to_limits.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 3e9900f3bd7ba30d60f82b162b70a1dffe4e8e24 Mon Sep 17 00:00:00 2001 From: Jens Axboe <axboe@xxxxxxxxx> Date: Mon, 16 Jan 2023 08:51:05 -0700 Subject: pktcdvd: check for NULL returna fter calling bio_split_to_limits() From: Jens Axboe <axboe@xxxxxxxxx> commit 3e9900f3bd7ba30d60f82b162b70a1dffe4e8e24 upstream. The revert of the removal of this driver happened after we fixed up the split limits for NOWAIT issue, hence it got missed. Ensure that we check for a NULL bio after splitting, in case it should be retried. Marking this as fixing both commits, so that stable backport will do this correctly. Cc: stable@xxxxxxxxxxxxxxx Fixes: 9cea62b2cbab ("block: don't allow splitting of a REQ_NOWAIT bio") Fixes: 4b83e99ee709 ("Revert "pktcdvd: remove driver."") Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/block/pktcdvd.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2400,6 +2400,8 @@ static void pkt_submit_bio(struct bio *b struct bio *split; bio = bio_split_to_limits(bio); + if (!bio) + return; pkt_dbg(2, pd, "start = %6llx stop = %6llx\n", (unsigned long long)bio->bi_iter.bi_sector, Patches currently in stable-queue which might be from axboe@xxxxxxxxx are queue-6.1/io_uring-poll-don-t-reissue-in-case-of-poll-race-on-multishot-request.patch queue-6.1/pktcdvd-check-for-null-returna-fter-calling-bio_split_to_limits.patch