[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230429174255.564a9401@hermes.local>
Date: Sat, 29 Apr 2023 17:42:55 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, David Ahern <dsahern@...nel.org>
Subject: Re: [PATCH v2 iproute2-next 09/10] tc/mqprio: add support for
preemptible traffic classes
On Tue, 18 Apr 2023 14:39:52 +0300
Vladimir Oltean <vladimir.oltean@....com> wrote:
> + tc = rta_getattr_u32(tb[TCA_MQPRIO_TC_ENTRY_INDEX]);
> + /* Prevent array out of bounds access */
> + if (tc >= TC_QOPT_MAX_QUEUE) {
> + fprintf(stderr, "Unexpected tc entry index %d\n", tc);
> + return;
> + }
This creates a ABI dependency, what if kernel config changes?
Powered by blists - more mailing lists