Files
Bart Van Assche 11eeee00c9 scsi: sg: Do not sleep in atomic context
commit 90449f2d1e upstream.

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: 97d27b0dd0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-12-03 12:45:20 +01:00
..
2025-08-28 16:21:28 +02:00
2021-07-20 16:10:43 +02:00
2021-07-20 16:10:43 +02:00
2019-06-18 19:46:18 -04:00
2021-05-14 09:44:25 +02:00
2024-04-13 12:51:36 +02:00
2024-09-04 13:14:53 +02:00
2019-11-05 23:17:53 -05:00
2019-08-04 21:41:29 -06:00
2025-12-03 12:45:20 +01:00
2021-05-14 09:44:25 +02:00
2022-01-27 09:19:48 +01:00
2022-01-27 09:19:48 +01:00
2023-06-09 10:29:00 +02:00
2021-05-14 09:44:25 +02:00