Re: [patch v2 3/4] x86, ptrace: prepare regset get/set routines for user specified lengths

From: Roland McGrath
Date: Tue Feb 09 2010 - 20:32:56 EST


This change is unnecessary and IMHO misguided. The arch user_regset.get
and user_regset.set functions are not required to worry about bogus
arguments. Their callers are required to pass values that don't violate
the .n, .size, and .align constraints in the user_regset. The right place
to enforce these constraints on parameters coming from userland is in the
arch-independent code that calls the arch user_regset functions.


Thanks,
Roland
--
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/