HomeFreeBSD

nfsd: Add a sanity check to SecinfoNoname for file type

Description

nfsd: Add a sanity check to SecinfoNoname for file type

Robert Morris reported that, for the case of SecinfoNoname
with the Parent option, providing a non-directory could
cause a crash.

This patch adds a sanity check for v_type == VDIR for
this case, to avoid the crash.

PR: 260300

(cherry picked from commit 47d75c29f5510ad844f0bc7fbc07d481ebb7fd9e)

Details

Provenance
rmacklemAuthored on May 1 2022, 8:41 PM
Parents
rG3f8306cf8e2d: e1000: Increase rx_buffer_size to 32b
Branches
Unknown
Tags
Unknown