Page MenuHomeFreeBSD

netmap: Use ckdint.h helpers to check for overflow
ClosedPublic

Authored by markj on Aug 17 2026, 6:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 22, 12:20 AM
Unknown Object (File)
Tue, Sep 22, 12:19 AM
Unknown Object (File)
Sun, Sep 20, 7:37 PM
Unknown Object (File)
Thu, Sep 17, 9:53 AM
Unknown Object (File)
Tue, Sep 15, 11:14 PM
Unknown Object (File)
Mon, Sep 14, 5:25 AM
Unknown Object (File)
Sun, Sep 13, 7:51 AM
Unknown Object (File)
Fri, Sep 11, 8:29 PM
Subscribers

Details

Summary

This addresses a bug in the addition overflow check added in commit
319414a926af ("netmap: Handle overflow when computing ring sizes"): that
overflow wasn't actually caught by the check because "len" is promoted
to size_t.

Fixes: 319414a926af ("netmap: Handle overflow when computing ring sizes")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75656
Build 72539: arc lint + arc unit

Event Timeline

markj requested review of this revision.Aug 17 2026, 6:43 PM
This revision was not accepted when it landed; it landed in state Needs Review.Thu, Aug 27, 1:33 PM
This revision was automatically updated to reflect the committed changes.