Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386AbbH1W4i (ORCPT ); Fri, 28 Aug 2015 18:56:38 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:34768 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753351AbbH1W4g (ORCPT ); Fri, 28 Aug 2015 18:56:36 -0400 From: Alexei Starovoitov To: "David S. Miller" Cc: Ingo Molnar , Steven Rostedt , Masami Hiramatsu , Wang Nan , He Kuang , Daniel Borkmann , Brendan Gregg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 net-next 0/2] support for '%s' in bpf_trace_printk Date: Fri, 28 Aug 2015 15:56:21 -0700 Message-Id: <1440802583-5020-1-git-send-email-ast@plumgrid.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 27 v2->v3: fix the comment to mention that strncpy_from_unsafe() returns the length of the string including the trailing NUL. 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 -- 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/