Re: [PATCH bpf-next v2 2/2] selftests/bpf: Add tests for ldsx of pkt data/data_end/data_meta accesses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2024-07-17 at 22:02 -0700, Yonghong Song wrote:
> The following tests are added to verifier_ldsx.c:
>   - sign extension of data/data_end/data_meta for tcx programs.
>     The actual checking is in bpf_skb_is_valid_access() which
>     is called by sk_filter, cg_skb, lwt, tc(tcx) and sk_skb.
>   - sign extension of data/data_end/data_meta for xdp programs.
>   - sign extension of data/data_end for flow_dissector programs.
> 
> All newly-added tests have verification failure with message
> "invalid bpf_context access". Without previous patch, all these
> tests succeeded verification.
> 
> Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx>

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

[...]





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux