Hello: This series was applied to bpf/bpf.git (master) by Andrii Nakryiko <andrii@xxxxxxxxxx>: On Fri, 29 Sep 2023 22:41:20 +0200 you wrote: > After Paul's recent improvement to syzkaller to improve coverage for > bpf_mprog and tcx, it hit a splat that the program limit was surpassed. > What happened is that the maximum number of progs got added, followed > by another prog add request which adds with BPF_F_BEFORE flag relative > to the last program in the array. The idx >= bpf_mprog_max() check in > bpf_mprog_attach() still passes because the index is below the maximum > but the maximum will be surpassed. We need to add a check upfront for > insertions to catch this situation. > > [...] Here is the summary with links: - [bpf,1/2] bpf, mprog: Fix maximum program check on mprog attachment https://git.kernel.org/bpf/bpf/c/f9b0e1088bbf - [bpf,2/2] selftest/bpf: Add various selftests for program limits https://git.kernel.org/bpf/bpf/c/4cb893e89221 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html