Page MenuHomeFreeBSD

uiomove: Add some assertions
ClosedPublic

Authored by markj on Oct 5 2023, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 19, 9:49 AM
Unknown Object (File)
Thu, Sep 19, 1:25 AM
Unknown Object (File)
Wed, Sep 18, 12:11 PM
Unknown Object (File)
Tue, Sep 10, 12:53 AM
Unknown Object (File)
Sun, Sep 8, 6:18 AM
Unknown Object (File)
Sun, Sep 8, 6:06 AM
Unknown Object (File)
Wed, Sep 4, 6:03 PM
Unknown Object (File)
Aug 22 2024, 1:11 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.