BUG: corrupted list in kobject_add_internal (2)

7 views
Skip to first unread message

syzbot

unread,
Oct 6, 2021, 4:56:27 AM10/6/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c2276d585654 Linux 4.19.208
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17aa2c50b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9080caca9deef589
dashboard link: https://syzkaller.appspot.com/bug?extid=25f0617273dd21f91a1f
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+25f061...@syzkaller.appspotmail.com

list_add double add: new=ffff8880925d2418, prev=ffff8880925d2418, next=ffff8880b5b18800.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8138 Comm: kworker/u5:2 Not tainted 4.19.208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci5 hci_rx_work
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
Code: 9c 55 7a fb 4c 89 e1 48 c7 c7 e0 e1 b3 88 e8 3c 43 f7 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 e3 b3 88 e8 25 43 f7 ff <0f> 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b
RSP: 0018:ffff88804ac37868 EFLAGS: 00010286
RAX: 0000000000000058 RBX: ffff8880b5b18800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfe11 RDI: ffffed1009586eff
RBP: ffff8880925d2418 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b5b18800
R13: ffff8880a181e450 R14: ffff8880925d2430 R15: ffff8880925d2418
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f822000 CR3: 000000004b304000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add_tail include/linux/list.h:93 [inline]
kobj_kset_join lib/kobject.c:188 [inline]
kobject_add_internal+0x18d/0x9c0 lib/kobject.c:238
kobject_add_varg lib/kobject.c:382 [inline]
kobject_add+0x150/0x1c0 lib/kobject.c:426
device_add+0x37b/0x16d0 drivers/base/core.c:2122
hci_conn_add_sysfs+0x97/0x1a0 net/bluetooth/hci_sysfs.c:53
hci_conn_complete_evt net/bluetooth/hci_event.c:2445 [inline]
hci_event_packet+0x2647/0x7e20 net/bluetooth/hci_event.c:5825
hci_rx_work+0x4ad/0xc70 net/bluetooth/hci_core.c:4380
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 645e674fba2a7025 ]---
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
Code: 9c 55 7a fb 4c 89 e1 48 c7 c7 e0 e1 b3 88 e8 3c 43 f7 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 e3 b3 88 e8 25 43 f7 ff <0f> 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b
RSP: 0018:ffff88804ac37868 EFLAGS: 00010286
RAX: 0000000000000058 RBX: ffff8880b5b18800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfe11 RDI: ffffed1009586eff
RBP: ffff8880925d2418 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b5b18800
R13: ffff8880a181e450 R14: ffff8880925d2430 R15: ffff8880925d2418
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f822000 CR3: 0000000009e6d000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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,
Feb 3, 2022, 3:56:13 AM2/3/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages