Page MenuHomeFreeBSD

mac_ddb: Fix the show rman validator.
ClosedPublic

Authored by jhb on Aug 10 2022, 11:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 27, 11:46 AM
Unknown Object (File)
Fri, Mar 27, 5:57 AM
Unknown Object (File)
Fri, Mar 20, 1:01 PM
Unknown Object (File)
Fri, Mar 20, 6:04 AM
Unknown Object (File)
Sun, Mar 8, 11:37 AM
Unknown Object (File)
Sun, Mar 8, 4:41 AM
Unknown Object (File)
Feb 8 2026, 12:37 PM
Unknown Object (File)
Jan 31 2026, 2:12 PM

Details

Summary

The validator always returned true due to an incorrect check.

Sponsored by: DARPA

Diff Detail

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

Event Timeline

jhb requested review of this revision.Aug 10 2022, 11:19 PM

FWIW, in downstream CheriBSD I've basically changed all of these to not use void * casts and instead cast the first item to an integer type (think uintptr_t).

imp added inline comments.
sys/security/mac_ddb/mac_ddb.c
188

the second one certainly is more discriminating :)

This revision is now accepted and ready to land.Aug 10 2022, 11:20 PM
In D36125#820154, @jhb wrote:

FWIW, in downstream CheriBSD I've basically changed all of these to not use void * casts and instead cast the first item to an integer type (think uintptr_t).

I think that's a better fix to compare against db_expr_t anyway.

This revision was automatically updated to reflect the committed changes.