]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
fault-injection: set bounds on what /proc/self/make-it-fail accepts.
authorDave Jones <davej@redhat.com>
Mon, 7 Apr 2014 22:39:15 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:10 +0000 (16:36 -0700)
commit16caed319604609a5579df132fce362a456170d7
tree4957342fcb459c2821297167362616ed38ce202c
parentb06dd879f5db33c1d7f5ab516ea671627f99c0c9
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@linux-foundation.org: don't make make_it_fail unsigned]
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c