INFO: trying to register non-static key in inet_csk_listen_stop
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: 2425 Comm: kworker/u4:8 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.1.190' (ED25519) to the list of known hosts.
2024/01/22 10:08:25 fuzzer started
2024/01/22 10:08:25 connecting to host at 10.128.0.169:33739
2024/01/22 10:08:25 checking machine...
2024/01/22 10:08:25 checking revisions...
2024/01/22 10:08:25 testing simple program...
[ 72.794729][ T5061] cgroup: Unknown subsys name 'net'
[ 72.934597][ T5061] cgroup: Unknown subsys name 'rlimit'
[ 73.242018][ T5065] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 73.250535][ T5065] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 73.258883][ T5065] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 73.267111][ T5065] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 73.275738][ T5065] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 73.283539][ T5065] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 73.461842][ T5063] chnl_net:caif_netlink_parms(): no params data found
[ 73.542261][ T5063] bridge0: port 1(bridge_slave_0) entered blocking state
[ 73.550222][ T5063] bridge0: port 1(bridge_slave_0) entered disabled state
[ 73.558606][ T5063] bridge_slave_0: entered allmulticast mode
[ 73.566087][ T5063] bridge_slave_0: entered promiscuous mode
[ 73.575997][ T5063] bridge0: port 2(bridge_slave_1) entered blocking state
[ 73.583487][ T5063] bridge0: port 2(bridge_slave_1) entered disabled state
[ 73.590878][ T5063] bridge_slave_1: entered allmulticast mode
[ 73.598359][ T5063] bridge_slave_1: entered promiscuous mode
[ 73.634978][ T5063] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 73.647719][ T5063] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 73.684903][ T5063] team0: Port device team_slave_0 added
[ 73.693814][ T5063] team0: Port device team_slave_1 added
[ 73.724966][ T5063] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 73.732050][ T5063] 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.
[ 73.758593][ T5063] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 73.773750][ T5063] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 73.780800][ T5063] 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.
[ 73.807158][ T5063] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 73.856635][ T5063] hsr_slave_0: entered promiscuous mode
[ 73.864437][ T5063] hsr_slave_1: entered promiscuous mode
[ 74.021849][ T5063] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 74.035410][ T5063] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 74.047790][ T5063] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 74.059110][ T5063] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 74.093071][ T5063] bridge0: port 2(bridge_slave_1) entered blocking state
[ 74.100717][ T5063] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 74.109087][ T5063] bridge0: port 1(bridge_slave_0) entered blocking state
[ 74.116829][ T5063] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 74.193161][ T5063] 8021q: adding VLAN 0 to HW filter on device bond0
[ 74.217942][ T4804] bridge0: port 1(bridge_slave_0) entered disabled state
[ 74.229368][ T4804] bridge0: port 2(bridge_slave_1) entered disabled state
[ 74.247975][ T5063] 8021q: adding VLAN 0 to HW filter on device team0
[ 74.263238][ T4804] bridge0: port 1(bridge_slave_0) entered blocking state
[ 74.270653][ T4804] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 74.298692][ T4804] bridge0: port 2(bridge_slave_1) entered blocking state
[ 74.305961][ T4804] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 74.487762][ T5063] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 74.537905][ T5063] veth0_vlan: entered promiscuous mode
[ 74.566335][ T5063] veth1_vlan: entered promiscuous mode
[ 74.604206][ T5063] veth0_macvtap: entered promiscuous mode
[ 74.617609][ T5063] veth1_macvtap: entered promiscuous mode
[ 74.641741][ T5063] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 74.659455][ T5063] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 74.673073][ T5063] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 74.684856][ T5063] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 74.694054][ T5063] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 74.703680][ T5063] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 74.802466][ T1097] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 74.812321][ T1097] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 74.848160][ T1097] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 74.857722][ T1097] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
2024/01/22 10:08:27 building call list...
executing program
[ 77.794036][ T2425] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
executing program
[ 79.759282][ T5081] damon-dbgfs: DAMON debugfs interface is deprecated, so users should move to DAMON_SYSFS. If you cannot, please report your usecase to damon@lists.linux.dev and linux-mm@kvack.org.
[ 79.990050][ T2425] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 80.078922][ T2425] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 80.145673][ T5081] can: request_module (can-proto-0) failed.
[ 80.186060][ T2425] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 80.241540][ T5081] can: request_module (can-proto-0) failed.
[ 80.300051][ T5081] can: request_module (can-proto-0) failed.
[ 80.495863][ T2425] INFO: trying to register non-static key.
[ 80.501738][ T2425] The code is fine but needs lockdep annotation, or maybe
[ 80.508920][ T2425] you didn't initialize this object before use?
[ 80.515170][ T2425] turning off the locking correctness validator.
[ 80.521597][ T2425] CPU: 1 PID: 2425 Comm: kworker/u4:8 Not tainted 6.8.0-rc1-next-20240122-syzkaller-g319fbd8fc6d3 #0
[ 80.532557][ T2425] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
[ 80.542821][ T2425] Workqueue: netns cleanup_net
[ 80.548148][ T2425] Call Trace:
[ 80.551443][ T2425]
[ 80.554385][ T2425] dump_stack_lvl+0xd9/0x1b0
[ 80.559099][ T2425] register_lock_class+0xc2a/0x1230
[ 80.564477][ T2425] ? lockdep_unlock+0x11a/0x290
[ 80.569444][ T2425] ? __lock_acquire+0x1fb0/0x3b30
[ 80.574513][ T2425] ? __pfx_register_lock_class+0x10/0x10
[ 80.580286][ T2425] __lock_acquire+0x111/0x3b30
[ 80.585276][ T2425] ? lock_acquire+0x1b1/0x540
[ 80.590171][ T2425] ? __pfx___lock_acquire+0x10/0x10
[ 80.596030][ T2425] ? inet_unhash+0x464/0x6e0
[ 80.600741][ T2425] lock_acquire+0x1b1/0x540
[ 80.605551][ T2425] ? inet_csk_listen_stop+0x35a/0x11e0
[ 80.611042][ T2425] ? __pfx_lock_acquire+0x10/0x10
[ 80.616194][ T2425] ? trace_inet_sock_set_state+0x19d/0x1f0
[ 80.622132][ T2425] ? inet_sk_state_store+0x49/0x90
[ 80.627629][ T2425] ? tcp_set_state+0x249/0x800
[ 80.632607][ T2425] _raw_spin_lock_bh+0x33/0x40
[ 80.637656][ T2425] ? inet_csk_listen_stop+0x35a/0x11e0
[ 80.643352][ T2425] inet_csk_listen_stop+0x35a/0x11e0
[ 80.648752][ T2425] ? tcp_close+0x1d/0xc0
[ 80.653120][ T2425] __tcp_close+0xc6f/0xfe0
[ 80.657594][ T2425] tcp_close+0x2d/0xc0
[ 80.661685][ T2425] inet_release+0x134/0x270
[ 80.666705][ T2425] ? __pfx_sock_def_readable+0x10/0x10
[ 80.672280][ T2425] inet6_release+0x4f/0x70
[ 80.676733][ T2425] sock_release+0x8e/0x1d0
[ 80.681483][ T2425] rds_tcp_listen_stop+0x114/0x150
[ 80.686724][ T2425] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 80.692410][ T2425] rds_tcp_exit_net+0xcc/0x820
[ 80.697215][ T2425] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 80.702635][ T2425] ? __pfx___might_resched+0x10/0x10
[ 80.708010][ T2425] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 80.713692][ T2425] ops_exit_list+0xb0/0x180
[ 80.718605][ T2425] cleanup_net+0x508/0xb20
[ 80.723074][ T2425] ? __pfx_cleanup_net+0x10/0x10
[ 80.728075][ T2425] process_one_work+0x8d5/0x16e0
[ 80.733237][ T2425] ? __pfx_lock_acquire+0x10/0x10
[ 80.738993][ T2425] ? __pfx_process_one_work+0x10/0x10
[ 80.744840][ T2425] ? assign_work+0x1a0/0x250
[ 80.749563][ T2425] worker_thread+0x8b6/0x1290
[ 80.754297][ T2425] ? __pfx_worker_thread+0x10/0x10
[ 80.759794][ T2425] kthread+0x2c1/0x3a0
[ 80.764103][ T2425] ? _raw_spin_unlock_irq+0x23/0x50
[ 80.769464][ T2425] ? __pfx_kthread+0x10/0x10
[ 80.774352][ T2425] ret_from_fork+0x45/0x80
[ 80.778806][ T2425] ? __pfx_kthread+0x10/0x10
[ 80.783541][ T2425] ret_from_fork_asm+0x1a/0x30
[ 80.788452][ T2425]
[ 81.208784][ T5081] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 81.553013][ T2425] hsr_slave_0: left promiscuous mode
[ 81.572535][ T2425] hsr_slave_1: left promiscuous mode
[ 81.585361][ T2425] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 81.592871][ T2425] batman_adv: batadv0: Removing interface: batadv_slave_0
executing program
[ 81.613537][ T2425] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 81.621052][ T2425] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 81.630265][ T2425] bridge_slave_1: left allmulticast mode
[ 81.636489][ T2425] bridge_slave_1: left promiscuous mode
[ 81.642994][ T2425] bridge0: port 2(bridge_slave_1) entered disabled state
[ 81.655497][ T2425] bridge_slave_0: left allmulticast mode
[ 81.661181][ T2425] bridge_slave_0: left promiscuous mode
[ 81.668567][ T2425] bridge0: port 1(bridge_slave_0) entered disabled state
[ 81.682957][ T2425] veth1_macvtap: left promiscuous mode
[ 81.688656][ T2425] veth0_macvtap: left promiscuous mode
[ 81.696291][ T2425] veth1_vlan: left promiscuous mode
[ 81.702351][ T2425] veth0_vlan: left promiscuous mode
[ 81.829411][ T5081] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 81.849370][ T5081] base_sock_release(ffff88801d2f5400) sk=ffff88802b5de000
[ 82.026071][ T2425] team0 (unregistering): Port device team_slave_1 removed
[ 82.038623][ T2425] team0 (unregistering): Port device team_slave_0 removed
[ 82.056013][ T2425] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 82.070627][ T2425] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 82.143223][ T2425] 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-build4153616462=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at 2b9ba477a
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:32: run command via tools/syz-env for best compatibility, see:
Makefile:33: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=2b9ba477a18ed0cc53e6b29a9641292709a7ba24 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230512-161053'" "-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=2b9ba477a18ed0cc53e6b29a9641292709a7ba24 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230512-161053'" "-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=2b9ba477a18ed0cc53e6b29a9641292709a7ba24 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230512-161053'" "-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 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"2b9ba477a18ed0cc53e6b29a9641292709a7ba24\"