Re: [PATCH bpf 4/4] selftests/bpf: Test for unaligned flow_dissector ctx access

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

 



On Fri, 2025-08-01 at 11:49 +0200, Paul Chaignon wrote:
> This patch adds tests for two context fields where unaligned accesses
> were not properly rejected.
> 
> Note the new macro is similar to the existing narrow_load macro, but we
> need a different description and access offset. Combining the two
> macros into one is probably doable but I don't think it would help
> readability.
> 
> vmlinux.h is included in place of bpf.h so we have the definition of
> struct bpf_nf_ctx.
> 
> Signed-off-by: Paul Chaignon <paul.chaignon@xxxxxxxxx>
> ---

Tested-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

[...]





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux