On 07/28/2015 01:15 PM, Kees Cook wrote: > From: Ricky Zhou <[email protected]> > > Checking mm_users > 1 does not mean a process is multithreaded. For > example, reading /proc/PID/maps temporarily increments mm_users, allowing > other processes to (accidentally) interfere with unshare() calls. > > This fixes observed failures of unshare(CLONE_NEWUSER) incorrectly > returning EINVAL if another processes happened to be simultaneously > reading the maps file. > > Signed-off-by: Ricky Zhou <[email protected]> > Signed-off-by: Kees Cook <[email protected]> > Cc: [email protected]
Reviewed-by: Rik van Riel <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

