syzbot


BUG: corrupted list in kobject_add_internal (2)

Status: auto-closed as invalid on 2021/05/10 16:34
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+77966d28c046cef546cb@syzkaller.appspotmail.com
First crash: 1445d, last: 1445d
Discussions (1)
Title Replies (including bot) Last reply
BUG: corrupted list in kobject_add_internal (2) 0 (1) 2021/01/14 16:40
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in kobject_add_internal (3) bluetooth C inconclusive 3 1178d 1282d 20/28 fixed on 2021/11/10 00:50
linux-4.19 BUG: corrupted list in kobject_add_internal C done 2 1214d 1461d 1/1 fixed on 2021/09/29 23:05
linux-4.19 BUG: corrupted list in kobject_add_internal (3) 1 824d 824d 0/1 auto-obsoleted due to no activity on 2023/01/21 23:55
linux-4.19 BUG: corrupted list in kobject_add_internal (2) 1 1177d 1177d 0/1 auto-closed as invalid on 2022/02/03 08:56
upstream BUG: corrupted list in kobject_add_internal (4) bluetooth C error done 4 837d 833d 0/28 auto-obsoleted due to no activity on 2023/05/17 19:00
linux-4.14 BUG: corrupted list in kobject_add_internal 1 1515d 1515d 0/1 auto-closed as invalid on 2021/03/02 15:06
upstream BUG: corrupted list in kobject_add_internal bluetooth C done done 9 1538d 1601d 15/28 fixed on 2020/11/16 12:12

Sample crash report:
list_add double add: new=ffff888073202420, prev=ffff888073202420, next=ffff88814077de00.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8482 Comm: kworker/u5:1 Not tainted 5.11.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci4 hci_rx_work
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
Code: 77 cf fb fa 4c 89 e1 48 c7 c7 e0 7f 9e 89 e8 36 34 f3 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 81 9e 89 e8 1f 34 f3 ff <0f> 0b 48 89 f1 48 c7 c7 a0 80 9e 89 4c 89 e6 e8 0b 34 f3 ff 0f 0b
RSP: 0018:ffffc90001b97830 EFLAGS: 00010282
RAX: 0000000000000058 RBX: ffff88814077de00 RCX: 0000000000000000
RDX: ffff88806db94240 RSI: ffffffff815b6a45 RDI: fffff52000372ef8
RBP: ffff888073202420 R08: 0000000000000058 R09: 0000000000000000
R10: ffffffff815afbee R11: 0000000000000000 R12: ffff88814077de00
R13: ffff8880a0181298 R14: ffff888073202438 R15: ffff888073202420
FS:  0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016b9e60 CR3: 000000007a823000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 __list_add include/linux/list.h:67 [inline]
 list_add_tail include/linux/list.h:100 [inline]
 kobj_kset_join lib/kobject.c:196 [inline]
 kobject_add_internal+0x18d/0xa60 lib/kobject.c:246
 kobject_add_varg lib/kobject.c:390 [inline]
 kobject_add+0x150/0x1c0 lib/kobject.c:442
 device_add+0x36a/0x1d90 drivers/base/core.c:3024
 hci_conn_add_sysfs+0x97/0x1a0 net/bluetooth/hci_sysfs.c:53
 hci_conn_complete_evt net/bluetooth/hci_event.c:2643 [inline]
 hci_event_packet+0x9e3/0x7d60 net/bluetooth/hci_event.c:6153
 hci_rx_work+0x511/0xd30 net/bluetooth/hci_core.c:4971
 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Modules linked in:
---[ end trace f938414eaac88f6e ]---
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
Code: 77 cf fb fa 4c 89 e1 48 c7 c7 e0 7f 9e 89 e8 36 34 f3 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 81 9e 89 e8 1f 34 f3 ff <0f> 0b 48 89 f1 48 c7 c7 a0 80 9e 89 4c 89 e6 e8 0b 34 f3 ff 0f 0b
RSP: 0018:ffffc90001b97830 EFLAGS: 00010282
RAX: 0000000000000058 RBX: ffff88814077de00 RCX: 0000000000000000
RDX: ffff88806db94240 RSI: ffffffff815b6a45 RDI: fffff52000372ef8
RBP: ffff888073202420 R08: 0000000000000058 R09: 0000000000000000
R10: ffffffff815afbee R11: 0000000000000000 R12: ffff88814077de00
R13: ffff8880a0181298 R14: ffff888073202438 R15: ffff888073202420
FS:  0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016b9e60 CR3: 000000000b08e000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/10 16:33 upstream 2ff90100ace8 2c1f2513 .config console log report info ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.