From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796061767; b=0GDlbZkWOAwCxfnwUVn55yPhTrFWZS/nKiYrmXuKnp2EU+HTdDLluWPpaRPBnFXBVTOb vNXM9EpakYoUBrQsVG1TkbKQlCbMfbC1X15mw+eV0G7motJWAopQXehAoGQ2nNBWkVrtl 1XGIFArM4l8akyJJ8Q21CT2uo/G8GaV9B3HiQdGrIyMQafA6CMciIXGxv3gz3LGtQbVI8 vrlmEYVtzu8RPpv4JSrZNIoZzM+KCYmo+XJXDh9mlUl8/qDd5edf3Y0/FBvoQElppwWOo SHxUCedPtL/8lVkSoLVvVL7JB3MYiuzegqJBf2kmZm6a0AohdAjbYnjFiflN0yCvxfw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796061767; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=fKLp9o6/AuLCFgsWu2Swf29bG2MwjAOV8UzmU2qWpWY=; b=Xud88nMHAE/7bYxQBVvGye98od5TLENAk/UOZPlOKee1pSKOqCoyuR9tIqH7XaDnNgwY dqIWg1FZJV2Dx6/d4DQag+nN18fTDUpLltHvytVlUxTJmMgb7w/3k5tFoFgL2G+in699a dDg0cWSxu9pur9ZYkTUcmjfgnWzGWQPLqZHDlX6JBwaC9Fr+uaS+8NuCJXi66sHg1AeFN 28aMJ7kBbcaD9OOSD25yXvMUGW3nBZKcCzeMqTuHN1aBpE3DUl6a3rPQMFq92hv+7ymHH okbjhhCSkHZK//HQfesIhd7SdzH3G0HZ0k8lkIxS0DTVdq5DABdTe86kB2/TqWKQATw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MHaNauTf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60B8E606A31C for ; Mon, 30 Nov 2026 18:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MHaNauTf Received: by smtp.kernel.org (Postfix) with ESMTPSA id B99C01F00896; Mon, 30 Nov 2026 18:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796061766; bh=fKLp9o6/AuLCFgsWu2Swf29bG2MwjAOV8UzmU2qWpWY=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=MHaNauTfqd1EItWart1bzW3FI22vrH0UFUNoBqP7vP7kGQx1tTaHRoWHavgs9VV4B 1eAIJEDSxsjSkqErx0phLT4fo3F3hxLqBmRcKQPXrVoRZydb+EAPLkEM6S9d2i8PH/ pY4w1gNA7PYsZ+bD+wleMAkETpo/rwU8hy+OUI4HzzglwS+hr5eepN73XpdLWNYNwU isGPPkKILcIBE4JRFeEX00D+P3xJy+pcBXv7ezcn6nrtm9vNQiMn/6hoO7/2ncNPlR XczfZ44et3tUKLebSEe596Ijw/ORKN8cDbgirr4S18l7uMicDWunLfruRRtNcNpocY gU/f6KLYkikjA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 bpf-next 4/5] resolve_btfids: Do not tag functions whose callers break on a skip Reply-To: sashiko-reviews@lists.linux.dev To: "Anton Protopopov" , bpf@vger.kernel.org In-Reply-To: <20261130180425.150703-5-a.s.protopopov@gmail.com> References: <20261130180425.150703-1-a.s.protopopov@gmail.com> <20261130180425.150703-5-a.s.protopopov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 18:02:46 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] resolve_btfids: excluded_by_name() omits d_obtain_alias() and d_obtain_root() -- commit 479ac467ac3a9800596af92b0a8c1b53839d7fc5 Author: Anton Protopopov resolve_btfids: Do not tag functions whose callers break on a skip This commit adds functions to excluded_by_name() in resolve_btfids so they are not tagged for fmod_ret when skipping them breaks their callers. > diff --git a/tools/bpf/resolve_btfids/fmodret.c b/tools/bpf/resolve_btfid= s/fmodret.c > index 8fa63cbfd3037..401c9b7d3d80c 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", [Severity: Medium] Should d_obtain_alias() and d_obtain_root() also be excluded here? __d_obtain_alias() is a static helper in fs/dcache.c whose only callers are the exported one-line wrappers d_obtain_alias() and d_obtain_root(), both of which consume the caller's struct inode reference on entry. When the compiler inlines __d_obtain_alias() into d_obtain_alias() and d_obtain_root(), its clean ERR_PTR(-ESTALE) return for a NULL inode is emitted directly in the wrappers, causing resolve_btfids to tag them and allowing an fmod_ret skip to leak the caller's inode reference. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130180425.1507= 03-1-a.s.protopopov@gmail.com?part=3D4