BUG: corrupted list in kobject_add_internal

10 views
Skip to first unread message

syzbot

unread,
Nov 2, 2020, 10:06:17 AM11/2/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2b791501 Linux 4.14.203
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1607856c500000
kernel config: https://syzkaller.appspot.com/x/.config?x=e52bb6f2a595a463
dashboard link: https://syzkaller.appspot.com/bug?extid=a02d933f9e34d9409dd5
compiler: gcc (GCC) 10.1.0-syz 20200507

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+a02d93...@syzkaller.appspotmail.com

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 ]---


---
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,
Mar 2, 2021, 10:06:13 AM3/2/21
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