INFO: trying to register non-static key in inet_csk_listen_stop
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: 75 Comm: kworker/u4:4 Not tainted 6.8.0-rc1-next-20240123-syzkaller-g774551425799 #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.65' (ED25519) to the list of known hosts.
2024/01/24 03:45:36 ignoring optional flag "raw_cover"="false"
2024/01/24 03:45:36 ignoring optional flag "sandbox_arg"="0"
2024/01/24 03:45:36 ignoring optional flag "pprof_port"="0"
2024/01/24 03:45:36 ignoring optional flag "reset_acc_state"="false"
2024/01/24 03:45:36 fuzzer started
2024/01/24 03:45:36 connecting to host at 10.128.0.169:40115
2024/01/24 03:45:36 checking machine...
2024/01/24 03:45:36 checking revisions...
2024/01/24 03:45:36 testing simple program...
[ 76.224635][ T51] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 76.234303][ T51] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 76.242463][ T51] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 76.251768][ T51] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 76.260846][ T51] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 76.268826][ T51] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 76.432817][ T5067] chnl_net:caif_netlink_parms(): no params data found
[ 76.515887][ T5067] bridge0: port 1(bridge_slave_0) entered blocking state
[ 76.523844][ T5067] bridge0: port 1(bridge_slave_0) entered disabled state
[ 76.531415][ T5067] bridge_slave_0: entered allmulticast mode
[ 76.539996][ T5067] bridge_slave_0: entered promiscuous mode
[ 76.550101][ T5067] bridge0: port 2(bridge_slave_1) entered blocking state
[ 76.557771][ T5067] bridge0: port 2(bridge_slave_1) entered disabled state
[ 76.565089][ T5067] bridge_slave_1: entered allmulticast mode
[ 76.572417][ T5067] bridge_slave_1: entered promiscuous mode
[ 76.609300][ T5067] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 76.621527][ T5067] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 76.660003][ T5067] team0: Port device team_slave_0 added
[ 76.669053][ T5067] team0: Port device team_slave_1 added
[ 76.700037][ T5067] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 76.707158][ T5067] 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.
[ 76.735263][ T5067] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 76.748544][ T5067] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 76.755579][ T5067] 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.
[ 76.781840][ T5067] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 76.825288][ T5067] hsr_slave_0: entered promiscuous mode
[ 76.831772][ T5067] hsr_slave_1: entered promiscuous mode
[ 76.988929][ T5067] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 77.001511][ T5067] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 77.012539][ T5067] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 77.023948][ T5067] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 77.059543][ T5067] bridge0: port 2(bridge_slave_1) entered blocking state
[ 77.066873][ T5067] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 77.075482][ T5067] bridge0: port 1(bridge_slave_0) entered blocking state
[ 77.083075][ T5067] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 77.160215][ T5067] 8021q: adding VLAN 0 to HW filter on device bond0
[ 77.180211][ T1782] bridge0: port 1(bridge_slave_0) entered disabled state
[ 77.189779][ T1782] bridge0: port 2(bridge_slave_1) entered disabled state
[ 77.207885][ T5067] 8021q: adding VLAN 0 to HW filter on device team0
[ 77.228687][ T1782] bridge0: port 1(bridge_slave_0) entered blocking state
[ 77.235956][ T1782] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 77.246972][ T1782] bridge0: port 2(bridge_slave_1) entered blocking state
[ 77.254230][ T1782] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 77.347402][ T5067] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 77.545308][ T5067] veth0_vlan: entered promiscuous mode
[ 77.566472][ T5067] veth1_vlan: entered promiscuous mode
executing program
[ 77.604169][ T5067] veth0_macvtap: entered promiscuous mode
[ 77.615954][ T5067] veth1_macvtap: entered promiscuous mode
[ 77.637559][ T5067] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 77.656960][ T5067] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 77.675943][ T5067] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.686201][ T5067] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.697046][ T5067] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.706131][ T5067] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.796329][ T75] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 77.809400][ T75] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 77.841464][ T2481] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 77.850874][ T2481] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
2024/01/24 03:45:39 building call list...
executing program
[ 81.057383][ T75] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 82.944577][ T5057] can: request_module (can-proto-0) failed.
[ 83.002480][ T5057] can: request_module (can-proto-0) failed.
[ 83.051573][ T5057] can: request_module (can-proto-0) failed.
[ 83.240527][ T75] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 83.356942][ T75] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 83.498935][ T75] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
executing program
[ 83.850565][ T75] INFO: trying to register non-static key.
[ 83.856510][ T75] The code is fine but needs lockdep annotation, or maybe
[ 83.863640][ T75] you didn't initialize this object before use?
[ 83.869903][ T75] turning off the locking correctness validator.
[ 83.876244][ T75] CPU: 1 PID: 75 Comm: kworker/u4:4 Not tainted 6.8.0-rc1-next-20240123-syzkaller-g774551425799 #0
[ 83.886941][ T75] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
[ 83.897010][ T75] Workqueue: netns cleanup_net
[ 83.901789][ T75] Call Trace:
[ 83.905250][ T75]
[ 83.908267][ T75] dump_stack_lvl+0xd9/0x1b0
[ 83.912953][ T75] register_lock_class+0xc2a/0x1230
[ 83.918423][ T75] ? lockdep_unlock+0x11a/0x290
[ 83.923363][ T75] ? __lock_acquire+0x1fb0/0x3b30
[ 83.928393][ T75] ? __pfx_register_lock_class+0x10/0x10
[ 83.934298][ T75] __lock_acquire+0x111/0x3b30
[ 83.939249][ T75] ? lock_acquire+0x1b1/0x540
[ 83.943933][ T75] ? __pfx___lock_acquire+0x10/0x10
[ 83.949226][ T75] ? inet_unhash+0x464/0x6e0
[ 83.953956][ T75] lock_acquire+0x1b1/0x540
[ 83.959627][ T75] ? inet_csk_listen_stop+0x35a/0x11e0
[ 83.965133][ T75] ? __pfx_lock_acquire+0x10/0x10
[ 83.970182][ T75] ? trace_inet_sock_set_state+0x19d/0x1f0
[ 83.976013][ T75] ? inet_sk_state_store+0x49/0x90
[ 83.981244][ T75] ? tcp_set_state+0x249/0x800
[ 83.986038][ T75] _raw_spin_lock_bh+0x33/0x40
[ 83.990825][ T75] ? inet_csk_listen_stop+0x35a/0x11e0
[ 83.996397][ T75] inet_csk_listen_stop+0x35a/0x11e0
[ 84.001714][ T75] ? tcp_close+0x1d/0xc0
[ 84.005977][ T75] __tcp_close+0xc6f/0xfe0
[ 84.010410][ T75] tcp_close+0x2d/0xc0
[ 84.014660][ T75] inet_release+0x134/0x270
[ 84.019170][ T75] ? __pfx_sock_def_readable+0x10/0x10
[ 84.024726][ T75] inet6_release+0x4f/0x70
[ 84.029178][ T75] sock_release+0x8e/0x1d0
[ 84.033635][ T75] rds_tcp_listen_stop+0x114/0x150
[ 84.038978][ T75] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 84.044970][ T75] rds_tcp_exit_net+0xcc/0x820
[ 84.049795][ T75] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 84.055171][ T75] ? __pfx___might_resched+0x10/0x10
[ 84.060582][ T75] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 84.065981][ T75] ops_exit_list+0xb0/0x180
[ 84.070592][ T75] cleanup_net+0x508/0xb20
[ 84.075016][ T75] ? __pfx_cleanup_net+0x10/0x10
[ 84.080045][ T75] process_one_work+0x8d5/0x16e0
[ 84.085080][ T75] ? __pfx_lock_acquire+0x10/0x10
[ 84.090111][ T75] ? __pfx_process_one_work+0x10/0x10
[ 84.095857][ T75] ? assign_work+0x1a0/0x250
[ 84.100547][ T75] worker_thread+0x8b6/0x1290
[ 84.105486][ T75] ? __kthread_parkme+0x148/0x220
[ 84.110955][ T75] ? __pfx_worker_thread+0x10/0x10
[ 84.116249][ T75] kthread+0x2c1/0x3a0
[ 84.120423][ T75] ? _raw_spin_unlock_irq+0x23/0x50
[ 84.125634][ T75] ? __pfx_kthread+0x10/0x10
[ 84.130292][ T75] ret_from_fork+0x45/0x80
[ 84.134719][ T75] ? __pfx_kthread+0x10/0x10
[ 84.139400][ T75] ret_from_fork_asm+0x1a/0x30
[ 84.144242][ T75]
[ 84.334888][ T5057] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 84.872336][ T75] hsr_slave_0: left promiscuous mode
[ 84.883538][ T75] hsr_slave_1: left promiscuous mode
[ 84.892757][ T75] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 84.901576][ T75] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 84.912166][ T75] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 84.920093][ T75] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 84.929283][ T75] bridge_slave_1: left allmulticast mode
[ 84.943522][ T75] bridge_slave_1: left promiscuous mode
[ 84.953991][ T75] bridge0: port 2(bridge_slave_1) entered disabled state
[ 84.964575][ T75] bridge_slave_0: left allmulticast mode
[ 84.970421][ T75] bridge_slave_0: left promiscuous mode
[ 84.978410][ T75] bridge0: port 1(bridge_slave_0) entered disabled state
[ 84.978438][ T5057] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 85.004894][ T75] veth1_macvtap: left promiscuous mode
[ 85.010743][ T75] veth0_macvtap: left promiscuous mode
[ 85.017109][ T75] veth1_vlan: left promiscuous mode
[ 85.022887][ T75] veth0_vlan: left promiscuous mode
[ 85.048149][ T5057] base_sock_release(ffff88807df86c00) sk=ffff88802e19c000
[ 85.294699][ T75] team0 (unregistering): Port device team_slave_1 removed
[ 85.309084][ T75] team0 (unregistering): Port device team_slave_0 removed
[ 85.321539][ T75] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 85.337200][ T75] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 85.403332][ T75] 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-build3382639053=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at a8529b82f
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=a8529b82fb3bb45832b08a099e7eb51707da9b37 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210326-100720'" "-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=a8529b82fb3bb45832b08a099e7eb51707da9b37 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210326-100720'" "-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=a8529b82fb3bb45832b08a099e7eb51707da9b37 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210326-100720'" "-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=\"a8529b82fb3bb45832b08a099e7eb51707da9b37\"