On Mon, Aug 31, 2020 at 7:52 AM Björn Töpel <bjorn.topel@xxxxxxxxx> wrote: > > On Fri, 28 Aug 2020 at 00:02, Alexei Starovoitov > <alexei.starovoitov@xxxxxxxxx> wrote: > > > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > > > [...] > > > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > > index 6f5a9f51cc03..3ebfdb7bd427 100644 > > [...] > > > > > +/* non exhaustive list of sleepable bpf_lsm_*() functions */ > > +BTF_SET_START(btf_sleepable_lsm_hooks) > > +#ifdef CONFIG_BPF_LSM > > +BTF_ID(func, bpf_lsm_file_mprotect) > > +BTF_ID(func, bpf_lsm_bprm_committed_creds) > > +#endif > > +BTF_SET_END(btf_sleepable_lsm_hooks) > > + > > I'm getting: > FAILED unresolved symbol btf_sleepable_lsm_hooks > when CONFIG_BPF_LSM is not set. > > Adding a BTF_UNUSED_ID unconditionally to the set helps, but I'm on a > BTF limb here, so there might be a more correct/obvious workaround > here... yeah. thanks for reporting. The fix is on the way.