Subject: [merged] fault-injection-set-bounds-on-what-proc-self-make-it-fail-accepts.patch removed from -mm tree To: davej@xxxxxxxxxx,akinobu.mita@xxxxxxxxx,davej@xxxxxxxxxxxxxxxxx,rientjes@xxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 08 Apr 2014 14:37:05 -0700 The patch titled Subject: fault-injection: set bounds on what /proc/self/make-it-fail accepts. has been removed from the -mm tree. Its filename was fault-injection-set-bounds-on-what-proc-self-make-it-fail-accepts.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Dave Jones <davej@xxxxxxxxxx> Subject: fault-injection: set bounds on what /proc/self/make-it-fail accepts. /proc/self/make-it-fail is a boolean, but accepts any number, including negative ones. Change variable to unsigned, and cap upper bound at 1. [akpm@xxxxxxxxxxxxxxxxxxxx: don't make make_it_fail unsigned] Signed-off-by: Dave Jones <davej@xxxxxxxxxxxxxxxxx> Reviewed-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN fs/proc/base.c~fault-injection-set-bounds-on-what-proc-self-make-it-fail-accepts fs/proc/base.c --- a/fs/proc/base.c~fault-injection-set-bounds-on-what-proc-self-make-it-fail-accepts +++ a/fs/proc/base.c @@ -1236,6 +1236,9 @@ static ssize_t proc_fault_inject_write(s make_it_fail = simple_strtol(strstrip(buffer), &end, 0); if (*end) return -EINVAL; + if (make_it_fail < 0 || make_it_fail > 1) + return -EINVAL; + task = get_proc_task(file_inode(file)); if (!task) return -ESRCH; _ Patches currently in -mm which might be from davej@xxxxxxxxxx are origin.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html