Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 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 16 d6 47 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 f9 d5 47 f7 49 83 3f 00 74 16 e8 RSP: 0018:ffffc9000f8dfbf0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: ffff88801f908000 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000001dc RDI: 00000000000001dd RBP: 0000000000000400 R08: ffff88801f908237 R09: 1ffff11003f21046 R10: dffffc0000000000 R11: ffffffff8af1c910 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040 FS: 00007f71cb7f56c0(0000) GS:ffff88808c2bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b1b3d4c460 CR3: 0000000043c9e000 CR4: 0000000000352ef0 Call Trace: 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:0x7f71cf39e159 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:00007f71cb7f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f71cf626090 RCX: 00007f71cf39e159 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007f71cf43506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f71cf626128 R14: 00007f71cf626090 R15: 00007ffc767af9b8 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 16 d6 47 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 f9 d5 47 f7 49 83 3f 00 74 16 e8 RSP: 0018:ffffc9000f8dfbf0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: ffff88801f908000 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000001dc RDI: 00000000000001dd RBP: 0000000000000400 R08: ffff88801f908237 R09: 1ffff11003f21046 R10: dffffc0000000000 R11: ffffffff8af1c910 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000040 FS: 00007f71cb7f56c0(0000) GS:ffff88808c2bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b1b3d3c710 CR3: 0000000043c9e000 CR4: 0000000000352ef0 ---------------- 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 16 d6 47 f7 call 0xf747d632 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 f9 d5 47 f7 call 0xf747d632 39: 49 83 3f 00 cmpq $0x0,(%r15) 3d: 74 16 je 0x55 3f: e8 .byte 0xe8