You can't return 0 and not write the mode if mode_p is non-NULL. That
violates the API contract and in common usage leaves stack trash in
*mode_p.
The acl_equiv_mode_test test passed by accident.
Sponsored by: DARPA
Differential D43278
acl_equiv_mode_np: zero mode on just inited ACL brooks on Jan 2 2024, 10:04 PM. Authored by Tags None Referenced Files
Subscribers
Details You can't return 0 and not write the mode if mode_p is non-NULL. That The acl_equiv_mode_test test passed by accident. Sponsored by: DARPA
Diff Detail
Event TimelineComment Actions I bumped into this on CheriBSD were different stack layout made mode non-zero in the caller. |