HomeFreeBSD

kern: fix freebsd14 getgroups(2) compat

Description

kern: fix freebsd14 getgroups(2) compat

We need to actually copyout the remainder of the groups if the egid
succeeded, not failed. My test that was designed to catch this along
with the previously-found syzkaller panic did not zero out the groups
array prior to re-fetching, so it did not catch that entries beyond the
first were not actually populated.

Pointy hat: kevans
Fixes: 9da2fe96ff ("kern: fix setgroups(2) and getgroups(2) [...]")

Details

Provenance
kevansAuthored on Aug 15 2025, 3:08 PM
Parents
rGe7a766f9d0b1: release: Enable nuageinit for BASIC-CI images
Branches
Unknown
Tags
Unknown