summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-08-16 22:14:54 +0300
committerKees Cook <keescook@chromium.org>2022-08-16 22:17:18 +0300
commit6a3981af3fd97fec57f2c5eeca213cbf5216a3c0 (patch)
tree6a24427f919e17b23e9b959d78357e5884cc1119 /tools/perf/scripts/python/export-to-postgresql.py
parent27603a606fda0806d7c08914bc976931aa42020e (diff)
downloadlinux-6a3981af3fd97fec57f2c5eeca213cbf5216a3c0.tar.xz
LoadPin: Return EFAULT on copy_from_user() failures
The copy_from_user() function returns the number of bytes remaining to be copied on a failure. Such failures should return -EFAULT to high levels. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: 3f805f8cc23b ("LoadPin: Enable loading from trusted dm-verity devices") Cc: Matthias Kaehlcke <mka@chromium.org> Cc: James Morris <jmorris@namei.org> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-security-module@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions