Ensure the offp capability bounds cover entire struct with checksum fields.
This is needed for CHERI systems to avoid bounds violation trap, as otherwise offp allowed to dereference 4 bytes of csum_flags field only so bzero failed.
Differential D53903
em(4): fix capability bounds to access checksum context Authored by br on Tue, Nov 25, 8:55 AM. Tags None Referenced Files
Subscribers
Details
Ensure the offp capability bounds cover entire struct with checksum fields. This is needed for CHERI systems to avoid bounds violation trap, as otherwise offp allowed to dereference 4 bytes of csum_flags field only so bzero failed. Tested on ARM Morello.
Diff Detail
|