remove unnecessary ftrace WARN_ONCE's.
These warnings are trivially triggerable by any user, and serve no useful purpose afaics Just -EINVAL and be done.
kernel/trace/trace.c +0 -2
@@ -4136,13 +4136,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,return -ENOMEM ;if (*ppos & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: previous read must page-align\n" ); ret = -EINVAL ; goto out; }if (len & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: splice_read should page-align\n" );if (len <PAGE_SIZE ) { ret = -EINVAL ; goto out;
Quoted 14 lines · Dave Jones
These warnings are trivially triggerable by any user, and serve no useful purpose afaics Just
-EINVALand be done.Signed-off-by Dave Jones <[email protected]>kernel/trace/trace.c +0
-1@@ -4136,13 +4136,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,return -ENOMEM ;if (*ppos & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: previous read must page-align\n" );
kernel/trace/trace.c tracing_buffers_splice_read(struct file *file, loff_t *ppos,
Quoted 10 lines
kernel/trace/trace.c +0
-2ret = -EINVAL ; goto out; }if (len & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: splice_read should page-align\n" );if (len <PAGE_SIZE ) { ret = -EINVAL ; goto out; --
Anyone want to pick this up, or shall I just send it to Linus myself ?
Dave
Quoted 19 lines · Dave Jones
Quoted 18 lines · Dave Jones
These warnings are trivially triggerable by any user, and serve no useful purpose afaics Just
-EINVALand be done.Signed-off-by Dave Jones <[email protected]>kernel/trace/trace.c +0
-1@@ -4136,13 +4136,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,return -ENOMEM ;if (*ppos & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: previous read must page-align\n" ); ret = -EINVAL ; goto out; }
Quoted 8 lines
kernel/trace/trace.c tracing_buffers_splice_read(struct file *file, loff_t *ppos,
Quoted 6 lines
kernel/trace/trace.c +0
-2if (len & (PAGE_SIZE -1 )) { -WARN_ONCE (1 ,"Ftrace: splice_read should page-align\n" );if (len <PAGE_SIZE ) { ret = -EINVAL ; goto out; --Anyone want to pick this up, or shall I just send it to Linus myself ?
I can pick this up, if you don't mind them going in on 3.5. As they are only WARN_ONCE errors, I don't think they are that big of a deal.
-- Steve