Hugepage cleanup and bugfix

From: David Gibson
Date: Wed Feb 15 2012 - 23:24:20 EST


Hi, this is a revised version of Andrew Barry's fix for the hugepage
race between unmount and quota update. In fact it's not just that
race which is a problem, it's a more general use-after-free problem on
fs inodes from the hugepage code.

Despite all the abstract talk in the patch comments about layering
violations, this fixes a real, exploitable, crash bug which has been
in the kernel for a very long time now.

Andrew, please apply.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/