syzbot


general protection fault in bnep_session

Status: upstream: reported on 2024/11/23 23:04
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+6df45dd3d03e1a9aca96@syzkaller.appspotmail.com
First crash: 4d06h, last: 6h16m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] general protection fault in bnep_session 0 (1) 2024/11/23 23:04

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 UID: 0 PID: 13071 Comm: kbnepd bnep0 Not tainted 6.12.0-syzkaller-05480-gfcc79e1714e8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del+0x49/0x110 lib/klist.c:230
Code: f5 4d 89 f5 49 c1 ed 03 43 80 7c 25 00 00 74 08 4c 89 f7 e8 f9 77 3d f6 49 8b 1e 48 83 e3 fe 48 8d 7b 58 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 db 77 3d f6 4c 8b 7b 58 48 89 df e8 2f 99
RSP: 0018:ffffc90003097828 EFLAGS: 00010202
RAX: 000000000000000b RBX: 0000000000000000 RCX: ffff8880679a0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000058
RBP: ffffc90003097950 R08: ffffffff823dd8ba R09: 1ffff11004e384f0
R10: dffffc0000000000 R11: ffffed1004e384f1 R12: dffffc0000000000
R13: 1ffff1100f18498c R14: ffff888078c24c60 R15: ffff888059744b88
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c944dff98 CR3: 0000000058584000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 device_del+0x2c9/0x9b0 drivers/base/core.c:3838
 unregister_netdevice_many_notify+0x1859/0x1da0 net/core/dev.c:11556
 unregister_netdevice_many net/core/dev.c:11584 [inline]
 unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11456
 unregister_netdevice include/linux/netdevice.h:3192 [inline]
 unregister_netdev+0x1c/0x30 net/core/dev.c:11602
 bnep_session+0x2e3c/0x3030 net/bluetooth/bnep/core.c:525
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del+0x49/0x110 lib/klist.c:230
Code: f5 4d 89 f5 49 c1 ed 03 43 80 7c 25 00 00 74 08 4c 89 f7 e8 f9 77 3d f6 49 8b 1e 48 83 e3 fe 48 8d 7b 58 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 db 77 3d f6 4c 8b 7b 58 48 89 df e8 2f 99
RSP: 0018:ffffc90003097828 EFLAGS: 00010202
RAX: 000000000000000b RBX: 0000000000000000 RCX: ffff8880679a0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000058
RBP: ffffc90003097950 R08: ffffffff823dd8ba R09: 1ffff11004e384f0
R10: dffffc0000000000 R11: ffffed1004e384f1 R12: dffffc0000000000
R13: 1ffff1100f18498c R14: ffff888078c24c60 R15: ffff888059744b88
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c944dff98 CR3: 000000006a418000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f5                   	cmc
   1:	4d 89 f5             	mov    %r14,%r13
   4:	49 c1 ed 03          	shr    $0x3,%r13
   8:	43 80 7c 25 00 00    	cmpb   $0x0,0x0(%r13,%r12,1)
   e:	74 08                	je     0x18
  10:	4c 89 f7             	mov    %r14,%rdi
  13:	e8 f9 77 3d f6       	call   0xf63d7811
  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 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 db 77 3d f6       	call   0xf63d7811
  36:	4c 8b 7b 58          	mov    0x58(%rbx),%r15
  3a:	48 89 df             	mov    %rbx,%rdi
  3d:	e8                   	.byte 0xe8
  3e:	2f                   	(bad)
  3f:	99                   	cltd

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/23 23:37 net fcc79e1714e8 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in bnep_session
2024/11/23 08:50 net fcc79e1714e8 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in bnep_session
2024/11/22 13:06 net fcc79e1714e8 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in bnep_session
2024/11/21 09:49 net-next dd7207838d38 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in bnep_session
2024/11/21 08:30 net-next dd7207838d38 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in bnep_session
2024/11/19 22:56 net-next dd7207838d38 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in bnep_session
* Struck through repros no longer work on HEAD.