aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/arch/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorJingguo Tan <tanjingguo@huawei.com>2026-05-18 17:06:48 +0800
committerSteffen Klassert <steffen.klassert@secunet.com>2026-05-22 09:20:26 +0200
commitdfa0d7b0ff1eb6b2c416b8fdb9b4f2cefba57a40 (patch)
tree5327eb763b59db3f352436b7b3bd6ef7f77dcfc9 /tools/perf/arch/ssh:/git@git.zx2c4.com
parentesp: fix page frag reference leak on skb_to_sgvec failure (diff)
xfrm: esp: restore combined single-frag length gate
The ESP out-of-place fast path appends the trailer in esp_output_head() before esp_output_tail() allocates the destination page frag. The head-side gate currently checks skb->data_len and tailen separately, but the tail code allocates a single destination frag from the combined post-trailer skb->data_len. Reject the page-frag fast path when the combined aligned length exceeds a page. Otherwise skb_page_frag_refill() may fall back to a single page while the destination sg still spans the combined skb->data_len. Restore this combined-length page gate for both IPv4 and IPv6. Fixes: 5bd8baab087d ("esp: limit skb_page_frag_refill use to a single page") Cc: stable@vger.kernel.org Signed-off-by: Lin Ma <malin89@huawei.com> Signed-off-by: Chenyuan Mi <michenyuan@huawei.com> Signed-off-by: Jingguo Tan <tanjingguo@huawei.com> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/arch/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions