syzbot


linux-next 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: 339d, last: 337d

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: 11 Comm: kworker/u4:0 Not tainted 6.8.0-rc1-next-20240123-syzkaller #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+0xc2a/0x1230 kernel/locking/lockdep.c:1289
 __lock_acquire+0x111/0x3b30 kernel/locking/lockdep.c:5014
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1b1/0x540 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/0x11e0 net/ipv4/inet_connection_sock.c:1385
 __tcp_close+0xc6f/0xfe0 net/ipv4/tcp.c:2761
 tcp_close+0x2d/0xc0 net/ipv4/tcp.c:2920
 inet_release+0x134/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+0x8e/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/0x820 net/rds/tcp.c:637
 ops_exit_list+0xb0/0x180 net/core/net_namespace.c:170
 cleanup_net+0x508/0xb20 net/core/net_namespace.c:618
 process_one_work+0x8d5/0x16e0 kernel/workqueue.c:2633
 process_scheduled_works kernel/workqueue.c:2707 [inline]
 worker_thread+0x8b6/0x1290 kernel/workqueue.c:2788
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:242
 </TASK>
hsr_slave_0: left promiscuous mode
hsr_slave_1: left promiscuous mode
batman_adv: batadv0: Interface deactivated: batadv_slave_0
batman_adv: batadv0: Removing interface: batadv_slave_0
batman_adv: batadv0: Interface deactivated: batadv_slave_1
batman_adv: batadv0: Removing interface: batadv_slave_1
bridge_slave_1: left allmulticast mode
bridge_slave_1: left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
bridge_slave_0: left allmulticast mode
bridge_slave_0: left promiscuous mode
bridge0: port 1(bridge_slave_0) entered disabled state
veth1_macvtap: left promiscuous mode
veth0_macvtap: left promiscuous mode
veth1_vlan: left promiscuous mode
veth0_vlan: left promiscuous mode
team0 (unregistering): Port device team_slave_1 removed
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
bond0 (unregistering): Released all slaves

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/23 17:42 linux-next 774551425799 1e153dc8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 17:42 linux-next 774551425799 1e153dc8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 17:42 linux-next 774551425799 1e153dc8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 04:24 linux-next 774551425799 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 04:24 linux-next 774551425799 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 04:24 linux-next 774551425799 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 00:13 linux-next 319fbd8fc6d3 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 00:13 linux-next 319fbd8fc6d3 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/23 00:13 linux-next 319fbd8fc6d3 1c0ecc51 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 02:00 linux-next 319fbd8fc6d3 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 02:00 linux-next 319fbd8fc6d3 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
2024/01/22 01:59 linux-next 319fbd8fc6d3 9bd8dcda .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root linux-next test error: INFO: trying to register non-static key in inet_csk_listen_stop
* Struck through repros no longer work on HEAD.