HomeFreeBSD

em(4): fix capability bounds needed to access checksum context.

Description

em(4): fix capability bounds needed to access checksum context.

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.

Reviewed by: kbowling
Discussed with: jrtc27
Sponsored by: CHERI Research Centre
Differential Revision: https://reviews.freebsd.org/D53903

Details

Provenance
brAuthored on Nov 25 2025, 9:16 AM
Reviewer
kbowling
Differential Revision
D53903: em(4): fix capability bounds to access checksum context
Parents
rGb87f6330013f: nvme(4): Increase HMB alignment.
Branches
Unknown
Tags
Unknown