syzbot
general protection fault in rfcomm_dev_shutdown
Status:
upstream: reported on 2026/10/02 05:32
Subsystems:
bluetooth
Labels:
prio:low
[Documentation on labels]
Reported-by: syzbot+4a807caf7680652d53b6@syzkaller.appspotmail.com
First crash: 4d10h, last: 1d10h
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 1 UID: 0 PID: 9467 Comm: syz.4.1031 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
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:131
Code: 8d b3 e0 03 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 26 32 48 f7 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 09 32 48 f7 49 83 3f 00 74 16 e8
RSP: 0018:ffffc90006937bf0 EFLAGS: 00010212
RAX: 0000000000000008 RBX: ffff8880538c2000 RCX: 0000000000080000
RDX: ffffc9000f182000 RSI: 0000000000000325 RDI: 0000000000000326
RBP: 0000000000000400 R08: ffff8880538c2237 R09: 1ffff1100a718446
R10: dffffc0000000000 R11: ffffffff8aefbc10 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040
FS: 00007f1514ff66c0(0000) GS:ffff888124dc8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2cbda1 CR3: 0000000038298000 CR4: 0000000000350ef0
Call Trace:
<TASK>
tty_port_shutdown+0x1bf/0x220 drivers/tty/tty_port.c:372
tty_port_close+0x4e/0x150 drivers/tty/tty_port.c:705
tty_release+0x359/0x1670 drivers/tty/tty_io.c:1718
__fput+0x418/0xa50 fs/file_table.c:512
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1516d9e159
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:00007f1514ff6028 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f1517026090 RCX: 00007f1516d9e159
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000
RBP: 00007f1516e3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1517026128 R14: 00007f1517026090 R15: 00007fff99ef4628
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rfcomm_dev_shutdown+0x48/0xb0 net/bluetooth/rfcomm/tty.c:131
Code: 8d b3 e0 03 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 26 32 48 f7 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 09 32 48 f7 49 83 3f 00 74 16 e8
RSP: 0018:ffffc90006937bf0 EFLAGS: 00010212
RAX: 0000000000000008 RBX: ffff8880538c2000 RCX: 0000000000080000
RDX: ffffc9000f182000 RSI: 0000000000000325 RDI: 0000000000000326
RBP: 0000000000000400 R08: ffff8880538c2237 R09: 1ffff1100a718446
R10: dffffc0000000000 R11: ffffffff8aefbc10 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040
FS: 00007f1514ff66c0(0000) GS:ffff888124dc8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f508245e000 CR3: 0000000038298000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
0: 8d b3 e0 03 00 00 lea 0x3e0(%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 26 32 48 f7 call 0xf7483242
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 09 32 48 f7 call 0xf7483242
39: 49 83 3f 00 cmpq $0x0,(%r15)
3d: 74 16 je 0x55
3f: e8 .byte 0xe8
* Struck through repros no longer work on HEAD.