linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, joshuabaergen@gmail.com
Subject: [PATCH] proc: fix /proc/*/coredump_filter write return value
Date: Fri, 6 Nov 2015 22:20:47 +0300	[thread overview]
Message-ID: <20151106192047.GA1667@p183.telecom.by> (raw)

From: Joshua Baergen <joshuabaergen@gmail.com>

https://bugzilla.kernel.org/show_bug.cgi?id=107321

commit 774636e19ed514cdf560006813c0473409616de8
("proc: convert to kstrto*()/kstrto*_from_user()")

made write to /proc/*/coredump_filter always return -ESRCH
(still new value was applied correctly).

Cc: stable@vger.kernel.org
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 fs/proc/base.c |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2503,6 +2503,7 @@ static ssize_t proc_coredump_filter_write(struct file *file,
 	}
 
 	mmput(mm);
+	ret = 0;
  out_no_mm:
 	put_task_struct(task);
  out_no_task:

                 reply	other threads:[~2015-11-06 19:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151106192047.GA1667@p183.telecom.by \
    --to=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=joshuabaergen@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).