]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools/vm/page-types.c: catch sigbus if raced with truncate
authorKonstantin Khlebnikov <koct9i@gmail.com>
Thu, 22 May 2014 00:42:21 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:21 +0000 (10:42 +1000)
commit0d7a28578a363eac64d9a74ef9dd8be8eac34c0f
tree2bb14b7cdb7e13ba1210f9a625b46dcc6ec63d97
parent2e66364055b6f472cd9e504b49db6f43b96ab755
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/vm/page-types.c