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, May 3, 5:45 PM
Unknown Object (File)
Apr 16 2024, 4:37 AM
Unknown Object (File)
Apr 13 2024, 6:53 PM
Unknown Object (File)
Apr 12 2024, 3:32 AM
Unknown Object (File)
Apr 11 2024, 8:01 AM
Unknown Object (File)
Apr 11 2024, 6:14 AM
Unknown Object (File)
Mar 14 2024, 11:19 AM
Unknown Object (File)
Mar 14 2024, 11:18 AM

Details

Summary

The validator always returned true due to an incorrect check.

Sponsored by: DARPA

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46842
Build 43731: arc lint + arc unit

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.