INFO: trying to register non-static key in inet_csk_listen_stop
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: 0 PID: 61 Comm: kworker/u4:5 Not tainted 6.8.0-rc1-next-20240122-syzkaller-g319fbd8fc6d3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: netns cleanup_net
Call Trace:
__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
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
Warning: Permanently added '10.128.0.170' (ED25519) to the list of known hosts.
2024/01/22 03:05:24 ignoring optional flag "raw_cover"="false"
2024/01/22 03:05:24 ignoring optional flag "sandbox_arg"="0"
2024/01/22 03:05:24 fuzzer started
2024/01/22 03:05:24 connecting to host at 10.128.0.169:38927
2024/01/22 03:05:24 checking machine...
2024/01/22 03:05:24 checking revisions...
2024/01/22 03:05:24 testing simple program...
[ 70.133650][ T51] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 70.142274][ T51] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 70.150647][ T51] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 70.159694][ T51] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 70.167324][ T51] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 70.175005][ T51] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 70.325267][ T5057] chnl_net:caif_netlink_parms(): no params data found
[ 70.403876][ T5057] bridge0: port 1(bridge_slave_0) entered blocking state
[ 70.414141][ T5057] bridge0: port 1(bridge_slave_0) entered disabled state
[ 70.421841][ T5057] bridge_slave_0: entered allmulticast mode
[ 70.429873][ T5057] bridge_slave_0: entered promiscuous mode
[ 70.443012][ T5057] bridge0: port 2(bridge_slave_1) entered blocking state
[ 70.451591][ T5057] bridge0: port 2(bridge_slave_1) entered disabled state
[ 70.459171][ T5057] bridge_slave_1: entered allmulticast mode
[ 70.466498][ T5057] bridge_slave_1: entered promiscuous mode
[ 70.499702][ T5057] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 70.512697][ T5057] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 70.551049][ T5057] team0: Port device team_slave_0 added
[ 70.560037][ T5057] team0: Port device team_slave_1 added
[ 70.591169][ T5057] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 70.598430][ T5057] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 70.625854][ T5057] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 70.640066][ T5057] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 70.647933][ T5057] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 70.674995][ T5057] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 70.718237][ T5057] hsr_slave_0: entered promiscuous mode
[ 70.725722][ T5057] hsr_slave_1: entered promiscuous mode
[ 70.881693][ T5057] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 70.893147][ T5057] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 70.907670][ T5057] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 70.920221][ T5057] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 70.955154][ T5057] bridge0: port 2(bridge_slave_1) entered blocking state
[ 70.962590][ T5057] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 70.971002][ T5057] bridge0: port 1(bridge_slave_0) entered blocking state
[ 70.978257][ T5057] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 71.052861][ T5057] 8021q: adding VLAN 0 to HW filter on device bond0
[ 71.075360][ T8] bridge0: port 1(bridge_slave_0) entered disabled state
[ 71.084352][ T8] bridge0: port 2(bridge_slave_1) entered disabled state
[ 71.104228][ T5057] 8021q: adding VLAN 0 to HW filter on device team0
[ 71.120126][ T27] bridge0: port 1(bridge_slave_0) entered blocking state
[ 71.127411][ T27] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 71.151984][ T8] bridge0: port 2(bridge_slave_1) entered blocking state
[ 71.159147][ T8] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 71.237143][ T5057] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 71.440832][ T5057] veth0_vlan: entered promiscuous mode
[ 71.453424][ T5057] veth1_vlan: entered promiscuous mode
executing program
[ 71.490352][ T5057] veth0_macvtap: entered promiscuous mode
[ 71.503857][ T5057] veth1_macvtap: entered promiscuous mode
[ 71.526797][ T5057] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 71.546079][ T5057] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 71.563112][ T5057] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 71.572452][ T5057] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 71.583223][ T5057] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 71.592516][ T5057] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 71.701908][ T4703] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 71.721629][ T4703] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 71.744600][ T2408] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 71.753710][ T2408] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
2024/01/22 03:05:27 building call list...
executing program
[ 74.705473][ T61] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 76.951172][ T61] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 76.953445][ T5053] can: request_module (can-proto-0) failed.
[ 77.013434][ T5053] can: request_module (can-proto-0) failed.
[ 77.060734][ T5053] can: request_module (can-proto-0) failed.
[ 77.061914][ T61] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 77.169663][ T61] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 77.525460][ T61] INFO: trying to register non-static key.
[ 77.531417][ T61] The code is fine but needs lockdep annotation, or maybe
[ 77.538805][ T61] you didn't initialize this object before use?
[ 77.545053][ T61] turning off the locking correctness validator.
[ 77.551927][ T61] CPU: 0 PID: 61 Comm: kworker/u4:5 Not tainted 6.8.0-rc1-next-20240122-syzkaller-g319fbd8fc6d3 #0
[ 77.562979][ T61] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
[ 77.573054][ T61] Workqueue: netns cleanup_net
[ 77.578040][ T61] Call Trace:
[ 77.583330][ T61]
[ 77.586347][ T61] dump_stack_lvl+0xd9/0x1b0
[ 77.591042][ T61] register_lock_class+0xc2a/0x1230
[ 77.596261][ T61] ? lockdep_unlock+0x11a/0x290
[ 77.601980][ T61] ? __lock_acquire+0x1fb0/0x3b30
[ 77.607101][ T61] ? __pfx_register_lock_class+0x10/0x10
[ 77.612741][ T61] __lock_acquire+0x111/0x3b30
[ 77.617553][ T61] ? lock_acquire+0x1b1/0x540
[ 77.622322][ T61] ? __pfx___lock_acquire+0x10/0x10
[ 77.627547][ T61] ? inet_unhash+0x464/0x6e0
[ 77.632174][ T61] lock_acquire+0x1b1/0x540
[ 77.636711][ T61] ? inet_csk_listen_stop+0x35a/0x11e0
[ 77.642208][ T61] ? __pfx_lock_acquire+0x10/0x10
[ 77.647258][ T61] ? trace_inet_sock_set_state+0x19d/0x1f0
[ 77.653175][ T61] ? inet_sk_state_store+0x49/0x90
[ 77.658303][ T61] ? tcp_set_state+0x249/0x800
[ 77.663123][ T61] _raw_spin_lock_bh+0x33/0x40
[ 77.668165][ T61] ? inet_csk_listen_stop+0x35a/0x11e0
[ 77.673622][ T61] inet_csk_listen_stop+0x35a/0x11e0
[ 77.678909][ T61] ? tcp_close+0x1d/0xc0
[ 77.683149][ T61] __tcp_close+0xc6f/0xfe0
[ 77.687740][ T61] tcp_close+0x2d/0xc0
[ 77.691895][ T61] inet_release+0x134/0x270
[ 77.696400][ T61] ? __pfx_sock_def_readable+0x10/0x10
[ 77.701968][ T61] inet6_release+0x4f/0x70
[ 77.706416][ T61] sock_release+0x8e/0x1d0
[ 77.711362][ T61] rds_tcp_listen_stop+0x114/0x150
[ 77.716659][ T61] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 77.722991][ T61] rds_tcp_exit_net+0xcc/0x820
[ 77.727850][ T61] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 77.733229][ T61] ? __pfx___might_resched+0x10/0x10
[ 77.738515][ T61] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 77.744076][ T61] ops_exit_list+0xb0/0x180
[ 77.748810][ T61] cleanup_net+0x508/0xb20
[ 77.753237][ T61] ? __pfx_cleanup_net+0x10/0x10
[ 77.758189][ T61] process_one_work+0x8d5/0x16e0
[ 77.763461][ T61] ? __pfx_lock_acquire+0x10/0x10
[ 77.768664][ T61] ? __pfx_process_one_work+0x10/0x10
executing program
[ 77.774125][ T61] ? assign_work+0x1a0/0x250
[ 77.778811][ T61] worker_thread+0x8b6/0x1290
[ 77.783755][ T61] ? __kthread_parkme+0x148/0x220
[ 77.788990][ T61] ? __pfx_worker_thread+0x10/0x10
[ 77.794134][ T61] kthread+0x2c1/0x3a0
[ 77.798219][ T61] ? _raw_spin_unlock_irq+0x23/0x50
[ 77.803440][ T61] ? __pfx_kthread+0x10/0x10
[ 77.808041][ T61] ret_from_fork+0x45/0x80
[ 77.812463][ T61] ? __pfx_kthread+0x10/0x10
[ 77.817236][ T61] ret_from_fork_asm+0x1a/0x30
[ 77.822191][ T61]
[ 78.192787][ T5053] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 78.654055][ T61] hsr_slave_0: left promiscuous mode
[ 78.674757][ T61] hsr_slave_1: left promiscuous mode
[ 78.685594][ T61] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 78.701454][ T61] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 78.710637][ T61] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 78.718884][ T61] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 78.727541][ T61] bridge_slave_1: left allmulticast mode
[ 78.735125][ T61] bridge_slave_1: left promiscuous mode
[ 78.742201][ T61] bridge0: port 2(bridge_slave_1) entered disabled state
[ 78.742872][ T5053] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 78.764890][ T61] bridge_slave_0: left allmulticast mode
[ 78.771780][ T61] bridge_slave_0: left promiscuous mode
[ 78.778315][ T61] bridge0: port 1(bridge_slave_0) entered disabled state
[ 78.792097][ T5053] base_sock_release(ffff888074741800) sk=ffff88802e7c8000
[ 78.792191][ T61] veth1_macvtap: left promiscuous mode
[ 78.805065][ T61] veth0_macvtap: left promiscuous mode
[ 78.812330][ T61] veth1_vlan: left promiscuous mode
[ 78.818324][ T61] veth0_vlan: left promiscuous mode
[ 79.037008][ T61] team0 (unregistering): Port device team_slave_1 removed
[ 79.052236][ T61] team0 (unregistering): Port device team_slave_0 removed
[ 79.064305][ T61] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 79.087458][ T61] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 79.146051][ T61] bond0 (unregistering): Released all slaves
syzkaller build log:
go env (err=)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1904440503=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at fd5118098
nothing to commit, working tree clean
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=fd5118098a3df4301eba91aeca37119ccb209403 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210726-075153'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=fd5118098a3df4301eba91aeca37119ccb209403 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210726-075153'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=fd5118098a3df4301eba91aeca37119ccb209403 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210726-075153'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -static -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"fd5118098a3df4301eba91aeca37119ccb209403\"