| From | Roland McGrath <> | Subject | Re: [patch v2 3/4] x86, ptrace: prepare regset get/set routines for user specified lengths | Date | Tue, 9 Feb 2010 17:32:24 -0800 (PST) |
| |
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
|