🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Stephen Hemminger Wed, 02 Dec 2026 06:54
Re: [PATCH iproute2] lib, ip, tc, arpd: refuse out-of-range parsed values
#25638
Author: Stephen Hemminger
Date: Wed, 02 Dec 2026 06:54
20 lines
12015 bytes
On Tue,  1 Dec 2026 10:59:50 -0800
Andrii Tereshchenko <opensource@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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads