syzbot


linux-next test error: WARNING in devl_port_unregister

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+c2ca18f0fccdd1f09c66@syzkaller.appspotmail.com
Fix commit: 1fb22ed67195 devlink: Fix warning when unregistering a port
First crash: 587d, last: 583d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net-next] devlink: Fix warning when unregistering a port 2 (2) 2022/11/10 22:10
[syzbot] linux-next test error: WARNING in devl_port_unregister 2 (3) 2022/11/09 09:55

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: 0 PID: 85 at net/core/devlink.c:9998 devl_port_unregister+0x2f6/0x390 net/core/devlink.c:9998
Modules linked in:
CPU: 0 PID: 85 Comm: kworker/u4:4 Not tainted 6.1.0-rc4-next-20221110-syzkaller #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:9998
Code: e8 ef 33 fb f9 85 ed 0f 85 7a fd ff ff e8 12 37 fb f9 0f 0b e9 6e fd ff ff e8 06 37 fb f9 0f 0b e9 53 ff ff ff e8 fa 36 fb f9 <0f> 0b e9 94 fd ff ff e8 7e 23 48 fa e9 78 ff ff ff e8 44 23 48 fa
RSP: 0018:ffffc90001577a08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888079db7010 RCX: 0000000000000000
RDX: ffff888017f89d40 RSI: ffffffff87819b96 RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffff888079db7010
R13: ffff888079db7008 R14: ffff888079db6000 R15: ffff888079db7000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005598f1650058 CR3: 0000000079d3b000 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+0x1c2/0x6b0 net/core/devlink.c:4501
 devlink_pernet_pre_exit+0x104/0x1c0 net/core/devlink.c:12609
 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:308
 </TASK>

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/10 16:14 linux-next 382d2f9e739b 3ead01ad .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 16:13 linux-next 382d2f9e739b 3ead01ad .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 16:13 linux-next 382d2f9e739b 3ead01ad .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 08:35 linux-next 382d2f9e739b b2488a87 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 08:35 linux-next 382d2f9e739b b2488a87 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 03:54 linux-next 94db6b12c18d b2488a87 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 03:54 linux-next 94db6b12c18d b2488a87 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/10 03:54 linux-next 94db6b12c18d b2488a87 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 07:23 linux-next 94db6b12c18d 5fa28208 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 07:22 linux-next 94db6b12c18d 5fa28208 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 07:22 linux-next 94db6b12c18d 5fa28208 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 06:33 linux-next 94db6b12c18d 060f945e .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 06:33 linux-next 94db6b12c18d 060f945e .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/09 06:32 linux-next 94db6b12c18d 060f945e .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/08 02:27 linux-next d8e87774068a 881db35d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/08 02:27 linux-next d8e87774068a 881db35d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/08 02:27 linux-next d8e87774068a 881db35d .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 14:24 linux-next d8e87774068a a779b11a .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 14:24 linux-next d8e87774068a a779b11a .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 14:24 linux-next d8e87774068a a779b11a .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 04:57 linux-next d8e87774068a 6d752409 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 04:57 linux-next d8e87774068a 6d752409 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
2022/11/07 04:57 linux-next d8e87774068a 6d752409 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next test error: WARNING in devl_port_unregister
* Struck through repros no longer work on HEAD.