syzbot has found a reproducer for the following crash on:
HEAD commit: e109a984 Linux 4.19.48
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=10b5ec2ea00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=2d14dd88554f26bc
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=105848d4a00000
kobject: 'veth0_to_team' (00000000dab8e779): kobject_uevent_env
kobject: 'veth0_to_team' (00000000dab8e779): fill_kobj_path: path
= '/devices/virtual/net/veth0_to_team'
ODEBUG: free active (active state 0) object type: timer_list hint:
delayed_work_timer_fn+0x0/0x90 kernel/workqueue.c:4919
kobject: 'queues' (000000002bf135bd): kobject_add_internal:
parent: 'veth0_to_team', set: '<NULL>'
WARNING: CPU: 1 PID: 7 at lib/debugobjects.c:325
debug_print_object+0x168/0x250 lib/debugobjects.c:325
kobject: 'queues' (000000002bf135bd): kobject_uevent_env
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.48 #20
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: netns cleanup_net
kobject: 'queues' (000000002bf135bd): kobject_uevent_env: filter function
caused the event to drop!
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x507 kernel/panic.c:185
__warn.cold+0x20/0x4a kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
kobject: 'rx-0' (00000000483daf50): kobject_add_internal: parent: 'queues',
set: 'queues'
kobject: 'rx-0' (00000000483daf50): kobject_uevent_env
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1013
RIP: 0010:debug_print_object+0x168/0x250 lib/debugobjects.c:325
Code: dd e0 bb 81 87 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48
8b 14 dd e0 bb 81 87 48 c7 c7 80 b1 81 87 e8 26 43 1a fe <0f> 0b 83 05 ab
07 17 06 01 48 83 c4 20 5b 41 5c 41 5d 41 5e 5d c3
RSP: 0018:ffff8880aa21f838 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
kobject: 'rx-0' (00000000483daf50): fill_kobj_path: path
= '/devices/virtual/net/veth0_to_team/queues/rx-0'
RDX: 0000000000000000 RSI: ffffffff81559f16 RDI: ffffed1015443ef9
kobject: 'tx-0' (000000007db8bfdc): kobject_add_internal: parent: 'queues',
set: 'queues'
RBP: ffff8880aa21f878 R08: ffff8880aa2061c0 R09: fffffbfff10f269d
kobject: 'tx-0' (000000007db8bfdc): kobject_uevent_env
R10: fffffbfff10f269c R11: ffffffff887934e3 R12: 0000000000000001
R13: ffffffff887aa940 R14: ffffffff815b0dc0 R15: ffff888094deab20
kobject: 'tx-0' (000000007db8bfdc): fill_kobj_path: path
= '/devices/virtual/net/veth0_to_team/queues/tx-0'
__debug_check_no_obj_freed lib/debugobjects.c:785 [inline]
debug_check_no_obj_freed+0x29f/0x464 lib/debugobjects.c:817
kfree+0xbd/0x220 mm/slab.c:3821
kobject: 'batman_adv' (00000000e1605fec): kobject_add_internal:
parent: 'veth0_to_team', set: '<NULL>'
kvfree+0x61/0x70 mm/util.c:452
kobject: 'team_slave_0' (00000000ecd7d496): kobject_add_internal:
parent: 'net', set: 'devices'
netdev_freemem+0x4c/0x60 net/core/dev.c:8897
kobject: 'team_slave_0' (00000000ecd7d496): kobject_uevent_env
netdev_release+0x86/0xb0 net/core/net-sysfs.c:1645
kobject: 'team_slave_0' (00000000ecd7d496): fill_kobj_path: path
= '/devices/virtual/net/team_slave_0'
device_release+0x7b/0x210 drivers/base/core.c:891
kobject_cleanup lib/kobject.c:662 [inline]
kobject_release lib/kobject.c:691 [inline]
kref_put include/linux/kref.h:70 [inline]
kobject_put.cold+0x289/0x2e6 lib/kobject.c:708
netdev_run_todo+0x53b/0x7c0 net/core/dev.c:8802
kobject: 'queues' (00000000a29d38c2): kobject_add_internal:
parent: 'team_slave_0', set: '<NULL>'
kobject: 'queues' (00000000a29d38c2): kobject_uevent_env
rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:117
kobject: 'queues' (00000000a29d38c2): kobject_uevent_env: filter function
caused the event to drop!
default_device_exit_batch+0x358/0x410 net/core/dev.c:9583
kobject: 'rx-0' (0000000060f9ab6e): kobject_add_internal: parent: 'queues',
set: 'queues'
kobject: 'rx-0' (0000000060f9ab6e): kobject_uevent_env
ops_exit_list.isra.0+0xfc/0x150 net/core/net_namespace.c:156
cleanup_net+0x3fb/0x960 net/core/net_namespace.c:552
process_one_work+0x989/0x1750 kernel/workqueue.c:2153
worker_thread+0x98/0xe40 kernel/workqueue.c:2296
kthread+0x354/0x420 kernel/kthread.c:246
kobject: 'rx-0' (0000000060f9ab6e): fill_kobj_path: path
= '/devices/virtual/net/team_slave_0/queues/rx-0'
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
======================================================