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: 21385 Comm: syz-executor.2 Not tainted 4.14.268-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880989a8180 task.stack: ffff88807f888000 RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:2682 [inline] RIP: 0010:rdma_resolve_route+0x1cf/0x2e70 drivers/infiniband/core/cma.c:2687 RSP: 0018:ffff88807f88fa50 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000401 RCX: 0000000000000000 RDX: 0000000000000029 RSI: 0000000000000001 RDI: 0000000000000148 RBP: ffff88807f88fc10 R08: ffffffff8b9e1110 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: ffff888093437240 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff0a5f86700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc687e47000 CR3: 00000000b4987000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ucma_resolve_route+0xb2/0x120 drivers/infiniband/core/ucma.c:740 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:0x7ff0a7653049 RSP: 002b:00007ff0a5f86168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff0a7766100 RCX: 00007ff0a7653049 RDX: 0000000000000010 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007ff0a76ad08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e6759ff R14: 00007ff0a5f86300 R15: 0000000000022000 Code: df 48 c1 ea 03 80 3c 02 00 0f 85 31 26 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7d 00 49 8d bf 48 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 26 00 00 48 b8 00 00 00 00 00 fc ff df 45 RIP: rdma_cap_ib_sa include/rdma/ib_verbs.h:2682 [inline] RSP: ffff88807f88fa50 RIP: rdma_resolve_route+0x1cf/0x2e70 drivers/infiniband/core/cma.c:2687 RSP: ffff88807f88fa50 ---[ end trace e89dab08d97ddc05 ]--- ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 31 26 00 00 jne 0x263f e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 4d 8b 7d 00 mov 0x0(%r13),%r15 1c: 49 8d bf 48 01 00 00 lea 0x148(%r15),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 01 26 00 00 jne 0x2635 34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3b: fc ff df 3e: 45 rex.RB