diff options
author | 2025-08-01 17:18:57 -0700 | |
---|---|---|
committer | 2025-08-04 17:22:20 -0700 | |
commit | ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17 (patch) | |
tree | d7f497ed145936acf1fcde7024a55f080ccf22fe /tools/perf/scripts/python | |
parent | Revert "net: mdio_bus: Use devm for getting reset GPIO" (diff) | |
download | wireguard-linux-ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17.tar.xz wireguard-linux-ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17.zip |
net/sched: mqprio: fix stack out-of-bounds write in tc entry parsing
TCA_MQPRIO_TC_ENTRY_INDEX is validated using
NLA_POLICY_MAX(NLA_U32, TC_QOPT_MAX_QUEUE), which allows the value
TC_QOPT_MAX_QUEUE (16). This leads to a 4-byte out-of-bounds stack
write in the fp[] array, which only has room for 16 elements (0–15).
Fix this by changing the policy to allow only up to TC_QOPT_MAX_QUEUE - 1.
Fixes: f62af20bed2d ("net/sched: mqprio: allow per-TC user input of FP adminStatus")
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Maher Azzouzi <maherazz04@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250802001857.2702497-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions