syzbot


BUG: corrupted list in kobject_add_internal

Status: auto-closed as invalid on 2021/03/02 15:06
Reported-by: syzbot+a02d933f9e34d9409dd5@syzkaller.appspotmail.com
First crash: 1268d, last: 1268d
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 1199d 1195d 0/26 auto-closed as invalid on 2021/05/10 16:34
upstream BUG: corrupted list in kobject_add_internal (3) bluetooth C inconclusive 3 931d 1036d 20/26 fixed on 2021/11/10 00:50
linux-4.19 BUG: corrupted list in kobject_add_internal C done 2 967d 1214d 1/1 fixed on 2021/09/29 23:05
linux-4.19 BUG: corrupted list in kobject_add_internal (3) 1 577d 577d 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 930d 930d 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 590d 586d 0/26 auto-obsoleted due to no activity on 2023/05/17 19:00
upstream BUG: corrupted list in kobject_add_internal bluetooth C done done 9 1292d 1355d 15/26 fixed on 2020/11/16 12:12

Sample crash report:
audit: type=1804 audit(1604329555.706:9): pid=9756 uid=0 auid=0 ses=4 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir965763128/syzkaller.Ddc6HI/7/file0" dev="sda1" ino=15781 res=1
mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium
list_add double add: new=ffff88805f94c638, prev=ffff88805f94c638, next=ffff8880b5448500.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 1674 Comm: kworker/u5:0 Not tainted 4.14.203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci2 hci_rx_work
task: ffff8880b28e25c0 task.stack: ffff8880b29b0000
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
RSP: 0018:ffff8880b29b78b8 EFLAGS: 00010282
RAX: 0000000000000058 RBX: ffff8880a04edfe8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bb940 RDI: ffffed1016536f0d
RBP: ffff88805f94c638 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b5448500
R13: ffff88805f94c650 R14: ffff88805f94c638 R15: ffff88805f94c638
FS:  0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcac1a4c20 CR3: 000000008fc3e000 CR4: 00000000001406e0
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:171 [inline]
 kobject_add_internal+0x183/0x930 lib/kobject.c:220
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_add+0x11f/0x180 lib/kobject.c:409
 device_add+0x33f/0x15c0 drivers/base/core.c:1869
 hci_conn_add_sysfs+0x97/0x180 net/bluetooth/hci_sysfs.c:53
 hci_sync_conn_complete_evt.isra.0+0x8a0/0xb30 net/bluetooth/hci_event.c:3769
 hci_event_packet+0x3635/0x750f net/bluetooth/hci_event.c:5385
 hci_rx_work+0x427/0xb40 net/bluetooth/hci_core.c:4244
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: e9 57 ff ff ff 4c 89 e1 48 c7 c7 60 cd cc 87 e8 83 15 24 fe 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 a0 ce cc 87 e8 6c 15 24 fe <0f> 0b 48 89 f1 48 c7 c7 20 ce cc 87 4c 89 e6 e8 58 15 24 fe 0f 
RIP: __list_add_valid.cold+0x26/0x3c lib/list_debug.c:29 RSP: ffff8880b29b78b8
mac80211_hwsim: error occurred in mac80211_hwsim_tx_frame_nl
mac80211_hwsim: error occurred in mac80211_hwsim_tx_frame_nl
---[ end trace 9ccfec72f494da47 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/02 15:06 linux-4.14.y 2b7915014161 8bc4594f .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.