WARNING in dev_addr_check
From: Xingyu Li <hidden>
Date: 2024-08-25 05:18:33
Also in:
lkml
Hi, We found a bug in Linux 6.10. It is probably a logic bug. There is a warning "Incorrect netdev->dev_addr" generated at the line 519 of warning net/core/dev_addr_lists.c. The bug report is as follows, but unfortunately there is no generated syzkaller reproducer. Bug report: netdevice: wlan1 (unregistered): Incorrect netdev->dev_addr WARNING: CPU: 0 PID: 70 at net/core/dev_addr_lists.c:519 dev_addr_check+0x17e/0x1e0 net/core/dev_addr_lists.c:519 Modules linked in: CPU: 0 PID: 70 Comm: kworker/u4:4 Not tainted 6.10.0 #13 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:dev_addr_check+0x17e/0x1e0 net/core/dev_addr_lists.c:519 Code: f9 48 8b 13 eb 15 80 3d 89 fb 35 06 01 75 22 e8 28 1b b8 f8 48 c7 c2 e0 f7 68 8c 48 c7 c7 e0 f4 68 8c 4c 89 fe e8 c2 69 7c f8 <0f> 0b e9 e6 fe ff ff e8 06 1b b8 f8 c6 05 59 fb 35 06 01 48 c7 c7 RSP: 0018:ffffc9000185f710 EFLAGS: 00010246 RAX: 503403a848a81f00 RBX: ffffffff8c68f818 RCX: ffff888018159e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00000000fffffff8 R08: ffffffff8155a25a R09: 1ffff1100c74519a R10: dffffc0000000000 R11: ffffed100c74519b R12: ffff888046f046c0 R13: dffffc0000000000 R14: ffff888046f04130 R15: ffff888046f04130 FS: 0000000000000000(0000) GS:ffff888063a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f9af880ae8 CR3: 000000003c37c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> dev_addr_flush+0x28/0x200 net/core/dev_addr_lists.c:533 free_netdev+0x1f4/0x4d0 net/core/dev.c:11074 netdev_run_todo+0xdfa/0xf80 net/core/dev.c:10695 ieee80211_unregister_hw+0x11f/0x2d0 net/mac80211/main.c:1669 mac80211_hwsim_del_radio+0x2ba/0x4b0 drivers/net/wireless/virtual/mac80211_hwsim.c:5576 hwsim_exit_net+0x5bd/0x660 drivers/net/wireless/virtual/mac80211_hwsim.c:6453 ops_exit_list net/core/net_namespace.c:173 [inline] cleanup_net+0x810/0xcd0 net/core/net_namespace.c:640 process_one_work kernel/workqueue.c:3248 [inline] process_scheduled_works+0x977/0x1410 kernel/workqueue.c:3329 worker_thread+0xaa0/0x1020 kernel/workqueue.c:3409 kthread+0x2eb/0x380 kernel/kthread.c:389 ret_from_fork+0x49/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:244 </TASK> -- Yours sincerely, Xingyu