BPF List
 help / color / mirror / Atom feed
* FW: BPF-NX+CFI is a good upstreaming candidate
@ 2024-01-03 16:06 Maxwell Bland
  2024-01-03 16:27 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Maxwell Bland @ 2024-01-03 16:06 UTC (permalink / raw)
  To: bpf@vger.kernel.org

Forwarding to BPF mailing list as plaintext to match the mail server restrictions.

From what I understand, Linux security team is reactive rather than proactive, so maybe the below is a moot point, but I'd love to see BPF-NX+CFI if possible.

Originally sent to di_jin@brown.edu; v.atlidakis@gmail.com; vpk@cs.brown.edu; dborkman@kernel.org; lsf-pc@lists.linux-foundation.org; bpf@vger.kernel.org; Andrew Wheeler <awheeler@motorola.com>; Sammy BS2 Que | 阙斌生 <quebs2@motorola.com>

Dear Jin et al. Daniel Borkman, and LSF/BPF mailing lists,

Although a few months late, Jin et al.’s USENIX ATC’23 EPF publication here (https://cs.brown.edu/~vpk/papers/epf.atc23.pdf) is great. It was a relief to see the efforts in https://gitlab.com/brown-ssl/epf/-/blob/master/linux-5.10/patches/0003-Adding-BPF-NX.patch?ref_type=heads and related files.

BPF-NX+CFI would/could/should be a great upstreaming candidate. I am not sure how well BPF-NX+CFI generalizes to the full kernel ecosystem given the approach requires a dedicated vmalloc memory region, but the idea PXN is no longer be enforced at a PMD-level granularity because of eBPF is unfortunate.

BPF-ISR is likely overkill performance-wise as a mechanism and can be handled/refined via kprobes rather than direct patches.

Jin et al., do you happen to have performance numbers for just NX+CFI, or knowledge of how well this may apply to 6.*+ kernels? With your blessing, and if the mailing list peers are supportive, we should discuss your work and BPF security at https://events.linuxfoundation.org/lsfmmbpf/program/cfp/.

Maxwell Bland
Motorola

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-03 22:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 16:06 FW: BPF-NX+CFI is a good upstreaming candidate Maxwell Bland
2024-01-03 16:27 ` Greg KH
2024-01-03 18:56   ` Maxwell Bland
2024-01-03 19:16     ` [PATCH 1/2] Adding BPF NX Maxwell Bland
2024-01-03 19:17       ` [PATCH 2/2] Adding BPF CFI Maxwell Bland
2024-01-03 20:47       ` [PATCH 1/2] Adding BPF NX Alexei Starovoitov
2024-01-03 22:36         ` [External] " Maxwell Bland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox