bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] LoongArch: Fix BPF trampoline related issues
@ 2025-08-27  9:47 Hengqi Chen
  2025-08-27  9:47 ` [PATCH v2 1/3] LoongArch: BPF: Remove duplicated flags check Hengqi Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Hengqi Chen @ 2025-08-27  9:47 UTC (permalink / raw)
  To: chenhuacai, yangtiezhu, jianghaoran, duanchenghao, ast, daniel,
	andrii, martin.lau, vincent.mc.li
  Cc: bpf, loongarch, Hengqi Chen

The following two selftest cases triggers oops on LoongArch:

    $ ./test_progs -a ns_bpf_qdisc -a tracing_struct

This small series tries to fix/workaround these issues.
See individual commit for details.

While at it, remove a duplicated flags check in __arch_prepare_bpf_trampoline().

v1 -> v2:
* collect Acked-by/Tested-by tags
* update sign_extend() in patch 2 as suggested by Huacai

Hengqi Chen (3):
  LoongArch: BPF: Remove duplicated flags check
  LoongArch: BPF: Sign extend struct ops return values properly
  LoongArch: BPF: No support of struct argument in trampoline programs

 arch/loongarch/net/bpf_jit.c | 35 ++++++++++++++++++++++++++++++++---
 1 file changed, 32 insertions(+), 3 deletions(-)

--
2.43.5

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

end of thread, other threads:[~2025-08-28 11:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27  9:47 [PATCH v2 0/3] LoongArch: Fix BPF trampoline related issues Hengqi Chen
2025-08-27  9:47 ` [PATCH v2 1/3] LoongArch: BPF: Remove duplicated flags check Hengqi Chen
2025-08-27  9:47 ` [PATCH v2 2/3] LoongArch: BPF: Sign extend struct ops return values properly Hengqi Chen
2025-08-28  6:11   ` Jinyang He
2025-08-28  9:24     ` Hengqi Chen
2025-08-28 10:40       ` Jinyang He
2025-08-27  9:47 ` [PATCH v2 3/3] LoongArch: BPF: No support of struct argument in trampoline programs Hengqi Chen
2025-08-28  9:26   ` Huacai Chen
2025-08-28 11:03     ` Hengqi Chen
2025-08-27 14:22 ` [PATCH v2 0/3] LoongArch: Fix BPF trampoline related issues Vincent Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).