Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp201169imn; Wed, 27 Jul 2022 20:19:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgNkhwkB7UPRuh8Q4ZBQTIlY6Wi/Oim9IotPeI17jbDiyH4hGYMEgSkHMGsd0nBi+8bmRZ X-Received: by 2002:a17:903:2344:b0:16d:2dbe:fb4e with SMTP id c4-20020a170903234400b0016d2dbefb4emr24190333plh.89.1658978364950; Wed, 27 Jul 2022 20:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658978364; cv=none; d=google.com; s=arc-20160816; b=p4cIr8m05xk/Pwuzl45xFGzhCEkO1ywy7PvbAMfBTpCmX5I3KMIxNN/jzSzQl9qGUj FDEokO725vkefq5R80Nvw5sci7Uda/b0+bXBniApGG4SRWdtnbzivk0AUj4ADWkbQAyG Unogs15uSVe+yDR37azc7TlbViYJv++T0AbF/DAwfhsLGsr6c2O4jgjHDTHAgfZkf8Br qluZ7IapcMi8W4X2ETuv38f/128/3Xh/SxMgc9dqpFzeEbpSPvCYTgsgSPZoLHUz4XMF b1HyQTWAmsI6CJoyu8Za+3BSgFXsWOIzULDULnQr9nB0JCfDe7QY8dORFqZ5hVcLkk8F eBqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=Il03VuvTzTZnxxLG4Gv/fYs+HXfi8+3+fy8jEKV1mPk=; b=e9EUs38YAg4ZgntRX7cZ8uGszPZMM/Hkkwi9BKmcu/32tKWARdVvpqxViAj8QMigcc 9loVsW4Ql77pf4WNHsWbRpMYvcMsBhLcIiNfbqQzEPpODJjODZifHkKSTlDmlGoEoX/w Fcmpiv25KZQvyg/znfYuMerL87waX/HtJWHYcFa7L8kdPEHmx+OYrHAadmjWxl7tR4Jv QcyEadcmBdl2LLDON9bhj+nGexUNEul1HD6uzdNHFwgzd9LamfH4p7skcoviMXQwDqZH SBWTA/9YaW7IO3Lrdl6gi8wTqcaPC7rzgdVfSz2Ylxle5h4ifdz3jCTsCLgx3siK4dPH lvBg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b36-20020a630c24000000b0041a6822684bsi22087846pgl.213.2022.07.27.20.19.10; Wed, 27 Jul 2022 20:19:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234797AbiG1DJm (ORCPT + 99 others); Wed, 27 Jul 2022 23:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbiG1DJj (ORCPT ); Wed, 27 Jul 2022 23:09:39 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC775725E; Wed, 27 Jul 2022 20:09:36 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=dtcccc@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VKdQHYb_1658977772; Received: from 30.97.49.29(mailfrom:dtcccc@linux.alibaba.com fp:SMTPD_---0VKdQHYb_1658977772) by smtp.aliyun-inc.com; Thu, 28 Jul 2022 11:09:34 +0800 Message-ID: <2ace00b0-c2db-536f-e55b-f13e02165a8b@linux.alibaba.com> Date: Thu, 28 Jul 2022 11:09:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 5.10 373/575] selftests: bpf: Convert sk_lookup ctx access tests to PROG_TEST_RUN Content-Language: en-US From: Tianchen Ding To: Greg KH Cc: ast@kernel.org, linux-kernel@vger.kernel.org, lmb@cloudflare.com, sashal@kernel.org, stable@vger.kernel.org References: <20211115165356.685521944@linuxfoundation.org> <6258c4a1-0132-5afe-8dab-afa4ca3c49d6@linux.alibaba.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=no 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 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?