* Re: pull-request: bpf-next 2023-12-18 [not found] <20231219000520.34178-1-alexei.starovoitov@gmail.com> @ 2023-12-19 0:55 ` Jakub Kicinski 2023-12-19 1:17 ` Linus Torvalds 0 siblings, 1 reply; 2+ messages in thread From: Jakub Kicinski @ 2023-12-19 0:55 UTC (permalink / raw) To: torvalds Cc: Alexei Starovoitov, davem, edumazet, pabeni, daniel, andrii, peterz, brauner, netdev, bpf, kernel-team, linux-kernel On Mon, 18 Dec 2023 16:05:20 -0800 Alexei Starovoitov wrote: > 2) Introduce BPF token object, from Andrii Nakryiko. > It adds an ability to delegate a subset of BPF features from privileged daemon > (e.g., systemd) through special mount options for userns-bound BPF FS to a > trusted unprivileged application. The design accommodates suggestions from > Christian Brauner and Paul Moore. > Example: > $ sudo mkdir -p /sys/fs/bpf/token > $ sudo mount -t bpf bpffs /sys/fs/bpf/token \ > -o delegate_cmds=prog_load:MAP_CREATE \ > -o delegate_progs=kprobe \ > -o delegate_attachs=xdp LGTM, but what do I know about file systems.. Adding LKML to the CC list, if anyone has any late comments on the BPF token come forward now, petty please? ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pull-request: bpf-next 2023-12-18 2023-12-19 0:55 ` pull-request: bpf-next 2023-12-18 Jakub Kicinski @ 2023-12-19 1:17 ` Linus Torvalds 0 siblings, 0 replies; 2+ messages in thread From: Linus Torvalds @ 2023-12-19 1:17 UTC (permalink / raw) To: Jakub Kicinski Cc: Alexei Starovoitov, davem, edumazet, pabeni, daniel, andrii, peterz, brauner, netdev, bpf, kernel-team, linux-kernel On Mon, 18 Dec 2023 at 16:55, Jakub Kicinski <kuba@kernel.org> wrote: > > LGTM, but what do I know about file systems.. Adding LKML to the CC > list, if anyone has any late comments on the BPF token come forward > now, petty please? See my crossed email reply. The file descriptor handling is FUNDAMENTALLY wrong. The first time that happened, we chalked it up to a mistake. Now it's something worse. Please don't pull until at least that part is fixed. I tried to review the token patches, but honestly, I got to that part and I just gave up. We had this whole discussion more than 6 months ago: https://lore.kernel.org/all/20230517-allabendlich-umgekehrt-8cc81f8313ac@brauner/ and I really thought the bpf people had *understood* they their special use of "fd == 0" was wrong. But it seems that they never did. Once is a mistake. Twice is a choice. And the bpf people have chosen insanity. Linus ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-19 1:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20231219000520.34178-1-alexei.starovoitov@gmail.com>
2023-12-19 0:55 ` pull-request: bpf-next 2023-12-18 Jakub Kicinski
2023-12-19 1:17 ` Linus Torvalds
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®