twx-linux/include
Sabrina Dubroca 5bd8baab08 esp: limit skb_page_frag_refill use to a single page
Commit ebe48d368e97 ("esp: Fix possible buffer overflow in ESP
transformation") tried to fix skb_page_frag_refill usage in ESP by
capping allocsize to 32k, but that doesn't completely solve the issue,
as skb_page_frag_refill may return a single page. If that happens, we
will write out of bounds, despite the check introduced in the previous
patch.

This patch forces COW in cases where we would end up calling
skb_page_frag_refill with a size larger than a page (first in
esp_output_head with tailen, then in esp_output_tail with
skb->data_len).

Fixes: cac2661c53f3 ("esp4: Avoid skb_cow_data whenever possible")
Fixes: 03e2a30f6a27 ("esp6: Avoid skb_cow_data whenever possible")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
2022-04-13 10:16:11 +02:00
..
acpi
asm-generic ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
clocksource
crypto
drm
dt-bindings There's one large change in the core clk framework here. We change how 2022-03-30 10:11:04 -07:00
keys
kunit
kvm
linux Networking fixes for 5.18-rc1 and rethook patches. 2022-03-31 11:23:31 -07:00
math-emu
media
memory
misc
net esp: limit skb_page_frag_refill use to a single page 2022-04-13 10:16:11 +02:00
pcmcia
ras mm/memory-failure.c: fix race with changing page compound again 2022-03-22 15:57:07 -07:00
rdma
scsi SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
soc drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
sound flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
target
trace Networking fixes for 5.18-rc1 and rethook patches. 2022-03-31 11:23:31 -07:00
uapi rpmsg updates for v5.18 2022-03-30 10:43:19 -07:00
vdso
video
xen