Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1088991lqa; Sun, 28 Apr 2024 18:49:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXeVI09wyUSs07mvDrlziKqpk+7kkOPue5qpg3L2o1QVsQ3qhpXXW8dUjYycvSH2YmAmNseg/B5fUvogGpoV8Xvx0I5/K0jmH7pUFYpmw== X-Google-Smtp-Source: AGHT+IHCEUIsyxbtkeySwzMR7/VDKT15fHs2ScjtbBMMnjMsOETactfraEzh4xih++Jxu5G3Dmup X-Received: by 2002:a05:6870:3053:b0:233:5d45:f852 with SMTP id u19-20020a056870305300b002335d45f852mr10554213oau.9.1714355396989; Sun, 28 Apr 2024 18:49:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714355396; cv=pass; d=google.com; s=arc-20160816; b=YpbD7dgLVilguJF+6cOSM/mrG2AuTV0lkJxAUg2EC7/G+oN1bNuOZcpgSdqncw6L3H SH6zTFEDfASruFdEpGPstqyDL2bJyQT/FZhbbdlTjctfcJqoopSWoesb3wLhp0Smcvbt XmX43feofiv8SrtyTYTq+dSOLKRJ4v9Fs7SpOwzEwU4s0AnwQmJtgl5ANLX4PO5/yiln DptBKLcK9p1sabi5EC0TsG7H9C/H5yhLyDzv77e0eYb4UlwX/j2N0Oj56HC2kKwlfXUu WSlZ61iYxMvWSHnk0Rq8LNRxFLo+cUgOtpJT883QIfXAjjjxpxPhANlDZ5turqwugjZp yVUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=w2cdMhiy6tblzMZH6pdXm9gKC5PfIyxq9cFSsg19XLQ=; fh=hHDHXRg/YdorvJEr/w/NRPGFbTLXIyOYcZ2OqbOK8/E=; b=MYYndfUMt4jzvvVPf5Jg5hXs0JKcEpxZHw14T+j4qGL327fV9QJY54hW22u/w2yr16 bmQvWpKC4xiGVovq++nbxQ/uCFxVQnjOfGA1HqSO7ZQTxz8GRYX/XbB2+NV7EXy3nPlL DAGIy2GyyM8Ss8L9tW5MKNOtk4cSQYU7CJqk9UTpMAa+IHq5jXkQp9W+Qg3gEofO9Cab 2iFzw4nNVVApjel/pHt9mZuyqXI7QwoQyIfJAIhci/z+pubRha4GsjPKFW5LbJ59hlqK EHhS5Hut3eVivyXhjjZk3tL9fWQJbUSWPB8m48+oLMPe1c8ni2np5Sl7J7fuyh99dZvS eltA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=bM5GcVQ1; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-161674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z20-20020a63ac54000000b005f7f7612dbdsi17109669pgn.834.2024.04.28.18.49.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 18:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=bM5GcVQ1; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-161674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 96566281520 for ; Mon, 29 Apr 2024 01:49:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2013524A; Mon, 29 Apr 2024 01:49:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="bM5GcVQ1" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 DC5937F; Mon, 29 Apr 2024 01:49:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714355384; cv=none; b=fUaRPhxc+LOAlisQ87j5saVMOAfvZ4vcqhQIH38Yr6t8tVk3+XH3eD7TlfLIQUfQVPiRgP2+dhrQF4KeEi097tNeaAC1AlTmsROLAhwTBc7RDBJmjusIcUf6AplPsGdRIaJoKfsG+DgWab/9/+nUlzyxktUgI7098LOBxG889n0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714355384; c=relaxed/simple; bh=w9r09G9ouq8go6rLsCNNHrKjBjY+D3CT2rZRkIVGUJs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=P+BL/EfJUz4crCiRG4mYTtpSg8ahTtZVZUJJD+V/dLNSzRcPBth2mmo5bOx915WRoDs2Og9iFLXaHI1Vgd4WWqnYhklweD5HSPP7AZ7dYRyAsqndEuA7YQ/CDUZhEFxs2OTHwAL0pSbovLX/y3WzXHXKgbL494rduGcl6tzomiA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=bM5GcVQ1; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1714355381; bh=w2cdMhiy6tblzMZH6pdXm9gKC5PfIyxq9cFSsg19XLQ=; h=Date:From:To:Cc:Subject:From; b=bM5GcVQ1AhKIBQJ3MzaxJC/EoReRipzmeaf60UNqtNomiNStEligZcDmFI112k7KO ujT4e9DNDy2/02ZyrlPU36xdjQYtQmtTa9yyxg/yiYWq+KUkebKJXrKDP5nXV5CLuc YbGODr7g6n2ZvDht26n2kU3hKFKT2Gcfc+NTMCj+6M4LMQ/SdPm/6AORcEFKyKh0pK /70PIlS5KFkUJsQ6SjaiQpAzUOwQAC21oHptJhLYbX0fRs92hCOn6VL3gSOgD3DLFI p12lc6Nqx8MovmueLptZLl6IWax01I4MmbTn+yJNMqQTTPSpyNKrLG5dNmdbF38KTI ndNHpYsq3pAdw== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VSR8h522vz4wyk; Mon, 29 Apr 2024 11:49:40 +1000 (AEST) Date: Mon, 29 Apr 2024 11:49:39 +1000 From: Stephen Rothwell To: Daniel Borkmann , Alexei Starovoitov , Andrii Nakryiko , David Miller , Jakub Kicinski , Paolo Abeni Cc: bpf , Networking , Linux Kernel Mailing List , Linux Next Mailing List , Martin KaFai Lau , Puranjay Mohan , Puranjay Mohan Subject: linux-next: manual merge of the bpf-next tree with the net tree Message-ID: <20240429114939.210328b0@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/=4d1luGBKfxf+mOMcFr0nF."; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/=4d1luGBKfxf+mOMcFr0nF. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the bpf-next tree got conflicts in: include/linux/filter.h kernel/bpf/core.c between commit: 66e13b615a0c ("bpf: verifier: prevent userspace memory access") from the net tree and commit: d503a04f8bc0 ("bpf: Add support for certain atomics in bpf_arena to x86 J= IT") from the bpf-next tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc include/linux/filter.h index 42dbceb04ca6,7a27f19bf44d..000000000000 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@@ -975,7 -1000,7 +1000,8 @@@ bool bpf_jit_supports_far_kfunc_call(vo bool bpf_jit_supports_exceptions(void); bool bpf_jit_supports_ptr_xchg(void); bool bpf_jit_supports_arena(void); +u64 bpf_arch_uaddress_limit(void); + bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena); void arch_bpf_stack_walk(bool (*consume_fn)(void *cookie, u64 ip, u64 sp,= u64 bp), void *cookie); bool bpf_helper_changes_pkt_data(void *func); =20 diff --cc kernel/bpf/core.c index a04695ca82b9,95c7fd093e55..000000000000 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@@ -2958,15 -2965,11 +2965,20 @@@ bool __weak bpf_jit_supports_arena(void return false; } =20 +u64 __weak bpf_arch_uaddress_limit(void) +{ +#if defined(CONFIG_64BIT) && defined(CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDR= ESS_SPACE) + return TASK_SIZE; +#else + return 0; +#endif +} + + bool __weak bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena) + { + return false; + } +=20 /* Return TRUE if the JIT backend satisfies the following two conditions: * 1) JIT backend supports atomic_xchg() on pointer-sized words. * 2) Under the specific arch, the implementation of xchg() is the same --Sig_/=4d1luGBKfxf+mOMcFr0nF. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmYu/LMACgkQAVBC80lX 0GxRbgf+OGy7yQHWICx3VdFZX+/3+CmXwEHaKe0hVPbQXhuGGT2ZekkGCbqyNS5+ 6/ilo+mZMpwXT2R1ZgnWbVdD86hFum2sOW4xNUwyK+6XbpKZ/l893x0NXg1JHYbE OOQGvMpR/A58980zb4JeVOXb8UIYcsrX3KpG9tA8/kyNgogl5y8NxwcYtSi8sPhf gFRcSCL3APSfy/qoPCFsbpT01gzLbvDu0GJ2Gg6Vx695agS3/vwXd6U0dGA2YTRh oU8CQpEE/fHQNdBl9qBN7NQhpqAThKHphgR7Ep7RqqrYpKDKSMgD/9Ysw7ARZVFK aEXu2EbkL1XKXdWB6/FFJ5gJMLbw8w== =nPAe -----END PGP SIGNATURE----- --Sig_/=4d1luGBKfxf+mOMcFr0nF.--