Page MenuHomeFreeBSD

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

Authored by br on Tue, Nov 25, 8:55 AM.
Tags
None
Referenced Files
F137857462: D53903.id167074.diff
Wed, Nov 26, 12:31 PM
F137842174: D53903.id.diff
Wed, Nov 26, 8:21 AM
F137842160: D53903.id167074.diff
Wed, Nov 26, 8:21 AM
Subscribers

Details

Reviewers
gallatin
kbowling
Group Reviewers
cheri
Restricted Owners Package(Owns No Changed Paths)
Commits
rG64ee9c166ce5: em(4): fix capability bounds needed to access checksum context.
Summary

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.

Test Plan

Tested on ARM Morello.

Diff Detail

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