summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2026-10-07 17:55:40 +0000
committerJakub Kicinski <kuba@kernel.org>2026-10-08 10:58:31 -0700
commit089e58805c452e52179482b1025a8e309a57f801 (patch)
treef6cf606daeb9b15d84270c04ac3ec22fa3dbc0ff /tools/lib/python/kdoc/python_version.py
parentab9414ed70bd783e902a85c350620dee269bcb2b (diff)
downloadlinux-next-089e58805c452e52179482b1025a8e309a57f801.tar.gz
linux-next-089e58805c452e52179482b1025a8e309a57f801.zip
xen/netfront: drop RX packets with a short Ethernet header
handle_incoming_queue() pulls pull_to bytes into the head before calling eth_type_trans(). pull_to is the length of the first RX slot, capped at RX_COPY_THRESHOLD, and that length comes from the backend. Nothing checks it against ETH_HLEN. If the first slot is shorter than ETH_HLEN and more slots follow, the head ends up shorter than an Ethernet header while skb->len is longer, and eth_type_trans() BUG()s in __skb_pull(). If the whole packet is shorter than ETH_HLEN, eth_type_trans() reads the header past the end of the data instead. Pull at least ETH_HLEN, and drop the packet if that fails, which also drops packets too short to hold an Ethernet header. This also checks the return value of the pull, which was ignored. Fixes: 0d160211965b ("xen: add virtual network device driver") Cc: stable@vger.kernel.org Signed-off-by: Josef Bacik <josef@toxicpanda.com> Link: https://patch.msgid.link/20261007-b4-xen-netfront-short-head-v1-1-12d7113a7e4e@toxicpanda.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions