syzbot


BUG: using smp_processor_id() in preemptible code in usbnet_skb_return

Status: premoderation: reported on 2024/07/18 03:31
Reported-by: syzbot+169c1702ecbf7d550a92@syzkaller.appspotmail.com
First crash: 51d, last: 51d
Similar bugs (3)
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 434d 893d 0/2 auto-obsoleted due to no activity on 2023/10/09 13:39
android-5-15 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return origin:lts C 4 21d 36d 0/2 upstream: reported C repro on 2024/08/02 16:26
android-5-10 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return syz error error 2 413d 894d 0/2 auto-obsoleted due to no activity on 2023/10/20 12:45

Sample crash report:
BUG: using smp_processor_id() in preemptible [00000000] code: dhcpcd/139
caller is debug_smp_processor_id+0x17/0x20 lib/smp_processor_id.c:60
CPU: 1 PID: 139 Comm: dhcpcd Not tainted 6.1.84-syzkaller-00009-gc78828e3832d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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/0x1b 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/0x270 drivers/net/usb/usbnet.c:323
 usbnet_resume_rx+0x4d/0xd0 drivers/net/usb/usbnet.c:696
 usbnet_change_mtu+0x4ed/0x670 drivers/net/usb/usbnet.c:409
 __dev_set_mtu net/core/dev.c:8678 [inline]
 dev_set_mtu_ext+0x458/0x690 net/core/dev.c:8731
 dev_set_mtu+0x9e/0x180 net/core/dev.c:8755
 dev_ifsioc+0x4cd/0x1150 net/core/dev_ioctl.c:334
 dev_ioctl+0x543/0xe60 net/core/dev_ioctl.c:588
 sock_do_ioctl+0x26b/0x450 net/socket.c:1208
 sock_ioctl+0x455/0x740 net/socket.c:1311
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:856
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f775468cd49
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:00007fff62f37468 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f77545be6c0 RCX: 00007f775468cd49
RDX: 00007fff62f47658 RSI: 0000000000008922 RDI: 000000000000000e
RBP: 00007fff62f57818 R08: 00007fff62f47618 R09: 00007fff62f475c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff62f47658 R14: 0000000000000028 R15: 0000000000008922
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/18 03:57 android14-6.1 c78828e3832d 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
2024/07/18 03:31 android14-6.1 c78828e3832d 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: using smp_processor_id() in preemptible code in usbnet_skb_return
* Struck through repros no longer work on HEAD.