1. 16 May, 2019 3 commits
    • Herbert Xu's avatar
      rhashtable: Fix cmpxchg RCU warnings · e9458a4e
      Herbert Xu authored
      As cmpxchg is a non-RCU mechanism it will cause sparse warnings
      when we use it for RCU.  This patch adds explicit casts to silence
      those warnings.  This should probably be moved to RCU itself in
      future.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e9458a4e
    • Herbert Xu's avatar
      rhashtable: Remove RCU marking from rhash_lock_head · ba6306e3
      Herbert Xu authored
      The opaque type rhash_lock_head should not be marked with __rcu
      because it can never be dereferenced.  We should apply the RCU
      marking when we turn it into a pointer which can be dereferenced.
      
      This patch does exactly that.  This fixes a number of sparse
      warnings as well as getting rid of some unnecessary RCU checking.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ba6306e3
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · c7d5ec26
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf 2019-05-16
      
      The following pull-request contains BPF updates for your *net* tree.
      
      The main changes are:
      
      1) Fix a use after free in __dev_map_entry_free(), from Eric.
      
      2) Several sockmap related bug fixes: a splat in strparser if
         it was never initialized, remove duplicate ingress msg list
         purging which can race, fix msg->sg.size accounting upon
         skb to msg conversion, and last but not least fix a timeout
         bug in tcp_bpf_wait_data(), from John.
      
      3) Fix LRU map to avoid messing with eviction heuristics upon
         syscall lookup, e.g. map walks from user space side will
         then lead to eviction of just recently created entries on
         updates as it would mark all map entries, from Daniel.
      
      4) Don't bail out when libbpf feature probing fails. Also
         various smaller fixes to flow_dissector test, from Stanislav.
      
      5) Fix missing brackets for BTF_INT_OFFSET() in UAPI, from Gary.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c7d5ec26
  2. 15 May, 2019 8 commits
  3. 14 May, 2019 29 commits