On 8/12/19 8:35 PM, zhengbin wrote:
KASAN reports a use-after-free in 4.19-stable,
which won't happen after commit 47cdee29ef9d
("block: move blk_exit_queue into __blk_release_queue").
This patch doesn't apply on top of kernel v4.19.67:
$ git am ~/\[PATCH\ v4\]\ SCSI\:\ fix\ queue\ cleanup\ race\ before\
scsi_requeue_run_queue\ is\ done.eml
Applying: SCSI: fix queue cleanup race before scsi_requeue_run_queue is done
error: patch failed: drivers/scsi/scsi_lib.c:531
error: drivers/scsi/scsi_lib.c: patch does not apply
Patch failed at 0001 SCSI: fix queue cleanup race before
scsi_requeue_run_queue is done
$ patch -p1 < ~/\[PATCH\ v4\]\ SCSI\:\ fix\ queue\ cleanup\ race\
before\ scsi_requeue_run_queue\ is\ done.eml
(Stripping trailing CRs from patch; use --binary to disable.)
patching file drivers/scsi/scsi_lib.c
Hunk #1 succeeded at 548 with fuzz 1 (offset 17 lines).
Hunk #2 FAILED at 618.
1 out of 2 hunks FAILED -- saving rejects to file
drivers/scsi/scsi_lib.c.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file drivers/scsi/scsi_sysfs.c
Hunk #1 succeeded at 1392 (offset -18 lines).
Bart.