syzbot


bpf test error: INFO: trying to register non-static key in inet_csk_listen_stop

Status: fixed on 2024/03/27 19:12
Subsystems: net
[Documentation on labels]
Fix commit: 435e202d645c ipv6: init the accept_queue's spinlocks in inet6_create
First crash: 120d, last: 119d

Sample crash report:
netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
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: 958 Comm: kworker/u4:5 Not tainted 6.7.0-syzkaller-12287-g13e788deb734 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 assign_lock_key kernel/locking/lockdep.c:976 [inline]
 register_lock_class+0xc26/0x1230 kernel/locking/lockdep.c:1289
 __lock_acquire+0x112/0x3b30 kernel/locking/lockdep.c:5014
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1ae/0x520 kernel/locking/lockdep.c:5719
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 reqsk_queue_remove include/net/request_sock.h:205 [inline]
 inet_csk_listen_stop+0x35a/0x11d0 net/ipv4/inet_connection_sock.c:1385
 __tcp_close+0xc63/0xfd0 net/ipv4/tcp.c:2761
 tcp_close+0x2d/0xc0 net/ipv4/tcp.c:2920
 inet_release+0x132/0x270 net/ipv4/af_inet.c:436
 inet6_release+0x4f/0x70 net/ipv6/af_inet6.c:485
 __sock_release net/socket.c:659 [inline]
 sock_release+0x8b/0x1d0 net/socket.c:687
 rds_tcp_listen_stop+0x114/0x150 net/rds/tcp_listen.c:349
 rds_tcp_kill_sock net/rds/tcp.c:614 [inline]
 rds_tcp_exit_net+0xcc/0x810 net/rds/tcp.c:637
 ops_exit_list+0xb0/0x170 net/core/net_namespace.c:170
 cleanup_net+0x505/0xb20 net/core/net_namespace.c:618
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/23 01:18 bpf 13e788deb734 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce bpf test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 21:30 bpf 13e788deb734 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce bpf test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 21:30 bpf 13e788deb734 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce bpf test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 21:30 bpf 13e788deb734 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce bpf test error: INFO: trying to register non-static key in inet_csk_listen_stop
* Struck through repros no longer work on HEAD.