diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-09-02 20:26:11 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-04 15:19:58 -0700 |
| commit | 47a582b2b0e7bb5753e4803988e150a405b57f51 (patch) | |
| tree | fa30be0cb024f3206ed01bba651fbff99e4cd49e /tools/perf/scripts/python/stackcollapse.py | |
| parent | b1fffc273112e7284c5b705e186b43b5770cd3d5 (diff) | |
ethtool: document that GRXCLSRLALL rule_cnt is a caller-provided limit
Three drivers have shipped a get_rxnfc() which dumps its entire rule
table into rule_locs, reading rule_cnt as "how many rules do I have"
rather than "how many entries did the caller allocate". Nothing in the
callback's documentation contradicted that reading. The distinction only
matters because the ioctl lets an unprivileged caller pick rule_cnt
directly, so getting it wrong is a heap overflow rather than a truncated
dump.
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260903032611.3000029-6-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
