syzbot


BUG: corrupted list in bt_accept_unlink

Status: upstream: reported syz repro on 2020/08/09 08:38
Reported-by: syzbot+0bf38178a7de30898372@syzkaller.appspotmail.com
First crash: 1328d, last: 1207d
Fix bisection: fixed by (bisect log) [release commit]:
commit 1752938529c614a8ed4432ecce6ebc95d3b87207
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: Tue Dec 29 12:47:12 2020 +0000

  Linux 4.14.213

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in bt_accept_unlink bluetooth syz error error 1 1322d 1322d 0/26 auto-obsoleted due to no activity on 2022/09/07 16:27
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/02/05 23:32 9m retest repro linux-4.14.y report log
2022/09/15 09:29 9m retest repro linux-4.14.y report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2021/01/06 11:58 3h40m bisect fix linux-4.14.y job log (1)
2020/12/07 11:06 41m bisect fix linux-4.14.y job log (0) log
2020/11/07 10:30 36m bisect fix linux-4.14.y job log (0) log
2020/10/08 09:20 38m bisect fix linux-4.14.y job log (0) log
2020/09/08 08:38 42m bisect fix linux-4.14.y job log (0) log

Sample crash report:
Bluetooth: Wrong link type (-22)
Bluetooth: Wrong link type (-22)
list_del corruption. next->prev should be ffff888099f25610, but was ffff88808d591190
Bluetooth: Wrong link type (-22)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:54!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7779 Comm: kworker/u5:3 Not tainted 4.14.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci1 hci_rx_work
task: ffff8880a4992400 task.stack: ffff88808a058000
RIP: 0010:__list_del_entry_valid.cold+0x48/0x55 lib/list_debug.c:54
RSP: 0018:ffff88808a05f938 EFLAGS: 00010286
RAX: 0000000000000054 RBX: ffff888099f25610 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff86ac0dc0 RDI: ffffed101140bf1d
RBP: ffff888099f25610 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809ae3f110
R13: ffff88809ae3f110 R14: ffff88809ac2e2c0 R15: ffff8880a79b8b70
FS:  0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000051b800 CR3: 000000009c681000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del_init include/linux/list.h:159 [inline]
 bt_accept_unlink+0x26/0x200 net/bluetooth/af_bluetooth.c:187
 l2cap_sock_teardown_cb+0x16b/0x400 net/bluetooth/l2cap_sock.c:1353
 l2cap_chan_del+0xa0/0x800 net/bluetooth/l2cap_core.c:596
 l2cap_disconnect_req net/bluetooth/l2cap_core.c:4349 [inline]
 l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:5427 [inline]
 l2cap_sig_channel net/bluetooth/l2cap_core.c:5793 [inline]
 l2cap_recv_frame+0x23b5/0x95c0 net/bluetooth/l2cap_core.c:7017
 l2cap_recv_acldata+0x7a6/0x8b0 net/bluetooth/l2cap_core.c:7588
 hci_acldata_packet net/bluetooth/hci_core.c:4066 [inline]
 hci_rx_work+0x3d1/0x970 net/bluetooth/hci_core.c:4249
 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: 86 e8 83 ae 44 fe 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 00 5e e4 86 e8 6f ae 44 fe 0f 0b 48 89 ee 48 c7 c7 c0 5e e4 86 e8 5e ae 44 fe <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 83 3d f9 64 62 07 04 7f 
RIP: __list_del_entry_valid.cold+0x48/0x55 lib/list_debug.c:54 RSP: ffff88808a05f938
---[ end trace 6e3c8c638c331e8e ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/09 08:38 linux-4.14.y 14b58326976d f721e4a0 .config console log report syz ci2-linux-4-14
* Struck through repros no longer work on HEAD.