syzbot
general protection fault in rfcomm_dev_shutdown
Status:
premoderation: reported on 2026/11/17 01:09
Reported-by: syzbot+6cff2a0e576ac20bc129@syzkaller.appspotmail.com
First crash: 1d18h, last: 1d18h
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
CPU: 1 UID: 0 PID: 3010 Comm: syz.4.795 Not tainted syzkaller #0 5198647b44c712559276052f4fc2c9af4ef5425f
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:rfcomm_dev_shutdown+0x4c/0xc0 net/bluetooth/rfcomm/tty.c:134
Code: 8d b3 08 02 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 62 69 a2 fc 4d 8b 36 4d 8d 7e 60 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 45 69 a2 fc 49 83 3f 00 74 16 e8
RSP: 0018:ffffc9000eae7c10 EFLAGS: 00010206
RAX: 000000000000000c RBX: ffff88810626d800 RCX: ffff88811f7d8000
RDX: 0000000000000000 RSI: 0000000000000400 RDI: ffff88810626d800
RBP: ffffc9000eae7c30 R08: ffff88810626d907 R09: 1ffff11020c4db20
R10: 0000000000000000 R11: ffffffff8540be20 R12: dffffc0000000000
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000060
FS: 00007efcd6a206c0(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efcd6a1fff8 CR3: 000000011586c000 CR4: 00000000003526b0
Call Trace:
<TASK>
tty_port_shutdown+0x1f5/0x250 drivers/tty/tty_port.c:379
tty_port_close+0x53/0x150 drivers/tty/tty_port.c:730
rfcomm_tty_close+0x4b/0x60 net/bluetooth/rfcomm/tty.c:771
tty_release+0x32f/0x11e0 drivers/tty/tty_io.c:1754
__fput+0x20b/0xa30 fs/file_table.c:447
____fput+0x20/0x30 fs/file_table.c:475
task_work_run+0x1e8/0x260 kernel/task_work.c:246
resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50
exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218
do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7efcd5ba94d9
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:00007efcd6a20028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffea RBX: 00007efcd5e26450 RCX: 00007efcd5ba94d9
RDX: 0000000000000100 RSI: 0000000000004800 RDI: 0000200000000080
RBP: 00007efcd5c38136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efcd5e264e8 R14: 00007efcd5e26450 R15: 00007ffd48b63338
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rfcomm_dev_shutdown+0x4c/0xc0 net/bluetooth/rfcomm/tty.c:134
Code: 8d b3 08 02 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 62 69 a2 fc 4d 8b 36 4d 8d 7e 60 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 45 69 a2 fc 49 83 3f 00 74 16 e8
RSP: 0018:ffffc9000eae7c10 EFLAGS: 00010206
RAX: 000000000000000c RBX: ffff88810626d800 RCX: ffff88811f7d8000
RDX: 0000000000000000 RSI: 0000000000000400 RDI: ffff88810626d800
RBP: ffffc9000eae7c30 R08: ffff88810626d907 R09: 1ffff11020c4db20
R10: 0000000000000000 R11: ffffffff8540be20 R12: dffffc0000000000
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000060
FS: 00007efcd6a206c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056178ff60300 CR3: 000000011586c000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: 8d b3 08 02 00 00 lea 0x208(%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 62 69 a2 fc call 0xfca2697e
1c: 4d 8b 36 mov (%r14),%r14
1f: 4d 8d 7e 60 lea 0x60(%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 45 69 a2 fc call 0xfca2697e
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.