Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2897403lqp; Mon, 25 Mar 2024 12:19:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWW8nWlJPjSACJJPq/CTJOC5Mq7HZwvc6nsnd4/JnMCqmkjKYOvsi/lhbQ0Ro0FF8jHBm3gZc/ZkUn0Br00gexoWdorQMxaLzD0WegPSA== X-Google-Smtp-Source: AGHT+IHAzBX8pi3flpEXIrs9Fkop5nqg/RYECnJDhpmVYszbNqy4WE5XN/U+VOVFsFqtEv5jKVpa X-Received: by 2002:a05:6358:3416:b0:17e:6a4c:e96d with SMTP id h22-20020a056358341600b0017e6a4ce96dmr4759154rwd.30.1711394378284; Mon, 25 Mar 2024 12:19:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711394378; cv=pass; d=google.com; s=arc-20160816; b=OM3Mgd0vYqHJ5LEtWIDcfQhRL8L+v0RmPA1+55EA9vZOQzjgfKlazXag9hCGuMBgF9 dtrwEdDQLAll8o1cIW4tlw48Z+EtICimcoBfcEtH3SvSaqKjLr4Uf2cG5RakratHNYqi nR7RI1C7KxWColn6yjz5u5UA0VUAWVo/D47Afq55Ued6uTnp01+7Ln46rH5i1b2cOWkX OofnMw8XkG99TSuLOCdeegtFHa7aYJAFQMwF2SzxxplpitCcgpLbfFaPOQ69pBjI4zjI zybo//WeA/yLkoJ/2QTgjIrZlIPQ0d1KEO9TImow8z9GDV78iN5htXwu6iy8JAtlfybm 2wNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JMYppEwdE7WXXqZqKSytZuUl2Oiul6n0wte0hsxQB7U=; fh=FqysZhelsf3JsVoDP9gSm9Qmcy6htEK0gyMkjvdK6jQ=; b=RTK/LBJ8nzzVMYznItY13Zl4rJEdw1XX5iKRd9tChJXClIM7N05inR5TgjUmnroIYA q7IBlikp/GBFLYXWGXDHw1n56zFKsbiYtlQrZpTuj0yAoh4hZHWdpOQs6hcSup8NiEFf kKa5G/LDHp1ZoS9KGt9djpkZweWE0FNEZcQvKk1N4mYSd4xUYmMcxYCESWNkf/6cu5HZ cNs19K7SdWsVE/bGKA2anU2DD/SI0+sUSnhFFRIyboQ3ObyFZHDKdGZ+NpZ6YcwCA86n 8juNa0t1ucQSb5/1MdsvaFcFnjRalOPVAftjQHYgkEmDVl3//b0SRq22ujfCxAPaLyKb YW7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sXCND9aJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 8-20020ad45b88000000b006961cc927desi8327156qvp.566.2024.03.25.12.19.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sXCND9aJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2659F1C61974 for ; Mon, 25 Mar 2024 19:19:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F323D17995; Mon, 25 Mar 2024 19:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sXCND9aJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24D11DDC3; Mon, 25 Mar 2024 19:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711394369; cv=none; b=m7zjD17kjjWgVM1xW7aahL3A1xweGuMEH83vDGymjKj0kugHKPZhE8BEA/gakvuaouRB/STsLNy3toOO1JiU/iuIfLD4s5SMb4XSWm73e8OETCvRit6HgurtPdZN+dJuhCwoUSb1QBC8SUtb/WnoFHKH6g40CmGjJzTraRvMNq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711394369; c=relaxed/simple; bh=6ur4nAJ4fwkwsjzeh2IAAOBPeg2ISaHYc8y9oEzYf0s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pzqsmWDjwHcOSE+42f0QpiKiNvozdP27EZzHGR2HTVYdKn5W32NC6TUQbOOaQM8/+IIE5xxkLThRmTFuZIBjqdWMDT6cDrSSShD+SDmOG9mrGULOYMc+ZGeJ05dTzETjSQtoUj6MxdqvRTX76UkhPKVMeX3AP+D+b2ztf6pt1/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sXCND9aJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F160C433C7; Mon, 25 Mar 2024 19:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711394368; bh=6ur4nAJ4fwkwsjzeh2IAAOBPeg2ISaHYc8y9oEzYf0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sXCND9aJ3vGdPTUZkzw3cMJ5Z+8+y+sA3Uk5ODhmOoTed+Me48SbXmwHMI4vFE8q9 OiCwNyFZiIwGt211YsUirguF2WYHc0n7qVLfydSRisg1vsIENQmRU5sNeHlBkWg2X6 boT5bf8k5CSTQIQqX99uqvexvMmap6nQVi8qdsloo9afoa2C99WSfzQFRA7e7VON03 A5Jl1y6Q0BqnWGkJMbmGcJ99RzcFbojNzykJ6tf2KBnlQ2eWBcAGNe79laPQ7mdX3S nr1V/mKPBZXumk7K4SPNyLpXm33p3Fbe6QtngW7xfbEy8vLqzRtzUMY+9rPVX24GD0 u6MCVVp5Qqfag== Date: Mon, 25 Mar 2024 19:19:22 +0000 From: Conor Dooley To: Puranjay Mohan Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Luke Nelson , Xi Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Pu Lehui Subject: Re: [PATCH bpf-next v2 2/2] bpf,riscv: Implement bpf_addr_space_cast instruction Message-ID: <20240325-perpetual-liking-25f26e485b65@spud> References: <20240325155434.65589-1-puranjay12@gmail.com> <20240325155434.65589-3-puranjay12@gmail.com> <20240325-nineteen-unvaried-cb5cb5fd3a73@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PLxoKXZPHO6ffd6M" Content-Disposition: inline In-Reply-To: --PLxoKXZPHO6ffd6M Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 08:13:10PM +0100, Puranjay Mohan wrote: > On Mon, Mar 25, 2024 at 8:10=E2=80=AFPM Conor Dooley w= rote: > > > > On Mon, Mar 25, 2024 at 03:54:34PM +0000, Puranjay Mohan wrote: > > > LLVM generates bpf_addr_space_cast instruction while translating > > > pointers between native (zero) address space and > > > __attribute__((address_space(N))). The addr_space=3D0 is reserved as > > > bpf_arena address space. > > > > > > rY =3D addr_space_cast(rX, 0, 1) is processed by the verifier and > > > converted to normal 32-bit move: wX =3D wY > > > > > > rY =3D addr_space_cast(rX, 1, 0) has to be converted by JIT. > > > > > > Signed-off-by: Puranjay Mohan > > > > Doesn't compile for allmodconfig: > > ../arch/riscv/net/bpf_jit_comp64.c:1086:7: error: call to undeclared = function 'insn_is_cast_user'; ISO C99 and later do not support implicit fun= ction declarations [-Wimplicit-function-declaration] > > > > Cheers, > > Conor. >=20 > Yes, > I mentioned in the cover letter that a patch is required. > It just got merged in bpf-next/master: > https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?= id=3D770546ae9f4c1ae1ebcaf0874f0dd9631d77ec97 >=20 > So, rebasing on the latest bpf-next/master should fix the issue. Ah, I see now that there was a mention in the cover letter that I did not see first time around. Bjorn, do you think there's anything we can do about these kinda misleading CI failures for bpf stuff? Some stuff that touches bpf definitely is worth us building, but should we try and build it on top of the bpf tree instead? --PLxoKXZPHO6ffd6M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgHOOgAKCRB4tDGHoIJi 0t9oAQClrCCsg/y60Dzf2CGlzqqLxZlv5uLEMxOHA+AgGxIQiAD/bo+9Ay8m4QJy igs4VljEQzP535ZsiOlBcFy7XOh6nAc= =InP6 -----END PGP SIGNATURE----- --PLxoKXZPHO6ffd6M--