BUG: unable to handle kernel NULL pointer dereference at 00000000000000b0 IP: rdma_cap_opa_ah include/rdma/ib_verbs.h:2773 [inline] IP: ucma_set_ib_path drivers/infiniband/core/ucma.c:1249 [inline] IP: ucma_set_option_ib drivers/infiniband/core/ucma.c:1272 [inline] IP: ucma_set_option_level drivers/infiniband/core/ucma.c:1291 [inline] IP: ucma_set_option+0xbba/0x1100 drivers/infiniband/core/ucma.c:1325 PGD 8000000153656067 P4D 8000000153656067 PUD 15366d067 PMD 0 Oops: 0000 [#1] SMP PTI Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 6698 Comm: syz-executor7 Not tainted 4.16.0+ #87 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rdma_cap_opa_ah include/rdma/ib_verbs.h:2773 [inline] RIP: 0010:ucma_set_ib_path drivers/infiniband/core/ucma.c:1249 [inline] RIP: 0010:ucma_set_option_ib drivers/infiniband/core/ucma.c:1272 [inline] RIP: 0010:ucma_set_option_level drivers/infiniband/core/ucma.c:1291 [inline] RIP: 0010:ucma_set_option+0xbba/0x1100 drivers/infiniband/core/ucma.c:1325 RSP: 0018:ffff8801535ff9b8 EFLAGS: 00010246 RAX: 00000000000000b0 RBX: ffff880156f66db8 RCX: ffff880000000000 RDX: ffff880156f6edb8 RSI: aaaaaaaaaaaab000 RDI: 00000000000000b0 RBP: ffff8801535ffb68 R08: 0000000000000000 R09: ffff88015284fa60 R10: 0000000000000001 R11: ffff8801535f0000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff880156bdb600 R15: 0000000000000000 FS: 00007f5ede978700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000000b0 CR3: 0000000154586000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ucma_write+0x576/0x5e0 drivers/infiniband/core/ucma.c:1656 __vfs_write+0x1a3/0x9f0 fs/read_write.c:480 vfs_write+0x463/0x8d0 fs/read_write.c:544 SYSC_write+0x172/0x360 fs/read_write.c:589 SyS_write+0x55/0x80 fs/read_write.c:581 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x455389 RSP: 002b:00007f5ede977c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5ede9786d4 RCX: 0000000000455389 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000006ce R14: 00000000006fd3f0 R15: 0000000000000000 Code: 89 df e8 3a cf 5e fa 0f b6 00 48 89 45 b0 8b 02 89 45 84 48 8b 45 c0 48 05 b0 00 00 00 48 83 7d 88 00 48 89 c7 0f 85 14 01 00 00 <48> 8b 1f e8 ce cf 5e fa 49 c1 e7 04 4a 8d 3c 3b 48 83 c7 08 48 RIP: rdma_cap_opa_ah include/rdma/ib_verbs.h:2773 [inline] RSP: ffff8801535ff9b8 RIP: ucma_set_ib_path drivers/infiniband/core/ucma.c:1249 [inline] RSP: ffff8801535ff9b8 RIP: ucma_set_option_ib drivers/infiniband/core/ucma.c:1272 [inline] RSP: ffff8801535ff9b8 RIP: ucma_set_option_level drivers/infiniband/core/ucma.c:1291 [inline] RSP: ffff8801535ff9b8 RIP: ucma_set_option+0xbba/0x1100 drivers/infiniband/core/ucma.c:1325 RSP: ffff8801535ff9b8 CR2: 00000000000000b0 ---[ end trace 5ad10411bc6a357b ]---