Files
android_kernel_fxtec_sm6115/include/linux
Eric Dumazet f708bdb4d1 UPSTREAM: net: add and use skb_unclone_keeptruesize() helper
While commit 097b9146c0e2 ("net: fix up truesize of cloned
skb in skb_prepare_for_shift()") fixed immediate issues found
when KFENCE was enabled/tested, there are still similar issues,
when tcp_trim_head() hits KFENCE while the master skb
is cloned.

This happens under heavy networking TX workloads,
when the TX completion might be delayed after incoming ACK.

This patch fixes the WARNING in sk_stream_kill_queues
when sk->sk_mem_queued/sk->sk_forward_alloc are not zero.

Bug: 254441685
Fixes: d3fb45f370d9 ("mm, kfence: insert KFENCE hooks for SLAB")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20211102004555.1359210-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit c4777efa751d293e369aec464ce6875e957be255)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I94082cca974d248a4b9376b41245bfc63bd1f134
2026-05-04 17:32:39 +03:00
..
2026-04-09 14:44:43 +08:00
2025-08-31 10:10:00 +01:00
2025-09-30 21:35:03 +01:00
2026-01-29 12:09:34 +08:00
2025-09-16 13:55:10 +02:00
2025-08-28 03:26:18 +03:00