1. 17 5月, 2018 9 次提交
  2. 16 5月, 2018 1 次提交
  3. 15 5月, 2018 5 次提交
  4. 14 5月, 2018 2 次提交
  5. 12 5月, 2018 4 次提交
  6. 11 5月, 2018 18 次提交
  7. 10 5月, 2018 1 次提交
    • J
      nfp: bpf: allow zero-length capabilities · 26aeb9da
      Jakub Kicinski 提交于
      Some BPF capabilities carry no value, they simply indicate feature
      is present.  Our capability parsing loop will exit early if last
      capability is zero-length because it's looking for more than 8 bytes
      of data (8B is our TLV header length).  Allow the last capability to
      be zero-length.
      
      This bug would lead to driver failing to probe with the following error
      if the last capability FW advertises is zero-length:
      
          nfp: BPF capabilities left after parsing, parsed:92 total length:100
          nfp: invalid BPF capabilities at offset:92
      
      Note the "parsed" and "length" values are 8 apart.
      
      No shipping FW runs into this issue, but we can't guarantee that will
      remain the case.
      
      Fixes: 77a844ee ("nfp: bpf: prepare for parsing BPF FW capabilities")
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: NQuentin Monnet <quentin.monnet@netronome.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      26aeb9da