Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2288490pxk; Mon, 14 Sep 2020 09:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjx3XolnnoGGHwZRYZaJtw5x7DxTY9Q0LVDzY7nOuTwbx6ZbCjT+mKMAPsv5pVAeseQadr X-Received: by 2002:a17:906:3aca:: with SMTP id z10mr3522895ejd.419.1600100365605; Mon, 14 Sep 2020 09:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600100365; cv=none; d=google.com; s=arc-20160816; b=L1kPjmM/51qYcE6TsadhkCD3VWrKveVmW910Yq5bthUn1HDx4TNAy+t2TmVsgOF6OB flb8MBctCeZ6HGky6yw/ZXf3mPHVzxEojaVOFdr2J2VooKMSLe72M/JH7sIZ6IVFM60M QXeetQiMc0YDaJEFNyWFCIFNPWQSHR6wfwN3vkYpq75ObRsJTfjjYtIce63Hw+6szvr0 azUk5vnZkDyZGQRok3JbpL8nR4CCmh+5lUmCirLo94fbH0ErmDuc6aABcT56eoFKDJLl sOx7NltA3F8BEV1Vam/raXymHLLC9wFDgX6pCBBcHe2bgWrJo9raCVSLEB//W/NWgYVv hROQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NMcjuPLsban/s/KhGcm7R6jbGaWdBO7FK18RrhrF4m4=; b=XlaqK86aa3iYT3rdXY2/df5af1FcA64okoN+Lze62qWawLo1sfyOekVhg99siBnAyb 1Dc+uEFDKCt+VJixUpdKRO/i/SbWWnG/GmkrzuAVwk4XxhgMMbwkSV0kVT9YEUUGTzsU Ik9Or+2Rzn5/s6ThU/erAL8uVxCq1FIsvmgmnmnBV2rgaX2n4s/tQ+22/wS2RSJXy9Xm 0RnLLPB60dDsJ/wkkFYKHak7OOP1a/Qb65h2ZuQgiHsS18JbsHmxFbDk99Dn/pdtTO43 XqhcYIN+djCBXyO49KADXGWyGkR1krG8LnsSk/14DDI6wPsVNqzIWiF8AtXXhFt6UMdm 83EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Uw76qssj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si7253851ejp.43.2020.09.14.09.19.01; Mon, 14 Sep 2020 09:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Uw76qssj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgINQSO (ORCPT + 99 others); Mon, 14 Sep 2020 12:18:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57338 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgINQM7 (ORCPT ); Mon, 14 Sep 2020 12:12:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600099976; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NMcjuPLsban/s/KhGcm7R6jbGaWdBO7FK18RrhrF4m4=; b=Uw76qssjW53IjbMUVcCOwWfrpUSmO9DZ8FS/mCRkJFIgZtsno7Bd662BSPhHvaS+kVIAnw plmiwyA74NQbDsTnduu0+oWwc1O3vqobOHPhf3qGBs5XO8NcqPs8uuwy0giXXbSevBw5SH 4ibLawDSALGDEFnc3jY62PIsTOdOaA4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-233-lmWKx1gVNNS1mWTiGcUWJw-1; Mon, 14 Sep 2020 12:12:52 -0400 X-MC-Unique: lmWKx1gVNNS1mWTiGcUWJw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7981D425FD; Mon, 14 Sep 2020 16:12:49 +0000 (UTC) Received: from carbon (unknown [10.40.208.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1BA4B7EEC9; Mon, 14 Sep 2020 16:12:35 +0000 (UTC) Date: Mon, 14 Sep 2020 18:12:34 +0200 From: Jesper Dangaard Brouer To: Will Deacon Cc: brouer@redhat.com, Ilias Apalodimas , bpf@vger.kernel.org, ardb@kernel.org, naresh.kamboju@linaro.org, Jean-Philippe Brucker , Yauheni Kaliuta , Daniel Borkmann , Alexei Starovoitov , Zi Shen Lim , Catalin Marinas , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: Re: [PATCH] arm64: bpf: Fix branch offset in JIT Message-ID: <20200914181234.0f1df8ba@carbon> In-Reply-To: <20200914140114.GG24441@willie-the-truck> References: <20200914083622.116554-1-ilias.apalodimas@linaro.org> <20200914122042.GA24441@willie-the-truck> <20200914123504.GA124316@apalos.home> <20200914132350.GA126552@apalos.home> <20200914140114.GG24441@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Sep 2020 15:01:15 +0100 Will Deacon wrote: > Hi Ilias, > > On Mon, Sep 14, 2020 at 04:23:50PM +0300, Ilias Apalodimas wrote: > > On Mon, Sep 14, 2020 at 03:35:04PM +0300, Ilias Apalodimas wrote: > > > On Mon, Sep 14, 2020 at 01:20:43PM +0100, Will Deacon wrote: > > > > On Mon, Sep 14, 2020 at 11:36:21AM +0300, Ilias Apalodimas wrote: > > > > > Running the eBPF test_verifier leads to random errors looking like this: > > [...] > > > > > Any suggestion on any Fixes I should apply? The original code was 'correct' and > > broke only when bounded loops and their self-tests were introduced. > > Ouch, that's pretty bad as it means nobody is regression testing BPF on > arm64 with mainline. Damn. Yes, it unfortunately seems that upstream is lacking BPF regression testing for ARM64 :-( This bug surfaced when Red Hat QA tested our kernel backports, on different archs. -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer