diff options
| author | Jiayuan Chen <jiayuan.chen@linux.dev> | 2026-09-01 18:47:39 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-03 09:31:52 -0700 |
| commit | 1ae6aa61958a0ee6f254cefbee20663ffbadb195 (patch) | |
| tree | 289eac82dbeaec8726435fa5f5c578d7fc0ff8de /scripts/Makefile.thinlto | |
| parent | 6265b44f2c3bb2839a306d6088d6e65a58d7e80e (diff) | |
| download | linux-1ae6aa61958a0ee6f254cefbee20663ffbadb195.tar.gz linux-1ae6aa61958a0ee6f254cefbee20663ffbadb195.zip | |
selftests/bpf: Add test for showing a void BTF type
Extend the snprintf_btf test with type_ids from the vmlinux BTF that
used to NULL-deref in the BTF show path: a "const void", checked to
render the "<unsupported kind:0>" placeholder, and a BTF_KIND_VAR,
checked to resolve and render without error.
The program renders from its own buffer and the test picks a VAR whose
resolved type fits it, so the render stays in bounds.
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://lore.kernel.org/r/20260901104924.346187-6-jiayuan.chen@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
