syzbot


BUG: corrupted list in kobject_add_internal (4)

Status: upstream: reported C repro on 2022/09/15 01:17
Reported-by: syzbot+e653e3f67251b6139aaa@syzkaller.appspotmail.com
First crash: 79d, last: 79d

Cause bisection: failed (bisect log)

Fix bisection: failed (bisect log)
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in kobject_add_internal (2) 1 687d 683d 0/24 auto-closed as invalid on 2021/05/10 16:34
upstream BUG: corrupted list in kobject_add_internal (3) C inconclusive 3 420d 524d 22/24 fixed on 2021/11/10 00:50
linux-4.19 BUG: corrupted list in kobject_add_internal C done 2 456d 703d 1/1 fixed on 2021/09/29 23:05
linux-4.19 BUG: corrupted list in kobject_add_internal (3) 1 66d 66d 0/1 upstream: reported on 2022/09/23 23:55
linux-4.19 BUG: corrupted list in kobject_add_internal (2) 1 419d 419d 0/1 auto-closed as invalid on 2022/02/03 08:56
linux-4.14 BUG: corrupted list in kobject_add_internal 1 756d 756d 0/1 auto-closed as invalid on 2021/03/02 15:06
upstream BUG: corrupted list in kobject_add_internal C done done 9 780d 843d 17/24 fixed on 2020/11/16 12:12
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/19 07:19 16m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
list_add double add: new=ffff88807cd08540, prev=ffff88807cd08540, next=ffff888144a30000.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:33!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3610 Comm: kworker/u5:2 Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: hci0 hci_rx_work
RIP: 0010:__list_add_valid.cold+0x42/0x58 lib/list_debug.c:33
Code: e8 73 f6 f0 ff 0f 0b 48 c7 c7 40 f9 48 8a e8 65 f6 f0 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 40 fb 48 8a e8 4e f6 f0 ff <0f> 0b 48 89 f1 48 c7 c7 c0 fa 48 8a 4c 89 e6 e8 3a f6 f0 ff 0f 0b
RSP: 0018:ffffc9000398f800 EFLAGS: 00010282
RAX: 0000000000000058 RBX: ffff8880216bd298 RCX: 0000000000000000
RDX: ffff888076949d80 RSI: ffffffff8161f408 RDI: fffff52000731ef2
RBP: ffff88807cd08540 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: ffff888144a30000
R13: ffff88807cd08550 R14: ffff88807cd08558 R15: ffff88807cd08540
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 0000000078c49000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:69 [inline]
 list_add_tail include/linux/list.h:102 [inline]
 kobj_kset_join lib/kobject.c:164 [inline]
 kobject_add_internal+0x18f/0x8f0 lib/kobject.c:214
 kobject_add_varg lib/kobject.c:358 [inline]
 kobject_add+0x150/0x1c0 lib/kobject.c:410
 device_add+0x368/0x1e90 drivers/base/core.c:3452
 hci_conn_add_sysfs+0x9b/0x1b0 net/bluetooth/hci_sysfs.c:53
 hci_le_cis_estabilished_evt+0x57c/0xae0 net/bluetooth/hci_event.c:6799
 hci_le_meta_evt+0x2b8/0x510 net/bluetooth/hci_event.c:7110
 hci_event_func net/bluetooth/hci_event.c:7440 [inline]
 hci_event_packet+0x63d/0xfd0 net/bluetooth/hci_event.c:7495
 hci_rx_work+0xae7/0x1230 net/bluetooth/hci_core.c:4007
 process_one_work+0x991/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid.cold+0x42/0x58 lib/list_debug.c:33
Code: e8 73 f6 f0 ff 0f 0b 48 c7 c7 40 f9 48 8a e8 65 f6 f0 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 40 fb 48 8a e8 4e f6 f0 ff <0f> 0b 48 89 f1 48 c7 c7 c0 fa 48 8a 4c 89 e6 e8 3a f6 f0 ff 0f 0b
RSP: 0018:ffffc9000398f800 EFLAGS: 00010282
RAX: 0000000000000058 RBX: ffff8880216bd298 RCX: 0000000000000000
RDX: ffff888076949d80 RSI: ffffffff8161f408 RDI: fffff52000731ef2
RBP: ffff88807cd08540 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: ffff888144a30000
R13: ffff88807cd08550 R14: ffff88807cd08558 R15: ffff88807cd08540
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000000bc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/09/11 03:07 upstream b96fbd602d35 356d8217 .config log report syz C BUG: corrupted list in kobject_add_internal
ci-upstream-kasan-gce-root 2022/09/11 03:05 upstream b96fbd602d35 356d8217 .config log report syz C BUG: corrupted list in kobject_add_internal
ci-upstream-linux-next-kasan-gce-root 2022/09/11 02:40 linux-next e47eb90a0a9a 356d8217 .config log report syz C BUG: corrupted list in kobject_add_internal
ci-upstream-linux-next-kasan-gce-root 2022/09/11 01:11 linux-next e47eb90a0a9a 356d8217 .config log report info BUG: corrupted list in kobject_add_internal
* Struck through repros no longer work on HEAD.