[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230726062902.566312-1-zhaochenguang@kylinos.cn>
Date: Wed, 26 Jul 2023 14:29:02 +0800
From: zhaochenguang <zhaochenguang@...inos.cn>
To: chenhuacai@...nel.org
Cc: kernel@...0n.name, loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org, bpf@...r.kernel.org,
zhaochenguang@...inos.cn
Subject: [PATCH] LoongArch: eBPF: Restrict bpf_probe_read{, str}() only to archs where they work
When we run nettrace on LoongArch, there is a problem that
ERROR: failed to load kprobe-based eBPF
ERROR: failed to load kprobe-based bpf
Because ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE dose not exist,
so we enable it.
The patch reference upstream id 0ebeea8ca8a4d1d453ad299aef0507dab04f6e8d.
Signed-off-by: zhaochenguang <zhaochenguang@...inos.cn>
---
arch/loongarch/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 903096bd87f8..4a156875e9cc 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -11,6 +11,7 @@ config LOONGARCH
select ARCH_ENABLE_MEMORY_HOTREMOVE
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
select ARCH_HAS_PTE_SPECIAL
+ select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
select ARCH_INLINE_READ_LOCK if !PREEMPTION
select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
--
2.25.1
Powered by blists - more mailing lists