On Mon, May 2, 2022 at 4:09 PM Delyan Kratunov <delyank@xxxxxx> wrote: > > uprobe and kprobe programs have the same program type, KPROBE, which is > currently not allowed to load sleepable programs. > > To avoid adding a new UPROBE type, we instead allow sleepable KPROBE > programs to load and defer the is-it-actually-a-uprobe-program check > to attachment time, where we're already validating the corresponding > perf_event. > > A corollary of this patch is that you can now load a sleepable kprobe > program but cannot attach it. > > Signed-off-by: Delyan Kratunov <delyank@xxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > kernel/bpf/verifier.c | 4 ++-- > kernel/events/core.c | 16 ++++++++++------ > 2 files changed, 12 insertions(+), 8 deletions(-) > [...]