These functions have the right tag, but a program which skips one breaks its caller: vfs_mkdir() error path unlocks the parent hang lock_two_directories() -EXDEV drops s_vfs_rename_mutex hang btrfs_lookup_csum() caller uses path after -ENOENT oops ipc_obtain_object_idr() do_shmat() doesn't check 2nd lookup oops idle_thread_get() cpu.c checks it only once oops pidfd_pid() the pidfs file ops don't check it oops ksm_get_folio() most callers don't check it oops __d_obtain_alias() a skip leaks the inode reference leak Add them to excluded_by_name(). Signed-off-by: Anton Protopopov --- tools/bpf/resolve_btfids/fmodret.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/bpf/resolve_btfids/fmodret.c b/tools/bpf/resolve_btfids/fmodret.c index 8fa63cbfd303..401c9b7d3d80 100644 --- a/tools/bpf/resolve_btfids/fmodret.c +++ b/tools/bpf/resolve_btfids/fmodret.c @@ -122,6 +122,15 @@ static bool excluded_by_name(const char *name) "aarch64_insn_write", "aarch64_insn_patch_text_nosync", "tracepoint_probe_unregister", + /* The error is right, but a skip breaks the caller */ + "vfs_mkdir", + "lock_two_directories", + "btrfs_lookup_csum", + "ipc_obtain_object_idr", + "idle_thread_get", + "pidfd_pid", + "ksm_get_folio", + "__d_obtain_alias", }; unsigned int i; -- 2.43.0