[Eoan][SRU][PATCH 0/1] Fix for bpf kselftest build issue

Po-Hsu Lin po-hsu.lin at canonical.com
Fri Feb 7 06:47:40 UTC 2020


== SRU Justification ==
Commit 7541c87c ("bpf: Allow narrow loads of bpf_sysctl fields with
offset > 0") applied to Eoan tree via stable-update process brought a
member called "seek" to tools/testing/selftests/bpf/test_sysctl.c:
   .seek = 4,

However we don't have the commit that declares it, so the compilation
failed with:
    test_sysctl.c:181:4: error: ‘struct sysctl_test’ has no member named ‘seek’
      181 | .seek = 4,
          | ^~~~

== Fix ==
* d895a0f1 ("bpf: fix accessing bpf_sysctl.file_pos on s390")

Only Eoan is affected.

== Test ==
Patch tested against the affected kernels, the bpf test can be built
without any issue.

== Regression Potential ==
Low, changes limited to testing tools.

Ilya Leoshkevich (1):
  bpf: fix accessing bpf_sysctl.file_pos on s390

 include/linux/filter.h                    |  8 ++++----
 kernel/bpf/cgroup.c                       | 10 ++++++++--
 kernel/bpf/verifier.c                     |  4 ++--
 tools/testing/selftests/bpf/test_sysctl.c |  9 ++++++++-
 4 files changed, 22 insertions(+), 9 deletions(-)

-- 
2.7.4




More information about the kernel-team mailing list