Page MenuHomeFreeBSD

uiomove: Add some assertions
ClosedPublic

Authored by markj on Oct 5 2023, 9:36 PM.
Tags
None
Referenced Files
F102543294: D42098.id128909.diff
Wed, Nov 13, 8:25 PM
Unknown Object (File)
Tue, Nov 12, 1:46 AM
Unknown Object (File)
Tue, Oct 29, 6:26 AM
Unknown Object (File)
Thu, Oct 17, 2:22 AM
Unknown Object (File)
Thu, Oct 17, 2:21 AM
Unknown Object (File)
Thu, Oct 17, 2:21 AM
Unknown Object (File)
Thu, Oct 17, 1:49 AM
Unknown Object (File)
Sep 23 2024, 8:16 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.