commit | f4e6e289cb9cf67885b6b18b9d56d2c3e1c714a1 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Wed Jan 10 14:48:22 2018 -0800 |
committer | Kees Cook <keescook@chromium.org> | Mon Jan 15 12:07:45 2018 -0800 |
tree | ef4487691b7cc2581baeebedfa3ef4482ecad3fa | |
parent | b394d468e7d75637e682a9be4a1181b27186c593 [diff] |
usercopy: Include offset in hardened usercopy report This refactors the hardened usercopy code so that failure reporting can happen within the checking functions instead of at the top level. This simplifies the return value handling and allows more details and offsets to be included in the report. Having the offset can be much more helpful in understanding hardened usercopy bugs. Signed-off-by: Kees Cook <keescook@chromium.org>