1. 18 5月, 2019 16 次提交
  2. 17 5月, 2019 22 次提交
  3. 16 5月, 2019 2 次提交
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · c7d5ec26
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      c7d5ec26
    • J
      bpf, tcp: correctly handle DONT_WAIT flags and timeo == 0 · 5fa2ca7c
      John Fastabend 提交于
      The tcp_bpf_wait_data() routine needs to check timeo != 0 before
      calling sk_wait_event() otherwise we may see unexpected stalls
      on receiver.
      
      Arika did all the leg work here I just formatted, posted and ran
      a few tests.
      
      Fixes: 604326b4 ("bpf, sockmap: convert to generic sk_msg interface")
      Reported-by: NArika Chen <eaglesora@gmail.com>
      Suggested-by: NArika Chen <eaglesora@gmail.com>
      Signed-off-by: NJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      5fa2ca7c