Re: [PATCH v4 2/2] selftests/bpf: Add test for BPF_NEG alu on CONST_PTR_TO_MAP
From: Eduard Zingerman
Date: Wed Oct 01 2025 - 15:33:47 EST
On Thu, 2025-10-02 at 00:47 +0530, Brahmajit Das wrote:
> From: KaFai Wan <kafai.wan@xxxxxxxxx>
>
> Add a test case for BPF_NEG operation on CONST_PTR_TO_MAP. Tests if
> BPF_NEG operation on map_ptr is rejected in unprivileged mode and is a
> scalar value and do not trigger Oops in privileged mode.
>
> Signed-off-by: KaFai Wan <kafai.wan@xxxxxxxxx>
> ---
Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
(in the future, once you have an Ack, please copy it to the next
revision, unless there are some dramatic changes to the code).