Page MenuHomeFreeBSD

uiomove: Add some assertions
ClosedPublic

Authored by markj on Oct 5 2023, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:33 PM
Unknown Object (File)
Wed, Nov 13, 8:25 PM
Unknown Object (File)
Tue, Nov 12, 1:46 AM
Unknown Object (File)
Oct 29 2024, 6:26 AM
Unknown Object (File)
Oct 17 2024, 2:22 AM
Unknown Object (File)
Oct 17 2024, 2:21 AM
Unknown Object (File)
Oct 17 2024, 2:21 AM
Unknown Object (File)
Oct 17 2024, 1:49 AM

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.