Page MenuHomeFreeBSD

uiomove: Add some assertions
ClosedPublic

Authored by markj on Oct 5 2023, 9:36 PM.
Tags
None
Referenced Files
F172680370: D42098.diff
Sun, Sep 20, 4:21 AM
Unknown Object (File)
Aug 12 2026, 9:49 PM
Unknown Object (File)
Aug 10 2026, 9:05 AM
Unknown Object (File)
Aug 9 2026, 4:41 PM
Unknown Object (File)
Aug 9 2026, 4:40 PM
Unknown Object (File)
Aug 8 2026, 12:12 AM
Unknown Object (File)
Aug 5 2026, 8:07 AM
Unknown Object (File)
Aug 4 2026, 2:33 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 53861
Build 50752: arc lint + arc unit

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.