Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3449484pxb; Mon, 4 Apr 2022 17:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZS46Cbd8gaj3ra/SMi5kY5P9YI9cnosAtXVYntKW32aWdIRVqAenwOXtx4XnJyXXw3CQj X-Received: by 2002:a17:902:e547:b0:156:c93c:6a3e with SMTP id n7-20020a170902e54700b00156c93c6a3emr646973plf.5.1649118018033; Mon, 04 Apr 2022 17:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649118018; cv=none; d=google.com; s=arc-20160816; b=hz+jNmFAy3zOsABRa/lVkYYAEbi5hG+Jzl3Fnm4R8mBrl4IBCi+ZaTTBrlOtf/8zCN Wby/dPuFfVEO2guSdYpliCvysRJ1v8kkVYbzBNI/6DUD+XrMKcGfDRUR6xl7RDPiJ4fI Nck+h7K0wOLlqN+c3KSNVyfqyMu0mdpl/n/nMiOxiba5e9Wiv5TX4efTfGCqT6EZ5szV eZkSmotc2nIUPA+3eyf8Nxks3QAVkshjdhGDTtfdgv22ouV2boiiWOFAolyPczrmKBhD OwwdDiuBy0VlcnSNsQC7bHs86tOpdTg0qMQaizL5j97f3sv3m0fh7Ws8AwCVIasB00E6 +Kdg== 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=8Sy6lLde5VcNPeI23XMHSOXgItIWySvybaTdW54sduA=; b=Au+hBXzXbBpVVQmkFmIGil5U/S4fbGp+M/SRHc2cbodS75+3dIgq/Tx04WEsObAKx8 g8/FUVHDDOx0TU173m6Pjnkfa19mrb9KwALGbzFIaQPPApfROGJxmfymMNK66it+PxWn SkQ93w5JpvJ+pVQepU10uF4sMxutSiCaA69xTgHgwpmjy9xAfnbI4L5fLNai6E1R2PZW cHm8IXMYJPCdqRDgiCfh+JioDQKEW2XQSITsVuI3FFhVfWek25BRA97d8RtF2nwl2GDr cTAcmq4glM9oi0zn/rMhX9lPSOWRCihgwfkVdRTJXayQrJ2lyM0wAaI3spyznrrB0d9N 1YoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hXsndN29; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id w17-20020a1709027b9100b00156a80d40f9si4013720pll.515.2022.04.04.17.20.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:20:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hXsndN29; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 348E571A04; Mon, 4 Apr 2022 16:46:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376871AbiDDBcM (ORCPT + 99 others); Sun, 3 Apr 2022 21:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344091AbiDDBcK (ORCPT ); Sun, 3 Apr 2022 21:32:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 849742CE1E; Sun, 3 Apr 2022 18:30: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 E152CB801B8; Mon, 4 Apr 2022 01:30:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9183DC340F0; Mon, 4 Apr 2022 01:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649035811; bh=cchmOcpQSMM6YXLo3nclOq49DjPa7jtMaWZG7HiWitM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=hXsndN2961BIOEZY4UroZBn14ghnjjrusT6FahLft5i+DumTIGSdnM0I8723qkWLC ir+54vHN/iTpIFG2lo6gqBBOqxteefa1Axuos3pYh+q9aZaFJ31CCCDyMRZ8yC2BaG yvRCrbacD7XlrHaWOQwET0gNOWBKEYwVuQvsENl7jonN9BFuxvf85pEtpFOXhiWiiA dQntl1gIKR08XpYipg6j9Amg+RtPzW+MJkAmnfBh4Jat/eqrg5nH6jtUzLQziRR+z6 QOkVHgDX2BPSW8duJRG7GB7ILpfMcaW/m1HxASvE5z7JwhHLQY8AY3TsvCjCUbIQky /ELdWe6sTlOFw== 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 75CF0E4A6CB; Mon, 4 Apr 2022 01:30:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf-next v3] libbpf: Don't return -EINVAL if hdr_len < offsetofend(core_relo_len) From: patchwork-bot+netdevbpf@kernel.org Message-Id: <164903581147.16822.5070536140817711487.git-patchwork-notify@kernel.org> Date: Mon, 04 Apr 2022 01:30:11 +0000 References: <20220404005320.1723055-1-ytcoode@gmail.com> In-Reply-To: <20220404005320.1723055-1-ytcoode@gmail.com> To: Yuntao Wang Cc: andrii.nakryiko@gmail.com, andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, kafai@fb.com, kpsingh@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, toke@redhat.com, yhs@fb.com 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 Mon, 4 Apr 2022 08:53:20 +0800 you wrote: > Since core relos is an optional part of the .BTF.ext ELF section, we should > skip parsing it instead of returning -EINVAL if header size is less than > offsetofend(struct btf_ext_header, core_relo_len). > > Signed-off-by: Yuntao Wang > --- > v1 -> v2: skip core relos if hdr_len < offsetofend(core_relo_len) > v2 -> v3: fix comment style > > [...] Here is the summary with links: - [bpf-next,v3] libbpf: Don't return -EINVAL if hdr_len < offsetofend(core_relo_len) https://git.kernel.org/bpf/bpf-next/c/a6a86da847eb You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html