On Tue, 1 Dec 2026 10:59:50 -0800 Andrii Tereshchenko <open…@andrii.net> wrote:
> Several parsers check a value before its unit is applied, or not at > all, so one that does not fit wraps: tc turns "4295s" into 32704us and > accepts "nan". ip route's rtt and rttvar scaling and tbf's limit from > "latency" wrap too, and hfsc gets d wrong for umax above 4294 bytes. > ip's encaplimit check (get_u8() < -1) never fires, so "encaplimit 300" > sends an uninitialised byte. > > Check once the unit is applied. The lib parsers return -1 for > malformed input and NaN, -ERANGE for negative or too-large values. > Refuse an overflowing rtt, rttvar or tbf limit, "%" without digits and > trailing characters in an sfb probability. Fix the encaplimit test and > hfsc's 32-bit multiply, and check arpd -p before storing it.
This is iproute2 next material and arpd has been removed. This needs to be split into much smaller patches for human review.