[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CANikGpfCepF2ds27yZc64i5T4P+MTjt4LCY7_rQ+zmSYmNZZWw@mail.gmail.com>
Date: Sun, 25 Aug 2024 16:16:23 -0700
From: Juefei Pu <juefei.pu@...il.ucr.edu>
To: davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: BUG: WARNING: ODEBUG bug in addrconf_ifdown
Hello,
We found the following issue using syzkaller on Linux v6.10.
In `addrconf_ifdown`, an ODEBUG warning was triggered when executing
`addrconf_del_rs_timer(idev)`. It seems that the function was called
without checking whether `idev`'s rs_timer is initialized.
Unfortunately, the syzkaller failed to generate a reproducer.
But at least we have the report:
netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2
family 0 port 6081 - 0
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object:
ffff88801f4a6708 object type: timer_list hint:
addrconf_rs_timer+0x0/0x650
WARNING: CPU: 0 PID: 2798 at lib/debugobjects.c:517
debug_print_object+0x176/0x1e0 lib/debugobjects.c:514
Modules linked in:
CPU: 0 PID: 2798 Comm: kworker/u4:8 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:debug_print_object+0x176/0x1e0 lib/debugobjects.c:514
Code: df e8 6e e9 95 fd 4c 8b 0b 48 c7 c7 a0 61 a9 8b 48 8b 74 24 08
48 89 ea 44 89 e1 4d 89 f8 ff 34 24 e8 de 2c f7 fc 48 83 c4 08 <0f> 0b
ff 05 42 1e c6 0a 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d
RSP: 0000:ffffc900096e7058 EFLAGS: 00010282
RAX: f1e16416dd78e800 RBX: ffffffff8b4ee740 RCX: ffff888025689e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8ba96360 R08: ffffffff8155a25a R09: 1ffff1100c74519a
R10: dffffc0000000000 R11: ffffed100c74519b R12: 0000000000000000
R13: ffffffff8ba96248 R14: dffffc0000000000 R15: ffff88801f4a6708
FS: 0000000000000000(0000) GS:ffff888063a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f48b94e9080 CR3: 000000000d932000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
debug_object_assert_init+0x35f/0x420 lib/debugobjects.c:910
debug_timer_assert_init kernel/time/timer.c:846 [inline]
debug_assert_init kernel/time/timer.c:891 [inline]
__timer_delete kernel/time/timer.c:1413 [inline]
timer_delete+0x98/0x150 kernel/time/timer.c:1453
del_timer include/linux/timer.h:202 [inline]
addrconf_del_rs_timer net/ipv6/addrconf.c:315 [inline]
addrconf_ifdown+0x6dd/0x1b50 net/ipv6/addrconf.c:3914
addrconf_notify+0x3c4/0x1000
notifier_call_chain kernel/notifier.c:93 [inline]
raw_notifier_call_chain+0xe0/0x180 kernel/notifier.c:461
call_netdevice_notifiers_extack net/core/dev.c:2030 [inline]
call_netdevice_notifiers net/core/dev.c:2044 [inline]
dev_close_many+0x352/0x4e0 net/core/dev.c:1585
unregister_netdevice_many_notify+0x542/0x16d0 net/core/dev.c:11194
unregister_netdevice_many net/core/dev.c:11277 [inline]
unregister_netdevice_queue+0x2ff/0x370 net/core/dev.c:11156
unregister_netdevice include/linux/netdevice.h:3119 [inline]
nsim_destroy+0x17c/0x5b0 drivers/net/netdevsim/netdev.c:778
__nsim_dev_port_del+0x14a/0x1b0 drivers/net/netdevsim/dev.c:1425
nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1437 [inline]
nsim_dev_reload_destroy+0x282/0x480 drivers/net/netdevsim/dev.c:1658
nsim_dev_reload_down+0x93/0xc0 drivers/net/netdevsim/dev.c:965
devlink_reload+0x188/0x840 net/devlink/dev.c:461
devlink_pernet_pre_exit+0x1ee/0x440 net/devlink/core.c:509
ops_pre_exit_list net/core/net_namespace.c:163 [inline]
cleanup_net+0x61e/0xcd0 net/core/net_namespace.c:620
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>
Powered by blists - more mailing lists