summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLiu Chao <liuc63@xiaopeng.com>2026-10-20 17:42:49 +0800
committerJakub Kicinski <kuba@kernel.org>2026-10-21 17:31:01 -0700
commit46cbf85155e5451b6682ea0c17bc62ec564aec36 (patch)
tree4d239f99e6e4408806a1fdc3f3433208c66ea91e /scripts/Makefile.thinlto
parent77dac783f113dcc4576efca6f4391d7324c0b1fc (diff)
downloadlinux-46cbf85155e5451b6682ea0c17bc62ec564aec36.tar.gz
linux-46cbf85155e5451b6682ea0c17bc62ec564aec36.zip
net: wwan: iosm: validate msg_head before indexing msg_ring
ipc_protocol_free_msg_get() reads msg_head from shared memory and uses it directly as an index into msg_ring[]. If the head is out of range, the subsequent memset() writes beyond the message ring. Validate head against IPC_MEM_MSG_ENTRIES before using it as an index. The ring is a circular buffer, so a value outside the valid range indicates a corrupted head pointer; report the error and fail the allocation instead of writing out of bounds. Fixes: 64516f633bfd ("net: iosm: protocol operations") Cc: stable@vger.kernel.org Reviewed-by: Fang Xieyan <fangxy@xiaopeng.com> Signed-off-by: Liu Chao <liuc63@xiaopeng.com> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Link: https://patch.msgid.link/20261020094254.4017726-1-liuc63@xiaopeng.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions