syzbot


net-next test error: WARNING in devl_port_unregister

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+85e47e1a08b3e159b159@syzkaller.appspotmail.com
Fix commit: 1fb22ed67195 devlink: Fix warning when unregistering a port
First crash: 760d, last: 754d
Discussions (3)
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
[syzbot] net-next test error: WARNING in devl_port_unregister 0 (1) 2022/11/08 12:04

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/10 11:23 net-next-old e081ecf084d3 b2488a87 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/10 04:17 net-next-old 13bd85580b85 b2488a87 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/10 01:54 net-next-old 154ba79c9f16 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 14:39 net-next-old 3ca6c3b43c72 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 14:39 net-next-old 3ca6c3b43c72 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 07:00 net-next-old 380f9acdf747 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 07:00 net-next-old 380f9acdf747 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 06:59 net-next-old 380f9acdf747 5fa28208 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 02:14 net-next-old 380f9acdf747 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 02:14 net-next-old 380f9acdf747 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/09 02:14 net-next-old 380f9acdf747 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 23:48 net-next-old 8e18be7610ae 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 23:48 net-next-old 8e18be7610ae 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 23:47 net-next-old 8e18be7610ae 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 19:30 net-next-old ee1bfbcc71cf 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 19:29 net-next-old ee1bfbcc71cf 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 19:29 net-next-old ee1bfbcc71cf 060f945e .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 17:58 net-next-old ee1bfbcc71cf 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 17:58 net-next-old ee1bfbcc71cf 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 17:57 net-next-old ee1bfbcc71cf 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 05:19 net-next-old 91c596cc8d32 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 05:19 net-next-old 91c596cc8d32 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 05:19 net-next-old 91c596cc8d32 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 04:31 net-next-old e69761483361 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 04:30 net-next-old e69761483361 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 04:30 net-next-old e69761483361 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 02:05 net-next-old bf46390f39c6 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 02:04 net-next-old bf46390f39c6 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/08 02:04 net-next-old bf46390f39c6 881db35d .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 13:24 net-next-old bf46390f39c6 a779b11a .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 13:24 net-next-old bf46390f39c6 a779b11a .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 12:28 net-next-old 6c8fae0caf5d 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 12:27 net-next-old 6c8fae0caf5d 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 12:27 net-next-old 6c8fae0caf5d 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 11:11 net-next-old a352a2c5d2a5 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 11:11 net-next-old a352a2c5d2a5 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/07 11:11 net-next-old a352a2c5d2a5 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/05 06:47 net-next-old 63d9e1291484 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/05 06:46 net-next-old 63d9e1291484 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/05 06:46 net-next-old 63d9e1291484 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/05 05:49 net-next-old 8e0aa1ff44ca 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/05 05:49 net-next-old 8e0aa1ff44ca 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/04 12:02 net-next-old 95ec6bce2a0b 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
2022/11/04 12:02 net-next-old 95ec6bce2a0b 6d752409 .config console log report ci-upstream-net-kasan-gce net-next test error: WARNING in devl_port_unregister
* Struck through repros no longer work on HEAD.