Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp31515pxh; Thu, 7 Apr 2022 13:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy76uar9dPsfz49xQ9g5vGRYG/4q1+dHEUOB9gP13Z83Xjk2EsuZknPQRGlyyBEyKjk1vJ5 X-Received: by 2002:a65:4c4d:0:b0:399:4c5a:1dbf with SMTP id l13-20020a654c4d000000b003994c5a1dbfmr12577457pgr.121.1649361882329; Thu, 07 Apr 2022 13:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361882; cv=none; d=google.com; s=arc-20160816; b=BTobsyadhCGK3ehp4eg85Mjm06AjeJ1UI26zAOxAjWovAk3iat5vNKjsLHTbc24tp/ 5gBz1eBXI/hajors1hELojVbrSIrCaEb6HlUElM5bhBocpTTu4azZ0qJAGqw5ZBkTPA8 UJRtPfCM9jCc17qVCye9BEcxZ0oUVds1SzEIZAeftE1Wsoyu8/dJ2qxgch0EbgaM0Hy4 0L1l3sCdEU/qA0LqTWlRQlc3/K+JkMUCG55FkyUQnGXVB+p0gV+t99YSYhJeRGvkl18i zVxvYboMztxSs7Dq9N/j5jfzVNATXd7U5Awwkz2bmK5Ib6inGSLotg048xxaGdXqIgnF Hu7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=/qhOspPcb34RThFUEsRM3NeC/tUgfh9hx1z+X6/g8r4=; b=SkQz7Ce9vJ2D8NjNbRdXZxd5nZP0WwI4ffDhixkfrTBN0udBfTjIx7z2937IZi4Dn9 kl8IHd9l+brCYBWABcMkC8CmAQ2xOww2aG396223iYI9jgopaSdrsZFJVp9to2nwoDe6 zbPlP6DCx45stIyBxvFmA8RmLEzodHjHWRjqVmRpLCu1iheFETmE4WPuUaIeUjUHNBxp R8LBrjRJDLHwMySfOywSS9JbpTORfRwGOTaJjTishLFr87B1ub3slbKiVhdYG90BBBBu 3ODLLsW8aLIY3Xup//OfU39LfzyzvCgZBIf3qje8yJBrnWsEo8Hts6qZviuUy9bBqifJ aeZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k4Wy6N3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k9-20020a056a00168900b004fa3a8e00a8si21933396pfc.351.2022.04.07.13.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k4Wy6N3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4921129D5E8; Thu, 7 Apr 2022 12:28:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238787AbiDGTMU (ORCPT + 99 others); Thu, 7 Apr 2022 15:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233924AbiDGTMT (ORCPT ); Thu, 7 Apr 2022 15:12:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A1617E36; Thu, 7 Apr 2022 12:10:14 -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 ams.source.kernel.org (Postfix) with ESMTPS id B00CCB82979; Thu, 7 Apr 2022 19:10:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 63C19C385A0; Thu, 7 Apr 2022 19:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649358612; bh=hBd815vHLe1VUTlBg62x1qBzYqrJi14WHZY28x9o0AQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=k4Wy6N3/7GnB2H7/Vyf5Fw1jZeaFUtNHCd4UT9//3+1eT3bEp5E7hLiTSIL4cKh1L AMF8PDmMs0lZ49vEQY41y8Ftxki00gnaT2NpUxEoLxf+oksukIdcm1NCT8AO6YPMNJ M2eO0qyfhYtNm1L7X2xefkAKrQV+3Cku211mLMGno/iRGt3Xqc3jMk+exJiHIaQQLB 8m9GCcu+fYgKpXsKQgTZDfOMAQowcaM5Dsxcyvg48XLnOMcfyctogULsryUC2KXirq xVMVzI89Kswj3Q+FOxDIhbyWxZTgjpUuk2cQDdgFv71vDelkSUM1TdDhqmDJ+L4xVJ gXmOkKDNSynBw== 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 452BAE85D53; Thu, 7 Apr 2022 19:10:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] libbpf: potential NULL dereference in usdt_manager_attach_usdt() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <164935861227.15263.23714590437746578.git-patchwork-notify@kernel.org> Date: Thu, 07 Apr 2022 19:10:12 +0000 References: <1649299098-2069-1-git-send-email-baihaowen@meizu.com> In-Reply-To: <1649299098-2069-1-git-send-email-baihaowen@meizu.com> To: Haowen Bai 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 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 Thu, 7 Apr 2022 10:38:17 +0800 you wrote: > link could be null but still dereference bpf_link__destroy(&link->link) > and it will lead to a null pointer access. > > Signed-off-by: Haowen Bai > --- > tools/lib/bpf/usdt.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Here is the summary with links: - libbpf: potential NULL dereference in usdt_manager_attach_usdt() https://git.kernel.org/bpf/bpf-next/c/e58c5c971746 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html