]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-btf-size-verification-fix'
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 21:02:17 +0000 (23:02 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 21:02:17 +0000 (23:02 +0200)
commitb3754fa5c03bdd2be55898ebb5eae2d140802aeb
treedcc396b062456daa3af5a598587dfbc604aa7c8c
parenta8a9669ea8acfd6b38594a2a3d955324aebedd23
parente1b644457e7ef304c82a1ee805fa4bf910fc71fb
Merge branch 'bpf-btf-size-verification-fix'

Andrii Nakryiko says:

====================
BTF size resolution logic isn't always resolving type size correctly, leading
to erroneous map creation failures due to value size mismatch.

This patch set:
1. fixes the issue (patch #1);
2. adds tests for trickier cases (patch #2);
3. and converts few test cases utilizing BTF-defined maps, that previously
   couldn't use typedef'ed arrays due to kernel bug (patch #3).
====================

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>