+9
−1
Loading
sg_finish_rem_req() calls blk_rq_unmap_user(). The latter function may sleep. Hence, call sg_finish_rem_req() with interrupts enabled instead of disabled. Reported-by:<syzbot+c01f8e6e73f20459912e@syzkaller.appspotmail.com> Closes: https://lore.kernel.org/linux-scsi/691560c4.a70a0220.3124cb.001a.GAE@google.com/ Cc: Hannes Reinecke <hare@suse.de> Cc: stable@vger.kernel.org Fixes: 97d27b0d ("scsi: sg: close race condition in sg_remove_sfp_usercontext()") Signed-off-by:
Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20251113181643.1108973-1-bvanassche@acm.org Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>