[PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure

Mehdi Ben Hadj Khelifa posted 1 patch 2 months, 3 weeks ago
There is a newer version of this series
[PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure
Posted by Mehdi Ben Hadj Khelifa 2 months, 3 weeks ago
#syz test

diff --git a/fs/super.c b/fs/super.c
index 5bab94fb7e03..a99e5281b057 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -1690,6 +1690,11 @@ int get_tree_bdev_flags(struct fs_context *fc,
 		if (!error)
 			error = fill_super(s, fc);
 		if (error) {
+			/*
+			 * return back sb_info ownership to fc to be freed by put_fs_context()
+			 */
+			fc->s_fs_info = s->s_fs_info;
+			s->s_fs_info = NULL;
 			deactivate_locked_super(s);
 			return error;
 		}
-- 
2.51.2
Re: [PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure
Posted by Christian Brauner 2 months, 2 weeks ago
On Fri, Nov 14, 2025 at 06:12:12AM +0100, Mehdi Ben Hadj Khelifa wrote:
> #syz test
> 
> diff --git a/fs/super.c b/fs/super.c
> index 5bab94fb7e03..a99e5281b057 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -1690,6 +1690,11 @@ int get_tree_bdev_flags(struct fs_context *fc,
>  		if (!error)
>  			error = fill_super(s, fc);
>  		if (error) {
> +			/*
> +			 * return back sb_info ownership to fc to be freed by put_fs_context()
> +			 */
> +			fc->s_fs_info = s->s_fs_info;
> +			s->s_fs_info = NULL;
>  			deactivate_locked_super(s);
>  			return error;
>  		}

#syz test: https://github.com/brauner/linux.git work.hfs.fixes
Re: [syzbot] [hfs?] memory leak in hfs_init_fs_context
Posted by syzbot 2 months, 2 weeks ago
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

pc

SYZFAIL: failed to recv rpc
fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)


Warning: Permanently added '10.128.10.29' (ED25519) to the list of known hosts.
2025/11/19 14:11:52 parsed 1 programs
[   42.022753][ T5811] cgroup: Unknown subsys name 'net'
[   42.175712][ T5811] cgroup: Unknown subsys name 'cpuset'
[   42.182256][ T5811] cgroup: Unknown subsys name 'rlimit'
Setting up swapspace version 1, size = 127995904 bytes
[   50.184013][ T5811] Adding 124996k swap on ./swap-file.  Priority:0 extents:1 across:124996k 
[   51.419720][ T5824] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.
[   51.816926][   T58] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   51.825249][   T58] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[   51.836771][   T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   51.844633][   T31] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[   51.992800][ T5887] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[   52.000051][ T5887] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[   52.007203][ T5887] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[   52.014500][ T5887] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[   52.021816][ T5887] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[   52.104921][ T5895] chnl_net:caif_netlink_parms(): no params data found
[   52.123774][ T5895] bridge0: port 1(bridge_slave_0) entered blocking state
[   52.130962][ T5895] bridge0: port 1(bridge_slave_0) entered disabled state
[   52.138313][ T5895] bridge_slave_0: entered allmulticast mode
[   52.144523][ T5895] bridge_slave_0: entered promiscuous mode
[   52.151904][ T5895] bridge0: port 2(bridge_slave_1) entered blocking state
[   52.159070][ T5895] bridge0: port 2(bridge_slave_1) entered disabled state
[   52.166257][ T5895] bridge_slave_1: entered allmulticast mode
[   52.172607][ T5895] bridge_slave_1: entered promiscuous mode
[   52.184675][ T5895] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[   52.194790][ T5895] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[   52.210335][ T5895] team0: Port device team_slave_0 added
[   52.216530][ T5895] team0: Port device team_slave_1 added
[   52.226332][ T5895] batman_adv: batadv0: Adding interface: batadv_slave_0
[   52.233294][ T5895] 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 1532 would solve the problem.
[   52.259593][ T5895] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[   52.270857][ T5895] batman_adv: batadv0: Adding interface: batadv_slave_1
[   52.277950][ T5895] 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 1532 would solve the problem.
[   52.304091][ T5895] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[   52.330778][ T5895] hsr_slave_0: entered promiscuous mode
[   52.337739][ T5895] hsr_slave_1: entered promiscuous mode
[   52.365548][ T5895] netdevsim netdevsim0 netdevsim0: renamed from eth0
[   52.373816][ T5895] netdevsim netdevsim0 netdevsim1: renamed from eth1
[   52.382570][ T5895] netdevsim netdevsim0 netdevsim2: renamed from eth2
[   52.390442][ T5895] netdevsim netdevsim0 netdevsim3: renamed from eth3
[   52.402050][ T5895] bridge0: port 2(bridge_slave_1) entered blocking state
[   52.409208][ T5895] bridge0: port 2(bridge_slave_1) entered forwarding state
[   52.416560][ T5895] bridge0: port 1(bridge_slave_0) entered blocking state
[   52.424189][ T5895] bridge0: port 1(bridge_slave_0) entered forwarding state
[   52.442787][ T5895] 8021q: adding VLAN 0 to HW filter on device bond0
[   52.452023][   T31] bridge0: port 1(bridge_slave_0) entered disabled state
[   52.461111][   T31] bridge0: port 2(bridge_slave_1) entered disabled state
[   52.470558][ T5895] 8021q: adding VLAN 0 to HW filter on device team0
[   52.479109][   T31] bridge0: port 1(bridge_slave_0) entered blocking state
[   52.486350][   T31] bridge0: port 1(bridge_slave_0) entered forwarding state
[   52.496004][ T2979] bridge0: port 2(bridge_slave_1) entered blocking state
[   52.503421][ T2979] bridge0: port 2(bridge_slave_1) entered forwarding state
[   52.520122][ T5895] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
[   52.531213][ T5895] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
[   52.567709][ T5895] 8021q: adding VLAN 0 to HW filter on device batadv0
[   52.582539][ T5895] veth0_vlan: entered promiscuous mode
[   52.589714][ T5895] veth1_vlan: entered promiscuous mode
[   52.600093][ T5895] veth0_macvtap: entered promiscuous mode
[   52.606771][ T5895] veth1_macvtap: entered promiscuous mode
[   52.615855][ T5895] batman_adv: batadv0: Interface activated: batadv_slave_0
[   52.625167][ T5895] batman_adv: batadv0: Interface activated: batadv_slave_1
[   52.634137][   T58] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[   52.642907][   T58] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[   52.652172][   T58] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[   52.661018][   T58] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[   52.696362][   T35] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   52.736176][   T35] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   52.776000][   T35] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
2025/11/19 14:12:05 executed programs: 0
[   52.826029][   T35] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   55.913007][   T35] bridge_slave_1: left allmulticast mode
[   55.924242][   T35] bridge_slave_1: left promiscuous mode
[   55.930898][   T35] bridge0: port 2(bridge_slave_1) entered disabled state
[   55.939182][   T35] bridge_slave_0: left allmulticast mode
[   55.945141][   T35] bridge_slave_0: left promiscuous mode
[   55.951004][   T35] bridge0: port 1(bridge_slave_0) entered disabled state
[   56.026188][   T35] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[   56.036592][   T35] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[   56.046139][   T35] bond0 (unregistering): Released all slaves
[   56.106597][   T35] hsr_slave_0: left promiscuous mode
[   56.112214][   T35] hsr_slave_1: left promiscuous mode
[   56.118098][   T35] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[   56.126443][   T35] batman_adv: batadv0: Removing interface: batadv_slave_0
[   56.133898][   T35] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[   56.141694][   T35] batman_adv: batadv0: Removing interface: batadv_slave_1
[   56.150927][   T35] veth1_macvtap: left promiscuous mode
[   56.157067][   T35] veth0_macvtap: left promiscuous mode
[   56.163187][   T35] veth1_vlan: left promiscuous mode
[   56.168965][   T35] veth0_vlan: left promiscuous mode
[   56.196836][   T35] team0 (unregistering): Port device team_slave_1 removed
[   56.205815][   T35] team0 (unregistering): Port device team_slave_0 removed
[   58.084150][ T5133] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[   58.091289][ T5133] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[   58.098477][ T5133] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[   58.105739][ T5133] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[   58.112872][ T5133] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[   58.147089][ T5988] chnl_net:caif_netlink_parms(): no params data found
[   58.166338][ T5988] bridge0: port 1(bridge_slave_0) entered blocking state
[   58.173578][ T5988] bridge0: port 1(bridge_slave_0) entered disabled state
[   58.180784][ T5988] bridge_slave_0: entered allmulticast mode
[   58.187051][ T5988] bridge_slave_0: entered promiscuous mode
[   58.193583][ T5988] bridge0: port 2(bridge_slave_1) entered blocking state
[   58.200740][ T5988] bridge0: port 2(bridge_slave_1) entered disabled state
[   58.207833][ T5988] bridge_slave_1: entered allmulticast mode
[   58.214030][ T5988] bridge_slave_1: entered promiscuous mode
[   58.225238][ T5988] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[   58.235910][ T5988] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[   58.251413][ T5988] team0: Port device team_slave_0 added
[   58.257776][ T5988] team0: Port device team_slave_1 added
[   58.267463][ T5988] batman_adv: batadv0: Adding interface: batadv_slave_0
[   58.274482][ T5988] 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 1532 would solve the problem.
[   58.300974][ T5988] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[   58.311990][ T5988] batman_adv: batadv0: Adding interface: batadv_slave_1
[   58.318969][ T5988] 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 1532 would solve the problem.
[   58.344994][ T5988] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[   58.362193][ T5988] hsr_slave_0: entered promiscuous mode
[   58.368062][ T5988] hsr_slave_1: entered promiscuous mode
[   58.548290][ T5988] netdevsim netdevsim0 netdevsim0: renamed from eth0
[   58.556831][ T5988] netdevsim netdevsim0 netdevsim1: renamed from eth1
[   58.564665][ T5988] netdevsim netdevsim0 netdevsim2: renamed from eth2
[   58.572522][ T5988] netdevsim netdevsim0 netdevsim3: renamed from eth3
[   58.586118][ T5988] bridge0: port 2(bridge_slave_1) entered blocking state
[   58.593280][ T5988] bridge0: port 2(bridge_slave_1) entered forwarding state
[   58.600654][ T5988] bridge0: port 1(bridge_slave_0) entered blocking state
[   58.607726][ T5988] bridge0: port 1(bridge_slave_0) entered forwarding state
[   58.630191][ T5988] 8021q: adding VLAN 0 to HW filter on device bond0
[   58.640402][   T58] bridge0: port 1(bridge_slave_0) entered disabled state
[   58.649632][   T58] bridge0: port 2(bridge_slave_1) entered disabled state
[   58.659837][ T5988] 8021q: adding VLAN 0 to HW filter on device team0
[   58.669532][   T58] bridge0: port 1(bridge_slave_0) entered blocking state
[   58.676712][   T58] bridge0: port 1(bridge_slave_0) entered forwarding state
[   58.686492][   T35] bridge0: port 2(bridge_slave_1) entered blocking state
[   58.693655][   T35] bridge0: port 2(bridge_slave_1) entered forwarding state
[   58.709390][ T5988] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
[   58.720129][ T5988] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
[   58.769091][ T5988] 8021q: adding VLAN 0 to HW filter on device batadv0
[   58.787789][ T5988] veth0_vlan: entered promiscuous mode
[   58.795800][ T5988] veth1_vlan: entered promiscuous mode
[   58.808550][ T5988] veth0_macvtap: entered promiscuous mode
[   58.816434][ T5988] veth1_macvtap: entered promiscuous mode
[   58.826869][ T5988] batman_adv: batadv0: Interface activated: batadv_slave_0
[   58.837590][ T5988] batman_adv: batadv0: Interface activated: batadv_slave_1
[   58.847552][ T2979] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[   58.862969][ T2979] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[   58.881016][ T2979] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[   58.894676][   T35] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   58.903471][   T35] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
SYZFAIL: failed to recv rpc
fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)
[   58.917260][   T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   58.925507][ T2979] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[   58.934333][   T31] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50


syzkaller build log:
go env (err=<nil>)
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE='auto'
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3582148735=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
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'
GOTELEMETRY='local'
GOTELEMETRYDIR='/syzkaller/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.24.4'
GOWORK=''
PKG_CONFIG='pkg-config'

git status (err=<nil>)
HEAD detached at 4e1406b4d
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:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
mkdir -p ./bin/linux_amd64
g++ -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 -std=c++17 -I. -Iexecutor/_include   -DGOOS_linux=1 -DGOARCH_amd64=1 \
	-DHOSTGOOS_linux=1 -DGIT_REVISION=\"4e1406b4defac0e2a9d9424c70706f79a7750cf3\"
/usr/bin/ld: /tmp/ccMkllK7.o: in function `Connection::Connect(char const*, char const*)':
executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x104): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./tools/check-syzos.sh 2>/dev/null


Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=10715332580000


Tested on:

commit:         058747ce hfs: ensure sb->s_fs_info is always cleaned up
git tree:       https://github.com/brauner/linux.git work.hfs.fixes
kernel config:  https://syzkaller.appspot.com/x/.config?x=f30cc590c4f6da44
dashboard link: https://syzkaller.appspot.com/bug?extid=ad45f827c88778ff7df6
compiler:       gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.
Re: [syzbot] [hfs?] memory leak in hfs_init_fs_context
Posted by Christian Brauner 2 months, 2 weeks ago
On Wed, Nov 19, 2025 at 06:13:08AM -0800, syzbot wrote:
> Hello,
> 
> syzbot tried to test the proposed patch but the build/boot failed:
> 
> pc
> 
> SYZFAIL: failed to recv rpc
> fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)
> 
> 
> Warning: Permanently added '10.128.10.29' (ED25519) to the list of known hosts.
> 2025/11/19 14:11:52 parsed 1 programs
> [   42.022753][ T5811] cgroup: Unknown subsys name 'net'
> [   42.175712][ T5811] cgroup: Unknown subsys name 'cpuset'
> [   42.182256][ T5811] cgroup: Unknown subsys name 'rlimit'
> Setting up swapspace version 1, size = 127995904 bytes
> [   50.184013][ T5811] Adding 124996k swap on ./swap-file.  Priority:0 extents:1 across:124996k 
> [   51.419720][ T5824] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.
> [   51.816926][   T58] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
> [   51.825249][   T58] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
> [   51.836771][   T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
> [   51.844633][   T31] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
> [   51.992800][ T5887] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
> [   52.000051][ T5887] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
> [   52.007203][ T5887] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
> [   52.014500][ T5887] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
> [   52.021816][ T5887] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
> [   52.104921][ T5895] chnl_net:caif_netlink_parms(): no params data found
> [   52.123774][ T5895] bridge0: port 1(bridge_slave_0) entered blocking state
> [   52.130962][ T5895] bridge0: port 1(bridge_slave_0) entered disabled state
> [   52.138313][ T5895] bridge_slave_0: entered allmulticast mode
> [   52.144523][ T5895] bridge_slave_0: entered promiscuous mode
> [   52.151904][ T5895] bridge0: port 2(bridge_slave_1) entered blocking state
> [   52.159070][ T5895] bridge0: port 2(bridge_slave_1) entered disabled state
> [   52.166257][ T5895] bridge_slave_1: entered allmulticast mode
> [   52.172607][ T5895] bridge_slave_1: entered promiscuous mode
> [   52.184675][ T5895] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
> [   52.194790][ T5895] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
> [   52.210335][ T5895] team0: Port device team_slave_0 added
> [   52.216530][ T5895] team0: Port device team_slave_1 added
> [   52.226332][ T5895] batman_adv: batadv0: Adding interface: batadv_slave_0
> [   52.233294][ T5895] 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 1532 would solve the problem.
> [   52.259593][ T5895] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
> [   52.270857][ T5895] batman_adv: batadv0: Adding interface: batadv_slave_1
> [   52.277950][ T5895] 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 1532 would solve the problem.
> [   52.304091][ T5895] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
> [   52.330778][ T5895] hsr_slave_0: entered promiscuous mode
> [   52.337739][ T5895] hsr_slave_1: entered promiscuous mode
> [   52.365548][ T5895] netdevsim netdevsim0 netdevsim0: renamed from eth0
> [   52.373816][ T5895] netdevsim netdevsim0 netdevsim1: renamed from eth1
> [   52.382570][ T5895] netdevsim netdevsim0 netdevsim2: renamed from eth2
> [   52.390442][ T5895] netdevsim netdevsim0 netdevsim3: renamed from eth3
> [   52.402050][ T5895] bridge0: port 2(bridge_slave_1) entered blocking state
> [   52.409208][ T5895] bridge0: port 2(bridge_slave_1) entered forwarding state
> [   52.416560][ T5895] bridge0: port 1(bridge_slave_0) entered blocking state
> [   52.424189][ T5895] bridge0: port 1(bridge_slave_0) entered forwarding state
> [   52.442787][ T5895] 8021q: adding VLAN 0 to HW filter on device bond0
> [   52.452023][   T31] bridge0: port 1(bridge_slave_0) entered disabled state
> [   52.461111][   T31] bridge0: port 2(bridge_slave_1) entered disabled state
> [   52.470558][ T5895] 8021q: adding VLAN 0 to HW filter on device team0
> [   52.479109][   T31] bridge0: port 1(bridge_slave_0) entered blocking state
> [   52.486350][   T31] bridge0: port 1(bridge_slave_0) entered forwarding state
> [   52.496004][ T2979] bridge0: port 2(bridge_slave_1) entered blocking state
> [   52.503421][ T2979] bridge0: port 2(bridge_slave_1) entered forwarding state
> [   52.520122][ T5895] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
> [   52.531213][ T5895] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
> [   52.567709][ T5895] 8021q: adding VLAN 0 to HW filter on device batadv0
> [   52.582539][ T5895] veth0_vlan: entered promiscuous mode
> [   52.589714][ T5895] veth1_vlan: entered promiscuous mode
> [   52.600093][ T5895] veth0_macvtap: entered promiscuous mode
> [   52.606771][ T5895] veth1_macvtap: entered promiscuous mode
> [   52.615855][ T5895] batman_adv: batadv0: Interface activated: batadv_slave_0
> [   52.625167][ T5895] batman_adv: batadv0: Interface activated: batadv_slave_1
> [   52.634137][   T58] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
> [   52.642907][   T58] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
> [   52.652172][   T58] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
> [   52.661018][   T58] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
> [   52.696362][   T35] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
> [   52.736176][   T35] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
> [   52.776000][   T35] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
> 2025/11/19 14:12:05 executed programs: 0
> [   52.826029][   T35] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
> [   55.913007][   T35] bridge_slave_1: left allmulticast mode
> [   55.924242][   T35] bridge_slave_1: left promiscuous mode
> [   55.930898][   T35] bridge0: port 2(bridge_slave_1) entered disabled state
> [   55.939182][   T35] bridge_slave_0: left allmulticast mode
> [   55.945141][   T35] bridge_slave_0: left promiscuous mode
> [   55.951004][   T35] bridge0: port 1(bridge_slave_0) entered disabled state
> [   56.026188][   T35] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
> [   56.036592][   T35] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
> [   56.046139][   T35] bond0 (unregistering): Released all slaves
> [   56.106597][   T35] hsr_slave_0: left promiscuous mode
> [   56.112214][   T35] hsr_slave_1: left promiscuous mode
> [   56.118098][   T35] batman_adv: batadv0: Interface deactivated: batadv_slave_0
> [   56.126443][   T35] batman_adv: batadv0: Removing interface: batadv_slave_0
> [   56.133898][   T35] batman_adv: batadv0: Interface deactivated: batadv_slave_1
> [   56.141694][   T35] batman_adv: batadv0: Removing interface: batadv_slave_1
> [   56.150927][   T35] veth1_macvtap: left promiscuous mode
> [   56.157067][   T35] veth0_macvtap: left promiscuous mode
> [   56.163187][   T35] veth1_vlan: left promiscuous mode
> [   56.168965][   T35] veth0_vlan: left promiscuous mode
> [   56.196836][   T35] team0 (unregistering): Port device team_slave_1 removed
> [   56.205815][   T35] team0 (unregistering): Port device team_slave_0 removed
> [   58.084150][ T5133] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
> [   58.091289][ T5133] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
> [   58.098477][ T5133] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
> [   58.105739][ T5133] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
> [   58.112872][ T5133] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
> [   58.147089][ T5988] chnl_net:caif_netlink_parms(): no params data found
> [   58.166338][ T5988] bridge0: port 1(bridge_slave_0) entered blocking state
> [   58.173578][ T5988] bridge0: port 1(bridge_slave_0) entered disabled state
> [   58.180784][ T5988] bridge_slave_0: entered allmulticast mode
> [   58.187051][ T5988] bridge_slave_0: entered promiscuous mode
> [   58.193583][ T5988] bridge0: port 2(bridge_slave_1) entered blocking state
> [   58.200740][ T5988] bridge0: port 2(bridge_slave_1) entered disabled state
> [   58.207833][ T5988] bridge_slave_1: entered allmulticast mode
> [   58.214030][ T5988] bridge_slave_1: entered promiscuous mode
> [   58.225238][ T5988] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
> [   58.235910][ T5988] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
> [   58.251413][ T5988] team0: Port device team_slave_0 added
> [   58.257776][ T5988] team0: Port device team_slave_1 added
> [   58.267463][ T5988] batman_adv: batadv0: Adding interface: batadv_slave_0
> [   58.274482][ T5988] 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 1532 would solve the problem.
> [   58.300974][ T5988] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
> [   58.311990][ T5988] batman_adv: batadv0: Adding interface: batadv_slave_1
> [   58.318969][ T5988] 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 1532 would solve the problem.
> [   58.344994][ T5988] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
> [   58.362193][ T5988] hsr_slave_0: entered promiscuous mode
> [   58.368062][ T5988] hsr_slave_1: entered promiscuous mode
> [   58.548290][ T5988] netdevsim netdevsim0 netdevsim0: renamed from eth0
> [   58.556831][ T5988] netdevsim netdevsim0 netdevsim1: renamed from eth1
> [   58.564665][ T5988] netdevsim netdevsim0 netdevsim2: renamed from eth2
> [   58.572522][ T5988] netdevsim netdevsim0 netdevsim3: renamed from eth3
> [   58.586118][ T5988] bridge0: port 2(bridge_slave_1) entered blocking state
> [   58.593280][ T5988] bridge0: port 2(bridge_slave_1) entered forwarding state
> [   58.600654][ T5988] bridge0: port 1(bridge_slave_0) entered blocking state
> [   58.607726][ T5988] bridge0: port 1(bridge_slave_0) entered forwarding state
> [   58.630191][ T5988] 8021q: adding VLAN 0 to HW filter on device bond0
> [   58.640402][   T58] bridge0: port 1(bridge_slave_0) entered disabled state
> [   58.649632][   T58] bridge0: port 2(bridge_slave_1) entered disabled state
> [   58.659837][ T5988] 8021q: adding VLAN 0 to HW filter on device team0
> [   58.669532][   T58] bridge0: port 1(bridge_slave_0) entered blocking state
> [   58.676712][   T58] bridge0: port 1(bridge_slave_0) entered forwarding state
> [   58.686492][   T35] bridge0: port 2(bridge_slave_1) entered blocking state
> [   58.693655][   T35] bridge0: port 2(bridge_slave_1) entered forwarding state
> [   58.709390][ T5988] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
> [   58.720129][ T5988] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
> [   58.769091][ T5988] 8021q: adding VLAN 0 to HW filter on device batadv0
> [   58.787789][ T5988] veth0_vlan: entered promiscuous mode
> [   58.795800][ T5988] veth1_vlan: entered promiscuous mode
> [   58.808550][ T5988] veth0_macvtap: entered promiscuous mode
> [   58.816434][ T5988] veth1_macvtap: entered promiscuous mode
> [   58.826869][ T5988] batman_adv: batadv0: Interface activated: batadv_slave_0
> [   58.837590][ T5988] batman_adv: batadv0: Interface activated: batadv_slave_1
> [   58.847552][ T2979] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
> [   58.862969][ T2979] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
> [   58.881016][ T2979] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
> [   58.894676][   T35] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
> [   58.903471][   T35] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
> SYZFAIL: failed to recv rpc
> fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)
> [   58.917260][   T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
> [   58.925507][ T2979] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
> [   58.934333][   T31] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
> 
> 
> syzkaller build log:
> go env (err=<nil>)
> AR='ar'
> CC='gcc'
> CGO_CFLAGS='-O2 -g'
> CGO_CPPFLAGS=''
> CGO_CXXFLAGS='-O2 -g'
> CGO_ENABLED='1'
> CGO_FFLAGS='-O2 -g'
> CGO_LDFLAGS='-O2 -g'
> CXX='g++'
> GCCGO='gccgo'
> GO111MODULE='auto'
> GOAMD64='v1'
> GOARCH='amd64'
> GOAUTH='netrc'
> GOBIN=''
> GOCACHE='/syzkaller/.cache/go-build'
> GOCACHEPROG=''
> GODEBUG=''
> GOENV='/syzkaller/.config/go/env'
> GOEXE=''
> GOEXPERIMENT=''
> GOFIPS140='off'
> GOFLAGS=''
> GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3582148735=/tmp/go-build -gno-record-gcc-switches'
> GOHOSTARCH='amd64'
> GOHOSTOS='linux'
> GOINSECURE=''
> GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
> 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'
> GOTELEMETRY='local'
> GOTELEMETRYDIR='/syzkaller/.config/go/telemetry'
> GOTMPDIR=''
> GOTOOLCHAIN='auto'
> GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
> GOVCS=''
> GOVERSION='go1.24.4'
> GOWORK=''
> PKG_CONFIG='pkg-config'
> 
> git status (err=<nil>)
> HEAD detached at 4e1406b4d
> 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:31: run command via tools/syz-env for best compatibility, see:
> Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
> go list -f '{{.Stale}}' -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen
> make .descriptions
> tput: No value for $TERM and no -T specified
> tput: No value for $TERM and no -T specified
> Makefile:31: run command via tools/syz-env for best compatibility, see:
> Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
> bin/syz-sysgen
> touch .descriptions
> GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
> mkdir -p ./bin/linux_amd64
> g++ -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 -std=c++17 -I. -Iexecutor/_include   -DGOOS_linux=1 -DGOARCH_amd64=1 \
> 	-DHOSTGOOS_linux=1 -DGIT_REVISION=\"4e1406b4defac0e2a9d9424c70706f79a7750cf3\"
> /usr/bin/ld: /tmp/ccMkllK7.o: in function `Connection::Connect(char const*, char const*)':
> executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x104): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> ./tools/check-syzos.sh 2>/dev/null
> 
> 
> Error text is too large and was truncated, full error text is at:
> https://syzkaller.appspot.com/x/error.txt?x=10715332580000
> 
> 
> Tested on:
> 
> commit:         058747ce hfs: ensure sb->s_fs_info is always cleaned up
> git tree:       https://github.com/brauner/linux.git work.hfs.fixes
> kernel config:  https://syzkaller.appspot.com/x/.config?x=f30cc590c4f6da44
> dashboard link: https://syzkaller.appspot.com/bug?extid=ad45f827c88778ff7df6
> compiler:       gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
> 
> Note: no patches were applied.

Groan, unrelated error.
What do I do? Just restart?

#syz test https://github.com/brauner/linux.git work.hfs.fixes
Re: [syzbot] [hfs?] memory leak in hfs_init_fs_context
Posted by syzbot 2 months, 2 weeks ago
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+ad45f827c88778ff7df6@syzkaller.appspotmail.com
Tested-by: syzbot+ad45f827c88778ff7df6@syzkaller.appspotmail.com

Tested on:

commit:         058747ce hfs: ensure sb->s_fs_info is always cleaned up
git tree:       https://github.com/brauner/linux.git work.hfs.fixes
console output: https://syzkaller.appspot.com/x/log.txt?x=122ab914580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=f30cc590c4f6da44
dashboard link: https://syzkaller.appspot.com/bug?extid=ad45f827c88778ff7df6
compiler:       gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.
Re: [PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure
Posted by Christian Brauner 2 months, 3 weeks ago
On Fri, Nov 14, 2025 at 06:12:12AM +0100, Mehdi Ben Hadj Khelifa wrote:
> #syz test
> 
> diff --git a/fs/super.c b/fs/super.c
> index 5bab94fb7e03..a99e5281b057 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -1690,6 +1690,11 @@ int get_tree_bdev_flags(struct fs_context *fc,
>  		if (!error)
>  			error = fill_super(s, fc);
>  		if (error) {
> +			/*
> +			 * return back sb_info ownership to fc to be freed by put_fs_context()
> +			 */
> +			fc->s_fs_info = s->s_fs_info;
> +			s->s_fs_info = NULL;
>  			deactivate_locked_super(s);
>  			return error;
>  		}
> -- 
> 2.51.2
> 

No, either free it in hfs_fill_super() when it fails or add a wrapper
around kill_block_super() for hfs and free it after ->kill_sb() has run.
Re: [PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure
Posted by Mehdi Ben Hadj Khelifa 2 months, 3 weeks ago
On 11/14/25 12:55 PM, Christian Brauner wrote:
> On Fri, Nov 14, 2025 at 06:12:12AM +0100, Mehdi Ben Hadj Khelifa wrote:
>> #syz test
>>
>> diff --git a/fs/super.c b/fs/super.c
>> index 5bab94fb7e03..a99e5281b057 100644
>> --- a/fs/super.c
>> +++ b/fs/super.c
>> @@ -1690,6 +1690,11 @@ int get_tree_bdev_flags(struct fs_context *fc,
>>   		if (!error)
>>   			error = fill_super(s, fc);
>>   		if (error) {
>> +			/*
>> +			 * return back sb_info ownership to fc to be freed by put_fs_context()
>> +			 */
>> +			fc->s_fs_info = s->s_fs_info;
>> +			s->s_fs_info = NULL;
>>   			deactivate_locked_super(s);
>>   			return error;
>>   		}
>> -- 
>> 2.51.2
>>
> 
> No, either free it in hfs_fill_super() when it fails or add a wrapper
> around kill_block_super() for hfs and free it after ->kill_sb() has run.

Sorry for the noise,Resending with proper CCs:

I forgot to mention. I was giving back the ownership to the filesystem 
context because upon setup_bdev_super fails put_fs_context still gets 
called even if I would free s_fs_info in the kill_sb,so hfs_free_fc 
would get a NULL pointer to kfree as a result..I don't think that would 
be desirable.

I would be sending my patch out for more discussion.

Best Regards,
Mehdi Ben Hadj Khelifa
Re: [PATCH] fs/super: fix memory leak of s_fs_info on setup_bdev_super failure
Posted by Mehdi Ben Hadj Khelifa 2 months, 3 weeks ago
On 11/14/25 12:55 PM, Christian Brauner wrote:
> On Fri, Nov 14, 2025 at 06:12:12AM +0100, Mehdi Ben Hadj Khelifa wrote:
>> #syz test
>>
>> diff --git a/fs/super.c b/fs/super.c
>> index 5bab94fb7e03..a99e5281b057 100644
>> --- a/fs/super.c
>> +++ b/fs/super.c
>> @@ -1690,6 +1690,11 @@ int get_tree_bdev_flags(struct fs_context *fc,
>>   		if (!error)
>>   			error = fill_super(s, fc);
>>   		if (error) {
>> +			/*
>> +			 * return back sb_info ownership to fc to be freed by put_fs_context()
>> +			 */
>> +			fc->s_fs_info = s->s_fs_info;
>> +			s->s_fs_info = NULL;
>>   			deactivate_locked_super(s);
>>   			return error;
>>   		}
>> -- 
>> 2.51.2
>>
> 
> No, either free it in hfs_fill_super() when it fails or add a wrapper
> around kill_block_super() for hfs and free it after ->kill_sb() has run.

Ah. I just saw your reply after my I just sent out a new similar test.

I will be working on it with your suggestion.

Best Regards,
Mehdi Ben Hadj Khelifa
Re: [syzbot] [hfs?] memory leak in hfs_init_fs_context
Posted by syzbot 2 months, 3 weeks ago
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

SYZFAIL: failed to recv rpc

SYZFAIL: failed to recv rpc
fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)


Warning: Permanently added '10.128.1.132' (ED25519) to the list of known hosts.
2025/11/14 04:25:22 parsed 1 programs
[   38.568834][ T5812] cgroup: Unknown subsys name 'net'
[   38.681579][ T5812] cgroup: Unknown subsys name 'cpuset'
[   38.687948][ T5812] cgroup: Unknown subsys name 'rlimit'
Setting up swapspace version 1, size = 127995904 bytes
[   47.206806][ T5812] Adding 124996k swap on ./swap-file.  Priority:0 extents:1 across:124996k 
[   48.634442][ T5821] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.
[   49.057992][   T31] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   49.068464][   T31] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[   49.080224][   T12] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   49.088091][   T12] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[   49.177421][ T5870] chnl_net:caif_netlink_parms(): no params data found
[   49.197720][ T5870] bridge0: port 1(bridge_slave_0) entered blocking state
[   49.205546][ T5870] bridge0: port 1(bridge_slave_0) entered disabled state
[   49.212806][ T5870] bridge_slave_0: entered allmulticast mode
[   49.219093][ T5870] bridge_slave_0: entered promiscuous mode
[   49.226954][ T5870] bridge0: port 2(bridge_slave_1) entered blocking state
[   49.234019][ T5870] bridge0: port 2(bridge_slave_1) entered disabled state
[   49.241114][ T5870] bridge_slave_1: entered allmulticast mode
[   49.247273][ T5870] bridge_slave_1: entered promiscuous mode
[   49.257812][ T5870] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[   49.267520][ T5870] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[   49.283802][ T5870] team0: Port device team_slave_0 added
[   49.289970][ T5870] team0: Port device team_slave_1 added
[   49.299659][ T5870] batman_adv: batadv0: Adding interface: batadv_slave_0
[   49.306737][ T5870] 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 1532 would solve the problem.
[   49.332781][ T5870] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[   49.344098][ T5870] batman_adv: batadv0: Adding interface: batadv_slave_1
[   49.351244][ T5870] 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 1532 would solve the problem.
[   49.377242][ T5870] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[   49.395484][ T5870] hsr_slave_0: entered promiscuous mode
[   49.401255][ T5870] hsr_slave_1: entered promiscuous mode
[   49.429633][ T5870] netdevsim netdevsim0 netdevsim0: renamed from eth0
[   49.437511][ T5870] netdevsim netdevsim0 netdevsim1: renamed from eth1
[   49.445536][ T5870] netdevsim netdevsim0 netdevsim2: renamed from eth2
[   49.453283][ T5870] netdevsim netdevsim0 netdevsim3: renamed from eth3
[   49.466311][ T5870] bridge0: port 2(bridge_slave_1) entered blocking state
[   49.473549][ T5870] bridge0: port 2(bridge_slave_1) entered forwarding state
[   49.480828][ T5870] bridge0: port 1(bridge_slave_0) entered blocking state
[   49.487888][ T5870] bridge0: port 1(bridge_slave_0) entered forwarding state
[   49.506659][ T5870] 8021q: adding VLAN 0 to HW filter on device bond0
[   49.515852][   T31] bridge0: port 1(bridge_slave_0) entered disabled state
[   49.523955][   T31] bridge0: port 2(bridge_slave_1) entered disabled state
[   49.533442][ T5870] 8021q: adding VLAN 0 to HW filter on device team0
[   49.541649][   T31] bridge0: port 1(bridge_slave_0) entered blocking state
[   49.548678][   T31] bridge0: port 1(bridge_slave_0) entered forwarding state
[   49.557491][ T4775] bridge0: port 2(bridge_slave_1) entered blocking state
[   49.564551][ T4775] bridge0: port 2(bridge_slave_1) entered forwarding state
[   49.609789][ T5870] 8021q: adding VLAN 0 to HW filter on device batadv0
[   49.624774][ T5870] veth0_vlan: entered promiscuous mode
[   49.632240][ T5870] veth1_vlan: entered promiscuous mode
[   49.642980][ T5870] veth0_macvtap: entered promiscuous mode
[   49.649568][ T5870] veth1_macvtap: entered promiscuous mode
[   49.658587][ T5870] batman_adv: batadv0: Interface activated: batadv_slave_0
[   49.667884][ T5870] batman_adv: batadv0: Interface activated: batadv_slave_1
[   49.677213][ T4775] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[   49.685998][ T4775] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[   49.696282][ T4775] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[   49.705044][ T4775] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[   49.739615][ T5893] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[   49.746762][ T5893] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[   49.754212][ T5893] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[   49.761539][ T5893] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[   49.768803][ T5893] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[   49.777506][   T12] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   49.811620][   T12] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   49.872308][   T12] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[   49.932883][   T12] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
2025/11/14 04:25:36 executed programs: 0
[   52.871628][   T12] bridge_slave_1: left allmulticast mode
[   52.877509][   T12] bridge_slave_1: left promiscuous mode
[   52.883233][   T12] bridge0: port 2(bridge_slave_1) entered disabled state
[   52.890693][   T12] bridge_slave_0: left allmulticast mode
[   52.896320][   T12] bridge_slave_0: left promiscuous mode
[   52.902081][   T12] bridge0: port 1(bridge_slave_0) entered disabled state
[   52.942851][   T12] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[   52.951925][   T12] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[   52.960999][   T12] bond0 (unregistering): Released all slaves
[   53.054718][   T12] hsr_slave_0: left promiscuous mode
[   53.060223][   T12] hsr_slave_1: left promiscuous mode
[   53.065682][   T12] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[   53.073538][   T12] batman_adv: batadv0: Removing interface: batadv_slave_0
[   53.081030][   T12] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[   53.088412][   T12] batman_adv: batadv0: Removing interface: batadv_slave_1
[   53.097247][   T12] veth1_macvtap: left promiscuous mode
[   53.102787][   T12] veth0_macvtap: left promiscuous mode
[   53.108333][   T12] veth1_vlan: left promiscuous mode
[   53.113692][   T12] veth0_vlan: left promiscuous mode
[   53.146117][   T12] team0 (unregistering): Port device team_slave_1 removed
[   53.154944][   T12] team0 (unregistering): Port device team_slave_0 removed
[   55.775892][ T5893] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[   55.783123][ T5893] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[   55.790299][ T5893] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[   55.797638][ T5893] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[   55.805009][ T5893] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[   55.842807][ T5987] chnl_net:caif_netlink_parms(): no params data found
[   55.861642][ T5987] bridge0: port 1(bridge_slave_0) entered blocking state
[   55.868694][ T5987] bridge0: port 1(bridge_slave_0) entered disabled state
[   55.876286][ T5987] bridge_slave_0: entered allmulticast mode
[   55.882536][ T5987] bridge_slave_0: entered promiscuous mode
[   55.888863][ T5987] bridge0: port 2(bridge_slave_1) entered blocking state
[   55.896054][ T5987] bridge0: port 2(bridge_slave_1) entered disabled state
[   55.903160][ T5987] bridge_slave_1: entered allmulticast mode
[   55.909310][ T5987] bridge_slave_1: entered promiscuous mode
[   55.921259][ T5987] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[   55.931363][ T5987] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[   55.946114][ T5987] team0: Port device team_slave_0 added
[   55.952406][ T5987] team0: Port device team_slave_1 added
[   55.962372][ T5987] batman_adv: batadv0: Adding interface: batadv_slave_0
[   55.969330][ T5987] 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 1532 would solve the problem.
[   55.995474][ T5987] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[   56.006426][ T5987] batman_adv: batadv0: Adding interface: batadv_slave_1
[   56.013527][ T5987] 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 1532 would solve the problem.
[   56.039738][ T5987] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[   56.056635][ T5987] hsr_slave_0: entered promiscuous mode
[   56.062419][ T5987] hsr_slave_1: entered promiscuous mode
[   56.253249][ T5987] netdevsim netdevsim0 netdevsim0: renamed from eth0
[   56.261855][ T5987] netdevsim netdevsim0 netdevsim1: renamed from eth1
[   56.269702][ T5987] netdevsim netdevsim0 netdevsim2: renamed from eth2
[   56.278553][ T5987] netdevsim netdevsim0 netdevsim3: renamed from eth3
[   56.294272][ T5987] bridge0: port 2(bridge_slave_1) entered blocking state
[   56.301460][ T5987] bridge0: port 2(bridge_slave_1) entered forwarding state
[   56.308739][ T5987] bridge0: port 1(bridge_slave_0) entered blocking state
[   56.315923][ T5987] bridge0: port 1(bridge_slave_0) entered forwarding state
[   56.338321][ T5987] 8021q: adding VLAN 0 to HW filter on device bond0
[   56.348077][   T31] bridge0: port 1(bridge_slave_0) entered disabled state
[   56.356081][   T31] bridge0: port 2(bridge_slave_1) entered disabled state
[   56.366155][ T5987] 8021q: adding VLAN 0 to HW filter on device team0
[   56.374820][   T49] bridge0: port 1(bridge_slave_0) entered blocking state
[   56.381909][   T49] bridge0: port 1(bridge_slave_0) entered forwarding state
[   56.400099][   T49] bridge0: port 2(bridge_slave_1) entered blocking state
[   56.407204][   T49] bridge0: port 2(bridge_slave_1) entered forwarding state
[   56.458214][ T5987] 8021q: adding VLAN 0 to HW filter on device batadv0
[   56.477365][ T5987] veth0_vlan: entered promiscuous mode
[   56.485374][ T5987] veth1_vlan: entered promiscuous mode
[   56.498620][ T5987] veth0_macvtap: entered promiscuous mode
[   56.506001][ T5987] veth1_macvtap: entered promiscuous mode
[   56.516830][ T5987] batman_adv: batadv0: Interface activated: batadv_slave_0
[   56.526501][ T5987] batman_adv: batadv0: Interface activated: batadv_slave_1
[   56.536259][   T31] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[   56.554454][   T31] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[   56.571101][   T49] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   56.579028][   T49] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[   56.589211][   T31] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
SYZFAIL: failed to recv rpc
fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)
[   56.602245][   T35] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[   56.602375][   T31] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[   56.610080][   T35] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50


syzkaller build log:
go env (err=<nil>)
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE='auto'
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2609802501=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
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'
GOTELEMETRY='local'
GOTELEMETRYDIR='/syzkaller/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.24.4'
GOWORK=''
PKG_CONFIG='pkg-config'

git status (err=<nil>)
HEAD detached at 4e1406b4def
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:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=4e1406b4defac0e2a9d9424c70706f79a7750cf3 -X github.com/google/syzkaller/prog.gitRevisionDate=20251106-151142"  -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
mkdir -p ./bin/linux_amd64
g++ -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 -std=c++17 -I. -Iexecutor/_include   -DGOOS_linux=1 -DGOARCH_amd64=1 \
	-DHOSTGOOS_linux=1 -DGIT_REVISION=\"4e1406b4defac0e2a9d9424c70706f79a7750cf3\"
/usr/bin/ld: /tmp/ccG1R0tu.o: in function `Connection::Connect(char const*, char const*)':
executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x104): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./tools/check-syzos.sh 2>/dev/null



Tested on:

commit:         6da43bbe Merge tag 'vfio-v6.18-rc6' of https://github...
git tree:       upstream
kernel config:  https://syzkaller.appspot.com/x/.config?x=cb128cd5cb439809
dashboard link: https://syzkaller.appspot.com/bug?extid=ad45f827c88778ff7df6
compiler:       gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch:          https://syzkaller.appspot.com/x/patch.diff?x=16ceb60a580000