--- a/mm/truncate.c 2016-07-25 02:14:17.124949750 +0200 +++ b/mm/truncate.c 2016-10-24 13:07:15.193441985 +0200 @@ -605,6 +605,7 @@ /* * Zap the rest of the file in one hit. */ +printk(KERN_ERR "PAX: end: %lx index: %lx\n", end, index); unmap_mapping_range(mapping, (loff_t)index << PAGE_SHIFT, (loff_t)(1 + end - index)