Thread (2 messages) 2 messages, 2 authors, 27d ago

Re: [PATCH net] net/sched: act_gate: budget the per-entry list in get_fill_size

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-23 23:51:16

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Sun, 20 Sep 2026 14:07:01 -0300 you wrote:
tcf_gate_get_fill_size returns only the TCA_GATE_PARMS size, but
tcf_gate_dump also emits three 64-bit timestamps, the clock id, flags,
priority and the variable-length TCA_GATE_ENTRY_LIST nest. The per-entry
nest is unbounded: parse_gate_list places no cap on the number of
sched-entries, so a gate with many entries can push the real dump well
past the skb that tca_get_fill allocates from this size.

[...]
Here is the summary with links:
  - [net] net/sched: act_gate: budget the per-entry list in get_fill_size
    https://git.kernel.org/netdev/net/c/cfa165cbfbed

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help