syzbot


BUG: unable to handle kernel NULL pointer dereference in l2cap_chan_put

Status: upstream: reported syz repro on 2020/08/08 03:39
Reported-by: syzbot+3a16a5803c261156be39@syzkaller.appspotmail.com
First crash: 1580d, last: 1168d
Fix bisection: failed (error log, bisect log)
  
Fix bisection attempts (15)
Created Duration User Patch Repo Result
2021/10/31 12:05 13m bisect fix linux-4.19.y error job log
2021/09/23 13:06 36m bisect fix linux-4.19.y OK (0) job log log
2021/08/24 12:31 35m bisect fix linux-4.19.y OK (0) job log log
2021/07/25 09:57 32m bisect fix linux-4.19.y OK (0) job log log
2021/06/25 09:27 29m bisect fix linux-4.19.y OK (0) job log log
2021/05/26 08:47 40m bisect fix linux-4.19.y OK (0) job log log
2021/04/26 08:08 38m bisect fix linux-4.19.y OK (0) job log log
2021/03/27 04:57 25m bisect fix linux-4.19.y OK (0) job log log
2021/02/24 18:36 26m bisect fix linux-4.19.y OK (0) job log log
2021/02/05 06:44 0m bisect fix linux-4.19.y error job log
2021/01/06 06:15 28m bisect fix linux-4.19.y OK (0) job log log
2020/12/06 22:49 29m bisect fix linux-4.19.y OK (0) job log log
2020/11/06 22:10 29m bisect fix linux-4.19.y OK (0) job log log
2020/10/07 21:00 31m bisect fix linux-4.19.y OK (0) job log log
2020/09/07 20:05 34m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
PGD 9a7e9067 P4D 9a7e9067 PUD 91aea067 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6464 Comm: kworker/1:0 Not tainted 4.19.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events l2cap_chan_timeout
RIP: 0010:refcount_dec_and_test arch/x86/include/asm/refcount.h:76 [inline]
RIP: 0010:kref_put include/linux/kref.h:69 [inline]
RIP: 0010:l2cap_chan_put+0x10/0x1c0 net/bluetooth/l2cap_core.c:493
Code: ff e8 94 80 1e fb e9 fe fe ff ff 48 89 df e8 b7 7d 1e fb e9 ac fe ff ff 66 90 41 56 41 55 41 54 55 48 89 fd 53 e8 f0 5e e8 fa <f0> ff 4d 18 0f 88 11 37 b9 00 0f 94 c3 31 ff 89 de e8 0a 60 e8 fa
RSP: 0018:ffff888089c6fcb0 EFLAGS: 00010293
RAX: ffff8880923943c0 RBX: 0000000000000001 RCX: ffffffff8684aa52
RDX: 0000000000000000 RSI: ffffffff868150d0 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808e438dc0
R13: ffff888096049478 R14: ffff88808e439228 R15: ffff8880ae730200
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000018 CR3: 000000008bc8f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 l2cap_sock_kill.part.0+0x34/0x80 net/bluetooth/l2cap_sock.c:1053
 l2cap_sock_kill net/bluetooth/l2cap_sock.c:1312 [inline]
 l2cap_sock_close_cb+0xa7/0xd0 net/bluetooth/l2cap_sock.c:1311
 l2cap_chan_timeout+0x1bb/0x210 net/bluetooth/l2cap_core.c:431
 process_one_work+0x864/0x1570 kernel/workqueue.c:2155
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
 kthread+0x30b/0x410 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
CR2: 0000000000000018
---[ end trace be7e3718029e52dc ]---
RIP: 0010:refcount_dec_and_test arch/x86/include/asm/refcount.h:76 [inline]
RIP: 0010:kref_put include/linux/kref.h:69 [inline]
RIP: 0010:l2cap_chan_put+0x10/0x1c0 net/bluetooth/l2cap_core.c:493
Code: ff e8 94 80 1e fb e9 fe fe ff ff 48 89 df e8 b7 7d 1e fb e9 ac fe ff ff 66 90 41 56 41 55 41 54 55 48 89 fd 53 e8 f0 5e e8 fa <f0> ff 4d 18 0f 88 11 37 b9 00 0f 94 c3 31 ff 89 de e8 0a 60 e8 fa
RSP: 0018:ffff888089c6fcb0 EFLAGS: 00010293
RAX: ffff8880923943c0 RBX: 0000000000000001 RCX: ffffffff8684aa52
RDX: 0000000000000000 RSI: ffffffff868150d0 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808e438dc0
R13: ffff888096049478 R14: ffff88808e439228 R15: ffff8880ae730200
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000018 CR3: 000000008bc8f000 CR4: 00000000001406e0
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
2020/08/08 03:39 linux-4.19.y 961f830af065 ff51e522 .config console log report syz ci2-linux-4-19
* Struck through repros no longer work on HEAD.