aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-08-04 15:40:27 +0000
committerJoerg Roedel <[email protected]>2025-08-15 09:50:47 +0000
commit8503d0fcb1086a7cfe26df67ca4bd9bd9e99bdec (patch)
treea06f03cebaf33b49cd80f97ac1eb683013898f41 /scripts/generate_rust_target.rs
parentLinux 6.17-rc1 (diff)
downloadkernel-8503d0fcb1086a7cfe26df67ca4bd9bd9e99bdec.tar.gz
kernel-8503d0fcb1086a7cfe26df67ca4bd9bd9e99bdec.zip
iommu/amd: Avoid stack buffer overflow from kernel cmdline
While the kernel command line is considered trusted in most environments, avoid writing 1 byte past the end of "acpiid" if the "str" argument is maximum length. Reported-by: Simcha Kosman <[email protected]> Closes: https://lore.kernel.org/all/AS8P193MB2271C4B24BCEDA31830F37AE84A52@AS8P193MB2271.EURP193.PROD.OUTLOOK.COM Fixes: b6b26d86c61c ("iommu/amd: Add a length limitation for the ivrs_acpihid command-line parameter") Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Ankit Soni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions