Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
On 2013年04月09日 23:00, Steven Rostedt wrote: > I'll queue this up for my 3.10 queue. I'm going to merge this patch with > the previous patch you sent that updates trace.c > > Thanks, > > -- Steve thanks too. -- Chen Gang Flying Transformer -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
On 2013年04月09日 23:00, Steven Rostedt wrote: I'll queue this up for my 3.10 queue. I'm going to merge this patch with the previous patch you sent that updates trace.c Thanks, -- Steve thanks too. -- Chen Gang Flying Transformer -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
I'll queue this up for my 3.10 queue. I'm going to merge this patch with the previous patch you sent that updates trace.c Thanks, -- Steve On Mon, 2013-04-08 at 12:12 +0800, Chen Gang wrote: > for NUL terminated string, need always set '\0' at the end. > > Signed-off-by: Chen Gang > --- > kernel/trace/ftrace.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c > index dfd33f0..fa984b7 100644 > --- a/kernel/trace/ftrace.c > +++ b/kernel/trace/ftrace.c > @@ -3492,14 +3492,14 @@ static char ftrace_filter_buf[FTRACE_FILTER_SIZE] > __initdata; > > static int __init set_ftrace_notrace(char *str) > { > - strncpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); > + strlcpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); > return 1; > } > __setup("ftrace_notrace=", set_ftrace_notrace); > > static int __init set_ftrace_filter(char *str) > { > - strncpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); > + strlcpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); > return 1; > } > __setup("ftrace_filter=", set_ftrace_filter); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
I'll queue this up for my 3.10 queue. I'm going to merge this patch with the previous patch you sent that updates trace.c Thanks, -- Steve On Mon, 2013-04-08 at 12:12 +0800, Chen Gang wrote: for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/trace/ftrace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dfd33f0..fa984b7 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3492,14 +3492,14 @@ static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata; static int __init set_ftrace_notrace(char *str) { - strncpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup(ftrace_notrace=, set_ftrace_notrace); static int __init set_ftrace_filter(char *str) { - strncpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup(ftrace_filter=, set_ftrace_filter); -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang --- kernel/trace/ftrace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dfd33f0..fa984b7 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3492,14 +3492,14 @@ static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata; static int __init set_ftrace_notrace(char *str) { - strncpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup("ftrace_notrace=", set_ftrace_notrace); static int __init set_ftrace_filter(char *str) { - strncpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup("ftrace_filter=", set_ftrace_filter); -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/trace/ftrace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dfd33f0..fa984b7 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3492,14 +3492,14 @@ static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata; static int __init set_ftrace_notrace(char *str) { - strncpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup(ftrace_notrace=, set_ftrace_notrace); static int __init set_ftrace_filter(char *str) { - strncpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); + strlcpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE); return 1; } __setup(ftrace_filter=, set_ftrace_filter); -- 1.7.7.6 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/