linux/include
Eric Dumazet c6672561bc UPSTREAM: net: add and use skb_unclone_keeptruesize() helper
While commit 097b9146c0 ("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.

Fixes: d3fb45f370 ("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 c4777efa75)
Bug: 187129171
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: I5e456705bd01396c05c79009aeba36e00829e037
2022-02-11 17:30:25 -08:00
..
acpi ACPI: fix NULL pointer dereference 2021-08-08 09:05:23 +02:00
asm-generic This is the 5.10.60 stable release 2021-08-27 17:14:51 +02:00
clocksource clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG 2021-07-14 16:56:12 +02:00
crypto Revert "crypto: public_key: fix overflow during implicit conversion" 2021-09-30 16:01:42 +02:00
drm Revert "drm: serialize drm_file.master with a new spinlock" 2021-09-30 12:21:11 +02:00
dt-bindings This is the 5.10.50 stable release 2021-07-14 17:35:23 +02:00
keys certs: Add EFI_CERT_X509_GUID support for dbx entries 2021-06-30 08:47:30 -04:00
kunit
kvm
linux UPSTREAM: net: add and use skb_unclone_keeptruesize() helper 2022-02-11 17:30:25 -08:00
math-emu
media Revert "media: subdev: disallow ioctl for saa6588/davinci" 2021-07-20 11:56:13 +02:00
memory memory: renesas-rpc-if: Correct QSPI data transfer in Manual mode 2021-11-18 14:03:47 +01:00
misc
net Revert "tcp: switch orphan_count to bare per-cpu counters" 2021-11-19 14:22:11 +01:00
pcmcia
ras
rdma
scsi Merge tag 'android12-5.10.66_r00' into android12-5.10 2021-10-21 09:45:02 +02:00
soc This is the 5.10.65 stable release 2021-09-15 14:16:47 +02:00
sound Merge branch 'android12-5.10' into android12-5.10-lts 2021-11-04 17:26:58 +01:00
target
trace BACKPORT: f2fs: fix up f2fs_lookup tracepoints 2022-02-11 16:35:18 +00:00
uapi Merge tag 'android12-5.10.81_r00' into android12-5.10 2022-01-21 09:35:04 +01:00
vdso
video
xen