Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 1 UID: 0 PID: 24365 Comm: syz.0.8883 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:fd_install+0x5e/0x570 fs/file.c:685 Code: c1 ea 03 80 3c 02 00 0f 85 df 04 00 00 48 8d 7d 40 4d 8b ac 24 48 09 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 08 04 00 00 44 8b 65 40 31 ff RSP: 0018:ffffc90003defce0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffc9002b76a000 RDX: 0000000000000008 RSI: ffffffff82412aee RDI: 0000000000000041 RBP: 0000000000000001 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000001 R11: 00000000412a9116 R12: ffff8880238424c0 R13: ffff8880252e7840 R14: 00000000ffffffe2 R15: ffff8880131641e0 FS: 0000000000000000(0000) GS:ffff88809788a000(0063) knlGS:00000000f543db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002f123ffc CR3: 00000000554b8000 CR4: 0000000000352ef0 Call Trace: do_mq_open+0x558/0xa20 ipc/mqueue.c:932 __do_compat_sys_mq_open ipc/mqueue.c:1515 [inline] __se_compat_sys_mq_open ipc/mqueue.c:1505 [inline] __ia32_compat_sys_mq_open+0x154/0x280 ipc/mqueue.c:1505 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe8/0x680 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf704d579 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:00000000f543d55c EFLAGS: 00000296 ORIG_RAX: 0000000000000115 RAX: ffffffffffffffda RBX: 00000000800001c0 RCX: 00000000000008c2 RDX: 0000000000000030 RSI: 0000000080000080 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:fd_install+0x5e/0x570 fs/file.c:685 Code: c1 ea 03 80 3c 02 00 0f 85 df 04 00 00 48 8d 7d 40 4d 8b ac 24 48 09 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 08 04 00 00 44 8b 65 40 31 ff RSP: 0018:ffffc90003defce0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffc9002b76a000 RDX: 0000000000000008 RSI: ffffffff82412aee RDI: 0000000000000041 RBP: 0000000000000001 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000001 R11: 00000000412a9116 R12: ffff8880238424c0 R13: ffff8880252e7840 R14: 00000000ffffffe2 R15: ffff8880131641e0 FS: 0000000000000000(0000) GS:ffff88809778a000(0063) knlGS:00000000f543db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f747a068 CR3: 00000000554b8000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 df 04 00 00 jne 0x4ec d: 48 8d 7d 40 lea 0x40(%rbp),%rdi 11: 4d 8b ac 24 48 09 00 mov 0x948(%r12),%r13 18: 00 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: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 08 04 00 00 jle 0x442 3a: 44 8b 65 40 mov 0x40(%rbp),%r12d 3e: 31 ff xor %edi,%edi