Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037] CPU: 3 UID: 0 PID: 9756 Comm: syz.0.1065 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/0x5f0 net/rose/rose_link.c:266 Code: 41 55 41 54 55 48 89 fd 53 48 89 f3 48 83 ec 08 e8 43 94 6c f7 48 8d 7b 36 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d8 04 00 00 RSP: 0018:ffffc90025d8fc08 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8a4fe118 RDX: 0000000000000006 RSI: ffffffff8a4f401d RDI: 0000000000000036 RBP: ffff88804e6892c0 R08: 0000000000000005 R09: 000000000000001f R10: 0000000000000013 R11: 0000000000000000 R12: ffff8880232e3000 R13: 0000000000000010 R14: 0000000000000013 R15: ffff88804c435a5a FS: 0000000000000000(0000) GS:ffff888097ae4000(0063) knlGS:00000000569d5440 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002feffff8 CR3: 0000000071261000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: rose_write_internal+0x2f6/0x1850 net/rose/rose_subr.c:198 rose_release+0x1f1/0x740 net/rose/af_rose.c:671 __sock_release+0xb0/0x270 net/socket.c:662 sock_close+0x1c/0x30 net/socket.c:1455 __fput+0x3ff/0xb70 fs/file_table.c:468 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x130 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] __do_fast_syscall_32+0x240/0x300 arch/x86/entry/syscall_32.c:309 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf70dd579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffba0cdc EFLAGS: 00000202 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000000001e RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:rose_transmit_link+0x32/0x5f0 net/rose/rose_link.c:266 Code: 41 55 41 54 55 48 89 fd 53 48 89 f3 48 83 ec 08 e8 43 94 6c f7 48 8d 7b 36 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d8 04 00 00 RSP: 0018:ffffc90025d8fc08 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8a4fe118 RDX: 0000000000000006 RSI: ffffffff8a4f401d RDI: 0000000000000036 RBP: ffff88804e6892c0 R08: 0000000000000005 R09: 000000000000001f R10: 0000000000000013 R11: 0000000000000000 R12: ffff8880232e3000 R13: 0000000000000010 R14: 0000000000000013 R15: ffff88804c435a5a FS: 0000000000000000(0000) GS:ffff8880979e4000(0063) knlGS:00000000569d5440 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000008001b000 CR3: 0000000071261000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 41 55 push %r13 2: 41 54 push %r12 4: 55 push %rbp 5: 48 89 fd mov %rdi,%rbp 8: 53 push %rbx 9: 48 89 f3 mov %rsi,%rbx c: 48 83 ec 08 sub $0x8,%rsp 10: e8 43 94 6c f7 call 0xf76c9458 15: 48 8d 7b 36 lea 0x36(%rbx),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 d8 04 00 00 jne 0x518