Files
twx-linux/include/linux
Hou Tao 924886fa22 bpf: Disallow BPF_LOG_KERNEL log level for bpf(BPF_BTF_LOAD)
[ Upstream commit 866de40744 ]

BPF_LOG_KERNEL is only used internally, so disallow bpf_btf_load()
to set log level as BPF_LOG_KERNEL. The same checking has already
been done in bpf_check(), so factor out a helper to check the
validity of log attributes and use it in both places.

Fixes: 8580ac9404 ("bpf: Process in-kernel BTF")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20211203053001.740945-1-houtao1@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:53:54 +01:00
..
2021-11-26 10:39:22 +01:00
2021-03-04 11:37:59 +01:00
2021-11-18 14:03:37 +01:00
2021-09-15 09:50:41 +02:00
2021-06-30 08:47:26 -04:00
2021-11-18 14:04:23 +01:00
2021-09-03 10:09:21 +02:00
2021-03-30 14:32:05 +02:00
2021-08-04 12:46:44 +02:00
2021-05-07 11:04:32 +02:00
2021-05-14 09:50:18 +02:00
2021-05-14 09:50:18 +02:00
2021-05-14 09:50:31 +02:00
2021-08-26 08:35:41 -04:00
2021-12-14 11:32:39 +01:00