bisecting fixing commit since b86ee2b7ae42b6b37a918b66236608e2cc325f59 building syzkaller on a7dab6385c1d95547a88e22577fb56fbcd5c37eb testing commit b86ee2b7ae42b6b37a918b66236608e2cc325f59 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: c482d3e9e7125c76cb19252151faa1cd80958292223fcad68bf185f076ea3c04 run #0: crashed: unregister_netdevice: waiting for DEV to become free run #1: crashed: general protection fault in rds_ib_get_mr run #2: crashed: unregister_netdevice: waiting for DEV to become free run #3: crashed: general protection fault in rds_ib_get_mr run #4: crashed: unregister_netdevice: waiting for DEV to become free run #5: crashed: unregister_netdevice: waiting for DEV to become free run #6: crashed: unregister_netdevice: waiting for DEV to become free run #7: crashed: unregister_netdevice: waiting for DEV to become free run #8: crashed: general protection fault in rds_ib_get_mr run #9: crashed: general protection fault in rds_ib_get_mr run #10: crashed: unregister_netdevice: waiting for DEV to become free run #11: crashed: unregister_netdevice: waiting for DEV to become free run #12: crashed: unregister_netdevice: waiting for DEV to become free run #13: crashed: general protection fault in rds_ib_get_mr run #14: crashed: unregister_netdevice: waiting for DEV to become free run #15: crashed: unregister_netdevice: waiting for DEV to become free run #16: crashed: unregister_netdevice: waiting for DEV to become free run #17: crashed: unregister_netdevice: waiting for DEV to become free run #18: crashed: unregister_netdevice: waiting for DEV to become free run #19: crashed: unregister_netdevice: waiting for DEV to become free testing current HEAD c9fcc1545c3bb19f4e04b1c82bf5c2856fef39bd testing commit c9fcc1545c3bb19f4e04b1c82bf5c2856fef39bd compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 477fd3fbb190fae23103321fdc8a0f56be889a783f9a9cdef54ae2a277c2b2c5 run #0: crashed: unregister_netdevice: waiting for DEV to become free run #1: crashed: general protection fault in rds_ib_get_mr run #2: crashed: general protection fault in rds_ib_get_mr run #3: crashed: unregister_netdevice: waiting for DEV to become free run #4: crashed: unregister_netdevice: waiting for DEV to become free run #5: crashed: general protection fault in rds_ib_get_mr run #6: crashed: general protection fault in rds_ib_get_mr run #7: crashed: general protection fault in rds_ib_get_mr run #8: crashed: general protection fault in rds_ib_get_mr run #9: crashed: general protection fault in rds_ib_get_mr revisions tested: 2, total time: 28m33.928023507s (build: 21m33.236888492s, test: 6m31.985733565s) the crash still happens on HEAD commit msg: Linux 4.14.270 crash: general protection fault in rds_ib_get_mr 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: 1 PID: 8288 Comm: syz-executor407 Not tainted 4.14.270-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809dfcc140 task.stack: ffff888092008000 RIP: 0010:rds_ib_get_mr+0x58/0x210 net/rds/ib_rdma.c:543 RSP: 0018:ffff88809200faf0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 000000000000000d RDX: ffff8880af924040 RSI: 0000000000000001 RDI: 0000000000000068 RBP: ffff88809200fb20 R08: 0000000000000001 R09: ffff8880aaad5280 R10: ffffed101555aa54 R11: ffff8880aaad52a7 R12: ffff8880aaad5280 R13: 0000000000000001 R14: ffff8880af924040 R15: ffff8880ab7c969c FS: 00007fb18e3c5700(0000) GS:ffff8880ba700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb18e3c5718 CR3: 0000000094b10000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __rds_rdma_map+0x8ff/0xf40 net/rds/rdma.c:271 rds_get_mr_for_dest+0xbc/0x100 net/rds/rdma.c:357 rds_setsockopt+0x3ce/0x7e0 net/rds/af_rds.c:347 SYSC_setsockopt net/socket.c:1865 [inline] SyS_setsockopt+0x130/0x1f0 net/socket.c:1844 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fb18e433ce9 RSP: 002b:00007fb18e3c5318 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fb18e4bc3f8 RCX: 00007fb18e433ce9 RDX: 0000000000000007 RSI: 0000000000000114 RDI: 0000000000000003 RBP: 00007fb18e4bc3f0 R08: 00000000000000a0 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 00007fb18e4bc3fc R13: 00007fff52dc14ef R14: 00007fb18e3c5400 R15: 0000000000022000 Code: 08 48 c1 e9 03 80 3c 01 00 0f 85 bb 01 00 00 48 8b 9a c0 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 68 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 83 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 RIP: rds_ib_get_mr+0x58/0x210 net/rds/ib_rdma.c:543 RSP: ffff88809200faf0 ---[ end trace 9f9537dbb1a7dd05 ]--- ---------------- Code disassembly (best guess): 0: 08 48 c1 or %cl,-0x3f(%rax) 3: e9 03 80 3c 01 jmpq 0x13c800b 8: 00 0f add %cl,(%rdi) a: 85 bb 01 00 00 48 test %edi,0x48000001(%rbx) 10: 8b 9a c0 04 00 00 mov 0x4c0(%rdx),%ebx 16: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1d: fc ff df 20: 48 8d 7b 68 lea 0x68(%rbx),%rdi 24: 48 89 f9 mov %rdi,%rcx 27: 48 c1 e9 03 shr $0x3,%rcx * 2b: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2f: 0f 85 83 01 00 00 jne 0x1b8 35: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3c: fc ff df 3f: 48 rex.W