Netdev List
 help / color / mirror / Atom feed
* [bpf PATCH v2 0/2] sockmap, syzbot fix error path and RCU fix
@ 2018-07-05 15:05 John Fastabend
  2018-07-05 15:05 ` [bpf PATCH v2 1/2] bpf: sockmap, error path can not release psock in multi-map case John Fastabend
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John Fastabend @ 2018-07-05 15:05 UTC (permalink / raw)
  To: ast, daniel; +Cc: netdev, john.fastabend

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(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-07 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-05 15:05 [bpf PATCH v2 0/2] sockmap, syzbot fix error path and RCU fix John Fastabend
2018-07-05 15:05 ` [bpf PATCH v2 1/2] bpf: sockmap, error path can not release psock in multi-map case John Fastabend
2018-07-05 15:06 ` [bpf PATCH v2 2/2] bpf: sockmap, hash table is RCU so readers do not need locks John Fastabend
2018-07-07 22:23 ` [bpf PATCH v2 0/2] sockmap, syzbot fix error path and RCU fix Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox