Re: [PATCH bpf v4 0/5] bpf: Fix NULL-ptr-derefs when showing a void BTF type

From: patchwork-bot+netdevbpf

Date: Thu Sep 03 2026 - 13:27:44 EST


Hello:

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

On Tue, 1 Sep 2026 18:47:34 +0800 you wrote:
> This series fixes three NULL-ptr-derefs in BTF handling.
>
> Patch 1 handles the syzbot report. A key-less BTF (btf_key_type_id == 0) used
> to be rejected for hash maps, until htab and rhtab gained a ->map_check_btf
> (to register a dtor) that does not look at the key, so a key-less hash map is
> now accepted. Dumping it through bpffs feeds the key type_id 0 into
> btf_type_seq_show() and NULL-derefs in btf_type_show(). Reject it again.
>
> [...]

Here is the summary with links:
- [bpf,v4,1/5] bpf: Reject key-less BTF for hash maps
https://git.kernel.org/bpf/bpf/c/0895a0c07347
- [bpf,v4,2/5] bpf: Fix NULL-ptr-deref when showing a void BTF type
https://git.kernel.org/bpf/bpf/c/4ea508b9ebd7
- [bpf,v4,3/5] bpf: Fix NULL-ptr-deref in btf_var_show()
https://git.kernel.org/bpf/bpf/c/5403a383f52f
- [bpf,v4,4/5] selftests/bpf: Add test for key-less BTF hash map
https://git.kernel.org/bpf/bpf/c/6265b44f2c3b
- [bpf,v4,5/5] selftests/bpf: Add test for showing a void BTF type
https://git.kernel.org/bpf/bpf/c/1ae6aa61958a

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