diff options
author | Andrii Nakryiko | 2019-07-19 21:46:03 +0200 |
---|---|---|
committer | Alexei Starovoitov | 2019-07-19 21:48:55 +0200 |
commit | 1d4126c4e1190d2f7d3f388552f9bd17ae0c64fc (patch) | |
tree | 13ec1c89e1f4d94b40ac626d2eb2be5513d5eae8 /net/tls | |
parent | libbpf: fix SIGSEGV when BTF loading fails, but .BTF.ext exists (diff) | |
download | kernel-qcow2-linux-1d4126c4e1190d2f7d3f388552f9bd17ae0c64fc.tar.gz kernel-qcow2-linux-1d4126c4e1190d2f7d3f388552f9bd17ae0c64fc.tar.xz kernel-qcow2-linux-1d4126c4e1190d2f7d3f388552f9bd17ae0c64fc.zip |
libbpf: sanitize VAR to conservative 1-byte INT
If VAR in non-sanitized BTF was size less than 4, converting such VAR
into an INT with size=4 will cause BTF validation failure due to
violationg of STRUCT (into which DATASEC was converted) member size.
Fix by conservatively using size=1.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/tls')
0 files changed, 0 insertions, 0 deletions