syzbot


general protection fault in release_sock

Status: closed as invalid on 2021/10/01 22:57
Subsystems: bluetooth
[Documentation on labels]
First crash: 958d, last: 958d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in release_sock bluetooth 1 180d 175d 0/26 auto-obsoleted due to no activity on 2024/01/28 22:15

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7]
CPU: 1 PID: 10276 Comm: kworker/1:5 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events l2cap_chan_timeout
RIP: 0010:release_sock+0x8e/0x1c0 net/core/sock.c:3205
Code: 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 c1 70 dc f9 bb a0 00 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 a3 70 dc f9 48 8b 1b 48 85 db 74
RSP: 0000:ffffc900179d7bb0 EFLAGS: 00010206
RAX: 0000000000000014 RBX: 00000000000000a0 RCX: ffff88802b643900
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900179d7b20
RBP: 0000000000000003 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52002f3af65 R11: 0000000000000004 R12: ffff888029643000
R13: dffffc0000000000 R14: ffff888029643088 R15: ffff888029643028
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016e9708 CR3: 0000000016da0000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 l2cap_sock_teardown_cb+0x1e3/0x360 net/bluetooth/l2cap_sock.c:1558
 l2cap_chan_timeout+0x12c/0x280 net/bluetooth/l2cap_core.c:436
 process_one_work+0x853/0x1140 kernel/workqueue.c:2297
 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Modules linked in:
---[ end trace 7f0afd8890d88ab8 ]---
RIP: 0010:release_sock+0x8e/0x1c0 net/core/sock.c:3205
Code: 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 c1 70 dc f9 bb a0 00 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 a3 70 dc f9 48 8b 1b 48 85 db 74
RSP: 0000:ffffc900179d7bb0 EFLAGS: 00010206
RAX: 0000000000000014 RBX: 00000000000000a0 RCX: ffff88802b643900
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900179d7b20
RBP: 0000000000000003 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52002f3af65 R11: 0000000000000004 R12: ffff888029643000
R13: dffffc0000000000 R14: ffff888029643088 R15: ffff888029643028
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016e9708 CR3: 0000000016da0000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4d 8d 7c 24 28       	lea    0x28(%r12),%r15
   5:	4c 89 f8             	mov    %r15,%rax
   8:	48 c1 e8 03          	shr    $0x3,%rax
   c:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  11:	74 08                	je     0x1b
  13:	4c 89 ff             	mov    %r15,%rdi
  16:	e8 c1 70 dc f9       	callq  0xf9dc70dc
  1b:	bb a0 00 00 00       	mov    $0xa0,%ebx
  20:	49 03 1f             	add    (%r15),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 a3 70 dc f9       	callq  0xf9dc70dc
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	48 85 db             	test   %rbx,%rbx
  3f:	74                   	.byte 0x74

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/02 10:57 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in release_sock
* Struck through repros no longer work on HEAD.