]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf: Fix cookie values for kprobe multi'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:42:21 +0000 (19:42 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:42:22 +0000 (19:42 -0700)
commit6cea03467ac1829403098cfd955fb832f99eef1d
tree32129d3eaa5e78b73c681d7947d382e786bac013
parentbff4d71297947b92a47933dc7bb548a4ef732bff
parent92f940a2484fcdff1713461529d884b2cf86700e
Merge branch 'bpf: Fix cookie values for kprobe multi'

Jiri Olsa says:

====================

hi,
there's bug in kprobe_multi link that makes cookies misplaced when
using symbols to attach. The reason is that we sort symbols by name
but not adjacent cookie values. Current test did not find it because
bpf_fentry_test* are already sorted by name.

v3 changes:
  - fixed kprobe_multi bench test to filter out invalid entries
    from available_filter_functions

v2 changes:
  - rebased on top of bpf/master
  - checking if cookies are defined later in swap function [Andrii]
  - added acks

thanks,
jirka
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>