提交 b463b493 编写于 作者: I Ilya Leoshkevich 提交者: Zheng Zengkai

selftests/bpf: Use the 25th bit in the "invalid BTF_INFO" test

mainline inclusion
from mainline-5.13-rc1
commit eea154a8
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5Q927
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eea154a852e827c003215f7beed3e10f05471a86

-------------------------------------------------

The bit being checked by this test is no longer reserved after
introducing BTF_KIND_FLOAT, so use the next one instead.
Signed-off-by: NIlya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
Acked-by: NYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210226202256.116518-6-iii@linux.ibm.com
(cherry picked from commit eea154a8)
Signed-off-by: NWang Yufen <wangyufen@huawei.com>
上级 afb9fb5e
...@@ -1903,7 +1903,7 @@ static struct btf_raw_test raw_tests[] = { ...@@ -1903,7 +1903,7 @@ static struct btf_raw_test raw_tests[] = {
.raw_types = { .raw_types = {
/* int */ /* [1] */ /* int */ /* [1] */
BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4), BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4),
BTF_TYPE_ENC(0, 0x10000000, 4), BTF_TYPE_ENC(0, 0x20000000, 4),
BTF_END_RAW, BTF_END_RAW,
}, },
.str_sec = "", .str_sec = "",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册