linux-stable/tools/vm
Konstantin Khlebnikov 1d46598b79 tools/vm/page-types.c: catch sigbus if raced with truncate
Recently added page-cache dumping is known to be a little bit racy.
But after race with truncate it just dies due to unhandled SIGBUS
when it tries to poke pages beyond the new end of file.
This patch adds handler for SIGBUS which skips the rest of the file.

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:53:51 -07:00
..
.gitignore tools/vm: add .gitignore to ignore built binaries 2013-02-05 20:38:46 +11:00
Makefile tools/: Convert to new topic libraries 2013-12-16 16:03:27 -03:00
page-types.c tools/vm/page-types.c: catch sigbus if raced with truncate 2014-06-04 16:53:51 -07:00
slabinfo.c mm: Fix signal SIGFPE in slabinfo.c. 2012-07-02 23:11:14 +03:00