general protection fault in rfcomm_dev_shutdown

Status: upstream: reported on 2026/09/29 10:20
Reported-by: syzbot+024f3eb217c16b19f613@syzkaller.appspotmail.com
First crash: 2h08m, last: 2h08m

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 0 PID: 23213 Comm: syz.7.4054 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:rfcomm_dev_shutdown+0x48/0xb0 net/bluetooth/rfcomm/tty.c:134
Code: 8d b3 f0 03 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 b6 b5 3b f8 4d 8b 36 4d 8d 7e 40 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 99 b5 3b f8 49 83 3f 00 74 16 e8
RSP: 0018:ffffc900031a7608 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888147ead000 RCX: 0000000000080000
RDX: ffffc9001dd2d000 RSI: 00000000000072c6 RDI: 00000000000072c7
RBP: 0000000000000400 R08: ffff888147ead237 R09: 1ffff11028fd5a46
R10: dffffc0000000000 R11: ffffed1028fd5a47 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040
FS:  00007f8df15b26c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2edf7ff8 CR3: 0000000020d7f000 CR4: 00000000003506f0
DR0: 0000000000010000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 tty_port_shutdown+0x1b3/0x210 drivers/tty/tty_port.c:377
 tty_port_close+0x4e/0x140 drivers/tty/tty_port.c:717
 tty_release+0x330/0x14f0 drivers/tty/tty_io.c:1752
 tty_open+0x4ff/0xcc0 drivers/tty/tty_io.c:2153
 chrdev_open+0x58c/0x600 fs/char_dev.c:414
 do_dentry_open+0x880/0x14b0 fs/open.c:929
 do_open fs/namei.c:3683 [inline]
 path_openat+0x284f/0x3270 fs/namei.c:3844
 do_filp_open+0x1f2/0x430 fs/namei.c:3871
 do_sys_openat2+0x134/0x1d0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_open fs/open.c:1445 [inline]
 __se_sys_open fs/open.c:1441 [inline]
 __x64_sys_open+0x11f/0x140 fs/open.c:1441
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f8df379e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8df15b2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f8df3a26270 RCX: 00007f8df379e159
RDX: 0000000000000235 RSI: 0000000000040000 RDI: 0000200000000580
RBP: 00007f8df383506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8df3a26308 R14: 00007f8df3a26270 R15: 00007ffc118ed588
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rfcomm_dev_shutdown+0x48/0xb0 net/bluetooth/rfcomm/tty.c:134
Code: 8d b3 f0 03 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 b6 b5 3b f8 4d 8b 36 4d 8d 7e 40 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 99 b5 3b f8 49 83 3f 00 74 16 e8
RSP: 0018:ffffc900031a7608 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888147ead000 RCX: 0000000000080000
RDX: ffffc9001dd2d000 RSI: 00000000000072c6 RDI: 00000000000072c7
RBP: 0000000000000400 R08: ffff888147ead237 R09: 1ffff11028fd5a46
R10: dffffc0000000000 R11: ffffed1028fd5a47 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040
FS:  00007f8df15b26c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2edf7ff8 CR3: 0000000020d7f000 CR4: 00000000003506f0
DR0: 0000000000010000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	8d b3 f0 03 00 00    	lea    0x3f0(%rbx),%esi
   6:	4c 89 f0             	mov    %r14,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
  12:	74 08                	je     0x1c
  14:	4c 89 f7             	mov    %r14,%rdi
  17:	e8 b6 b5 3b f8       	call   0xf83bb5d2
  1c:	4d 8b 36             	mov    (%r14),%r14
  1f:	4d 8d 7e 40          	lea    0x40(%r14),%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ff             	mov    %r15,%rdi
  34:	e8 99 b5 3b f8       	call   0xf83bb5d2
  39:	49 83 3f 00          	cmpq   $0x0,(%r15)
  3d:	74 16                	je     0x55
  3f:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/29 10:19 linux-6.6.y 79643295eba1 7bf4ea23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in rfcomm_dev_shutdown
* Struck through repros no longer work on HEAD.