lkml.org 
[lkml]   [2022]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH v2 bpf 00/11] bpf: random unpopular userspace fixes (32 bit et al)
This mostly issues the cross build (1) errors for 32 bit (2)
MIPS (3) with minimal configuration (4) on Musl (5). The majority
of them aren't yesterday's, so it is a "who does need it outside
of x86_64 or ARM64?" moment again.
Trivial stuff in general, not counting the first three (they are
50/50).

From v1[0]:
- use *___local struct definitions for BPF programs instead of
BTF_TYPE_EMIT() and ifdef-play (Andrii);
- cast uin64_t to unsigned long long to *really* fix the format
literal warnings (Song, David, Andrii);
- collect Acked-bys for the rest (Maciej, Kumar, Song);
- adjust the subjects to match their usual look (Andrii);
- expand the commit messages a bit for 0008
(-Wshift-count-overflow) and 0010 (-Wsequence-point) a bit to
mention they actually mitigate the third-party issues (Andrii);
- rebase and send to bpf instead of bpf-next (hope the first three
are okay for it).

[0] https://lore.kernel.org/bpf/20220414223704.341028-1-alobakin@pm.me

Alexander Lobakin (11):
bpftool: use a local copy of perf_event to fix accessing ::bpf_cookie
bpftool: define a local bpf_perf_link to fix accessing its fields
bpftool: use a local bpf_perf_event_value to fix accessing its fields
bpftool: fix fcntl.h include
samples/bpf: add 'asm/mach-generic' include path for every MIPS
samples/bpf: use host bpftool to generate vmlinux.h, not target
samples/bpf: fix uin64_t format literals
samples/bpf: fix false-positive right-shift underflow warnings
samples/bpf: fix include order for non-Glibc environments
samples/bpf: fix -Wsequence-point
samples/bpf: xdpsock: fix -Wmaybe-uninitialized

samples/bpf/Makefile | 7 +++---
samples/bpf/cookie_uid_helper_example.c | 12 +++++-----
samples/bpf/lathist_kern.c | 2 +-
samples/bpf/lwt_len_hist_kern.c | 2 +-
samples/bpf/lwt_len_hist_user.c | 7 +++---
samples/bpf/task_fd_query_user.c | 2 +-
samples/bpf/test_lru_dist.c | 3 ++-
samples/bpf/tracex2_kern.c | 2 +-
samples/bpf/xdpsock_user.c | 5 +++--
tools/bpf/bpftool/skeleton/pid_iter.bpf.c | 15 ++++++++++---
tools/bpf/bpftool/skeleton/profiler.bpf.c | 27 ++++++++++++++---------
tools/bpf/bpftool/tracelog.c | 2 +-
12 files changed, 53 insertions(+), 33 deletions(-)

--
2.36.0


\
 
 \ /
  Last update: 2022-04-21 02:42    [W:0.176 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site