Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215006

Re: [PATCH net-next] bpf: add support for %s specifier to bpf_trace_printk()

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH net-next] bpf: add support for %s specifier to bpf_trace_printk()
Date 2015-08-28 01:30 +0200
Message-ID <q2eMi-2lb-3@gated-at.bofh.it> (permalink)
References <q1YRb-4FI-9@gated-at.bofh.it> <q2dZU-1aQ-31@gated-at.bofh.it> <q2esV-1YE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Alexei Starovoitov <ast@plumgrid.com>
Date: Thu, 27 Aug 2015 16:06:14 -0700

> Fair or you still think it should be per byte copy?

I'm terribly surprised we don't have an equivalent of strncpy()
for unsafe kernel pointers.

You probably won't be the last person to want this, and it's silly
to optimize it in one place and then wait for cut&paste into the
next guy.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next] bpf: add support for %s specifier to bpf_trace_printk() Alexei Starovoitov <ast@plumgrid.com> - 2015-08-27 08:30 +0200
  Re: [PATCH net-next] bpf: add support for %s specifier to  bpf_trace_printk() David Miller <davem@davemloft.net> - 2015-08-28 00:40 +0200
    Re: [PATCH net-next] bpf: add support for %s specifier to  bpf_trace_printk() Alexei Starovoitov <ast@plumgrid.com> - 2015-08-28 01:10 +0200
      Re: [PATCH net-next] bpf: add support for %s specifier to  bpf_trace_printk() David Miller <davem@davemloft.net> - 2015-08-28 01:30 +0200
        Re: [PATCH net-next] bpf: add support for %s specifier to  bpf_trace_printk() Steven Rostedt <rostedt@goodmis.org> - 2015-08-28 01:50 +0200
          Re: [PATCH net-next] bpf: add support for %s specifier to  bpf_trace_printk() Alexei Starovoitov <ast@plumgrid.com> - 2015-08-28 04:00 +0200

csiph-web