diff options
| author | 2026-10-07 17:52:29 +0000 | |
|---|---|---|
| committer | 2026-10-07 13:23:27 -0600 | |
| commit | e1274a6bc40a4618f6fbaebbdc51cca865d51bed (patch) | |
| tree | e0a8d4af239f9372f27037db2952e2873a810b37 /scripts/Makefile.thinlto | |
| parent | Merge tag 'floppy-for-7.4' of https://github.com/evdenis/linux-floppy into for-7.4/block (diff) | |
aoe: pull in the headers each received packet type reads
aoenet_rcv() only pulls the AoE and ATA headers into the skb head when
the packet is long enough to hold both. A shorter packet goes through
unpulled, and aoenet_rcv() reads the AoE header from it anyway. CFG
responses go on to aoecmd_cfg_rsp(), which reads the config header
after it, and ATA responses get queued for ktiocomplete(), which
skb_pull()s both headers. Ethernet pads frames to 60 bytes, so this
mostly takes a virtual link, but nothing stops a short frame from
getting here.
Pull the AoE header up front and drop the packet if it isn't there,
then pull the ATA or config header in the switch arm that hands the
packet on, so each path gets the headers it reads. This also replaces
the open-coded __pskb_pull_tail() with pskb_may_pull().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261007-b4-aoe-short-packets-v1-1-db5155f7bb9c@toxicpanda.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
