Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp146442rwb; Thu, 18 Aug 2022 00:56:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR78f1l2mTOw68BkmMyYrQNf+Uda1l+NqR/59DmOszqat5UboqPIbKKTKmLK606xdlRskpUi X-Received: by 2002:a17:903:41c6:b0:16e:fb38:e2c7 with SMTP id u6-20020a17090341c600b0016efb38e2c7mr1611219ple.75.1660809393261; Thu, 18 Aug 2022 00:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660809393; cv=none; d=google.com; s=arc-20160816; b=a8tRFzeaz/KuFCCi95hwcLK9xP52UHRwVBKmUgphBOO1A1LasILZTGqKeK3aXV3ggh kj8WGvIZGwnfDoL7FI3kPH0qosYFRe/4noCqgQdufQhHxOfHO6FFF4qrG6gwM0aM86Oc vB9duWDGYML0a6ktmV6zviieLte/7igtwjGbqXWB7OcvWBRwnbddyXkDbXa+6qRS5FWg o3h05LZGIqGZVY5x8EGkJFQSw9l3NGJ2OgEqLTyC0QEQV3ca9iQuc1kdRwHhK+P2yhjL ZCQsgg8pTtn9A5CyNF66oYXyV+9dy+PTyR76W7Ed35goaHKz6IhsnI3Ko8Oc54DDyeuw MEYg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Oc8VuY9dui/DMr9ExY40tj69aQlYh+Z/nKcO2XmJf6g=; b=dpHq6ZcsBmtoaslUqgKSzOlD/2s1oEBD/t8PZTP2TNbp3Mn3zR6q0H+p+R2NjWELC3 xocGRC3tumkXbSUAKY4Yf08DzezNdD0+lrbPrYc5OE8B/ura64vKlFeFt84CMIIJt6CB 8CP6+i03DjzGwE8l0SJ7RMvY3SjeJSY7II/IiCBrRg587WEYiFoWhUDNn8Z36yv5XPsk 4zc9sFl5FFqgcpv5riMP6W/3WXflZRyRGlE/p4aTs46TUCciQNxzfp2NndLF/9xwyR4b XF39untoEc0CKCniURWozu21HDYtyHOl7SYponDbHVSaVzfyMHZwMnuWtzg4rLOnvAof U3dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=msuEfj+N; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a656d96000000b004228e5bf896si928745pgb.605.2022.08.18.00.56.22; Thu, 18 Aug 2022 00:56:33 -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=@linaro.org header.s=google header.b=msuEfj+N; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243225AbiHRHzX (ORCPT + 99 others); Thu, 18 Aug 2022 03:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239693AbiHRHzW (ORCPT ); Thu, 18 Aug 2022 03:55:22 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73B1642C8 for ; Thu, 18 Aug 2022 00:55:20 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id bu15so769590wrb.7 for ; Thu, 18 Aug 2022 00:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=Oc8VuY9dui/DMr9ExY40tj69aQlYh+Z/nKcO2XmJf6g=; b=msuEfj+N88tQ11omyQz+r1D+Zis2Zkqgu0u1DK+0Rz+rNp/pKFT9ERD5E1O9+nmlpV VH4pszzqEvYNVrLfDvnVc7WK1pb+ve8hg5BodLzCiG6IDybV7ThUkKaVYbHGVQLN0pZS 4VIUKEeFEGWgexwvjZ9rAiKuyVKe2U4c4EAETUxd8iq/D0tSPK0kx7aktD34MtvcTLf1 xDEqsFzF8VGb20pysPsD0rU5QSTG1/pBavGK1f4XBUYQoYqENmm/wnMxdVU5Bzv+yW0Q TvMMQtKYfUv4HdKKhNP193rKABe9wlrvsrbdTmhN7xomk79xu3Y6FiVaDea3TdfEjEV5 SNTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=Oc8VuY9dui/DMr9ExY40tj69aQlYh+Z/nKcO2XmJf6g=; b=8LMJMulmGTxgMu0t+EJCLZlUxEYuzA1DNBzba6SDfUPip8NmUTfUGEHqvHKnjgf+p/ ZDkKtQBPUHPnkHPnkcffVzHYyzBQByGqKUFQks/yWi2D/CkYBECvwCLaaoVP/rKBOdWo TVB+Rxl/Mbc0Kcpn7QKNjejeM4OBptSvLhmwwMlHkytxtygygbmJ+h6gxTtV8hu5/dLw 4P6czsfVCz43FeeovkG0WcS93DV1Ufu3+azgl72z9P9e8Igamo87WQRN684FvT8hHblB 6REuEAXJyPkby2LDRxTBQTOhJsrZJnKuLzbfUi9U+Ii9zLs2vvXbAGcKJ5gyW9zkeUy1 XdTA== X-Gm-Message-State: ACgBeo3A+AsSkfUk8LUfuWHs/CuL1CKZ4MdzGfiERLGIdpYIgAd5LFUp +ecjgRJetTYrnOEMALNazKhFsA== X-Received: by 2002:adf:e401:0:b0:225:2124:183d with SMTP id g1-20020adfe401000000b002252124183dmr836432wrm.146.1660809319446; Thu, 18 Aug 2022 00:55:19 -0700 (PDT) Received: from myrica (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id e14-20020adfe38e000000b002251e86241csm655615wrm.48.2022.08.18.00.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 00:55:19 -0700 (PDT) Date: Thu, 18 Aug 2022 08:55:16 +0100 From: Jean-Philippe Brucker To: Greg KH Cc: RAJESH DASARI , stable@vger.kernel.org, linux-kernel@vger.kernel.org, df@google.com Subject: Re: bpf selftest failed in 5.4.210 kernel Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, Aug 18, 2022 at 07:24:03AM +0200, Greg KH wrote: > On Wed, Aug 17, 2022 at 09:22:00PM +0300, RAJESH DASARI wrote: > > Hi , > > > > We are running bpf selftests on 5.4.210 kernel version and we see that > > test case 11 of test_align failed. Please find the below error. > > > > selftests: bpf: test_align > > Test 11: pointer variable subtraction ... Failed to find match 16: > > R5_w=pkt(id=2,off=0,r=0,umin_value=2,umax_value=1082,var_off=(0x2; > > 0xfffffffc) > > # func#0 @0 > > # 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 > > # 0: (61) r2 = *(u32 *)(r1 +76) > > # 1: R1=ctx(id=0,off=0,imm=0) R2_w=pkt(id=0,off=0,r=0,imm=0) R10=fp0 > > # 1: (61) r3 = *(u32 *)(r1 +80) > > > > For complete errors please see the attached file. The same test case > > execution was successful in the 5.4.209 version , could you please let > > me know any known issue with the recent changes in 5.4.210 and how to > > fix these errors. > > Can you use 'git bisect' to find the offending commit? It probably is 6098562ed9df ("selftests/bpf: Fix "dubious pointer arithmetic" test") https://lore.kernel.org/all/20220803145005.2385039-6-ovidiu.panait@windriver.com/ Could you try reverting that? The patch didn't have a Fixes: tags, because the bugfix it refers to was merged at the same time. That bugfix is upstream commit b02709587ea3 ("bpf: Fix propagation of 32-bit signed bounds from 64-bit bounds.") Since b02709587ea3 was only backported down to 5.10, this fix shouldn't be in 5.4. Sorry for not catching this earlier. Thanks, Jean