[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <161661943080.28508.5809575518293376322.stgit@john-Precision-5820-Tower>
Date: Wed, 24 Mar 2021 13:59:10 -0700
From: John Fastabend <john.fastabend@...il.com>
To: john.fastabend@...il.com, andrii@...nel.org, daniel@...earbox.net,
ast@...com
Cc: xiyou.wangcong@...il.com, bpf@...r.kernel.org,
netdev@...r.kernel.org, lmb@...udflare.com
Subject: [bpf PATCH 0/2] bpf, sockmap fixes
This addresses an issue found while reviewing latest round of sock
map patches and an issue reported from CI via Andrii.
The CI discovered issue was introduced by over correcting our
previously broken memory accounting. After the fix, "bpf, sockmap:
Avoid returning unneeded EAGAIN when redirecting to self" we fixed
a dropped packet and a missing fwd_alloc calculations, but pushed
it too far back into the packet pipeline creating an issue in the
unlikely case socket tear down happens with an enqueued skb. See
patch for details.
Tested with usual suspects: test_sockmap, test_maps, test_progs
and test_progs-no_alu32.
---
John Fastabend (2):
bpf, sockmap: fix sk->prot unhash op reset
bpf, sockmap: fix incorrect fwd_alloc accounting
include/linux/skmsg.h | 1 -
net/core/skmsg.c | 13 ++++++-------
net/tls/tls_main.c | 6 ++++++
3 files changed, 12 insertions(+), 8 deletions(-)
--
Signature
Powered by blists - more mailing lists