syzbot


WARNING in devl_port_unregister

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Fix commit: 1fb22ed67195 devlink: Fix warning when unregistering a port
First crash: 764d, last: 662d

Sample crash report:
netdevsim netdevsim4 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim4 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim1 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 997 at net/core/devlink.c:10331 devl_port_unregister+0x25c/0x2d0 net/core/devlink.c:10331
Modules linked in:
CPU: 0 PID: 997 Comm: kworker/u4:5 Not tainted 6.2.0-rc7-syzkaller-00199-g420b2d431d18 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Workqueue: netns cleanup_net
RIP: 0010:devl_port_unregister+0x25c/0x2d0 net/core/devlink.c:10331
Code: e8 99 f9 9d f9 85 ed 0f 85 20 fe ff ff e8 dc fc 9d f9 0f 0b e9 14 fe ff ff e8 d0 fc 9d f9 0f 0b e9 4b ff ff ff e8 c4 fc 9d f9 <0f> 0b e9 3a fe ff ff e8 e8 0e ec f9 e9 d8 fe ff ff e8 de 0e ec f9
RSP: 0018:ffffc900051cfa00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806f42e010 RCX: 0000000000000000
RDX: ffff88801f903a80 RSI: ffffffff87e2fb4c RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffff88806f42e010
R13: ffff88806f42e030 R14: ffff88806fa70000 R15: ffff88806f42e000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fb6bfdc950 CR3: 00000000292c9000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __nsim_dev_port_del+0x1bb/0x240 drivers/net/netdevsim/dev.c:1430
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline]
 nsim_dev_reload_destroy+0x171/0x510 drivers/net/netdevsim/dev.c:1657
 nsim_dev_reload_down+0x6f/0xe0 drivers/net/netdevsim/dev.c:968
 devlink_reload+0x1ca/0x6f0 net/core/devlink.c:4741
 devlink_pernet_pre_exit+0x108/0x1d0 net/core/devlink.c:13003
 ops_pre_exit_list net/core/net_namespace.c:159 [inline]
 cleanup_net+0x455/0xb10 net/core/net_namespace.c:594
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x669/0x1090 kernel/workqueue.c:2436
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1690):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/11 14:10 upstream 420b2d431d18 93e26d60 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in devl_port_unregister
2023/02/12 21:51 upstream f339c2597ebb 93e26d60 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in devl_port_unregister
2022/11/10 20:03 net-next-old 0c9ef08a4d0f 3ead01ad .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in devl_port_unregister
2023/02/16 16:53 upstream 033c40a89f55 7338e3c4 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in devl_port_unregister
2023/02/16 12:44 upstream 033c40a89f55 7338e3c4 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in devl_port_unregister
2023/02/16 09:53 upstream 033c40a89f55 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in devl_port_unregister
2023/02/16 04:08 upstream 033c40a89f55 6be0f1f5 .config console log report info ci-qemu-upstream WARNING in devl_port_unregister
2023/02/14 18:30 upstream 82eac0c830b7 1d6b4af7 .config console log report info ci-upstream-kasan-gce-root WARNING in devl_port_unregister
2023/02/15 09:38 upstream e1c04510f521 e62ba3c1 .config console log report info ci-qemu-upstream-386 WARNING in devl_port_unregister
2023/02/17 20:45 bpf 92a3f9895236 3e7039f4 .config console log report info ci-upstream-bpf-kasan-gce WARNING in devl_port_unregister
2023/02/17 19:34 bpf 92a3f9895236 3e7039f4 .config console log report info ci-upstream-bpf-kasan-gce WARNING in devl_port_unregister
2023/02/17 18:30 bpf 92a3f9895236 3e7039f4 .config console log report info ci-upstream-bpf-kasan-gce WARNING in devl_port_unregister
2023/02/17 16:50 bpf 92a3f9895236 3e7039f4 .config console log report info ci-upstream-bpf-kasan-gce WARNING in devl_port_unregister
2023/02/16 17:07 net-old 5d54cb1767e0 7338e3c4 .config console log report info ci-upstream-net-this-kasan-gce WARNING in devl_port_unregister
2023/02/21 03:51 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/21 02:41 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/21 00:20 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 22:13 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 20:44 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 19:47 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 17:24 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 16:21 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 14:30 bpf-next 168de0233586 4f5f5209 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 13:28 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 12:00 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 08:01 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 05:27 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/20 03:54 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 20:27 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 19:47 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 17:28 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 15:52 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 14:02 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 12:43 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 11:02 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 08:40 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 07:39 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 06:34 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 01:49 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 00:06 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/19 00:03 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 20:04 bpf-next 168de0233586 bcdf85f8 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 16:03 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 15:01 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 13:31 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 10:26 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 07:35 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 07:13 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 05:22 bpf-next 168de0233586 d02e9a70 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 04:15 bpf-next 168de0233586 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 01:36 bpf-next 168de0233586 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/18 01:18 bpf-next 168de0233586 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 23:28 bpf-next df71a42cc37a 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 22:07 bpf-next df71a42cc37a 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 14:51 bpf-next df71a42cc37a 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 13:12 bpf-next df71a42cc37a 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 12:04 bpf-next df71a42cc37a 3e7039f4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in devl_port_unregister
2023/02/17 09:11 net-next-old 84cb1b53cdba 851bc19a .config console log report info ci-upstream-net-kasan-gce WARNING in devl_port_unregister
2022/11/10 12:14 net-next-old 0c9ef08a4d0f b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in devl_port_unregister
2023/02/16 02:21 linux-next 9d9019bcea1a 6be0f1f5 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in devl_port_unregister
* Struck through repros no longer work on HEAD.