Page MenuHomeFreeBSD

ppp: Don't fetch a non-existent variadic argument
ClosedPublic

Authored by jhb on May 20 2026, 7:31 PM.
Tags
None
Referenced Files
F166344517: D57137.id.diff
Thu, Aug 13, 12:57 AM
Unknown Object (File)
Mon, Aug 10, 12:24 PM
Unknown Object (File)
Sun, Aug 9, 10:22 AM
Unknown Object (File)
Sat, Aug 8, 5:48 AM
Unknown Object (File)
Tue, Aug 4, 8:42 AM
Unknown Object (File)
Mon, Aug 3, 2:19 AM
Unknown Object (File)
Sun, Aug 2, 3:17 AM
Unknown Object (File)
Sat, Aug 1, 8:49 AM
Subscribers

Details

Summary

Only fetch the optional mode argument to ID0open to pass to open(2) if
O_CREAT is present in the flags argument. It is UB to fetch an
argument that doesn't exist. On CHERI this UB results in a fault.

Obtained from: CheriBSD
Sponsored by: AFRL, DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable