From 2ae7bf769cd1534c0466fd82f78ad7c9f10f3b5a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 22 May 2014 10:44:11 +1000 Subject: [PATCH] sysctl-allow-for-strict-write-position-handling-fix move misplaced hunk, per Randy Cc: Kees Cook Cc: Randy Dunlap Signed-off-by: Andrew Morton --- kernel/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e23d7017b870..51bbf904d694 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1783,8 +1783,8 @@ static int _proc_do_string(char *data, int maxlen, int write, static void warn_sysctl_write(struct ctl_table *table) { - pr_warn("%s wrote to %s when file position was not 0!\n", - current->comm, table->procname); + pr_warn("write to %s by %s used a non-zero file position!\n", + table->procname, current->comm); pr_warn("This will not be supported in the future.\n"); pr_warn("To silence warning, set kernel.sysctl_writes_strict = -1\n"); } -- 2.39.5