Dmitry Monakhov 913e027ca1 fsioctl.c: make generic_block_fiemap() signal-tolerant
__generic_block_fiemap may spin very long time for large sparse files.

Without this patch an unprivileged user may abuse system resources simply
by spawning a vast number of unkilable busyloops (works on ext2/ext3):

  truncate --size 1T test
  for ((i=0;i<1024;i++))
  do
         filefrag test > /dev/null &
  done

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-02-10 14:30:30 -08:00
..
2014-08-02 01:26:07 -05:00
2012-01-03 22:54:57 -05:00
2014-01-24 10:55:21 -06:00
2014-02-10 16:01:40 -08:00
2009-08-19 10:40:13 -07:00
2014-01-28 13:20:20 -08:00
2012-05-10 11:45:31 +01:00
2011-11-04 12:01:48 -07:00
2014-10-24 00:14:35 +02:00
2011-09-27 18:08:04 +02:00
2010-05-10 11:56:30 +02:00
2011-03-31 11:26:23 -03:00
2014-11-19 13:02:11 -05:00
2013-07-25 12:34:15 +02:00
2014-05-05 15:32:05 +02:00