1. 12 Feb, 2021 11 commits
  2. 11 Feb, 2021 10 commits
  3. 10 Feb, 2021 8 commits
  4. 09 Feb, 2021 8 commits
  5. 08 Feb, 2021 1 commit
  6. 05 Feb, 2021 2 commits
    • Yonghong Song's avatar
      bpf: Refactor BPF_PSEUDO_CALL checking as a helper function · 23a2d70c
      Yonghong Song authored
      There is no functionality change. This refactoring intends
      to facilitate next patch change with BPF_PSEUDO_FUNC.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Link: https://lore.kernel.org/bpf/20210204234827.1628953-1-yhs@fb.com
      23a2d70c
    • Andrii Nakryiko's avatar
      Merge branch 'BPF ring buffer + sleepable programs' · ecda49c5
      Andrii Nakryiko authored
      KP Singh says:
      
      ====================
      
      - Use ring_buffer__consume without BPF_RB_FORCE_WAKEUP as suggested by
        Andrii
      - Use ASSERT_OK_PTR macro
      
      Sleepable programs currently do not have access to any ringbuffer and
      since the perf ring buffer is a per-cpu map, it would not be trivial to
      enable for sleepable programs. Our specific use-case is to use the
      bpf_ima_inode_hash helper and write the hash to a ring buffer from a
      sleepable LSM hook.
      
      This series allows the BPF ringbuffer to be used in sleepable programs
      (tracing and lsm). Since the helper prototypes were already exposed
      the only change required was have the verifier allow
      BPF_MAP_TYPE_RINGBUF for sleepable programs. The ima test is also
      modified to use the ringbuffer instead of global variables.
      
      Based on dicussions we had over the BPF office hours and enabling all
      the possible debug options, I could not find any issues or warnings when
      using the ring buffer from sleepable programs.
      ====================
      Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
      ecda49c5