All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] clean-up for BPF_LOG_KERNEL log level
@ 2021-10-29 13:53 Hou Tao
  2021-10-29 13:53 ` [PATCH bpf-next v2 1/2] bpf: clean-up bpf_verifier_vlog() " Hou Tao
  2021-10-29 13:53 ` [PATCH bpf-next v2 2/2] bpf: disallow BPF_LOG_KERNEL log level for sys(BPF_BTF_LOAD) Hou Tao
  0 siblings, 2 replies; 7+ messages in thread
From: Hou Tao @ 2021-10-29 13:53 UTC (permalink / raw)
  To: Alexei Starovoitov
  Cc: Martin KaFai Lau, Yonghong Song, Daniel Borkmann,
	Andrii Nakryiko, netdev, bpf, houtao1

Hi,

There are just two clean-up patches for BPF_LOG_KERNEL log level:
patch #1 fixes the possible extra newline for bpf_log() and removes
the unnecessary calculation and truncation, and patch #2 disallows
BPF_LOG_KERNEL log level for bpf_btf_load().

Comments are welcome.

Regards,
Tao

Change Log:
v2:
  * rebased on bpf-next
  * patch #1: add a trailing newline if needed (suggested by Martin)
  * add patch #2
 
v1: https://www.spinics.net/lists/bpf/msg48550.html

Hou Tao (2):
  bpf: clean-up bpf_verifier_vlog() for BPF_LOG_KERNEL log level
  bpf: disallow BPF_LOG_KERNEL log level for sys(BPF_BTF_LOAD)

 include/linux/bpf_verifier.h |  6 ++++++
 kernel/bpf/btf.c             |  3 +--
 kernel/bpf/verifier.c        | 16 +++++++++-------
 3 files changed, 16 insertions(+), 9 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-02  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 13:53 [PATCH bpf-next v2 0/2] clean-up for BPF_LOG_KERNEL log level Hou Tao
2021-10-29 13:53 ` [PATCH bpf-next v2 1/2] bpf: clean-up bpf_verifier_vlog() " Hou Tao
2021-11-01 22:01   ` Daniel Borkmann
2021-11-02  3:46     ` Hou Tao
2021-10-29 13:53 ` [PATCH bpf-next v2 2/2] bpf: disallow BPF_LOG_KERNEL log level for sys(BPF_BTF_LOAD) Hou Tao
2021-11-01 21:59   ` Daniel Borkmann
2021-11-02  4:00     ` Hou Tao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.