kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 21501 Comm: syz-executor.3 Not tainted 4.14.273-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a23222c0 task.stack: ffff88809d980000 RIP: 0010:addr_resolve+0x1cc/0xa10 drivers/infiniband/core/addr.c:574 RSP: 0018:ffff88809d987960 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880a3614a60 RCX: ffffc90008426000 RDX: 0000000000000045 RSI: ffffffff85467414 RDI: 0000000000000228 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880a23222c0 R12: 00000000ffffffc3 R13: ffff888091511850 R14: ffff888091511900 R15: ffff8880a3614ac4 FS: 00007fefc8d68700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8e9c8cb000 CR3: 00000000a8e68000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rdma_resolve_ip+0x40d/0x6b0 drivers/infiniband/core/addr.c:709 rdma_resolve_addr+0x2bc/0x23b0 drivers/infiniband/core/cma.c:2940 ucma_resolve_ip+0xf5/0x190 drivers/infiniband/core/ucma.c:693 ucma_write+0x206/0x2c0 drivers/infiniband/core/ucma.c:1672 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fefca3f3049 RSP: 002b:00007fefc8d68168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fefca505f60 RCX: 00007fefca3f3049 RDX: 0000000000000048 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fefca44d08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc81d60caf R14: 00007fefc8d68300 R15: 0000000000022000 Code: 3b ce 0e fc 48 8b 7c 24 48 e8 e1 a0 7f 00 e8 2c ce 0e fc 48 8d bd 28 02 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 ff 06 00 00 f6 85 28 02 00 RIP: addr_resolve+0x1cc/0xa10 drivers/infiniband/core/addr.c:574 RSP: ffff88809d987960 ---[ end trace 3b07399fc38776d4 ]--- ---------------- Code disassembly (best guess), 3 bytes skipped: 0: fc cld 1: 48 8b 7c 24 48 mov 0x48(%rsp),%rdi 6: e8 e1 a0 7f 00 callq 0x7fa0ec b: e8 2c ce 0e fc callq 0xfc0ece3c 10: 48 8d bd 28 02 00 00 lea 0x228(%rbp),%rdi 17: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1e: fc ff df 21: 48 89 fa mov %rdi,%rdx 24: 48 c1 ea 03 shr $0x3,%rdx * 28: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2c: 84 c0 test %al,%al 2e: 74 08 je 0x38 30: 3c 03 cmp $0x3,%al 32: 0f 8e ff 06 00 00 jle 0x737 38: f6 .byte 0xf6 39: 85 28 test %ebp,(%rax) 3b: 02 00 add (%rax),%al