diff options
| author | 2026-10-05 00:59:25 +0300 | |
|---|---|---|
| committer | 2026-10-16 08:30:15 -0700 | |
| commit | 95a5c641fc7becab441bf244baa73b0b0f8b7dea (patch) | |
| tree | fa9a3691a66f4a45bc892d999ff1116946d3810a /scripts/Makefile.thinlto | |
| parent | net: phy: qcom: at803x: Apply IPQ5018 analog settings at probe (diff) | |
usbnet: fix smp_processor_id() use in preemptible context
tx_complete() calls this_cpu_ptr() before disabling preemption, which
triggers a BUG when running with CONFIG_DEBUG_PREEMPT:
BUG: using smp_processor_id() in preemptible code in tx_complete
Fix by using get_cpu_ptr()/put_cpu_ptr() which disable preemption and
return the per-CPU pointer atomically. The usbnet_skb_return() hunk
is a hardening change: that path runs in softirq context so no warning
fires there, but the same fix is applied for consistency.
Fixes: ed194d136769 ("usb: core: remove local_irq_save() around ->complete() handler")
Suggested-by: David Laight <david.laight.linux@gmail.com>
Reported-by: syzbot+04cd90bb99c6ef81a65d@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=04cd90bb99c6ef81a65d
Signed-off-by: Ömer Mete Kaya <omermetekaya0@gmail.com>
Link: https://patch.msgid.link/20261004215937.302247-1-omermetekaya0@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
