From: Konstantin Khlebnikov Date: Wed, 4 Jun 2014 23:05:30 +0000 (-0700) Subject: tools/vm/page-types.c: catch sigbus if raced with truncate X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~275 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d46598b7903cd5ec83c49adbd741f43bb0ffcdc;p=pandora-kernel.git 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 Cc: Naoya Horiguchi Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed