syzbot


BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task

Status: upstream: reported syz repro on 2022/08/13 07:32
Reported-by: syzbot+ab99dc4c6e961eed8b8e@syzkaller.appspotmail.com
Fix commit: a625ca30eff8 RDMA/rxe: Fix "kernel NULL pointer dereference" error
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 180d, last: 108d

Sample crash report:
infiniband syz0: set active
infiniband syz0: added ip6gre0
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1d64c067 P4D 1d64c067 PUD 22925067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3780 Comm: syz-executor.1 Not tainted 6.0.0-rc3-syzkaller-00123-g05a5474efe93 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000413eb40 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880776e25c8 RCX: 0000000000000000
RDX: ffff88807932bb00 RSI: ffffffff86d530bb RDI: 0000000000000000
RBP: ffffed100eedc4c8 R08: 0000000000000001 R09: ffff8880776e269f
R10: ffffed100eedc4d3 R11: 0000000000000000 R12: 0000000000000000
R13: ffffed100eedc4c9 R14: ffff8880776e2640 R15: ffff8880776e2648
FS:  00007f1d65587700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000001bd9d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __rxe_do_task+0x56/0xc0 drivers/infiniband/sw/rxe/rxe_task.c:18
 rxe_qp_do_cleanup+0x102/0x770 drivers/infiniband/sw/rxe/rxe_qp.c:800
 execute_in_process_context+0x37/0x150 kernel/workqueue.c:3359
 __rxe_cleanup+0x21a/0x400 drivers/infiniband/sw/rxe/rxe_pool.c:276
 rxe_create_qp+0x2be/0x340 drivers/infiniband/sw/rxe/rxe_verbs.c:441
 create_qp+0x5ac/0x960 drivers/infiniband/core/verbs.c:1233
 ib_create_qp_kernel+0x9d/0x310 drivers/infiniband/core/verbs.c:1344
 ib_create_qp include/rdma/ib_verbs.h:3732 [inline]
 create_mad_qp+0x177/0x2d0 drivers/infiniband/core/mad.c:2910
 ib_mad_port_open drivers/infiniband/core/mad.c:2991 [inline]
 ib_mad_init_device+0xd51/0x13f0 drivers/infiniband/core/mad.c:3082
 add_client_context+0x405/0x5e0 drivers/infiniband/core/device.c:721
 enable_device_and_get+0x1cd/0x3b0 drivers/infiniband/core/device.c:1332
 ib_register_device drivers/infiniband/core/device.c:1420 [inline]
 ib_register_device+0x83e/0xb20 drivers/infiniband/core/device.c:1366
 rxe_register_device+0x2fe/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:1138
 rxe_net_add+0x8c/0xe0 drivers/infiniband/sw/rxe/rxe_net.c:521
 rxe_newlink drivers/infiniband/sw/rxe/rxe.c:195 [inline]
 rxe_newlink+0xa9/0xd0 drivers/infiniband/sw/rxe/rxe.c:176
 nldev_newlink+0x32e/0x5c0 drivers/infiniband/core/nldev.c:1717
 rdma_nl_rcv_msg+0x36d/0x690 drivers/infiniband/core/netlink.c:195
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x2ee/0x430 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2482
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
 __sys_sendmsg+0xf3/0x1c0 net/socket.c:2565
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1d64489279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1d65587168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1d6459bf80 RCX: 00007f1d64489279
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f1d644e32e9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd40d1b80f R14: 00007f1d65587300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000413eb40 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880776e25c8 RCX: 0000000000000000
RDX: ffff88807932bb00 RSI: ffffffff86d530bb RDI: 0000000000000000
RBP: ffffed100eedc4c8 R08: 0000000000000001 R09: ffff8880776e269f
R10: ffffed100eedc4d3 R11: 0000000000000000 R12: 0000000000000000
R13: ffffed100eedc4c9 R14: ffff8880776e2640 R15: ffff8880776e2648
FS:  00007f1d65587700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000001bd9d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (120):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-this-kasan-gce 2022/09/03 11:14 net 05a5474efe93 49e94a20 .config console log report syz [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/10/07 21:07 upstream 4c86114194e6 0de35f24 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/10/03 00:14 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/10/01 07:25 upstream ffb4d94b4314 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-smack-root 2022/09/28 04:05 upstream 46452d3786a8 75c78242 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-root 2022/09/28 01:31 upstream 46452d3786a8 75c78242 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-root 2022/09/26 11:27 upstream f76349cf4145 d59ba983 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-smack-root 2022/09/25 02:08 upstream 1a61b828566f 0042f2b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/09/24 09:51 upstream a63f2e7cb110 0042f2b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-qemu-upstream 2022/09/23 14:13 upstream bf682942cd26 0042f2b4 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/09/22 16:07 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-qemu-upstream 2022/09/22 05:25 upstream 06f7db949993 60af5050 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/09/22 02:22 upstream 06f7db949993 60af5050 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-smack-root 2022/09/21 14:17 upstream 60891ec99e14 380f82fb .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-selinux-root 2022/09/20 22:08 upstream 60891ec99e14 c4b8ccfd .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-smack-root 2022/09/18 18:11 upstream 38eddeedbbea dd9a85ff .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-kasan-gce-root 2022/08/13 03:31 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/18 04:11 net fa182ea26ff0 754863b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/17 21:37 net fa182ea26ff0 67cb024c .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/17 11:31 net fa182ea26ff0 67cb024c .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/17 04:22 net fa182ea26ff0 67cb024c .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/14 08:03 net fa182ea26ff0 4954e4b2 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/12 06:07 net 72da9dc22ff3 16a9c9e0 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/03 17:34 net 7a62ed61367b feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/02 14:26 net ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/02 09:22 net ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/02 03:24 net ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/02 02:24 net ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/10/01 18:44 net ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/09/21 12:13 net 79a392a3b19a 380f82fb .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-this-kasan-gce 2022/09/19 12:09 net 96628951869c dd9a85ff .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/20 22:22 net-next 0326074ff465 a0fd4dab .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/20 01:26 net-next 0326074ff465 b31320fc .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/18 13:59 net-next 0326074ff465 754863b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/16 15:30 net-next 0326074ff465 67cb024c .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/15 13:05 net-next 0326074ff465 67cb024c .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/14 06:05 net-next 0326074ff465 4954e4b2 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/10 07:14 net-next 0326074ff465 aea5da89 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/09 08:16 net-next 0326074ff465 aea5da89 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/07 00:51 net-next 0326074ff465 8a212197 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/05 11:44 net-next 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/05 00:15 net-next 450a580fc4b5 eab8f949 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/04 07:57 net-next 450a580fc4b5 feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/03 12:52 net-next 9d43507319cc feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/02 18:29 net-next bc37b24ee05e feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/02 06:58 net-next bc37b24ee05e feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/10/01 23:16 net-next bc37b24ee05e feb56351 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/29 21:51 net-next d49e265b66d9 1d385642 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/29 10:23 net-next d49e265b66d9 1d385642 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/28 21:26 net-next b9a5cbf8ba24 e2556bc3 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/26 22:39 net-next d6e3b27cbd2d 10323ddf .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/26 18:55 net-next d6e3b27cbd2d d59ba983 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/25 23:20 net-next 9258b8b1be2e 0042f2b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/24 00:13 net-next 4dfa5f05fffa 0042f2b4 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/23 19:46 net-next 4dfa5f05fffa 0042f2b4 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/23 09:02 net-next d05d9eb79d0c 0042f2b4 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-net-kasan-gce 2022/09/18 06:24 net-next 44a8535fb87c dd9a85ff .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-linux-next-kasan-gce-root 2022/08/19 19:06 linux-next 8755ae45a9e8 26a13b38 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
ci-upstream-linux-next-kasan-gce-root 2022/08/09 04:50 linux-next ca688bff68bc da700653 .config console log report info BUG: unable to handle kernel NULL pointer dereference in __rxe_do_task
* Struck through repros no longer work on HEAD.