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

Roland McGrath
2010-02-10T01:32:52Z

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