syzbot


INFO: trying to register non-static key in rxe_cleanup_task (2)

Status: fixed on 2023/06/08 14:41
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+cfcc1a3c85be15a40cba@syzkaller.appspotmail.com
Fix commit: b2b1ddc45745 RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task"
First crash: 661d, last: 591d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [rdma?] INFO: trying to register non-static key in rxe_cleanup_task (2) 1 (2) 2023/04/01 02:09
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: trying to register non-static key in rxe_cleanup_task rdma syz 299 662d 938d 22/28 fixed on 2023/02/24 13:50

Sample crash report:
infiniband syz1: set active
infiniband syz1: added veth0
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: 9397 Comm: syz-executor.2 Not tainted 6.3.0-syzkaller-11025-g89d77f71f493 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 assign_lock_key+0x222/0x230 kernel/locking/lockdep.c:982
 register_lock_class+0x28e/0x990 kernel/locking/lockdep.c:1295
 __lock_acquire+0xd3/0x2000 kernel/locking/lockdep.c:4951
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5691
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:355 [inline]
 rxe_cleanup_task+0x56/0xc0 drivers/infiniband/sw/rxe/rxe_task.c:119
 rxe_qp_do_cleanup+0x7b/0x680 drivers/infiniband/sw/rxe/rxe_qp.c:776
 execute_in_process_context+0x117/0x130 kernel/workqueue.c:3458
 __rxe_cleanup+0x290/0x320 drivers/infiniband/sw/rxe/rxe_pool.c:233
 rxe_create_qp+0x276/0x2d0 drivers/infiniband/sw/rxe/rxe_verbs.c:430
 create_qp+0x55c/0x760 drivers/infiniband/core/verbs.c:1235
 ib_create_qp_kernel+0xaf/0x380 drivers/infiniband/core/verbs.c:1346
 ib_create_qp include/rdma/ib_verbs.h:3743 [inline]
 create_mad_qp drivers/infiniband/core/mad.c:2905 [inline]
 ib_mad_port_open drivers/infiniband/core/mad.c:2986 [inline]
 ib_mad_init_device+0xf83/0x2d80 drivers/infiniband/core/mad.c:3077
 add_client_context+0x52b/0x8a0 drivers/infiniband/core/device.c:721
 enable_device_and_get+0x1e3/0x440 drivers/infiniband/core/device.c:1332
 ib_register_device+0x10c2/0x13c0 drivers/infiniband/core/device.c:1420
 rxe_register_device+0x267/0x380 drivers/infiniband/sw/rxe/rxe_verbs.c:1096
 rxe_net_add+0x78/0xd0 drivers/infiniband/sw/rxe/rxe_net.c:524
 rxe_newlink+0x87/0x130 drivers/infiniband/sw/rxe/rxe.c:195
 nldev_newlink+0x5aa/0x620 drivers/infiniband/core/nldev.c:1731
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x6c6/0x9b0 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x7c3/0x990 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0xa2a/0xd60 net/netlink/af_netlink.c:1913
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0x58f/0x890 net/socket.c:2503
 ___sys_sendmsg net/socket.c:2557 [inline]
 __sys_sendmsg+0x2ad/0x390 net/socket.c:2586
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f95b4a8c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007f95b57ef168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f95b4babf80 RCX: 00007f95b4a8c169
RDX: 0000000000004000 RSI: 00000000200003c0 RDI: 0000000000000003
RBP: 00007f95b4ae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe50038a1f R14: 00007f95b57ef300 R15: 0000000000022000
 </TASK>
infiniband syz1: Couldn't create ib_mad QP1
infiniband syz1: Couldn't open port 1
RDS/IB: syz1: added
smc: adding ib device syz1 with port count 1
smc:    ib device syz1 port 1 has pnetid 

Crashes (148):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/29 20:39 upstream 89d77f71f493 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/29 02:09 upstream 22b8cc3e78f5 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/26 15:19 upstream 0cfd8703e7da 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/24 15:54 upstream 457391b03803 fdc18293 .config console log report info ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/23 21:53 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/22 06:10 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 03:19 upstream b7bc77e2f2c7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/14 20:48 upstream 95abc817ab3a 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/12 21:29 upstream 0bcc40255504 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in rxe_cleanup_task
2023/04/10 07:30 upstream 09a9639e56c0 71147e29 .config console log report info ci-upstream-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/03/24 22:52 upstream 1e760fa3596e ee89d73c .config console log report info ci-qemu-upstream INFO: trying to register non-static key in rxe_cleanup_task
2023/02/27 22:02 upstream 982818426a0f e792ae78 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in rxe_cleanup_task
2023/02/24 21:57 upstream a93e884edf61 630c6bc9 .config console log report info ci-qemu-upstream-386 INFO: trying to register non-static key in rxe_cleanup_task
2023/05/05 11:01 net 120a56b01bee 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/04 15:44 net b9850ec0027c 3a560463 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/03 14:21 net 6a341729fb31 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/03 05:22 net c6d96df9fa2c 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/03 02:13 net fb7cba61919a 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/02 22:08 net fb7cba61919a 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/02 18:02 net fb7cba61919a 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/02 06:06 net fb7cba61919a 62df2017 .config console log report info ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/28 22:08 net 6686317855c6 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/27 23:19 net 075cafffce24 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/26 08:02 net 50749f2dd685 7560799c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/25 06:20 net d913d32cc270 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 19:45 net e375b503943f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/18 10:24 net 338469d677e5 436577a9 .config console log report info ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/16 11:53 net 3037933448f6 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/08 02:32 net 029294d01907 71147e29 .config console log report info ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/05 16:00 net-next cb9e6e584d58 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/05 01:36 net-next d7385ba13771 518a39a6 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/05/01 16:13 net-next 042334a8d424 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/29 17:37 net-next 042334a8d424 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/29 15:30 net-next 042334a8d424 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/27 00:35 net-next c248b27cfc0a 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/26 21:13 net-next c248b27cfc0a 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/26 09:48 net-next 28b17f6270f1 7560799c .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/25 15:10 net-next 28b17f6270f1 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/25 12:08 net-next 28b17f6270f1 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/24 20:25 net-next 2efb07b5ced6 fdc18293 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/24 19:18 net-next 2efb07b5ced6 fdc18293 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/24 17:37 net-next 2efb07b5ced6 fdc18293 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/24 04:17 net-next fd84c569f7b8 2b32bd34 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/23 05:47 net-next fbc1449d385d 2b32bd34 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 16:01 net-next dfc39d4026fb 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 11:38 net-next e315e7b83a22 2b32bd34 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 08:01 net-next e315e7b83a22 2b32bd34 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/21 02:07 net-next e315e7b83a22 2b32bd34 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/14 18:40 net-next c11d2e718c79 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/14 03:09 net-next c2865b112259 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/13 10:02 net-next f2b3b6a22df7 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/11 12:11 net-next 9bc11460bea7 71147e29 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/08 12:01 net-next 9ba3b26c0c96 71147e29 .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/07 18:18 net-next e28531143b25 f7ba566d .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/07 12:43 net-next e28531143b25 f7ba566d .config console log report info ci-upstream-net-kasan-gce INFO: trying to register non-static key in rxe_cleanup_task
2023/04/14 17:38 linux-next d3f2cd248191 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
2023/02/24 15:04 linux-next 0222aa9800b2 ee50e71c .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in rxe_cleanup_task
* Struck through repros no longer work on HEAD.