Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2579767ioo; Tue, 24 May 2022 00:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1twxoNACpXO+JHfDnVhX0HMVNs+bOHBh7RY2IdV+pX92i4s9EtnSneLRATqfutM2ZCXmf X-Received: by 2002:aa7:848a:0:b0:510:44da:223d with SMTP id u10-20020aa7848a000000b0051044da223dmr27283996pfn.66.1653378350521; Tue, 24 May 2022 00:45:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653378350; cv=pass; d=google.com; s=arc-20160816; b=xRThhLEqcA5yEww9vaQxpcehDQzNR7PzymEfy3OcdFXVsmsL6m90m5ySKKVixY3pkH Z3gTLmD4IkBj3ZOgpTX39FaplCkhEgPfWqGWryJXtdnK5Pn+ptkcDhfOVu9my1ASuQwx a6nVm9oITW6VRmqel6GZuVw4l5nKtdyGFBNW9X0sq0T9+MY479z2s+gM2lDkHjT+h3+x K+cDsGtdFWiPzHZrl51YsfWqlJMff+KcHIQH7p5kQHwLSe2CWCMU8TBgwKdmemoU0A8f mUYtWrof5JV+O/bBpX5vMmlaZ5XxV4RUuHC1OvDnyzZJLOJZUzQCWiqKikI5mylHKmMj Q83Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qEatQu7GlL9FpW/y5wTtBNxS6zPmDAp2WMyhLYa5AEs=; b=VgasUQbqFJHYFRYfbLW/D38/VfdmjG88tz1dodiUyWKs5yBemeCw4p73BGzA3npfTc R0FMCs+BgegVfgItyTTspnmWTjNAAnpC8NNduieIMdFvaLKziJ3POs3JocwOpD9WQtr/ mA+ddbeKhv3dt69sekg9sFTi9in098ICpzcfYwTunLqQ5nik3Xq8nKXeifujJu9j2nsm FfmIKegQO1Vn+kAUzZ/AVXMlTI6rgLsiogdV7CGZxv2F9opRpOd1CtiwSMk0t44Prt+G U12ji/L/ilONWz4P2JhrZfR4f55I+vpD42Ojr0uOd2YgAYZZKJ2hivxq2koTOv3NCezI oWDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=BdZNxb7z; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a1709028ecc00b00153b2d16575si10592484plo.381.2022.05.24.00.45.37; Tue, 24 May 2022 00:45:50 -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=@suse.com header.s=mimecast20200619 header.b=BdZNxb7z; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234543AbiEXEtZ (ORCPT + 99 others); Tue, 24 May 2022 00:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231891AbiEXEtU (ORCPT ); Tue, 24 May 2022 00:49:20 -0400 Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [194.104.111.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7E5562237 for ; Mon, 23 May 2022 21:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1653367756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qEatQu7GlL9FpW/y5wTtBNxS6zPmDAp2WMyhLYa5AEs=; b=BdZNxb7zNB2NTVcm9VmpBlfAKZcch1sraLg/8cs1sZDIungs2CUXOav7fh63pch7GFT266 4s9p0DUT3Y74z1lgrX1TTKDWtWRU4+ra7cKNXWpF/qmoYbjljBLXE8HMLyrjolOAFP9Z++ Gd0DCn0LXuIV4rWmQYsPjpaFr/H3hAc= Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04lp2058.outbound.protection.outlook.com [104.47.14.58]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-2-ExXv73ttNmqStGktdK6ouQ-1; Tue, 24 May 2022 06:49:14 +0200 X-MC-Unique: ExXv73ttNmqStGktdK6ouQ-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0vZDS5pfiNUIXPrb7yDMQx5qT9cZLF0Jb+tZ4NEYDtzP6RcVelKeCadTRBwFXO3zdXAQCrNczQpb743xt6P3wHMum+hHRSg8oGCfjbG1EJfRqHx/NJp6rwtpkXadagGRk4SrEuhwKlF0wXpmmEyx79Zu1qtodI4924dx/4qayZW3NK/G854SINAYJ0gNRtbZKVIJHmwmi1VETlSihu/MbUqmXj6m0xCaBoKjh4M5yYGKXPgP6mh+FsHi5QiPXoJMJbFuMjRgyVsyVF85J7hagpm8OpQNx24AOucJaPJOSu/5Cc9UCB1aQmIxUOiVx2po/OSK94ixity37Fd/dHsig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qEatQu7GlL9FpW/y5wTtBNxS6zPmDAp2WMyhLYa5AEs=; b=KlNFareGt6z5V6CPMZmjyf/f+8h1IHXCIBc4io24SVwSN/koqjcly3Fy9FmDC/aSwkhWO0jQoZClSiBAOGh83ldmrMzLwgb5QJPgn9oq9A9DDu4J4/Dj/SRwGsy0n4737t7ETysWxtFVHY4EiamDpSdNDcRsT1X2ABe0nr8l9xG/zdTEg9AeMel/Kn20rfu+HZjuZBqT5u9I4lbeWqV5EX2Edusr0FUg8thqnYWjo2b60UOTr8SWfiW81GOnRFKUPMWxgZKG5h+3KvmXfD+ozHhJSK6/INC6kM6e+vZfIbDzIs7vYqMfd8T8xMFiH0pwiyfQ3p7aJQyca1Yo+x8BVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from DB9PR04MB8107.eurprd04.prod.outlook.com (2603:10a6:10:243::20) by AM9PR04MB8505.eurprd04.prod.outlook.com (2603:10a6:20b:40a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.23; Tue, 24 May 2022 04:49:12 +0000 Received: from DB9PR04MB8107.eurprd04.prod.outlook.com ([fe80::40a2:1b77:8319:a7fa]) by DB9PR04MB8107.eurprd04.prod.outlook.com ([fe80::40a2:1b77:8319:a7fa%5]) with mapi id 15.20.5273.023; Tue, 24 May 2022 04:49:12 +0000 Date: Tue, 24 May 2022 12:49:02 +0800 From: Shung-Hsi Yu To: Yonghong Song Cc: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh Subject: Re: [PATCH bpf-next 4/4] selftests/bpf: add reason of rejection in ld_imm64 Message-ID: References: <20220520113728.12708-1-shung-hsi.yu@suse.com> <20220520113728.12708-5-shung-hsi.yu@suse.com> <7301b9cc-fdb1-cd4c-2dda-eb97018546a6@fb.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7301b9cc-fdb1-cd4c-2dda-eb97018546a6@fb.com> X-ClientProxiedBy: AS9PR06CA0537.eurprd06.prod.outlook.com (2603:10a6:20b:49d::34) To DB9PR04MB8107.eurprd04.prod.outlook.com (2603:10a6:10:243::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84067594-0d6d-4efa-9fc7-08da3d40bf66 X-MS-TrafficTypeDiagnostic: AM9PR04MB8505:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qj/nN35iPuMg9HEueYDKdEE3zqVmNwb3rV9EuWJnKQNsC9Sb8dn0ENjaQwB1jN8QcW2zetNcC44ixwWiQXrJg9fn52Gjj1P464PCnxlJoJDQjcvbruOPCbc4g7V4F5nXOn/Os2BwnXSLghK/F4XtrExvhAeZA6NYTfFcmVbrfSkuJ+oRj12S+i814b0/7x771YsQ9rFLpDmtyq+XzWZxcQ+CD4MwUNBKoj4A4skjhTvFX27Oetm6itaHW1iHLoguC3cLwzDRC2w1qGA7rWRmfyRiBmCEvstgHl9ksqTIM9pmPhEERWB2c/d/8eT/rDkj6KYJ8pEVR+TfIGUZjSZIWOP23NLPj41s6Fu7VECi4pKcAIw9x+mzgFXZS+Rb1EEHSWOknKaaF2qCSXMUvvS/DiqQ8PJByMBgeaCOgVQZjJxd0m2jT6k4ng6rwM62PM1ewkqNe4rK/QdSeQcvtQ8kWpLbdKs0Nc+K4rV0m2BEUmmdtYyWnBAWnNc+I8AqTrq58Ux2ZGE8zRyeALGJMzViFySRrJ44DhS9FwryMSy+dtlGa8+qVO8l+hV82eO2LQaZtdiiE9UPDvWKVh3brer+N2P+b/t3mVfvpx3U6Q1p51CLbTd9SRFV4uP9lgZjJuyfoZmb6VuzxQghcAltxASNKA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8107.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(8936002)(7416002)(5660300002)(26005)(38100700002)(54906003)(316002)(6916009)(6486002)(6666004)(508600001)(6506007)(53546011)(9686003)(6512007)(186003)(83380400001)(4326008)(8676002)(66946007)(66476007)(66556008)(86362001)(2906002)(33716001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y2o0M2RMY294cC9sZ0VSYUlrY2k3VFMrNzh4Zk1ZUjgyR0ZIVC9VaDJmOXRK?= =?utf-8?B?eDdYNUdUQk03L2lxMmZFeW52eTltc3dLcWhZMVVLWElEbENla3dnVVNwYzF6?= =?utf-8?B?YXFOUlBxcGgwa1ZNeWhKdHB3Qmp6TUdzWThFT3hWcjZXMVdDd2RCUVVjRXhX?= =?utf-8?B?WTdCRERlNUYyc0pCdDR4TTBtYUpYR0NzTG02bkRyUnJRdk55U3A0R214OGxt?= =?utf-8?B?aEhSUzBQdTVKTDVHV3pWSWNLVERjOGlGb0lTVFhMTUw2MjhkaTJ6dkRsUWZj?= =?utf-8?B?Nkp6R1YwM3dnL01pckFLRldmSE1wd3lIZ1grbWQ3QlNOZFlPTUJ2VWI4TC8z?= =?utf-8?B?S1g5N0RPYTJvUHRIZ3lXTzlsRk9WR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8?B?Sk1zYmp2bklxaDlIUkMwMGZxdmRtUzZQRzhvNlVFNEY2NHhOdzAxUTlyemFp?= =?utf-8?B?TVE0VGxRamErY0gxMWllS0VqOTRQZUxnOWRsaEpsN25Oa2VZUW9QNFdKUWVQ?= =?utf-8?B?M0g4c251ZEYxeGNsdUd4VXJ4bW9nakFHdTdkVEdCYUQycSt2QTBTdz09?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84067594-0d6d-4efa-9fc7-08da3d40bf66 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8107.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2022 04:49:12.7533 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UAI7uZHc1HmMsI/QV/RS/A5l6kGGbdRFWfOaGxDZOy4MMazH9kkbN+bFbhDOx63kngF6SZ8OHqxx/PmqC8ydeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8505 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, May 20, 2022 at 05:27:12PM -0700, Yonghong Song wrote: > > > On 5/20/22 4:37 AM, Shung-Hsi Yu wrote: > > It may not be immediately clear why that ld_imm64 test cases are > > rejected, especially for test1 and test2 where JMP to the 2nd > > instruction of BPF_LD_IMM64 is performed. > > > > Add brief explaination of why each test case in verifier/ld_imm64.c > > should be rejected. > > > > Signed-off-by: Shung-Hsi Yu > > --- > > .../testing/selftests/bpf/verifier/ld_imm64.c | 20 ++++++++++--------- > > 1 file changed, 11 insertions(+), 9 deletions(-) > > > > diff --git a/tools/testing/selftests/bpf/verifier/ld_imm64.c b/tools/testing/selftests/bpf/verifier/ld_imm64.c > > index f9297900cea6..021312641aaf 100644 > > --- a/tools/testing/selftests/bpf/verifier/ld_imm64.c > > +++ b/tools/testing/selftests/bpf/verifier/ld_imm64.c > > @@ -1,5 +1,6 @@ > > +/* Note: BPF_LD_IMM64 is composed of two instructions of class BPF_LD */ > > > [...]LD | BPF_IMM | BPF_DW, 0, 0, 0, 0), > > @@ -42,7 +43,7 @@ > > .result = REJECT, > > }, > > { > > - "test4 ld_imm64", > > + "test4 ld_imm64: reject incomplete BPF_LD_IMM64 instruction", > > .insns = { > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 0), > > BPF_EXIT_INSN(), > > @@ -70,7 +71,7 @@ > > .retval = 1, > > }, > > { > > - "test8 ld_imm64", > > + "test8 ld_imm64: reject 1st off!=0", > > Let add some space like 'off != 0'. The same for > some of later test names. Okay, will do that in the next version. Thanks! > > .insns = { > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 1, 1), > > BPF_RAW_INSN(0, 0, 0, 0, 1), > > @@ -80,7 +81,7 @@ > > .result = REJECT, > > }, > > { > > - "test9 ld_imm64", > > + "test9 ld_imm64: reject 2nd off!=0", > > .insns = { > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1), > > BPF_RAW_INSN(0, 0, 0, 1, 1), > > @@ -90,7 +91,7 @@ > > .result = REJECT, > > }, > > { > > - "test10 ld_imm64", > > + "test10 ld_imm64: reject 2nd dst_reg!=0", > > .insns = { > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1), > > BPF_RAW_INSN(0, BPF_REG_1, 0, 0, 1), > > @@ -100,7 +101,7 @@ > > .result = REJECT, > > }, > > { > > - "test11 ld_imm64", > > + "test11 ld_imm64: reject 2nd src_reg!=0", > > .insns = { > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1), > > BPF_RAW_INSN(0, 0, BPF_REG_1, 0, 1), > > @@ -113,6 +114,7 @@ > > "test12 ld_imm64", > > .insns = { > > BPF_MOV64_IMM(BPF_REG_1, 0), > > + /* BPF_REG_1 is interpreted as BPF_PSEUDO_MAP_FD */ > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, BPF_REG_1, 0, 1), > > BPF_RAW_INSN(0, 0, 0, 0, 0), > > BPF_EXIT_INSN(), > > @@ -121,7 +123,7 @@ > > .result = REJECT, > > }, > > { > > - "test13 ld_imm64", > > + "test13 ld_imm64: 2nd src_reg!=0", > > .insns = { > > BPF_MOV64_IMM(BPF_REG_1, 0), > > BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, BPF_REG_1, 0, 1), >