syzbot


INFO: trying to register non-static key in rxe_cleanup_task

Status: upstream: reported on 2022/05/23 13:36
Reported-by: syzbot+833061116fa28df97f3b@syzkaller.appspotmail.com
First crash: 36d, last: 2d10h

Sample crash report:
infiniband syz2: set active
infiniband syz2: added veth1_to_bond
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 1 PID: 7103 Comm: syz-executor.5 Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 assign_lock_key kernel/locking/lockdep.c:979 [inline]
 register_lock_class+0xf30/0x1130 kernel/locking/lockdep.c:1292
 __lock_acquire+0x10a/0x5660 kernel/locking/lockdep.c:4932
 lock_acquire kernel/locking/lockdep.c:5665 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:354 [inline]
 rxe_cleanup_task+0x6f/0xc0 drivers/infiniband/sw/rxe/rxe_task.c:117
 rxe_qp_do_cleanup+0x88/0x8b0 drivers/infiniband/sw/rxe/rxe_qp.c:781
 execute_in_process_context+0x37/0x150 kernel/workqueue.c:3350
 rxe_elem_release drivers/infiniband/sw/rxe/rxe_pool.c:206 [inline]
 kref_put include/linux/kref.h:65 [inline]
 __rxe_put+0x107/0x1f0 drivers/infiniband/sw/rxe/rxe_pool.c:221
 rxe_create_qp+0x2a5/0x320 drivers/infiniband/sw/rxe/rxe_verbs.c:435
 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+0x814/0xaf0 drivers/infiniband/core/device.c:1366
 rxe_register_device+0x2fe/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:1112
 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:2492
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2546
 __sys_sendmsg net/socket.c:2575 [inline]
 __do_sys_sendmsg net/socket.c:2584 [inline]
 __se_sys_sendmsg net/socket.c:2582 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2582
 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+0x46/0xb0
RIP: 0033:0x7f3406a89109
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:00007f3407bde168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3406b9bf60 RCX: 00007f3406a89109
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007f3406ae305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff62ccceff R14: 00007f3407bde300 R15: 0000000000022000
 </TASK>
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
BUG: KASAN: null-ptr-deref in atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline]
BUG: KASAN: null-ptr-deref in rxe_qp_do_cleanup+0x235/0x8b0 drivers/infiniband/sw/rxe/rxe_qp.c:807
Write of size 4 at addr 00000000000001e0 by task syz-executor.5/7103

CPU: 1 PID: 7103 Comm: syz-executor.5 Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_report mm/kasan/report.c:432 [inline]
 kasan_report.cold+0x61/0x1c6 mm/kasan/report.c:491
 check_region_inline mm/kasan/generic.c:183 [inline]
 kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189
 instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
 atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline]
 rxe_qp_do_cleanup+0x235/0x8b0 drivers/infiniband/sw/rxe/rxe_qp.c:807
 execute_in_process_context+0x37/0x150 kernel/workqueue.c:3350
 rxe_elem_release drivers/infiniband/sw/rxe/rxe_pool.c:206 [inline]
 kref_put include/linux/kref.h:65 [inline]
 __rxe_put+0x107/0x1f0 drivers/infiniband/sw/rxe/rxe_pool.c:221
 rxe_create_qp+0x2a5/0x320 drivers/infiniband/sw/rxe/rxe_verbs.c:435
 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+0x814/0xaf0 drivers/infiniband/core/device.c:1366
 rxe_register_device+0x2fe/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:1112
 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:2492
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2546
 __sys_sendmsg net/socket.c:2575 [inline]
 __do_sys_sendmsg net/socket.c:2584 [inline]
 __se_sys_sendmsg net/socket.c:2582 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2582
 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+0x46/0xb0
RIP: 0033:0x7f3406a89109
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:00007f3407bde168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3406b9bf60 RCX: 00007f3406a89109
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007f3406ae305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff62ccceff R14: 00007f3407bde300 R15: 0000000000022000
 </TASK>
==================================================================

Crashes (28):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/06/23 00:35 upstream 3abc3ae553c7 912f5df7 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-selinux-root 2022/06/21 05:01 upstream 78ca55889a54 0fc5c330 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/06/15 09:24 upstream 018ab4fabddd 127d1faf .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-smack-root 2022/06/15 04:10 upstream 018ab4fabddd 127d1faf .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-selinux-root 2022/06/13 00:40 upstream 997952851843 0d5abf15 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/06/08 19:36 upstream 34f4335c16a5 b2706118 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/06/08 18:53 upstream 34f4335c16a5 b2706118 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-selinux-root 2022/06/08 04:15 upstream f2906aa86338 b2706118 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/06/05 11:17 upstream 952923ddc011 c8857892 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-smack-root 2022/06/05 09:34 upstream 952923ddc011 c8857892 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-selinux-root 2022/06/04 03:48 upstream 50fd82b3a9a9 c8857892 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/05/31 12:39 upstream 8ab2afa23bd1 af70c3a9 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-kasan-gce-root 2022/05/31 11:25 upstream 8ab2afa23bd1 af70c3a9 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-this-kasan-gce 2022/06/19 00:43 net a2b1a5d40bd1 8f633d84 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-this-kasan-gce 2022/06/11 03:23 net 825464e79db4 0d5abf15 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-this-kasan-gce 2022/06/05 00:42 net 58f9d52ff689 c8857892 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-kasan-gce 2022/06/19 14:07 net-next 9776fe0f424b 8f633d84 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-kasan-gce 2022/06/14 02:23 net-next c04245328dd7 0f087040 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-kasan-gce 2022/06/13 10:53 net-next 27f2533bcc6e 0d5abf15 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-net-kasan-gce 2022/06/08 15:22 net-next da6e113ff010 b2706118 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/06/15 03:34 linux-next 35d872b9ea5b 127d1faf .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/06/14 04:33 linux-next 6d0c80680317 0f087040 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/06/08 02:03 linux-next 73d0e32571a0 b2706118 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/06/04 03:16 linux-next 1cfd968b58a1 c8857892 .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/06/01 02:14 linux-next 3b46e4e44180 3666edfe .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/05/27 08:31 linux-next d3fde8ff50ab 116e7a7b .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/05/23 12:31 linux-next cc63e8e92cb8 4c7657cb .config log report info INFO: trying to register non-static key in rxe_cleanup_task
ci-upstream-linux-next-kasan-gce-root 2022/05/19 13:29 linux-next 3f7bdc402fb0 50c53f39 .config log report info INFO: trying to register non-static key in rxe_cleanup_task