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: 35 Comm: kworker/u4:2 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.72' (ED25519) to the list of known hosts.
2024/01/24 00:07:56 ignoring optional flag "pprof_port"="0"
2024/01/24 00:07:56 ignoring optional flag "reset_acc_state"="false"
2024/01/24 00:07:56 fuzzer started
2024/01/24 00:07:56 connecting to host at 10.128.0.169:40419
2024/01/24 00:07:56 checking machine...
2024/01/24 00:07:56 checking revisions...
2024/01/24 00:07:56 testing simple program...
[ 73.909600][ T5059] cgroup: Unknown subsys name 'net'
[ 74.054828][ T5059] cgroup: Unknown subsys name 'rlimit'
[ 75.671126][ T5059] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 75.871256][ T51] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 75.879772][ T51] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 75.887603][ T51] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 75.896381][ T51] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 75.904334][ T51] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 75.912116][ T51] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 76.096841][ T5062] chnl_net:caif_netlink_parms(): no params data found
[ 76.176287][ T5062] bridge0: port 1(bridge_slave_0) entered blocking state
[ 76.183984][ T5062] bridge0: port 1(bridge_slave_0) entered disabled state
[ 76.191469][ T5062] bridge_slave_0: entered allmulticast mode
[ 76.198798][ T5062] bridge_slave_0: entered promiscuous mode
[ 76.209453][ T5062] bridge0: port 2(bridge_slave_1) entered blocking state
[ 76.216801][ T5062] bridge0: port 2(bridge_slave_1) entered disabled state
[ 76.224047][ T5062] bridge_slave_1: entered allmulticast mode
[ 76.231375][ T5062] bridge_slave_1: entered promiscuous mode
[ 76.265146][ T5062] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 76.278861][ T5062] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 76.314230][ T5062] team0: Port device team_slave_0 added
[ 76.323144][ T5062] team0: Port device team_slave_1 added
[ 76.353237][ T5062] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 76.360702][ T5062] 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.387333][ T5062] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 76.401516][ T5062] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 76.408739][ T5062] 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.435226][ T5062] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 76.483713][ T5062] hsr_slave_0: entered promiscuous mode
[ 76.491046][ T5062] hsr_slave_1: entered promiscuous mode
[ 76.645815][ T5062] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 76.659275][ T5062] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 76.670693][ T5062] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 76.683161][ T5062] netdevsim netdevsim0 netdevsim3: renamed from eth3
executing program
[ 76.720486][ T5062] bridge0: port 2(bridge_slave_1) entered blocking state
[ 76.727933][ T5062] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 76.736598][ T5062] bridge0: port 1(bridge_slave_0) entered blocking state
[ 76.744029][ T5062] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 76.826273][ T5062] 8021q: adding VLAN 0 to HW filter on device bond0
[ 76.850832][ T780] bridge0: port 1(bridge_slave_0) entered disabled state
[ 76.861239][ T780] bridge0: port 2(bridge_slave_1) entered disabled state
[ 76.880348][ T5062] 8021q: adding VLAN 0 to HW filter on device team0
[ 76.900860][ T5073] bridge0: port 1(bridge_slave_0) entered blocking state
[ 76.908610][ T5073] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 76.918457][ T5073] bridge0: port 2(bridge_slave_1) entered blocking state
[ 76.926208][ T5073] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 77.113947][ T5062] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 77.164210][ T5062] veth0_vlan: entered promiscuous mode
[ 77.181585][ T5062] veth1_vlan: entered promiscuous mode
[ 77.223808][ T5062] veth0_macvtap: entered promiscuous mode
[ 77.238382][ T5062] veth1_macvtap: entered promiscuous mode
[ 77.260477][ T5062] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 77.279306][ T5062] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 77.293522][ T5062] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.303561][ T5062] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.314202][ T5062] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.323848][ T5062] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 77.418257][ T2982] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 77.439368][ T2982] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 77.474430][ T2982] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 77.482970][ T2982] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
2024/01/24 00:08:00 building call list...
executing program
[ 80.446399][ T35] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 82.647153][ T35] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
executing program
[ 82.760109][ T5053] 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.
[ 82.839846][ T35] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 82.987341][ T35] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 83.421067][ T5053] can: request_module (can-proto-0) failed.
[ 83.464927][ T35] INFO: trying to register non-static key.
[ 83.470962][ T35] The code is fine but needs lockdep annotation, or maybe
[ 83.478550][ T35] you didn't initialize this object before use?
[ 83.484889][ T35] turning off the locking correctness validator.
[ 83.491233][ T35] CPU: 1 PID: 35 Comm: kworker/u4:2 Not tainted 6.8.0-rc1-next-20240123-syzkaller-g774551425799 #0
[ 83.502019][ T35] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
[ 83.512176][ T35] Workqueue: netns cleanup_net
[ 83.516959][ T35] Call Trace:
[ 83.520229][ T35]
[ 83.523330][ T35] dump_stack_lvl+0xd9/0x1b0
[ 83.528275][ T35] register_lock_class+0xc2a/0x1230
[ 83.533492][ T35] ? lockdep_unlock+0x11a/0x290
[ 83.538519][ T35] ? __lock_acquire+0x1fb0/0x3b30
[ 83.543549][ T35] ? __pfx_register_lock_class+0x10/0x10
[ 83.549193][ T35] __lock_acquire+0x111/0x3b30
[ 83.554165][ T35] ? lock_acquire+0x1b1/0x540
[ 83.558941][ T35] ? __pfx___lock_acquire+0x10/0x10
[ 83.564147][ T35] ? inet_unhash+0x464/0x6e0
[ 83.568746][ T35] lock_acquire+0x1b1/0x540
[ 83.573343][ T35] ? inet_csk_listen_stop+0x35a/0x11e0
[ 83.578877][ T35] ? __pfx_lock_acquire+0x10/0x10
[ 83.583912][ T35] ? trace_inet_sock_set_state+0x19d/0x1f0
[ 83.589894][ T35] ? inet_sk_state_store+0x49/0x90
[ 83.595008][ T35] ? tcp_set_state+0x249/0x800
[ 83.600396][ T35] _raw_spin_lock_bh+0x33/0x40
[ 83.605168][ T35] ? inet_csk_listen_stop+0x35a/0x11e0
[ 83.610800][ T35] inet_csk_listen_stop+0x35a/0x11e0
[ 83.616096][ T35] ? tcp_close+0x1d/0xc0
[ 83.620368][ T35] __tcp_close+0xc6f/0xfe0
[ 83.624882][ T35] tcp_close+0x2d/0xc0
[ 83.629062][ T35] inet_release+0x134/0x270
[ 83.633617][ T35] ? __pfx_sock_def_readable+0x10/0x10
[ 83.639169][ T35] inet6_release+0x4f/0x70
[ 83.643692][ T35] sock_release+0x8e/0x1d0
[ 83.648113][ T35] rds_tcp_listen_stop+0x114/0x150
[ 83.653316][ T35] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 83.658954][ T35] rds_tcp_exit_net+0xcc/0x820
[ 83.663734][ T35] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 83.669127][ T35] ? __pfx___might_resched+0x10/0x10
[ 83.674412][ T35] ? __pfx_rds_tcp_exit_net+0x10/0x10
[ 83.680223][ T35] ops_exit_list+0xb0/0x180
[ 83.684903][ T35] cleanup_net+0x508/0xb20
[ 83.689493][ T35] ? __pfx_cleanup_net+0x10/0x10
[ 83.694429][ T35] process_one_work+0x8d5/0x16e0
[ 83.699448][ T35] ? __pfx_lock_acquire+0x10/0x10
[ 83.704482][ T35] ? __pfx_process_one_work+0x10/0x10
[ 83.710028][ T35] ? assign_work+0x1a0/0x250
[ 83.714632][ T35] worker_thread+0x8b6/0x1290
[ 83.719309][ T35] ? __kthread_parkme+0x148/0x220
[ 83.724508][ T35] ? __pfx_worker_thread+0x10/0x10
[ 83.729623][ T35] kthread+0x2c1/0x3a0
[ 83.733692][ T35] ? _raw_spin_unlock_irq+0x23/0x50
[ 83.738885][ T35] ? __pfx_kthread+0x10/0x10
[ 83.743509][ T35] ret_from_fork+0x45/0x80
[ 83.747950][ T35] ? __pfx_kthread+0x10/0x10
[ 83.752576][ T35] ret_from_fork_asm+0x1a/0x30
[ 83.757360][ T35]
[ 83.833192][ T5053] can: request_module (can-proto-0) failed.
[ 83.872190][ T5053] can: request_module (can-proto-0) failed.
[ 84.569739][ T35] hsr_slave_0: left promiscuous mode
[ 84.586174][ T35] hsr_slave_1: left promiscuous mode
[ 84.600449][ T35] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 84.615111][ T35] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 84.645177][ T35] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 84.652697][ T35] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 84.675755][ T35] bridge_slave_1: left allmulticast mode
[ 84.682383][ T35] bridge_slave_1: left promiscuous mode
[ 84.689695][ T35] bridge0: port 2(bridge_slave_1) entered disabled state
[ 84.700506][ T35] bridge_slave_0: left allmulticast mode
[ 84.706634][ T35] bridge_slave_0: left promiscuous mode
[ 84.712942][ T35] bridge0: port 1(bridge_slave_0) entered disabled state
[ 84.727505][ T35] veth1_macvtap: left promiscuous mode
[ 84.733105][ T5053] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 84.733137][ T35] veth0_macvtap: left promiscuous mode
[ 84.752036][ T35] veth1_vlan: left promiscuous mode
[ 84.757466][ T35] veth0_vlan: left promiscuous mode
[ 85.041727][ T35] team0 (unregistering): Port device team_slave_1 removed
[ 85.068603][ T35] team0 (unregistering): Port device team_slave_0 removed
[ 85.087524][ T35] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 85.119261][ T35] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 85.223550][ T35] bond0 (unregistering): Released all slaves
[ 85.254232][ T5053] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 85.267858][ T5053] base_sock_release(ffff88807e760000) sk=ffff88802cc04000
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-build1342303856=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at 0b6a67ac4
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=0b6a67ac4b0dc26f43030c5edd01c9175f13b784 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230913-073137'" "-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=0b6a67ac4b0dc26f43030c5edd01c9175f13b784 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230913-073137'" "-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=0b6a67ac4b0dc26f43030c5edd01c9175f13b784 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230913-073137'" "-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=\"0b6a67ac4b0dc26f43030c5edd01c9175f13b784\"