syzbot


BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc

Status: internal: reported C repro on 2022/03/12 18:45
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: fc93db153b01 net: disable preemption in dev_core_stats_XXX_inc() helpers
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 108d, last: 99d

Cause bisection: failed (bisect log)

Sample crash report:
BUG: using smp_processor_id() in preemptible [00000000] code: syz-executor206/3591
caller is netdev_core_stats_alloc+0x98/0x110 net/core/dev.c:10298
CPU: 0 PID: 3591 Comm: syz-executor206 Not tainted 5.17.0-rc7-syzkaller-02443-gd96657dc9238 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 check_preemption_disabled+0x16b/0x170 lib/smp_processor_id.c:49
 netdev_core_stats_alloc+0x98/0x110 net/core/dev.c:10298
 dev_core_stats include/linux/netdevice.h:3855 [inline]
 dev_core_stats_rx_dropped_inc include/linux/netdevice.h:3866 [inline]
 tun_get_user+0x342b/0x3ab0 drivers/net/tun.c:1829
 tun_chr_write_iter+0xe1/0x200 drivers/net/tun.c:2015
 call_write_iter include/linux/fs.h:2074 [inline]
 new_sync_write+0x431/0x660 fs/read_write.c:503
 vfs_write+0x7cd/0xae0 fs/read_write.c:590
 ksys_write+0x12d/0x250 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fcfe7018853
Code: 5d 41 5c 41 5d 41 5e e9 9b fd ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18
RSP: 002b:00007ffce9a80e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffce9a80e80 RCX: 00007fcfe7018853
RDX: 00000000fffffe6f RSI: 0000000020000000 RDI: 00000000000000c8
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffce9a80e70 R14: 00007ffce9a80e68 R15: 00007ffce9a80e64
 </TASK>

Crashes (2210):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2022/03/14 15:06 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 14:55 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 14:46 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 14:35 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 14:25 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 14:08 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 13:58 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 13:47 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 13:38 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 13:28 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 13:15 net-next d96657dc9238 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 10:12 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 10:01 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 09:51 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 09:41 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 09:23 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 09:12 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:59 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:48 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:37 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:28 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:18 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 08:08 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 07:56 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 07:35 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 07:26 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 07:17 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 06:35 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 06:26 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 06:17 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:59 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:49 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:40 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:29 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:11 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 05:01 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 04:51 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 04:41 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 04:31 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/14 04:21 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/12 23:42 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/12 21:05 net-next 97aeb877de7f 9e8eaa75 .config log report syz C BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/22 04:22 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/22 03:18 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/22 02:45 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/22 01:40 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/22 00:24 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 23:20 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 22:27 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 21:23 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 21:02 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 20:01 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 19:26 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 18:24 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 17:36 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 16:30 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 16:07 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 14:56 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 13:52 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 13:40 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 12:34 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 11:30 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 11:25 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 10:22 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 09:19 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 08:36 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 07:33 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 06:33 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 06:29 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 05:28 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 04:14 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 04:08 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 03:08 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 01:51 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 01:39 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 00:24 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/21 00:16 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 23:15 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 22:10 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 22:02 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 20:15 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 19:09 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 19:04 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 18:02 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/20 16:54 net-next d96657dc9238 e2d91b1d .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/12 18:41 net-next 97aeb877de7f 9e8eaa75 .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc
ci-upstream-net-kasan-gce 2022/03/12 18:39 net-next 97aeb877de7f 9e8eaa75 .config log report info BUG: using smp_processor_id() in preemptible code in netdev_core_stats_alloc