]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - mm/usercopy.c
usercopy: Include offset in hardened usercopy report
authorKees Cook <keescook@chromium.org>
Wed, 10 Jan 2018 22:48:22 +0000 (14:48 -0800)
committerKees Cook <keescook@chromium.org>
Mon, 15 Jan 2018 20:07:45 +0000 (12:07 -0800)
commitf4e6e289cb9cf67885b6b18b9d56d2c3e1c714a1
treeef4487691b7cc2581baeebedfa3ef4482ecad3fa
parentb394d468e7d75637e682a9be4a1181b27186c593
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>
include/linux/slab.h
mm/slab.c
mm/slub.c
mm/usercopy.c