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: 1 PID: 59 Comm: kworker/u4:4 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
Warning: Permanently added '10.128.10.8' (ED25519) to the list of known hosts.
2024/01/22 06:13:05 fuzzer started
2024/01/22 06:13:05 connecting to host at 10.128.0.169:33315
2024/01/22 06:13:05 checking machine...
2024/01/22 06:13:05 checking revisions...
2024/01/22 06:13:05 testing simple program...
[ 68.389525][ T5067] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 68.397192][ T5067] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 68.405370][ T5067] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 68.413611][ T5067] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 68.421222][ T5067] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 68.428558][ T5067] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 68.578320][ T5065] chnl_net:caif_netlink_parms(): no params data found
[ 68.651244][ T5065] bridge0: port 1(bridge_slave_0) entered blocking state
[ 68.658372][ T5065] bridge0: port 1(bridge_slave_0) entered disabled state
[ 68.666595][ T5065] bridge_slave_0: entered allmulticast mode
[ 68.673827][ T5065] bridge_slave_0: entered promiscuous mode
[ 68.683427][ T5065] bridge0: port 2(bridge_slave_1) entered blocking state
[ 68.690643][ T5065] bridge0: port 2(bridge_slave_1) entered disabled state
[ 68.697778][ T5065] bridge_slave_1: entered allmulticast mode
[ 68.705281][ T5065] bridge_slave_1: entered promiscuous mode
[ 68.737284][ T5065] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 68.749252][ T5065] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 68.782789][ T5065] team0: Port device team_slave_0 added
[ 68.792145][ T5065] team0: Port device team_slave_1 added
[ 68.820682][ T5065] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 68.827647][ T5065] 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.
[ 68.853578][ T5065] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 68.866421][ T5065] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 68.873436][ T5065] 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.
[ 68.899393][ T5065] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 68.939914][ T5065] hsr_slave_0: entered promiscuous mode
[ 68.946967][ T5065] hsr_slave_1: entered promiscuous mode
[ 69.083970][ T5065] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 69.097497][ T5065] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 69.107920][ T5065] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 69.118175][ T5065] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 69.147145][ T5065] bridge0: port 2(bridge_slave_1) entered blocking state
[ 69.154409][ T5065] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 69.162498][ T5065] bridge0: port 1(bridge_slave_0) entered blocking state
[ 69.169714][ T5065] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 69.241942][ T5065] 8021q: adding VLAN 0 to HW filter on device bond0
[ 69.260673][ T4823] bridge0: port 1(bridge_slave_0) entered disabled state
[ 69.269257][ T4823] bridge0: port 2(bridge_slave_1) entered disabled state
[ 69.285954][ T5065] 8021q: adding VLAN 0 to HW filter on device team0
[ 69.300016][ T8] bridge0: port 1(bridge_slave_0) entered blocking state
[ 69.307147][ T8] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 69.321367][ T5075] bridge0: port 2(bridge_slave_1) entered blocking state
[ 69.328505][ T5075] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 69.377897][ T5065] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
[ 69.416447][ T5065] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 69.596950][ T5065] veth0_vlan: entered promiscuous mode
[ 69.612492][ T5065] veth1_vlan: entered promiscuous mode
[ 69.651857][ T5065] veth0_macvtap: entered promiscuous mode
[ 69.662758][ T5065] veth1_macvtap: entered promiscuous mode
[ 69.683994][ T5065] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 69.698839][ T5065] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 69.712328][ T5065] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 69.722739][ T5065] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 69.732519][ T5065] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 69.741242][ T5065] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
executing program
[ 69.818927][ T2880] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 69.832496][ T2880] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 69.862694][ T59] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 69.872972][ T59] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
2024/01/22 06:13:08 building call list...
executing program
[ 73.094066][ T59] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 74.378841][ T5086] can: request_module (can-proto-0) failed.
[ 74.426403][ T5086] can: request_module (can-proto-0) failed.
[ 74.475483][ T5086] can: request_module (can-proto-0) failed.
[ 75.291164][ T5086] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 75.667989][ T59] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
executing program
[ 75.739919][ T59] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 75.861477][ T59] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 75.969538][ T5086] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 76.127542][ T59] INFO: trying to register non-static key.
[ 76.133381][ T59] The code is fine but needs lockdep annotation, or maybe
[ 76.140487][ T59] you didn't initialize this object before use?
[ 76.146722][ T59] turning off the locking correctness validator.
[ 76.153045][ T59] CPU: 1 PID: 59 Comm: kworker/u4:4 Not tainted 6.8.0-rc1-next-20240122-syzkaller-g319fbd8fc6d3 #0
[ 76.163727][ T59] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
[ 76.173801][ T59] Workqueue: netns cleanup_net
[ 76.178672][ T59] Call Trace:
[ 76.181956][ T59]
[ 76.184893][ T59] dump_stack_lvl+0xd9/0x1b0
[ 76.189505][ T59] register_lock_class+0xc2a/0x1230
[ 76.194727][ T59] ? __switch_to+0x749/0x1370
[ 76.199427][ T59] ? __pfx_register_lock_class+0x10/0x10
[ 76.205084][ T59] ? mark_held_locks+0x9f/0xe0
[ 76.209878][ T59] __lock_acquire+0x111/0x3b30
[ 76.214674][ T59] ? lock_acquire+0x1f2/0x540
[ 76.219375][ T59] ? __pfx___lock_acquire+0x10/0x10
[ 76.224638][ T59] lock_acquire+0x1b1/0x540
[ 76.229166][ T59] ? inet_csk_listen_stop+0x35a/0x11e0
[ 76.234642][ T59] ? __pfx_lock_acquire+0x10/0x10
[ 76.239692][ T59] ? trace_inet_sock_set_state+0x19d/0x1f0
[ 76.245522][ T59] ? inet_sk_state_store+0x49/0x90
[ 76.250657][ T59] ? tcp_set_state+0x249/0x800
[ 76.255445][ T59] _raw_spin_lock_bh+0x33/0x40
[ 76.260221][ T59] ? inet_csk_listen_stop+0x35a/0x11e0
[ 76.265695][ T59] inet_csk_listen_stop+0x35a/0x11e0
[ 76.271002][ T59] ? tcp_close+0x1d/0xc0
[ 76.275260][ T59] __tcp_close+0xc6f/0xfe0
[ 76.279694][ T59] tcp_close+0x2d/0xc0
[ 76.283775][ T59] inet_release+0x134/0x270
[ 76.288297][ T59] ? __pfx_sock_def_readable+0x10/0x10
[ 76.293771][ T59] inet6_release+0x4f/0x70
[ 76.298204][ T59] sock_release+0x8e/0x1d0
[ 76.302642][ T59] rds_tcp_listen_stop+0x114/0x150
[ 76.307779][ T59] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 76.313171][ T59] rds_tcp_exit_net+0xcc/0x820
[ 76.317964][ T59] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 76.323355][ T59] ? __pfx___might_resched+0x10/0x10
[ 76.328743][ T59] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 76.334140][ T59] ops_exit_list+0xb0/0x180
[ 76.338673][ T59] cleanup_net+0x508/0xb20
[ 76.343111][ T59] ? __pfx_cleanup_net+0x10/0x10
[ 76.348072][ T59] process_one_work+0x8d5/0x16e0
[ 76.353030][ T59] ? __pfx_batadv_nc_worker+0x10/0x10
[ 76.358421][ T59] ? __pfx_process_one_work+0x10/0x10
[ 76.363812][ T59] ? assign_work+0x1a0/0x250
[ 76.368427][ T59] worker_thread+0x8b6/0x1290
[ 76.373124][ T59] ? __pfx_worker_thread+0x10/0x10
[ 76.378247][ T59] kthread+0x2c1/0x3a0
[ 76.382336][ T59] ? _raw_spin_unlock_irq+0x23/0x50
[ 76.387550][ T59] ? __pfx_kthread+0x10/0x10
[ 76.392164][ T59] ret_from_fork+0x45/0x80
[ 76.396600][ T59] ? __pfx_kthread+0x10/0x10
[ 76.401209][ T59] ret_from_fork_asm+0x1a/0x30
[ 76.406003][ T59]
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-build1815645050=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at 1bf9a662c
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=1bf9a662c66aa432ff2fe3bf2562578cef626c09 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20201113-153758'" "-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=1bf9a662c66aa432ff2fe3bf2562578cef626c09 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20201113-153758'" "-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=1bf9a662c66aa432ff2fe3bf2562578cef626c09 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20201113-153758'" "-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=\"1bf9a662c66aa432ff2fe3bf2562578cef626c09\"