Re: [PATCH bpf-next v3 06/11] bpf: Fix compare error in function retval_range_within

2024-04-26 Thread Xu Kuohai
On 4/26/2024 7:41 AM, Andrii Nakryiko wrote: On Thu, Apr 11, 2024 at 5:24 AM Xu Kuohai wrote: From: Xu Kuohai After checking lsm hook return range in verifier, the test case "test_progs -t test_lsm" failed, and the failure log says: libbpf: prog 'test_int_hook': BPF program load failed:

Re: [PATCH bpf-next v3 06/11] bpf: Fix compare error in function retval_range_within

2024-04-25 Thread Andrii Nakryiko
On Thu, Apr 11, 2024 at 5:24 AM Xu Kuohai wrote: > > From: Xu Kuohai > > After checking lsm hook return range in verifier, the test case > "test_progs -t test_lsm" failed, and the failure log says: > > libbpf: prog 'test_int_hook': BPF program load failed: Invalid argument > libbpf: prog

Re: [PATCH bpf-next v3 06/11] bpf: Fix compare error in function retval_range_within

2024-04-12 Thread Shung-Hsi Yu
On Thu, Apr 11, 2024 at 08:27:47PM +0800, Xu Kuohai wrote: > [...] > 24: (b4) w0 = -1 ; R0_w=0x > ; int BPF_PROG(test_int_hook, struct vm_area_struct *vma, @ lsm.c:89 > 25: (95) exit > At program exit the register R0 has smin=4294967295 smax=4294967295 should > have

[PATCH bpf-next v3 06/11] bpf: Fix compare error in function retval_range_within

2024-04-11 Thread Xu Kuohai
From: Xu Kuohai After checking lsm hook return range in verifier, the test case "test_progs -t test_lsm" failed, and the failure log says: libbpf: prog 'test_int_hook': BPF program load failed: Invalid argument libbpf: prog 'test_int_hook': -- BEGIN PROG LOAD LOG -- 0: R1=ctx() R10=fp0 ; int