• Kees Cook's avatar
    lkdtm: add usercopy tests · aa981a66
    Kees Cook authored
    This adds test to detect copy_to_user/copy_from_user problems that are
    protected by PAX_USERCOPY (and will be protected by HARDENED_USERCOPY).
    Explicitly tests both "to" and "from" directions of heap object size
    problems, heap object markings and, stack frame misalignment.
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    aa981a66
lkdtm_core.c 30.7 KB