• Kees Cook's avatar
    usercopy: Include offset in hardened usercopy report · f4e6e289
    Kees Cook authored
    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: default avatarKees Cook <keescook@chromium.org>
    f4e6e289
usercopy.c 8.14 KB