aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorXinsheng Zhu <xinsheng.zhu.ny@gmail.com>2026-10-05 01:59:43 -0400
committerJakub Kicinski <kuba@kernel.org>2026-10-07 19:18:39 -0700
commit802f463057877e29244064dd6578ae8c4e453e6a (patch)
tree1094224bf4dbacaa54e052cc83a073ceca54d2fe /scripts/Makefile.thinlto
parentamt: mark relay data as a UDP tunnel packet before sending it (diff)
net: usb: r8153_ecm: reject short register reads
pla_read_word() and pla_write_word() read four bytes into an uninitialized stack variable, but only check usbnet_read_cmd() for negative return values. The helper can also return a non-negative length smaller than requested, leaving part or all of tmp uninitialized. pla_read_word() may then derive the register value from uninitialized bytes. pla_write_word() may include uninitialized bytes in the buffer sent to the device during its read-modify-write operation. Require the return value to equal sizeof(tmp) before using the buffer. Return -ENODATA for short reads while preserving negative errors from usbnet_read_cmd(). Found by manual code inspection with LLM assistance. The issue has not been reproduced at runtime. Cc: stable+noautosel@kernel.org # LLM report + LLM fix, untested Fixes: c1aedf015ebd ("net/usb/r8153_ecm: support ECM mode for RTL8153") Signed-off-by: Xinsheng Zhu <xinsheng.zhu.ny@gmail.com> Link: https://patch.msgid.link/20261005055943.35180-1-xinsheng.zhu.ny@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions