Skip to content

sockmap, syzbot fix error path and RCU fix

John Fastabend netdev 2 versions – Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am 20180705150506.9055.81845.stgit@john-Precision-Tower-5810

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: sockmap, error path can not release psock in multi-map casekernel/bpf/sockmap.c+6 -110 replies
2/2bpf: sockmap, hash table is RCU so readers do not need lockskernel/bpf/sockmap.c+0 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [bpf PATCH v2 0/2] sockmap, syzbot fix error path and RCU fix

I missed fixing the error path in the sockhash code to align with supporting socks in multiple maps. Simply checking if the psock is present does not mean we can decrement the reference count because it could be part of another map. Fix this by cleaning up the error path so this situation does not happen.

---

John Fastabend (2):
bpf: sockmap, error path can not release psock in multi-map case
bpf: sockmap, hash table is RCU so readers do not need locks

 kernel/bpf/sockmap.c |   19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)