summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRahul Chandelkar <rc@rexion.ai>2026-08-17 16:07:29 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-02 10:36:52 -0400
commit4b3c5965fca99f62d31c963294bd5b23cc488e97 (patch)
tree7ddeecfebca2b6b466fb9b523b40eb189bdb5d05 /scripts/Makefile.thinlto
parentece06de726737e887dc0225c8283477624f8ae21 (diff)
downloadlinux-4b3c5965fca99f62d31c963294bd5b23cc488e97.tar.gz
linux-4b3c5965fca99f62d31c963294bd5b23cc488e97.zip
scsi: bsg: Fix TOCTOU in io_uring passthrough command setup
scsi_bsg_uring_cmd() reads bsg_uring_cmd from the shared mmap'd SQE. Userspace can change a field after we check it and before we use it. request_len is the sharp case: it can grow past sizeof(scmd->cmnd) after the bound check and overflow scmd->cmnd in copy_from_user(). READ_ONCE() the SQE fields we check or use into locals before use. Fixes: 7b6d3255e7f8 ("scsi: bsg: add io_uring passthrough handler") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20260527105931.3950913-1-rc@rexion.ai Signed-off-by: Rahul Chandelkar <rc@rexion.ai> Co-developed-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Link: https://patch.msgid.link/20260817080730.967879-3-yangxiuwei@kylinos.cn Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions