lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1675254998-4951-5-git-send-email-yangtiezhu@loongson.cn>
Date:   Wed,  1 Feb 2023 20:36:38 +0800
From:   Tiezhu Yang <yangtiezhu@...ngson.cn>
To:     Alexei Starovoitov <ast@...nel.org>,
        Daniel Borkmann <daniel@...earbox.net>,
        Andrii Nakryiko <andrii@...nel.org>
Cc:     bpf@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH bpf-next 4/4] bpf: Mark BPF_ALU and BPF_JMP as deprecated

For now, BPF_ALU and BPF_JMP are not used by any kernel code, but we can
not remove them directly due to they are in the uapi header file, so just
mark them as deprecated.

Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
 include/uapi/linux/bpf_common.h       | 4 ++--
 tools/include/uapi/linux/bpf_common.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/uapi/linux/bpf_common.h b/include/uapi/linux/bpf_common.h
index ee97668..75ae3dd 100644
--- a/include/uapi/linux/bpf_common.h
+++ b/include/uapi/linux/bpf_common.h
@@ -8,8 +8,8 @@
 #define		BPF_LDX		0x01
 #define		BPF_ST		0x02
 #define		BPF_STX		0x03
-#define		BPF_ALU		0x04
-#define		BPF_JMP		0x05
+#define		BPF_ALU		0x04 /* deprecated */
+#define		BPF_JMP		0x05 /* deprecated */
 #define		BPF_RET		0x06
 #define		BPF_MISC        0x07
 
diff --git a/tools/include/uapi/linux/bpf_common.h b/tools/include/uapi/linux/bpf_common.h
index ee97668..75ae3dd 100644
--- a/tools/include/uapi/linux/bpf_common.h
+++ b/tools/include/uapi/linux/bpf_common.h
@@ -8,8 +8,8 @@
 #define		BPF_LDX		0x01
 #define		BPF_ST		0x02
 #define		BPF_STX		0x03
-#define		BPF_ALU		0x04
-#define		BPF_JMP		0x05
+#define		BPF_ALU		0x04 /* deprecated */
+#define		BPF_JMP		0x05 /* deprecated */
 #define		BPF_RET		0x06
 #define		BPF_MISC        0x07
 
-- 
2.1.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ