Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2351395pxk; Mon, 14 Sep 2020 10:59:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfn95zrQhmFJrmG3Wtxgt6LEms14VCx3OXDawxr3Z7xvJwBdqRNsv4sTR0T4TVFdo7wHlY X-Received: by 2002:a17:906:33d8:: with SMTP id w24mr15677339eja.224.1600106345244; Mon, 14 Sep 2020 10:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600106345; cv=none; d=google.com; s=arc-20160816; b=sONCZ0ynw32910fZAkJ7nhzcP1hEoscikzfleiQ9BXXBkcjop/VANXJvgr9sY2AwIT lltvoDkASfUo4ppMfyd9+nBeTo99OilqbWyITTxFvZe1GZXRxJ61ZelLX7gtv9yZwpJG 0JLq/f4WhD4tlqaBFMfMWT3ht4V272kuvR5o+tjvWgTGtzVbSP5O/Ik2/N2MiSKITJL8 7Y1IA9gsW1mwRh2yty2y7DGfnO7sVALXzVM1m6OKRk5Ja+uaNVe+xieWyusqYKBypUXd D2VIBOr8ul6AoG/aDvFxFDXTDvCR8JFp8RLKEydFLydLm7b/7CS4aPK4yG4ESgmoEODZ ZioQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ElTPUcJchCYTclnWFUBApUOoz+YOl4EkZJsBh9Oqm7M=; b=koKLulSjDiQxhq1UD9qhAbVJujM314Hyez2mCJ+7WwKi6VwY7cIQma+3jfE8h6Kx69 JHXeSNFh/ckLAz91Nst1ZFIE4z0hH9KEzlhQcscUECLyAe4ZpEh/PSU5rfYcRpT6o6kT 5AS4waXIjvX64uTKODGY6cx+KBLtySnwv85bNXrG+wbRi8ywo1L1btZKjuKdEi7QM1Ke RMgS+23qj2OK123T+Q7y12JKwe1B5x6Xu5ADD6JM/eyslESaINeBbfLcBHStx2QHqto5 b1CEwyvFo9tfGTSQ8fnpaaqvKRSH1y7pf2KUBftIJudsfONJNlHYc8UYqn2IITqX/HB6 iWAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cuUAU+84; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd10si7438697ejb.169.2020.09.14.10.58.42; Mon, 14 Sep 2020 10:59:05 -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=@linaro.org header.s=google header.b=cuUAU+84; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725997AbgINR4A (ORCPT + 99 others); Mon, 14 Sep 2020 13:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgINRzW (ORCPT ); Mon, 14 Sep 2020 13:55:22 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B5D0C061788 for ; Mon, 14 Sep 2020 10:55:22 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id a17so584247wrn.6 for ; Mon, 14 Sep 2020 10:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ElTPUcJchCYTclnWFUBApUOoz+YOl4EkZJsBh9Oqm7M=; b=cuUAU+84+bcCRcYFw24CLpKHuNITQXf7p1urQVL6RK2/oJ82K5sGJ7v8hFQl8OLRzW BpJ5DH1ife5I/JNXJXeJag5YfpeHRzta3aRoyoWgrxYpHfo3Bxh9Q1RdHFp767MxpMiN kBgTYshqVFgh5dLQzQo00R9KpldmpYXljcrUx9bF5marV5dhEmtXDOdP06ailrdgGxN7 cCH3A+LIVosl9ceKMEf97poi7u4ALax9x1gN3UaYI5CxPpruirn0WDgdZduFgslniK0V Y1ajWQwkeV9DWZLtvtizhbT7e2v3GsHQhj+HAOTjqB664Ibm4Hy2TcNd0c6hSFpigaDL juvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ElTPUcJchCYTclnWFUBApUOoz+YOl4EkZJsBh9Oqm7M=; b=EStYfdfF9B/IwNCK2fxBTGUwIM9iLfm2knCEL6adHSd8KU0+CSn9VfPm6/u8MMS/eM 4sWGYxQfha4QKygYL2OiqCRiYMfxbQk/lMKSbeQeBhqku0/gc5BPmUiE3XrYXSJHDCYq 1oXH3ACyqXMBbg+/53NL4X/ZGAdrDOc2v08q7xzEPaQw7O6WCC1a8nz2F4uTBk6FhsZ+ KRrsFhxYT5Dx8vDNLXV1HY7AbOTOireyvYfnjjq2nnsBwJm/kLY8vzKVdGPQCuOWO4w6 G93HNwRDjgJEGuGr8y5G0q9jfe79EbiMGt0bMu3edsCg0bbIwfG8JioTP1ou/opLsLAM G2EA== X-Gm-Message-State: AOAM532g1a20xr0sa+RIYu8eAvY9He+lxv+XRVsGptCw0LNj4ysdXpft LLaakFlWevWOqMgj27E17GoYEw== X-Received: by 2002:adf:e989:: with SMTP id h9mr18323596wrm.38.1600106120650; Mon, 14 Sep 2020 10:55:20 -0700 (PDT) Received: from apalos.home (athedsl-246545.home.otenet.gr. [85.73.10.175]) by smtp.gmail.com with ESMTPSA id 189sm20952801wmb.3.2020.09.14.10.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 10:55:20 -0700 (PDT) Date: Mon, 14 Sep 2020 20:55:16 +0300 From: Ilias Apalodimas To: Xi Wang Cc: Jesper Dangaard Brouer , Will Deacon , 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 Mailing List , Anders Roxell Subject: Re: [PATCH] arm64: bpf: Fix branch offset in JIT Message-ID: <20200914175516.GA21832@apalos.home> 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> <20200914181234.0f1df8ba@carbon> <20200914170205.GA20549@apalos.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 10:47:33AM -0700, Xi Wang wrote: > On Mon, Sep 14, 2020 at 10:03 AM Ilias Apalodimas > wrote: > > Naresh from Linaro reported it during his tests on 5.8-rc1 as well [1]. > > I've included both Jiri and him on the v2 as reporters. > > > > [1] https://lkml.org/lkml/2020/8/11/58 > > I'm curious what you think of Luke's earlier patch to this bug: We've briefly discussed this approach with Yauheni while coming up with the posted patch. I think that contructing the array correctly in the first place is better. Right now it might only be used in bpf2a64_offset() and bpf_prog_fill_jited_linfo() but if we fixup the values on the fly in there, everyone that intends to use the offset for any reason will have to account for the missing instruction. Cheers /Ilias > > https://lore.kernel.org/bpf/CANoWswkaj1HysW3BxBMG9_nd48fm0MxM5egdtmHU6YsEc_GUtQ@mail.gmail.com/T/#m4335b4005da0d60059ba96920fcaaecf2637042a