Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037] CPU: 0 UID: 0 PID: 5347 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~bpo12+1 04/01/2014 RIP: 0010:rose_transmit_link+0x32/0x740 net/rose/rose_link.c:266 Code: 56 41 55 41 54 53 48 83 ec 18 48 89 f5 49 89 fc 49 be 00 00 00 00 00 fc ff df e8 79 8a 74 f7 4c 8d 7d 36 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 6e 05 00 00 41 0f b6 1f 31 ff 89 de e8 RSP: 0018:ffffc9000b297910 EFLAGS: 00010207 RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffff888000354980 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880123338c0 RBP: 0000000000000000 R08: ffff888000354980 R09: 0000000000000008 R10: 000000000000000f R11: 0000000000000000 R12: ffff8880123338c0 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000036 FS: 00007f8e5c1d46c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcd2d599d80 CR3: 0000000043e21000 CR4: 0000000000352ef0 Call Trace: rose_write_internal+0x11dc/0x1ac0 net/rose/rose_subr.c:198 rose_release+0x25b/0x510 net/rose/af_rose.c:671 __sock_release net/socket.c:662 [inline] sock_close+0xc3/0x240 net/socket.c:1455 __fput+0x44c/0xa70 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:233 get_signal+0x11ec/0x1340 kernel/signal.c:2807 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop+0x87/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8e5fd8f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8e5c1d4038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: 0000000000000000 RBX: 00007f8e5ffe6180 RCX: 00007f8e5fd8f7c9 RDX: 000000000000001c RSI: 0000200000000040 RDI: 000000000000000b RBP: 00007f8e5fe13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8e5ffe6218 R14: 00007f8e5ffe6180 R15: 00007ffe9f75d318 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:rose_transmit_link+0x32/0x740 net/rose/rose_link.c:266 Code: 56 41 55 41 54 53 48 83 ec 18 48 89 f5 49 89 fc 49 be 00 00 00 00 00 fc ff df e8 79 8a 74 f7 4c 8d 7d 36 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 6e 05 00 00 41 0f b6 1f 31 ff 89 de e8 RSP: 0018:ffffc9000b297910 EFLAGS: 00010207 RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffff888000354980 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880123338c0 RBP: 0000000000000000 R08: ffff888000354980 R09: 0000000000000008 R10: 000000000000000f R11: 0000000000000000 R12: ffff8880123338c0 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000036 FS: 00007f8e5c1d46c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b02384f168 CR3: 0000000043e21000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 56 push %rsi 1: 41 55 push %r13 3: 41 54 push %r12 5: 53 push %rbx 6: 48 83 ec 18 sub $0x18,%rsp a: 48 89 f5 mov %rsi,%rbp d: 49 89 fc mov %rdi,%r12 10: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 17: fc ff df 1a: e8 79 8a 74 f7 call 0xf7748a98 1f: 4c 8d 7d 36 lea 0x36(%rbp),%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 6e 05 00 00 jne 0x5a5 37: 41 0f b6 1f movzbl (%r15),%ebx 3b: 31 ff xor %edi,%edi 3d: 89 de mov %ebx,%esi 3f: e8 .byte 0xe8