syzbot


WARNING in devl_port_unregister

Status: internal: reported syz repro on 2022/11/10 12:15
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 1fb22ed67195 devlink: Fix warning when unregistering a port
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-arm64 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-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 86d, last: 86d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3733 at net/core/devlink.c:10001 devl_port_unregister+0x2f6/0x390 net/core/devlink.c:10001
Modules linked in:
CPU: 0 PID: 3733 Comm: kworker/u4:1 Not tainted 6.1.0-rc3-syzkaller-00887-g0c9ef08a4d0f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: netns cleanup_net
RIP: 0010:devl_port_unregister+0x2f6/0x390 net/core/devlink.c:10001
Code: e8 3f 37 0b fa 85 ed 0f 85 7a fd ff ff e8 62 3a 0b fa 0f 0b e9 6e fd ff ff e8 56 3a 0b fa 0f 0b e9 53 ff ff ff e8 4a 3a 0b fa <0f> 0b e9 94 fd ff ff e8 ae ac 57 fa e9 78 ff ff ff e8 74 ac 57 fa
RSP: 0018:ffffc900046dfa08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88807768e810 RCX: 0000000000000000
RDX: ffff88807d36d7c0 RSI: ffffffff877177d6 RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffff88807768e810
R13: ffff88807768e808 R14: ffff888077689800 R15: ffff88807768e800
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0dd3227a70 CR3: 00000000212af000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __nsim_dev_port_del+0x1bb/0x240 drivers/net/netdevsim/dev.c:1433
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1443 [inline]
 nsim_dev_reload_destroy+0x171/0x510 drivers/net/netdevsim/dev.c:1660
 nsim_dev_reload_down+0x6b/0xd0 drivers/net/netdevsim/dev.c:968
 devlink_reload+0x1c4/0x6e0 net/core/devlink.c:4501
 devlink_pernet_pre_exit+0x104/0x1c0 net/core/devlink.c:12615
 ops_pre_exit_list net/core/net_namespace.c:159 [inline]
 cleanup_net+0x451/0xb10 net/core/net_namespace.c:594
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-kasan-gce 2022/11/10 20:03 net-next 0c9ef08a4d0f 3ead01ad .config console log report syz [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 22:57 net-next 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 17:33 net-next 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 15:55 net-next 0c9ef08a4d0f 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 15:05 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:18 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:15 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:15 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:14 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:14 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:14 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 12:14 net-next 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in devl_port_unregister
* Struck through repros no longer work on HEAD.