From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64146C433EF for ; Tue, 31 May 2022 22:40:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348444AbiEaWkR (ORCPT ); Tue, 31 May 2022 18:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238162AbiEaWkO (ORCPT ); Tue, 31 May 2022 18:40:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8773F9EB4A; Tue, 31 May 2022 15:40:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 23DAD61468; Tue, 31 May 2022 22:40:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 6F7EAC3411D; Tue, 31 May 2022 22:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654036812; bh=4cd7A12mmB7TOFG1oNOqmQmjZoSqWu2ThW8sKS2FhmY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=ePU8nggokZOUGbrVKMRgoXk1AjyOxfFmbvGUNPTB+EKtObcTwS/DQ61tZNjOePdSt 7zivQqMyoBXVO/01C0juKlMB7YWZlZ3FR0BsWEs/HJT8IpMX8CaE17jWTgjB8rQd+I 0Ogv/AX1cBPppgI+pMZ5DDJMNzs/fXFa7LDko+7KNBhcfa+Gsw7Gih1wE+VLFb8X+F WFsFmx3OkC+TPqvRGVtaeV2JpMHkJK/3E+f07nbNDRTUcdZVPgEuZg37vCn12qRC9M s+2liPRW3TEQEkfzYODhQ4Uhur2KJXhNijZdfyD3wE6Ab2xvbwj5+0pT9WMYu3XI/P xON7OBoyJfBhA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 4D6A9F0394D; Tue, 31 May 2022 22:40:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Check for NULL ptr of btf in codegen_asserts From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165403681231.3395.15965102902497727563.git-patchwork-notify@kernel.org> Date: Tue, 31 May 2022 22:40:12 +0000 References: <20220523194917.igkgorco42537arb@jup> In-Reply-To: <20220523194917.igkgorco42537arb@jup> To: Michael Mullin Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Mon, 23 May 2022 15:49:17 -0400 you wrote: > bpf_object__btf() can return a NULL value. If bpf_object__btf returns > null, do not progress through codegen_asserts(). This avoids a null ptr > dereference at the call btf__type_cnt() in the function find_type_for_map() > > Signed-off-by: Michael Mullin > --- > tools/bpf/bpftool/gen.c | 3 +++ > 1 file changed, 3 insertions(+) Here is the summary with links: - Check for NULL ptr of btf in codegen_asserts https://git.kernel.org/bpf/bpf-next/c/d992a11f1171 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html