Page MenuHomeFreeBSD

mac_ddb: Fix the show rman validator.
ClosedPublic

Authored by jhb on Aug 10 2022, 11:19 PM.
Tags
None
Referenced Files
F173565976: D36125.id109259.diff
Sat, Sep 26, 9:28 PM
F173562509: D36125.id109130.diff
Sat, Sep 26, 9:00 PM
F173547499: D36125.diff
Sat, Sep 26, 6:40 PM
Unknown Object (File)
Thu, Sep 17, 1:47 AM
Unknown Object (File)
Mon, Sep 7, 3:25 AM
Unknown Object (File)
Sun, Sep 6, 9:07 PM
Unknown Object (File)
Sat, Sep 5, 11:28 AM
Unknown Object (File)
Sat, Sep 5, 6:20 AM

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.