Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] scsi: bsg: io_uring passthrough TOCTOU and mapping
@ 2026-08-17  1:39 Yang Xiuwei
  2026-08-17  1:39 ` [PATCH v3 1/2] scsi: bsg: fix TOCTOU in io_uring passthrough command setup Yang Xiuwei
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yang Xiuwei @ 2026-08-17  1:39 UTC (permalink / raw)
  To: James.Bottomley, martin.petersen
  Cc: axboe, bvanassche, csander, fujita.tomonori, io-uring, linux-scsi,
	rc, Yang Xiuwei

Hi,

Two patches for the BSG io_uring passthrough path.

1/2: fix TOCTOU on the shared SQE.

Builds on Rahul Chandelkar's earlier TOCTOU patches:
Link: https://lore.kernel.org/r/20260527105931.3950913-1-rc@rexion.ai
Link: https://lore.kernel.org/r/20260527191817.142769-1-rc@rexion.ai

2/2: IO_URING_F_NONBLOCK only needs BLK_MQ_REQ_NOWAIT for request
allocation. Map user buffers with GFP_KERNEL.

Changes in v3:
- Reword 1/2 commit message.
Link: https://lore.kernel.org/r/20260727014117.1742202-1-yangxiuwei@kylinos.cn

Changes in v2:
- Also READ_ONCE max_response_len (Caleb).
Link: https://lore.kernel.org/r/20260720032338.461681-1-yangxiuwei@kylinos.cn

Rahul Chandelkar (1):
  scsi: bsg: fix TOCTOU in io_uring passthrough command setup

Yang Xiuwei (1):
  scsi: bsg: map io_uring user buffers with GFP_KERNEL

 drivers/scsi/scsi_bsg.c | 51 +++++++++++++++++++++++------------------
 1 file changed, 29 insertions(+), 22 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-17  3:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17  1:39 [PATCH v3 0/2] scsi: bsg: io_uring passthrough TOCTOU and mapping Yang Xiuwei
2026-08-17  1:39 ` [PATCH v3 1/2] scsi: bsg: fix TOCTOU in io_uring passthrough command setup Yang Xiuwei
2026-08-17  1:52   ` sashiko-bot
2026-08-17  1:39 ` [PATCH v3 2/2] scsi: bsg: map io_uring user buffers with GFP_KERNEL Yang Xiuwei
2026-08-17  1:53   ` sashiko-bot
2026-08-17  3:17 ` [PATCH v3 0/2] scsi: bsg: io_uring passthrough TOCTOU and mapping Yang Xiuwei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox