Page MenuHomeFreeBSD

uiomove: Add some assertions
ClosedPublic

Authored by markj on Oct 5 2023, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 8:46 AM
Unknown Object (File)
Fri, Jun 21, 8:39 AM
Unknown Object (File)
Thu, Jun 20, 3:53 AM
Unknown Object (File)
Thu, Jun 20, 3:46 AM
Unknown Object (File)
Wed, Jun 19, 11:28 PM
Unknown Object (File)
Wed, Jun 19, 8:19 PM
Unknown Object (File)
Wed, Jun 19, 6:13 PM
Unknown Object (File)
Wed, Jun 19, 5:58 PM

Details

Summary

Make sure that we don't try to copy with a negative resid.

Make sure that we don't walk off the end of the iovec array.

Diff Detail

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

Event Timeline

markj requested review of this revision.Oct 5 2023, 9:36 PM

Any way to trigger these from userland? I'd think high level tests prevent that...

This revision is now accepted and ready to land.Oct 5 2023, 9:59 PM
In D42098#960314, @imp wrote:

Any way to trigger these from userland? I'd think high level tests prevent that...

D42099 fixes one bug which can trigger these assertions, yes.

This revision was automatically updated to reflect the committed changes.