general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 6349 Comm: syz-executor290 Not tainted 6.5.0-syzkaller-01207-g1c59d383390f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:hci_uart_tty_ioctl+0x240/0xc10 drivers/bluetooth/hci_ldisc.c:774 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 cd 08 00 00 48 8b 9b b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 5d 08 00 00 44 8b 23 e9 14 ff RSP: 0018:ffffc900051ffd18 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff87595586 RDI: ffff88802bd860b8 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88807c530000 R13: 0000000000000000 R14: ffffffff87595380 R15: ffffffffffffffea FS: 00007fd9b9de76c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556464ce8 CR3: 000000007f420000 CR4: 0000000000350ee0 Call Trace: tty_ioctl+0x706/0x1580 drivers/tty/tty_io.c:2795 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd9b9e47829 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd9b9de7238 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd9b9ed1318 RCX: 00007fd9b9e47829 RDX: 0000000000000000 RSI: 00000000800455c9 RDI: 0000000000000003 RBP: 00007fd9b9ed1310 R08: 00007ffd9f63a8b7 R09: 00007fd9b9de76c0 R10: 0000000000000000 R11: 0000000000000246 R12: 6d74702f7665642f R13: 0000000000000000 R14: 00007ffd9f63a7d0 R15: 00007ffd9f63a8b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hci_uart_tty_ioctl+0x240/0xc10 drivers/bluetooth/hci_ldisc.c:774 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 cd 08 00 00 48 8b 9b b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 5d 08 00 00 44 8b 23 e9 14 ff RSP: 0018:ffffc900051ffd18 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff87595586 RDI: ffff88802bd860b8 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88807c530000 R13: 0000000000000000 R14: ffffffff87595380 R15: ffffffffffffffea FS: 00007fd9b9de76c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd9b9e9df88 CR3: 000000007f420000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 cd 08 00 00 jne 0x8df 12: 48 8b 9b b8 00 00 00 mov 0xb8(%rbx),%rbx 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 da mov %rbx,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 5d 08 00 00 jle 0x897 3a: 44 8b 23 mov (%rbx),%r12d 3d: e9 .byte 0xe9 3e: 14 ff adc $0xff,%al