linux/include
Kohei Enju 3bfcf39608 net: validate skb->napi_id in RX tracepoints
Since commit 2bd82484bb ("xps: fix xps for stacked devices"),
skb->napi_id shares storage with sender_cpu. RX tracepoints using
net_dev_rx_verbose_template read skb->napi_id directly and can therefore
report sender_cpu values as if they were NAPI IDs.

For example, on the loopback path this can report 1 as napi_id, where 1
comes from raw_smp_processor_id() + 1 in the XPS path:

  # bpftrace -e 'tracepoint:net:netif_rx_entry{ print(args->napi_id); }'
  # taskset -c 0 ping -c 1 ::1

Report only valid NAPI IDs in these tracepoints and use 0 otherwise.

Fixes: 2bd82484bb ("xps: fix xps for stacked devices")
Signed-off-by: Kohei Enju <kohei@enjuk.jp>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://patch.msgid.link/20260420105427.162816-1-kohei@enjuk.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-04-22 20:15:50 -07:00
..
acpi Power management updates for 7.1-rc1 2026-04-13 19:47:52 -07:00
asm-generic Modules changes for v7.1-rc1 2026-04-14 17:16:38 -07:00
clocksource
crypto Crypto library updates for 7.1 2026-04-13 17:31:39 -07:00
cxl
drm
dt-bindings reset: spacemit: k3: Decouple composite reset lines 2026-03-23 12:25:47 +01:00
hyperv mshv: Fix infinite fault loop on permission-denied GPA intercepts 2026-04-04 05:25:53 +00:00
keys
kunit
kvm
linux net: cache snapshot entries for ndo_set_rx_mode_async 2026-04-21 12:50:13 +02:00
math-emu
media
memory
misc
net net: mctp: fix don't require received header reserved bits to be zero 2026-04-20 11:46:57 -07:00
pcmcia
ras
rdma
rv
scsi
soc
sound ASoC: SDCA: Unregister IRQ handlers on module remove 2026-04-08 16:55:30 +01:00
target
trace net: validate skb->napi_id in RX tracepoints 2026-04-22 20:15:50 -07:00
uapi vfs-7.1-rc1.mount.v2 2026-04-14 19:59:25 -07:00
ufs
vdso vdso/datapage: Trim down unnecessary includes 2026-03-11 15:22:39 +01:00
video
xen
Kbuild