WARNING: ODEBUG bug in put_device

5 views
Skip to first unread message

syzbot

unread,
Dec 24, 2021, 5:28:40 AM12/24/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8ee0807eedf3 Linux 4.14.259
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17738f7db00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cd64d8ac71350686
dashboard link: https://syzkaller.appspot.com/bug?extid=a87f41abd1185cd28329
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a87f41...@syzkaller.appspotmail.com

ODEBUG: free active (active state 0) object type: timer_list hint: delayed_work_timer_fn+0x0/0x90 kernel/workqueue.c:3145
------------[ cut here ]------------
WARNING: CPU: 0 PID: 28081 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 28081 Comm: syz-executor.2 Not tainted 4.14.259-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x44 kernel/panic.c:547
report_bug+0x208/0x250 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
RSP: 0018:ffff8880270bf2d8 EFLAGS: 00010086
RAX: 0000000000000061 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff81442c40 RDI: ffffed1004e17e51
RBP: ffffffff878b6f80 R08: 0000000000000061 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880199b2200 R12: ffffffff81361090
R13: 0000000000000000 R14: ffff8880b289d680 R15: ffff8880283932d8
__debug_check_no_obj_freed lib/debugobjects.c:747 [inline]
debug_check_no_obj_freed+0x3b7/0x680 lib/debugobjects.c:776
kfree+0xb9/0x250 mm/slab.c:3814
kvfree+0x45/0x50 mm/util.c:416
device_release+0x15f/0x1a0 drivers/base/core.c:848
kobject_cleanup lib/kobject.c:646 [inline]
kobject_release lib/kobject.c:675 [inline]
kref_put include/linux/kref.h:70 [inline]
kobject_put+0x251/0x550 lib/kobject.c:692
put_device+0x1c/0x30 drivers/base/core.c:2030
free_netdev+0x26f/0x360 net/core/dev.c:8234
rtnl_newlink+0x14e6/0x1860 net/core/rtnetlink.c:2744
rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4320
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7faa28cd8e99
RSP: 002b:00007faa2764e168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007faa28debf60 RCX: 00007faa28cd8e99
RDX: 0000000004040000 RSI: 0000000020000080 RDI: 0000000000000006
RBP: 00007faa28d32ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe9adb3c4f R14: 00007faa2764e300 R15: 0000000000022000

======================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 24, 2021, 5:52:31 AM12/24/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 8ee0807eedf3 Linux 4.14.259
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=136ca853b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cd64d8ac71350686
dashboard link: https://syzkaller.appspot.com/bug?extid=a87f41abd1185cd28329
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12cfc8b3b00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10f38f7db00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a87f41...@syzkaller.appspotmail.com

ODEBUG: free active (active state 0) object type: timer_list hint: delayed_work_timer_fn+0x0/0x90 kernel/workqueue.c:3145
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7984 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7984 Comm: syz-executor165 Not tainted 4.14.259-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x44 kernel/panic.c:547
report_bug+0x208/0x250 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
RSP: 0018:ffff88808f2b72d8 EFLAGS: 00010086
RAX: 0000000000000061 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bbcc0 RDI: ffffed1011e56e51
RBP: ffffffff878b6f80 R08: 0000000000000061 R09: 0000000000000000
R10: 0000000000000000 R11: ffff88809be42000 R12: ffffffff81361090
R13: 0000000000000000 R14: ffff88809bd5dc00 R15: ffff8880a1999818
RIP: 0033:0x7f1bac7dc3a9
RSP: 002b:00007ffe6731c3d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1bac7dc3a9
RDX: 0000000004040000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007ffe6731c3e0 R08: 65732f636f72702f R09: 65732f636f72702f
R10: 65732f636f72702f R11: 0000000000000246 R12: 00007f1bac7a0330
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

======================================================

Reply all
Reply to author
Forward
0 new messages