syzbot


net-next test error: WARNING in devl_port_unregister

Status: upstream: reported on 2022/11/08 12:04
Reported-by: syzbot+85e47e1a08b3e159b159@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: 94d, last: 88d

Sample crash report:
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11 at net/core/devlink.c:10001 devl_port_unregister+0x2f6/0x390 net/core/devlink.c:10001
Modules linked in:
CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc3-syzkaller-00886-ge081ecf084d3 #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:ffffc90000107a08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880220fb810 RCX: 0000000000000000
RDX: ffff888011a6ba80 RSI: ffffffff877177d6 RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffff8880220fb810
R13: ffff8880220fb808 R14: ffff8880220fa800 R15: ffff8880220fb800
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056105d860068 CR3: 000000007fe78000 CR4: 00000000003506e0
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 (52):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-kasan-gce 2022/11/10 11:23 net-next e081ecf084d3 b2488a87 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 04:17 net-next 13bd85580b85 b2488a87 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/10 01:54 net-next 154ba79c9f16 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 14:39 net-next 3ca6c3b43c72 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 14:39 net-next 3ca6c3b43c72 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 07:00 net-next 380f9acdf747 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 07:00 net-next 380f9acdf747 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 06:59 net-next 380f9acdf747 5fa28208 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 02:14 net-next 380f9acdf747 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 02:14 net-next 380f9acdf747 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/09 02:14 net-next 380f9acdf747 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 23:48 net-next 8e18be7610ae 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 23:48 net-next 8e18be7610ae 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 23:47 net-next 8e18be7610ae 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 19:30 net-next ee1bfbcc71cf 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 19:29 net-next ee1bfbcc71cf 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 19:29 net-next ee1bfbcc71cf 060f945e .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 17:58 net-next ee1bfbcc71cf 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 17:58 net-next ee1bfbcc71cf 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 17:57 net-next ee1bfbcc71cf 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 05:19 net-next 91c596cc8d32 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 05:19 net-next 91c596cc8d32 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 05:19 net-next 91c596cc8d32 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 04:31 net-next e69761483361 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 04:30 net-next e69761483361 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 04:30 net-next e69761483361 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 02:05 net-next bf46390f39c6 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 02:04 net-next bf46390f39c6 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/08 02:04 net-next bf46390f39c6 881db35d .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 13:24 net-next bf46390f39c6 a779b11a .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 13:24 net-next bf46390f39c6 a779b11a .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 12:28 net-next 6c8fae0caf5d 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 12:27 net-next 6c8fae0caf5d 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 12:27 net-next 6c8fae0caf5d 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 11:11 net-next a352a2c5d2a5 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 11:11 net-next a352a2c5d2a5 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/07 11:11 net-next a352a2c5d2a5 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/05 06:47 net-next 63d9e1291484 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/05 06:46 net-next 63d9e1291484 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/05 06:46 net-next 63d9e1291484 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/05 05:49 net-next 8e0aa1ff44ca 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/05 05:49 net-next 8e0aa1ff44ca 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/04 12:02 net-next 95ec6bce2a0b 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
ci-upstream-net-kasan-gce 2022/11/04 12:02 net-next 95ec6bce2a0b 6d752409 .config console log report [disk image] [vmlinux] [kernel image] net-next test error: WARNING in devl_port_unregister
* Struck through repros no longer work on HEAD.