Re: [PATCH bpf-next v6 5/5] selftests/bpf: Add tests for arena fault reporting

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

 



On Mon, Sep 8, 2025 at 9:37 AM Puranjay Mohan <puranjay@xxxxxxxxxx> wrote:
>
> +int stream_arena_write_fault(void *ctx)
> +{
> +       struct bpf_arena *ptr = (void *)&arena;
> +       u64 user_vm_start;
> +
> +       /* Prevent GCC bounds warning: casting &arena to struct bpf_arena *
> +        * triggers bounds checking since the map definition is smaller than struct
> +        * bpf_arena. barrier_var() makes the pointer opaque to GCC, preventing the
> +        * bounds analysis
> +        */
> +       barrier_var(ptr);
> +       user_vm_start =  ptr->user_vm_start;

nit: Too many spaces.





[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