HomeFreeBSD

nfs_clrpcops.c: NFSM_DISSECT() reply for each dir separately

Description

nfs_clrpcops.c: NFSM_DISSECT() reply for each dir separately

Without this patch, the entire reply for all directories in
the NFSv4 mount path are parsed at once. This could cause
problems for mount paths with many directories in the path.

This patch fixes the problem by parsing each directory
reply in a loop.

Spotted while fixing other cases that could do large
NFSM_DISSECT() sizes.

(cherry picked from commit 9d13c87afdb35c0014aa6f43c5652e946c18b756)

Details

Provenance
rmacklemAuthored on Oct 28 2025, 9:31 PM
Parents
rG9a4da735ca97: nfs_commonsubs.c: Add a sanity check for nid_ngroup
Branches
Unknown
Tags
Unknown