syzbot


general protection fault in bnep_session

Status: upstream: reported on 2025/02/20 21:41
Reported-by: syzbot+3b1543645fedb17c3da0@syzkaller.appspotmail.com
First crash: 21d, last: 21d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in bnep_session kernel syz 259 3h39m 110d 0/28 upstream: reported syz repro on 2024/11/23 23:04

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 PID: 5182 Comm: kbnepd bnep0 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del+0x44/0x100 lib/klist.c:230
Code: 49 fd 4d 89 f4 49 c1 ec 03 43 80 3c 3c 00 74 08 4c 89 f7 e8 3e 8f 93 fd 49 8b 1e 48 83 e3 fe 48 8d 7b 58 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 20 8f 93 fd 4c 8b 6b 58 48 89 df e8 24 0b
RSP: 0000:ffffc9000327f8e8 EFLAGS: 00010202
RAX: 000000000000000b RBX: 0000000000000000 RCX: ffff888028869dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000058
RBP: ffffc9000327fa10 R08: ffffffff81fcb422 R09: ffffed100b801292
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f3fa00c
R13: dffffc0000000000 R14: ffff888079fd0060 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557ac75808 CR3: 0000000063701000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 device_del+0x32f/0xbd0 drivers/base/core.c:3579
 unregister_netdevice_many+0x13a6/0x18f0 net/core/dev.c:11129
 unregister_netdevice_queue net/core/dev.c:11035 [inline]
 unregister_netdevice include/linux/netdevice.h:3012 [inline]
 unregister_netdev+0x19b/0x210 net/core/dev.c:11161
 bnep_session+0x2b57/0x2d40 net/bluetooth/bnep/core.c:525
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Modules linked in:
---[ end trace ef6eb2f486ae964b ]---
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del+0x44/0x100 lib/klist.c:230
Code: 49 fd 4d 89 f4 49 c1 ec 03 43 80 3c 3c 00 74 08 4c 89 f7 e8 3e 8f 93 fd 49 8b 1e 48 83 e3 fe 48 8d 7b 58 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 20 8f 93 fd 4c 8b 6b 58 48 89 df e8 24 0b
RSP: 0000:ffffc9000327f8e8 EFLAGS: 00010202
RAX: 000000000000000b RBX: 0000000000000000 RCX: ffff888028869dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000058
RBP: ffffc9000327fa10 R08: ffffffff81fcb422 R09: ffffed100b801292
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f3fa00c
R13: dffffc0000000000 R14: ffff888079fd0060 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557ac75808 CR3: 0000000063701000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	49 fd                	rex.WB std
   2:	4d 89 f4             	mov    %r14,%r12
   5:	49 c1 ec 03          	shr    $0x3,%r12
   9:	43 80 3c 3c 00       	cmpb   $0x0,(%r12,%r15,1)
   e:	74 08                	je     0x18
  10:	4c 89 f7             	mov    %r14,%rdi
  13:	e8 3e 8f 93 fd       	call   0xfd938f56
  18:	49 8b 1e             	mov    (%r14),%rbx
  1b:	48 83 e3 fe          	and    $0xfffffffffffffffe,%rbx
  1f:	48 8d 7b 58          	lea    0x58(%rbx),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 20 8f 93 fd       	call   0xfd938f56
  36:	4c 8b 6b 58          	mov    0x58(%rbx),%r13
  3a:	48 89 df             	mov    %rbx,%rdi
  3d:	e8                   	.byte 0xe8
  3e:	24 0b                	and    $0xb,%al

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/20 21:40 linux-5.15.y c16c81c81336 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in bnep_session
* Struck through repros no longer work on HEAD.