aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorjackysliu <[email protected]>2025-06-19 04:03:02 +0000
committerMartin K. Petersen <[email protected]>2025-06-25 01:05:42 +0000
commit8889676cd62161896f1d861ce294adc29c4f2cb5 (patch)
tree6695db601f20768781162918244b35123a85bca3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentscsi: qla4xxx: Fix missing DMA mapping error in qla4xxx_alloc_pdu() (diff)
downloadkernel-8889676cd62161896f1d861ce294adc29c4f2cb5.tar.gz
kernel-8889676cd62161896f1d861ce294adc29c4f2cb5.zip
scsi: sd: Fix VPD page 0xb7 length check
sd_read_block_limits_ext() currently assumes that vpd->len excludes the size of the page header. However, vpd->len describes the size of the entire VPD page, therefore the sanity check is incorrect. In practice this is not really a problem since we don't attach VPD pages unless they actually report data trailing the header. But fix the length check regardless. This issue was identified by Wukong-Agent (formerly Tencent Woodpecker), a code security AI agent, through static code analysis. [mkp: rewrote patch description] Signed-off-by: jackysliu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 96b171d6dba6 ("scsi: core: Query the Block Limits Extension VPD page") Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions