netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/2] support for '%s' in bpf_trace_printk
@ 2015-08-28 19:51 Alexei Starovoitov
  2015-08-28 19:51 ` [PATCH v2 net-next 1/2] lib: introduce strncpy_from_unsafe() Alexei Starovoitov
  2015-08-28 19:51 ` [PATCH v2 net-next 2/2] bpf: add support for %s specifier to bpf_trace_printk() Alexei Starovoitov
  0 siblings, 2 replies; 7+ messages in thread
From: Alexei Starovoitov @ 2015-08-28 19:51 UTC (permalink / raw)
  To: David S. Miller
  Cc: Ingo Molnar, Steven Rostedt, Masami Hiramatsu, Wang Nan, He Kuang,
	Daniel Borkmann, Brendan Gregg, netdev, linux-kernel

v1->v2:
patch 1: generalize FETCH_FUNC_NAME(memory, string) into
strncpy_from_unsafe()
patch 2: use it in bpf_trace_printk

Alexei Starovoitov (2):
  lib: introduce strncpy_from_unsafe()
  bpf: add support for %s specifier to bpf_trace_printk()

 include/linux/uaccess.h     |    2 ++
 kernel/trace/bpf_trace.c    |   32 ++++++++++++++++++++++++++++++--
 kernel/trace/trace_kprobe.c |   20 ++++----------------
 lib/strncpy_from_user.c     |   41 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+), 18 deletions(-)

-- 
1.7.9.5

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

end of thread, other threads:[~2015-08-28 22:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-28 19:51 [PATCH v2 net-next 0/2] support for '%s' in bpf_trace_printk Alexei Starovoitov
2015-08-28 19:51 ` [PATCH v2 net-next 1/2] lib: introduce strncpy_from_unsafe() Alexei Starovoitov
2015-08-28 21:48   ` Steven Rostedt
2015-08-28 22:08     ` Alexei Starovoitov
2015-08-28 22:11       ` Steven Rostedt
2015-08-28 22:13         ` Alexei Starovoitov
2015-08-28 19:51 ` [PATCH v2 net-next 2/2] bpf: add support for %s specifier to bpf_trace_printk() Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).