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)
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
Unknown Object (File)
Fri, Sep 11, 1:21 PM
Unknown Object (File)
Fri, Sep 11, 10:49 AM
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 Not Applicable
Unit
Tests Not Applicable

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.