On Sun, Jan 26, 2025 at 8:39 AM Jordan Rome <linux@xxxxxxxxxxxxxx> wrote: > > This new kfunc will be able to copy a string > from another process's/task's address space. > This is similar to `bpf_copy_from_user_str` > but accepts a `struct task_struct*` argument. > > Signed-off-by: Jordan Rome <linux@xxxxxxxxxxxxxx> > --- > kernel/bpf/helpers.c | 48 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > Please carry over received acks/reviewed-by's, unless you drastically changed something about approved patch: Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c > index f27ce162427a..a33f72a4c31f 100644 > --- a/kernel/bpf/helpers.c > +++ b/kernel/bpf/helpers.c > @@ -3082,6 +3082,53 @@ __bpf_kfunc void bpf_local_irq_restore(unsigned long *flags__irq_flag) > local_irq_restore(*flags__irq_flag); > } [...]