pgo: Limit allocate_node() to vmlinux sections
When Clang instrumentation eventually calls allocate_node() the struct
llvm_prf_data *p argument tells us from what section we should reserve
the vnode: It either points into vmlinux's core __llvm_prf_data section
or some loaded module's __llvm_prf_data section.
But since we don't have access to corresponding __llvm_prf_vnds section(s)
for any module, the function should return just NULL and ignore any
profiling attempts from modules for now.
Signed-off-by: Jarmo Tiitto <jarmo.tiitto@gmail.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210604165819.7947-1-jarmo.tiitto@gmail.com