aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2025-07-11 11:40:05 +0000
committerJakub Kicinski <[email protected]>2025-07-15 01:41:43 +0000
commit1d2fbaad7cd8cc96899179f9898ad2787a15f0a0 (patch)
tree5dae8f99d03471467256e6bcac1ffb02ec00cda5 /drivers/platform/x86/intel/pmt/class.c
parenttcp: add const to tcp_try_rmem_schedule() and sk_rmem_schedule() skb (diff)
downloadkernel-1d2fbaad7cd8cc96899179f9898ad2787a15f0a0.tar.gz
kernel-1d2fbaad7cd8cc96899179f9898ad2787a15f0a0.zip
tcp: stronger sk_rcvbuf checks
Currently, TCP stack accepts incoming packet if sizes of receive queues are below sk->sk_rcvbuf limit. This can cause memory overshoot if the packet is big, like an 1/2 MB BIG TCP one. Refine the check to take into account the incoming skb truesize. Note that we still accept the packet if the receive queue is empty, to not completely freeze TCP flows in pathological conditions. Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions