]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf_iter-fixes'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 13 May 2020 19:30:50 +0000 (12:30 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 May 2020 19:31:52 +0000 (12:31 -0700)
commitbbd2bc54d7cf95e6ba10b341f55db26e0af92d69
treeeb5cdde87004c269a26a1e25fb0dd2d8264e98ee
parent9d8b2115a68f4d09731f381b696ac0e7cf7503c7
parent2efd8f5f9e9c9ec90780086fb3d0ab437c9571d7
Merge branch 'bpf_iter-fixes'

Yonghong Song says:

====================
Commit 12d7372db80e ("bpf: Implement an interface to register
bpf_iter targets") and its subsequent commits in the same patch set
introduced bpf iterator, a way to run bpf program when iterating
kernel data structures.

This patch set addressed some followup issues. One big change
is to allow target to pass ctx arg register types to verifier
for verification purpose. Please see individual patch for details.

Changelogs:
  v1 -> v2:
    . add "const" qualifier to struct bpf_iter_reg for
      bpf_iter_[un]reg_target, and this results in
      additional "const" qualifiers in some other places
    . drop the patch which will issue WARN_ONCE if
      seq_ops->show() returns a positive value.
      If this does happen, code review should spot
      this or author does know what he is doing.
      In the future, we do want to implement a
      mechanism to find out all registered targets
      so we will be aware of new additions.
====================

Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>