Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1369246imn; Sun, 31 Jul 2022 04:30:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLXSdTZmG9Rdu9l/aGw/j7nhvL8YlJPtqZ8kK1fxzQE2oKCRSH0kR1wX950CVR3qcoM4k0 X-Received: by 2002:a05:6402:292:b0:43c:ee5e:a5da with SMTP id l18-20020a056402029200b0043cee5ea5damr11504301edv.181.1659267010027; Sun, 31 Jul 2022 04:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659267010; cv=none; d=google.com; s=arc-20160816; b=UuYURO7U1HDSfKBr+wD27LP9i5UPenVYFe80YOWIrQkNmCK82lEMLEeEXQEj/xnPxQ OdOgf1nOR1EEMHKBPRyLtQKiAKFIbtScGU6lAh/p5WwbTISTo1cuGWphCtNr0bZuHlb0 W0YZDxUs841bAuGEegYvAkWbFrvH9R6QcUHnrA+Zv7My8e1HhfP022/V/pyZ7DBT896Z jBEahO2flLEHHv07ydefwVjeBazoO8MHoyHxt9rBnxf1hvWtf129T2epCauccShROW69 V9Q5x5N1FvJmHp3eTrqH9DSHJiNegc7vviVZU8W5AFDGpeVx6VKFBBOjN0/ViZqilX11 nfjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8BD8Vw7gD7ph8O5BAsUIfbIbByL1Tbr0w0cE9ZKzfic=; b=qQ2ykmfh7NBrcCiGy+388+sIrrLA60BaDUUZF0cKJJq8paFNtJPItfUy2iURRA/8dX io/mQGmKkJkEf+P4m7lOCEZIare371iR+oQepfHbHHYOinz2bSuzsjql/txAKAOH2gHu 4TrLCbRqz8xh6c7DI/zih8NuaneY/AwKkYTId8Y3dt6lODAf3bltwmqeOzP+Jd6pQpRx iJEr6jiGE9E4eLcchEmwBLpnQmQVYVK9USqA4FuMY2v6BOxE2NcKyo0jPeAOfDJp03ra oHIkVoyEHmRhbo1JllBSevT+WyYEhHhw/UjUDgKfY5hgusEcDtenLRfTJ4A+LHQiTHq9 utng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wXO2QhbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs4-20020a1709073e8400b00722fb2281c0si4448442ejc.417.2022.07.31.04.29.44; Sun, 31 Jul 2022 04:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wXO2QhbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236675AbiGaKwD (ORCPT + 99 others); Sun, 31 Jul 2022 06:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236932AbiGaKvn (ORCPT ); Sun, 31 Jul 2022 06:51:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24C2311C1D; Sun, 31 Jul 2022 03:51:30 -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 B5DA060B3D; Sun, 31 Jul 2022 10:51:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4F80C433D6; Sun, 31 Jul 2022 10:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659264689; bh=MunCRz4iDw3y/y30NFQENR1/LutQOobmgpG0mlatK8I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wXO2QhbQybadf3Gz9VBoy/niwXFBEKyIVBGHD30RsiX9lUFTogcqzt+e0CfR0LEOc wsF1t+iNomP8SoEMWM6EcL0rXPterwNY3MnnEmXWjVSlwUyKq91pMyj09gSsR/3oyS pvS7/Qx7AxHSEQPnhimXXXhX81kSJgvoAszRK0bE= Date: Sun, 31 Jul 2022 12:51:26 +0200 From: Greg KH To: Tianchen Ding Cc: ast@kernel.org, linux-kernel@vger.kernel.org, lmb@cloudflare.com, sashal@kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 5.10 373/575] selftests: bpf: Convert sk_lookup ctx access tests to PROG_TEST_RUN Message-ID: References: <20211115165356.685521944@linuxfoundation.org> <6258c4a1-0132-5afe-8dab-afa4ca3c49d6@linux.alibaba.com> <2ace00b0-c2db-536f-e55b-f13e02165a8b@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2ace00b0-c2db-536f-e55b-f13e02165a8b@linux.alibaba.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Jul 28, 2022 at 11:09:32AM +0800, Tianchen Ding wrote: > On 2022/7/28 11:03, Tianchen Ding wrote: > > On 2022/7/27 18:10, Greg KH wrote: > > > On Mon, Jul 25, 2022 at 10:53:38AM +0800, Tianchen Ding wrote: > > > > Hi Greg. > > > > > > > > We found a compile error when building tools/testing/selftests/bpf/ on 5.10. > > > > > > > > tools/testing/selftests/bpf/prog_tests/sk_lookup.c:1092:15: error: 'struct bpf_sk_lookup' has no member named 'cookie' > > > > ? 1092 |? if (CHECK(ctx.cookie == 0, "ctx.cookie", "no socket selected\n")) > > > > > > > > It requires 7c32e8f8bc33 ("bpf: Add PROG_TEST_RUN support for sk_lookup programs") from upstream. > > > > > > > > Maybe the left patches of this patchset are needed for 5.10 LTS? > > > > https://lore.kernel.org/bpf/20210303101816.36774-1-lmb@cloudflare.com/ > > > > > > If so, please submit them with the git commit ids so that I can fix this > > > up. > > > > > > thanks, > > > > > > greg k-h > > > > These 2 commits from upstream are necessary for bpf selftests build pass on 5.10.y: > > 607b9cc92bd7208338d714a22b8082fe83bcb177 bpf: Consolidate shared test timing code > > 7c32e8f8bc33a5f4b113a630857e46634e3e143b bpf: Add PROG_TEST_RUN support for sk_lookup programs > > > > This commit does not impact building stage, but can avoid a test case failure (by skipping it): > > b4f894633fa14d7d46ba7676f950b90a401504bb selftests: bpf: Don't run sk_lookup in verifier tests > > > > Thanks. > > Or should I submit complete patches? Yes, please submit complete patches. thanks, greg k-h