BPF List
 help / color / mirror / Atom feed
* linux-next: manual merge of the bpf-next tree with the risc-v tree
@ 2024-07-02  1:33 Stephen Rothwell
  2024-07-10  3:26 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2024-07-02  1:33 UTC (permalink / raw)
  To: Daniel Borkmann, Alexei Starovoitov, Andrii Nakryiko,
	Palmer Dabbelt, Paul Walmsley
  Cc: bpf, Networking, Linux Kernel Mailing List,
	Linux Next Mailing List, Palmer Dabbelt, Pu Lehui, Samuel Holland

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

Hi all,

Today's linux-next merge of the bpf-next tree got a conflict in:

  arch/riscv/net/bpf_jit_comp64.c

between commit:

  51781ce8f448 ("riscv: Pass patch_text() the length in bytes")

from the risc-v tree and commit:

  9f1e16fb1fc9 ("riscv, bpf: Fix out-of-bounds issue when preparing trampoline image")

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.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/riscv/net/bpf_jit_comp64.c
index 7a34e5b44fc4,351e1484205e..000000000000
--- a/arch/riscv/net/bpf_jit_comp64.c
+++ b/arch/riscv/net/bpf_jit_comp64.c
@@@ -16,7 -16,8 +16,9 @@@
  #include "bpf_jit.h"
  
  #define RV_FENTRY_NINSNS 2
 +#define RV_FENTRY_NBYTES (RV_FENTRY_NINSNS * 4)
+ /* imm that allows emit_imm to emit max count insns */
+ #define RV_MAX_COUNT_IMM 0x7FFF7FF7FF7FF7FF
  
  #define RV_REG_TCC RV_REG_A6
  #define RV_REG_TCC_SAVED RV_REG_S6 /* Store A6 in S6 if program do calls */

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-17 23:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  1:33 linux-next: manual merge of the bpf-next tree with the risc-v tree Stephen Rothwell
2024-07-10  3:26 ` Stephen Rothwell
2024-07-17 23:59   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox