syzbot


BUG: corrupted list in kobject_add_internal (2)

Status: auto-closed as invalid on 2022/02/03 08:56
Reported-by: syzbot+25f0617273dd21f91a1f@syzkaller.appspotmail.com
First crash: 1154d, last: 1154d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in kobject_add_internal (2) kernel 1 1423d 1419d 0/28 auto-closed as invalid on 2021/05/10 16:34
upstream BUG: corrupted list in kobject_add_internal (3) bluetooth C inconclusive 3 1155d 1260d 20/28 fixed on 2021/11/10 00:50
linux-4.19 BUG: corrupted list in kobject_add_internal C done 2 1191d 1438d 1/1 fixed on 2021/09/29 23:05
linux-4.19 BUG: corrupted list in kobject_add_internal (3) 1 802d 802d 0/1 auto-obsoleted due to no activity on 2023/01/21 23:55
upstream BUG: corrupted list in kobject_add_internal (4) bluetooth C error done 4 814d 810d 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 1492d 1492d 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 1516d 1579d 15/28 fixed on 2020/11/16 12:12

Sample crash report:
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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/06 08:55 linux-4.19.y c2276d585654 0a63fd36 .config console log report info ci2-linux-4-19 BUG: corrupted list in kobject_add_internal
* Struck through repros no longer work on HEAD.