Re: [PATCH bpf-next 1/2] bpf: teach verifier actual bounds of bpf_get_smp_processor_id() result

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

 



Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Tue, 11 Jul 2023 16:23:59 -0700 you wrote:
> bpf_get_smp_processor_id() helper returns current CPU on which BPF
> program runs. It can't return value that is bigger than maximum allowed
> number of CPUs (minus one, due to zero indexing). Teach BPF verifier to
> recognize that. This makes it possible to use bpf_get_smp_processor_id()
> result to index into arrays without extra checks, as demonstrated in
> subsequent selftests/bpf patch.
> 
> [...]

Here is the summary with links:
  - [bpf-next,1/2] bpf: teach verifier actual bounds of bpf_get_smp_processor_id() result
    https://git.kernel.org/bpf/bpf-next/c/f42bcd168d03
  - [bpf-next,2/2] selftests/bpf: extend existing map resize tests for per-cpu use case
    https://git.kernel.org/bpf/bpf-next/c/c21de5fc5ffd

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[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