Files
gcc/include/btf.h
Will Hawkins d0bc1cbf6a btf: Protect BTF_KIND_INFO against invalid kind
If the user provides a kind value that is more than 5 bits, the
BTF_KIND_INFO macro would emit incorrect values for info (by clobbering
values of the kind flag).

Tested on x86_64-redhat-linux.

include/ChangeLog:

	* btf.h (BTF_TYPE_INFO): Protect against user providing invalid
	kind.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2024-08-09 08:55:23 -07:00

8.1 KiB