summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorNiklas Cassel <cassel@kernel.org>2026-09-29 10:25:00 +0200
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-10-03 10:14:29 -0400
commita349876633f7a583429367daf16f9a4282118255 (patch)
treed19d34f88cde1276ca7447dc151d98f0dfe1af1c /tools/lib/python/kdoc/python_version.py
parente5ebe632be40c60ca8d96c8265c9c8c8136aff4a (diff)
downloadlinux-next-a349876633f7a583429367daf16f9a4282118255.tar.gz
linux-next-a349876633f7a583429367daf16f9a4282118255.zip
scsi: scsi_debug: Refuse a negative physblk_exp
sdebug_init() refuses a physblk_exp above 15, but the parameter is a signed int, so a negative value is accepted. The driver then shifts by it when it builds the Block Limits VPD page, which is undefined behaviour, and READ CAPACITY (16) reports an exponent of 15 for -1. Refuse a negative value as well, and print it as a signed value. Assisted-by: LLM Fixes: ea61fca58c13 ("scsi_debug: Add support for physical block exponent and alignment") Signed-off-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://patch.msgid.link/20260929082456.857423-18-cassel@kernel.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions