Re: [syzbot] [hfs?] memory leak in hfsplus_init_fs_context

syzbot
2025-12-05T19:06:05Z

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.0.245' (ED25519) to the list of known hosts.
2025/12/05 19:05:15 parsed 1 programs
[ 55.119214][ T5818] cgroup: Unknown subsys name 'net'
[ 55.259974][ T5818] cgroup: Unknown subsys name 'cpuset'
[ 55.266582][ T5818] cgroup: Unknown subsys name 'rlimit'
Setting up swapspace version 1, size = 127995904 bytes
[ 63.696572][ T5818] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 65.016628][ T5828] 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.
[ 65.422993][ T5880] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 65.430458][ T5880] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 65.437558][ T5880] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 65.445167][ T5880] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 65.452744][ T5880] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 65.561974][ T5890] chnl_net:caif_netlink_parms(): no params data found
[ 65.584453][ T5890] bridge0: port 1(bridge_slave_0) entered blocking state
[ 65.591882][ T5890] bridge0: port 1(bridge_slave_0) entered disabled state
[ 65.599824][ T5890] bridge_slave_0: entered allmulticast mode
[ 65.606225][ T5890] bridge_slave_0: entered promiscuous mode
[ 65.612881][ T5890] bridge0: port 2(bridge_slave_1) entered blocking state
[ 65.619978][ T5890] bridge0: port 2(bridge_slave_1) entered disabled state
[ 65.627492][ T5890] bridge_slave_1: entered allmulticast mode
[ 65.634027][ T5890] bridge_slave_1: entered promiscuous mode
[ 65.645743][ T5890] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 65.655760][ T5890] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 65.669914][ T5890] team0: Port device team_slave_0 added
[ 65.676301][ T5890] team0: Port device team_slave_1 added
[ 65.686571][ T5890] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 65.693917][ T5890] 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.
[ 65.720230][ T5890] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 65.731988][ T5890] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 65.739356][ T5890] 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.
[ 65.766444][ T5890] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 65.787487][ T5890] hsr_slave_0: entered promiscuous mode
[ 65.793267][ T5890] hsr_slave_1: entered promiscuous mode
[ 65.822570][ T5890] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 65.830459][ T5890] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 65.838351][ T5890] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 65.846563][ T5890] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 65.860377][ T5890] bridge0: port 2(bridge_slave_1) entered blocking state
[ 65.867973][ T5890] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 65.875564][ T5890] bridge0: port 1(bridge_slave_0) entered blocking state
[ 65.882626][ T5890] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 65.899327][ T5890] 8021q: adding VLAN 0 to HW filter on device bond0
[ 65.908810][ T65] bridge0: port 1(bridge_slave_0) entered disabled state
[ 65.916368][ T65] bridge0: port 2(bridge_slave_1) entered disabled state
[ 65.926332][ T5890] 8021q: adding VLAN 0 to HW filter on device team0
[ 65.935247][ T55] bridge0: port 1(bridge_slave_0) entered blocking state
[ 65.942415][ T55] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 65.952498][ T55] bridge0: port 2(bridge_slave_1) entered blocking state
[ 65.959571][ T55] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 66.001572][ T5890] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 66.016258][ T5890] veth0_vlan: entered promiscuous mode
[ 66.023938][ T5890] veth1_vlan: entered promiscuous mode
[ 66.035919][ T5890] veth0_macvtap: entered promiscuous mode
[ 66.043178][ T5890] veth1_macvtap: entered promiscuous mode
[ 66.052173][ T5890] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 66.061801][ T5890] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 66.071356][ T55] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 66.081780][ T55] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 66.091070][ T55] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 66.100260][ T55] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 66.142913][ T55] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 66.164181][ T31] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 66.172643][ T31] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 66.182052][ T55] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 66.195368][ T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 66.203729][ T31] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 66.230379][ T55] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 66.280211][ T55] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
2025/12/05 19:05:28 executed programs: 0
[ 69.506006][ T55] bridge_slave_1: left allmulticast mode
[ 69.511800][ T55] bridge_slave_1: left promiscuous mode
[ 69.517491][ T55] bridge0: port 2(bridge_slave_1) entered disabled state
[ 69.525504][ T55] bridge_slave_0: left allmulticast mode
[ 69.531369][ T55] bridge_slave_0: left promiscuous mode
[ 69.537068][ T55] bridge0: port 1(bridge_slave_0) entered disabled state
[ 69.601288][ T55] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 69.611079][ T55] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 69.620253][ T55] bond0 (unregistering): Released all slaves
[ 69.670943][ T55] hsr_slave_0: left promiscuous mode
[ 69.676955][ T55] hsr_slave_1: left promiscuous mode
[ 69.682958][ T55] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 69.691003][ T55] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 69.698476][ T55] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 69.706532][ T55] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 69.715577][ T55] veth1_macvtap: left promiscuous mode
[ 69.721203][ T55] veth0_macvtap: left promiscuous mode
[ 69.726728][ T55] veth1_vlan: left promiscuous mode
[ 69.732096][ T55] veth0_vlan: left promiscuous mode
[ 69.757386][ T55] team0 (unregistering): Port device team_slave_1 removed
[ 69.766234][ T55] team0 (unregistering): Port device team_slave_0 removed
[ 70.169404][ T1309] ieee802154 phy0 wpan0: encryption failed: -22
[ 70.175683][ T1309] ieee802154 phy1 wpan1: encryption failed: -22
[ 72.047051][ T5134] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 72.054869][ T5134] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 72.062046][ T5134] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 72.070042][ T5134] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 72.077520][ T5134] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 72.113196][ T5989] chnl_net:caif_netlink_parms(): no params data found
[ 72.132758][ T5989] bridge0: port 1(bridge_slave_0) entered blocking state
[ 72.140022][ T5989] bridge0: port 1(bridge_slave_0) entered disabled state
[ 72.147223][ T5989] bridge_slave_0: entered allmulticast mode
[ 72.153712][ T5989] bridge_slave_0: entered promiscuous mode
[ 72.160489][ T5989] bridge0: port 2(bridge_slave_1) entered blocking state
[ 72.167745][ T5989] bridge0: port 2(bridge_slave_1) entered disabled state
[ 72.174993][ T5989] bridge_slave_1: entered allmulticast mode
[ 72.181245][ T5989] bridge_slave_1: entered promiscuous mode
[ 72.192621][ T5989] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 72.202629][ T5989] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 72.217391][ T5989] team0: Port device team_slave_0 added
[ 72.224120][ T5989] team0: Port device team_slave_1 added
[ 72.234181][ T5989] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 72.241867][ T5989] 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.
[ 72.268532][ T5989] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 72.280051][ T5989] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 72.287416][ T5989] 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.
[ 72.314180][ T5989] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 72.331466][ T5989] hsr_slave_0: entered promiscuous mode
[ 72.337615][ T5989] hsr_slave_1: entered promiscuous mode
[ 72.513584][ T5989] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 72.521437][ T5989] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 72.529452][ T5989] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 72.537435][ T5989] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 72.551368][ T5989] bridge0: port 2(bridge_slave_1) entered blocking state
[ 72.558478][ T5989] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 72.565936][ T5989] bridge0: port 1(bridge_slave_0) entered blocking state
[ 72.573710][ T5989] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 72.596776][ T5989] 8021q: adding VLAN 0 to HW filter on device bond0
[ 72.606884][ T31] bridge0: port 1(bridge_slave_0) entered disabled state
[ 72.615077][ T31] bridge0: port 2(bridge_slave_1) entered disabled state
[ 72.625976][ T5989] 8021q: adding VLAN 0 to HW filter on device team0
[ 72.634865][ T31] bridge0: port 1(bridge_slave_0) entered blocking state
[ 72.642139][ T31] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 72.660348][ T31] bridge0: port 2(bridge_slave_1) entered blocking state
[ 72.667635][ T31] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 72.717525][ T5989] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 72.736386][ T5989] veth0_vlan: entered promiscuous mode
[ 72.743922][ T5989] veth1_vlan: entered promiscuous mode
[ 72.757219][ T5989] veth0_macvtap: entered promiscuous mode
[ 72.764388][ T5989] veth1_macvtap: entered promiscuous mode
[ 72.774941][ T5989] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 72.784711][ T5989] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 72.794630][ T35] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 72.807307][ T35] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 72.816371][ T723] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 72.828572][ T723] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 72.847366][ T35] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 72.856762][ 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)
[ 72.870318][ T723] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 72.878614][ T723] 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-build1479309889=/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 d6526ea3e
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=d6526ea3e6ad9081c902859bbb80f9f840377cb4 -X github.com/google/syzkaller/prog.gitRevisionDate=20251126-113115" ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=d6526ea3e6ad9081c902859bbb80f9f840377cb4 -X github.com/google/syzkaller/prog.gitRevisionDate=20251126-113115" ./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=d6526ea3e6ad9081c902859bbb80f9f840377cb4 -X github.com/google/syzkaller/prog.gitRevisionDate=20251126-113115" -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=\"d6526ea3e6ad9081c902859bbb80f9f840377cb4\"
/usr/bin/ld: /tmp/ccXWETje.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: e69c7c17 Merge tag 'timers_urgent_for_v6.18_rc8' of gi..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel config: https://syzkaller.appspot.com/x/.config?x=f30cc590c4f6da44
dashboard link: https://syzkaller.appspot.com/bug?extid=99f6ed51479b86ac4c41
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=14477cc2580000