syzbot


BUG: using smp_processor_id() in preemptible code in usbnet_skb_return

Status: upstream: reported C repro on 2024/08/02 16:26
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+5a2d27f80f293c90b286@syzkaller.appspotmail.com
First crash: 112d, last: 16d
Bug presence (2)
Date Name Commit Repro Result
2024/08/03 lts (merge base) b95c01af2113 C [report] BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
2024/08/03 upstream (ToT) 17712b7ea075 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return syz 1 510d 970d 0/2 auto-obsoleted due to no activity on 2023/10/09 13:39
android-5-10 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return syz error error 2 489d 970d 0/2 auto-obsoleted due to no activity on 2023/10/20 12:45
android-6-1 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return 2 128d 128d 0/2 auto-obsoleted due to no activity on 2024/10/16 04:07
android-5-10 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return (2) C 2 14d 28d 0/2 upstream: reported C repro on 2024/10/25 22:57
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/11/06 17:29 16m retest repro android13-5.15-lts report log
2024/11/06 17:29 14m retest repro android13-5.15-lts report log
2024/08/17 04:51 22m retest repro android13-5.15-lts report log
2024/08/17 04:51 17m retest repro android13-5.15-lts report log
2024/08/17 04:51 8m retest repro android13-5.15-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/10/19 05:12 1h45m bisect fix android13-5.15-lts OK (0) job log log
2024/09/17 16:02 2h30m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
BUG: using smp_processor_id() in preemptible [00000000] code: dhcpcd/138
caller is debug_smp_processor_id+0x17/0x20 lib/smp_processor_id.c:60
CPU: 0 PID: 138 Comm: dhcpcd Not tainted 5.15.152-syzkaller-00143-g70e1a731d986 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 check_preemption_disabled+0x109/0x110 lib/smp_processor_id.c:49
 debug_smp_processor_id+0x17/0x20 lib/smp_processor_id.c:60
 usbnet_skb_return+0x6f/0x290 drivers/net/usb/usbnet.c:324
 usbnet_resume_rx+0x4d/0xd0 drivers/net/usb/usbnet.c:697
 usbnet_change_mtu+0x4ed/0x670 drivers/net/usb/usbnet.c:410
 __dev_set_mtu net/core/dev.c:8903 [inline]
 dev_set_mtu_ext+0x458/0x690 net/core/dev.c:8956
 dev_set_mtu+0xa0/0x180 net/core/dev.c:8980
 dev_ifsioc+0x4ad/0x10c0 net/core/dev_ioctl.c:331
 dev_ioctl+0x54d/0xe70 net/core/dev_ioctl.c:587
 sock_do_ioctl+0x34f/0x5a0 net/socket.c:1154
 sock_ioctl+0x455/0x740 net/socket.c:1257
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:860
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f678bb2bd49
Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffcd5b6eb88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f678ba5d6c0 RCX: 00007f678bb2bd49
RDX: 00007ffcd5b7ed78 RSI: 0000000000008922 RDI: 0000000000000012
RBP: 00007ffcd5b8ef38 R08: 00007ffcd5b7ed38 R09: 00007ffcd5b7ece8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd5b7ed78 R14: 0000000000000028 R15: 0000000000008922
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/02 20:20 android13-5.15-lts 70e1a731d986 1e9c4cf3 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
2024/08/02 16:16 android13-5.15-lts 70e1a731d986 1e9c4cf3 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
2024/08/02 22:04 android13-5.15-lts 70e1a731d986 1e9c4cf3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
2024/08/02 13:33 android13-5.15-lts 70e1a731d986 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
* Struck through repros no longer work on HEAD.