Re: [PATCH bpf-next v2 2/2] selftests/bpf: Test invalid narrower ctx load

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

 



On Tue, 2025-07-22 at 16:33 +0200, Paul Chaignon wrote:
> This patch adds selftests to cover invalid narrower loads on the
> context. These used to cause kernel warnings before the previous patch.
> To trigger the warning, the load had to be aligned, to read an affected
> context field (ex., skb->sk), and not starting at the beginning of the
> field.
> 
> The nine new cases all fail without the previous patch.
> 
> Suggested-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Signed-off-by: Paul Chaignon <paul.chaignon@xxxxxxxxx>
> ---
> Changes in v2:
>   - Cover all affected fields, via a macro, as suggested by Eduard.

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