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
F171427787: D57137.id179567.diff
Fri, Sep 11, 2:17 AM
Unknown Object (File)
Wed, Sep 9, 10:53 PM
Unknown Object (File)
Wed, Sep 9, 4:00 PM
Unknown Object (File)
Wed, Sep 9, 10:35 AM
Unknown Object (File)
Wed, Sep 9, 1:24 AM
Unknown Object (File)
Tue, Sep 8, 11:55 PM
Unknown Object (File)
Tue, Sep 8, 7:33 PM
Unknown Object (File)
Wed, Sep 2, 2:13 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 73293
Build 70176: arc lint + arc unit