Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2025093rwe; Fri, 2 Sep 2022 07:30:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ieBeVIqXRkHvhs6ysewF6hmINN9LPZ9c1Es84dntWAGDbL3VxvI3qndY1cg516aXeErZi X-Received: by 2002:a05:6a00:1ac7:b0:52f:4e43:5ace with SMTP id f7-20020a056a001ac700b0052f4e435acemr36787330pfv.59.1662129048779; Fri, 02 Sep 2022 07:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662129048; cv=none; d=google.com; s=arc-20160816; b=NvyRSaMhFsn+ufAOlyjc9WZTpdtzYIEmiThL4u0rXYrcOcZPmDaXzOm0qPPzuJEIQ4 LDeYytYBMjNFryrhNaZKK2xL47SMtq9V8Lo5TORPRHoWNVZamldg9VBAoSc5Snd0tNVa td1HeI5U3tW9drLaE9iMWSRs5rMWCH8eqEPCY5S+5fjGfXQveFIVEcT1KDENijtLQEVH /7Z0P40C9YmpRWPtS94ox8sWms3JAJ0CqUWduE7njzYg103qvvCm6iWaaBxdbtSzp0DH aa+5nFWnNPlKi8xMhUyabkp2xY+RAdUeb8RGTqYrw2/IWmRBaKCZofAhixGjUCkUezn7 kQ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0+JKGonhthYx6Z7/8LmTGHal0ndqDUtImqx/aiwrgvg=; b=aBwsKqhP4ef3Pxvh+LSXdVE3nPAXgGvXnMOpa5Nrhg16Ht3iWRMzGVi2AzvvsHpqpX YW9BD0yweyg99p5XIa6mKMgR8gh4x1fbgefn6WOgEZwnIvuWfK7pC8smSEBwXaWH+6MU uzPdoVTfMijFGqcNpdQ2rvkqBOohCwl3rvHniiWlNXC57jt90wBVHhuY6Jv05qv8Co6z UcLtZU4cjVgSgjn1oRGcGh1QirBIv6QXY1QTLL3cLibebn4QGGjn7Vz4YPWv1mZbKLDG /wPYcqA2gsfGA3BNrBnRKJXnvOvknyA2PIgPfVWdsMbLdltgi/p6Z3aEpCogMzwIYgK2 H98Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uMwI0Yoz; 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 n1-20020a170902d2c100b0016ed8e1897bsi2552287plc.554.2022.09.02.07.30.34; Fri, 02 Sep 2022 07:30:48 -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=uMwI0Yoz; 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 S237906AbiIBMxB (ORCPT + 99 others); Fri, 2 Sep 2022 08:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237892AbiIBMwC (ORCPT ); Fri, 2 Sep 2022 08:52:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058D8E394F; Fri, 2 Sep 2022 05:37:13 -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 A1CAD62178; Fri, 2 Sep 2022 12:27:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A83D1C433C1; Fri, 2 Sep 2022 12:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662121659; bh=b73JFdEEH0L5zpEOhUoRbXlzxwYfjFJus6um4Pn4iT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uMwI0YozS9gwT20hpV+MI/o2IdzGpIABI4D8ig+ZygiLsvKNc8JvsszbSbzXH4cRJ ou0HdcCsNL4uQ38GmdG5yS04kYBOgX8BOyaU/MlZfs9MZybjJpSjSkPaeCS2G/8uwb ssWx9DgTYR0ezVOCPDxrMdLD3K5cZp81oo7wfD8Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Jean-Philippe Brucker Subject: [PATCH 5.4 05/77] Revert "selftests/bpf: Fix "dubious pointer arithmetic" test" Date: Fri, 2 Sep 2022 14:18:14 +0200 Message-Id: <20220902121403.789465369@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902121403.569927325@linuxfoundation.org> References: <20220902121403.569927325@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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,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 From: Jean-Philippe Brucker This reverts commit 6098562ed9df1babcc0ba5b89c4fb47715ba3f72. It shouldn't be in v5.4 because the commit it fixes is only present in v5.9 onward. Signed-off-by: Jean-Philippe Brucker Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/bpf/test_align.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/tools/testing/selftests/bpf/test_align.c +++ b/tools/testing/selftests/bpf/test_align.c @@ -475,10 +475,10 @@ static struct bpf_align_test tests[] = { */ {7, "R5_w=inv(id=0,smin_value=-9223372036854775806,smax_value=9223372036854775806,umin_value=2,umax_value=18446744073709551614,var_off=(0x2; 0xfffffffffffffffc)"}, /* Checked s>=0 */ - {9, "R5=inv(id=0,umin_value=2,umax_value=9223372036854775806,var_off=(0x2; 0x7ffffffffffffffc)"}, + {9, "R5=inv(id=0,umin_value=2,umax_value=9223372034707292158,var_off=(0x2; 0x7fffffff7ffffffc)"}, /* packet pointer + nonnegative (4n+2) */ - {11, "R6_w=pkt(id=1,off=0,r=0,umin_value=2,umax_value=9223372036854775806,var_off=(0x2; 0x7ffffffffffffffc)"}, - {13, "R4_w=pkt(id=1,off=4,r=0,umin_value=2,umax_value=9223372036854775806,var_off=(0x2; 0x7ffffffffffffffc)"}, + {11, "R6_w=pkt(id=1,off=0,r=0,umin_value=2,umax_value=9223372034707292158,var_off=(0x2; 0x7fffffff7ffffffc)"}, + {13, "R4_w=pkt(id=1,off=4,r=0,umin_value=2,umax_value=9223372034707292158,var_off=(0x2; 0x7fffffff7ffffffc)"}, /* NET_IP_ALIGN + (4n+2) == (4n), alignment is fine. * We checked the bounds, but it might have been able * to overflow if the packet pointer started in the @@ -486,7 +486,7 @@ static struct bpf_align_test tests[] = { * So we did not get a 'range' on R6, and the access * attempt will fail. */ - {15, "R6_w=pkt(id=1,off=0,r=0,umin_value=2,umax_value=9223372036854775806,var_off=(0x2; 0x7ffffffffffffffc)"}, + {15, "R6_w=pkt(id=1,off=0,r=0,umin_value=2,umax_value=9223372034707292158,var_off=(0x2; 0x7fffffff7ffffffc)"}, } }, {