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

syzbot
2025-12-05T08:41:07Z

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.10.19' (ED25519) to the list of known hosts.
2025/12/05 08:40:16 parsed 1 programs
[ 41.176746][ T5819] cgroup: Unknown subsys name 'net'
[ 41.281133][ T5819] cgroup: Unknown subsys name 'cpuset'
[ 41.287826][ T5819] cgroup: Unknown subsys name 'rlimit'
Setting up swapspace version 1, size = 127995904 bytes
[ 49.291292][ T5819] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 50.564658][ T5831] 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.
[ 50.685574][ T5838] chnl_net:caif_netlink_parms(): no params data found
[ 50.718744][ T5838] bridge0: port 1(bridge_slave_0) entered blocking state
[ 50.726547][ T5838] bridge0: port 1(bridge_slave_0) entered disabled state
[ 50.733855][ T5838] bridge_slave_0: entered allmulticast mode
[ 50.740422][ T5838] bridge_slave_0: entered promiscuous mode
[ 50.749111][ T5838] bridge0: port 2(bridge_slave_1) entered blocking state
[ 50.756705][ T5838] bridge0: port 2(bridge_slave_1) entered disabled state
[ 50.763860][ T5838] bridge_slave_1: entered allmulticast mode
[ 50.770087][ T5838] bridge_slave_1: entered promiscuous mode
[ 50.781997][ T5838] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 50.792353][ T5838] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 50.806088][ T5838] team0: Port device team_slave_0 added
[ 50.812289][ T5838] team0: Port device team_slave_1 added
[ 50.821770][ T5838] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 50.828751][ T5838] 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.
[ 50.854896][ T5838] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 50.865811][ T5838] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 50.872758][ T5838] 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.
[ 50.898803][ T5838] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 50.915511][ T5838] hsr_slave_0: entered promiscuous mode
[ 50.921517][ T5838] hsr_slave_1: entered promiscuous mode
[ 50.950832][ T5838] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 50.958488][ T5838] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 50.966517][ T5838] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 50.974219][ T5838] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 50.985730][ T5838] bridge0: port 2(bridge_slave_1) entered blocking state
[ 50.992793][ T5838] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 51.000070][ T5838] bridge0: port 1(bridge_slave_0) entered blocking state
[ 51.007177][ T5838] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 51.024053][ T5838] 8021q: adding VLAN 0 to HW filter on device bond0
[ 51.032907][ T2111] bridge0: port 1(bridge_slave_0) entered disabled state
[ 51.040759][ T2111] bridge0: port 2(bridge_slave_1) entered disabled state
[ 51.050315][ T5838] 8021q: adding VLAN 0 to HW filter on device team0
[ 51.059034][ T3542] bridge0: port 1(bridge_slave_0) entered blocking state
[ 51.066108][ T3542] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 51.075368][ T3868] bridge0: port 2(bridge_slave_1) entered blocking state
[ 51.082540][ T3868] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 51.123151][ T5838] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 51.138305][ T5838] veth0_vlan: entered promiscuous mode
[ 51.145381][ T5838] veth1_vlan: entered promiscuous mode
[ 51.156259][ T5838] veth0_macvtap: entered promiscuous mode
[ 51.163077][ T5838] veth1_macvtap: entered promiscuous mode
[ 51.172007][ T5838] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 51.181101][ T5838] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 51.189797][ T3529] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 51.198817][ T3529] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 51.208219][ T3529] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 51.217671][ T3529] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 51.268245][ T3529] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 51.303208][ T3529] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 51.341444][ T3529] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 51.383323][ T3529] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 51.595715][ T3542] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 51.604091][ T3542] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 51.614717][ T2111] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 51.622702][ T2111] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 51.649068][ T5908] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 51.656254][ T5908] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 51.664039][ T5908] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 51.671332][ T5908] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 51.678641][ T5908] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
2025/12/05 08:40:28 executed programs: 0
[ 54.510958][ T3529] bridge_slave_1: left allmulticast mode
[ 54.516655][ T3529] bridge_slave_1: left promiscuous mode
[ 54.522645][ T3529] bridge0: port 2(bridge_slave_1) entered disabled state
[ 54.530202][ T3529] bridge_slave_0: left allmulticast mode
[ 54.535912][ T3529] bridge_slave_0: left promiscuous mode
[ 54.541823][ T3529] bridge0: port 1(bridge_slave_0) entered disabled state
[ 54.582118][ T3529] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 54.591202][ T3529] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 54.600240][ T3529] bond0 (unregistering): Released all slaves
[ 54.661835][ T3529] hsr_slave_0: left promiscuous mode
[ 54.667972][ T3529] hsr_slave_1: left promiscuous mode
[ 54.673755][ T3529] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 54.681245][ T3529] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 54.688729][ T3529] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 54.696292][ T3529] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 54.704768][ T3529] veth1_macvtap: left promiscuous mode
[ 54.710447][ T3529] veth0_macvtap: left promiscuous mode
[ 54.715978][ T3529] veth1_vlan: left promiscuous mode
[ 54.721580][ T3529] veth0_vlan: left promiscuous mode
[ 54.744259][ T3529] team0 (unregistering): Port device team_slave_1 removed
[ 54.752630][ T3529] team0 (unregistering): Port device team_slave_0 removed
[ 57.411203][ T51] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 57.418346][ T51] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 57.425415][ T51] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 57.433086][ T51] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 57.440536][ T51] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 57.474037][ T5993] chnl_net:caif_netlink_parms(): no params data found
[ 57.492366][ T5993] bridge0: port 1(bridge_slave_0) entered blocking state
[ 57.499723][ T5993] bridge0: port 1(bridge_slave_0) entered disabled state
[ 57.507823][ T5993] bridge_slave_0: entered allmulticast mode
[ 57.514155][ T5993] bridge_slave_0: entered promiscuous mode
[ 57.520849][ T5993] bridge0: port 2(bridge_slave_1) entered blocking state
[ 57.527889][ T5993] bridge0: port 2(bridge_slave_1) entered disabled state
[ 57.535162][ T5993] bridge_slave_1: entered allmulticast mode
[ 57.541464][ T5993] bridge_slave_1: entered promiscuous mode
[ 57.552191][ T5993] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 57.562247][ T5993] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 57.576766][ T5993] team0: Port device team_slave_0 added
[ 57.583104][ T5993] team0: Port device team_slave_1 added
[ 57.592907][ T5993] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 57.599848][ T5993] 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.
[ 57.626033][ T5993] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 57.637216][ T5993] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 57.644351][ T5993] 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.
[ 57.670791][ T5993] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 57.687439][ T5993] hsr_slave_0: entered promiscuous mode
[ 57.693446][ T5993] hsr_slave_1: entered promiscuous mode
[ 57.886946][ T5993] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 57.895586][ T5993] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 57.903836][ T5993] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 57.912030][ T5993] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 57.931197][ T5993] bridge0: port 2(bridge_slave_1) entered blocking state
[ 57.938362][ T5993] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 57.945648][ T5993] bridge0: port 1(bridge_slave_0) entered blocking state
[ 57.952803][ T5993] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 57.973507][ T5993] 8021q: adding VLAN 0 to HW filter on device bond0
[ 57.982871][ T31] bridge0: port 1(bridge_slave_0) entered disabled state
[ 57.990406][ T31] bridge0: port 2(bridge_slave_1) entered disabled state
[ 58.000894][ T5993] 8021q: adding VLAN 0 to HW filter on device team0
[ 58.009845][ T31] bridge0: port 1(bridge_slave_0) entered blocking state
[ 58.016912][ T31] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 58.026584][ T31] bridge0: port 2(bridge_slave_1) entered blocking state
[ 58.033639][ T31] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 58.087594][ T5993] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 58.105504][ T5993] veth0_vlan: entered promiscuous mode
[ 58.113086][ T5993] veth1_vlan: entered promiscuous mode
[ 58.126723][ T5993] veth0_macvtap: entered promiscuous mode
[ 58.133631][ T5993] veth1_macvtap: entered promiscuous mode
[ 58.142945][ T5993] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 58.152148][ T5993] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 58.161440][ T3542] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 58.173806][ T3542] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 58.183259][ T3542] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 58.193398][ T3542] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 58.217473][ T31] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 58.228888][ T31] 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.240775][ T31] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 58.249148][ 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-build2391967220=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOMODCACHE='/syzkaller/jobs/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs/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 d6526ea3e6
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/ccdO0wGA.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: 2061f18a Merge tag 'caps-pr-20251204' of git://git.ker..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=4ec6d85125e91f07
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=1715bcc2580000