diff options
| author | Zixuan Chai <petalzu987@gmail.com> | 2026-09-24 09:26:05 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-24 10:58:16 -0700 |
| commit | 72b5b9a28b996e09b8b5b944370c79851bb68f52 (patch) | |
| tree | 80b7fa56b5820d1f2be01da4399dda48eb003ab1 /tools/perf/scripts/python | |
| parent | 488089055b61be8f7e97817d4608844f0fba2648 (diff) | |
| download | linux-next-72b5b9a28b996e09b8b5b944370c79851bb68f52.tar.gz linux-next-72b5b9a28b996e09b8b5b944370c79851bb68f52.zip | |
llc: reserve device headroom for allocated frames
llc_alloc_frame() reserves link-layer headroom using the device type.
This is insufficient for stacked Ethernet devices such as VLAN devices,
where vlan_dev_hard_header() pushes a VLAN header before the lower
device's Ethernet header. An LLC response on such a device can
therefore underflow skb headroom in eth_header().
Use LL_RESERVED_SPACE() to account for the device's actual required
headroom while preserving the existing LLC device-type check.
Fixes: bf9ae5386bca ("llc: use dev_hard_header")
Cc: stable@vger.kernel.org
Reported-by: VEGA <vega@nebusec.ai>
Signed-off-by: Zixuan Chai <petalzu987@gmail.com>
Signed-off-by: Ren Wei <weir@nebusec.ai>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260924012613.2533934-1-weir@nebusec.ai
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
