diff options
| author | Kees Cook <[email protected]> | 2022-08-16 19:14:54 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-08-16 19:17:18 +0000 |
| commit | 6a3981af3fd97fec57f2c5eeca213cbf5216a3c0 (patch) | |
| tree | 6a24427f919e17b23e9b959d78357e5884cc1119 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | dm: verity-loadpin: Drop use of dm_table_get_num_targets() (diff) | |
| download | kernel-6a3981af3fd97fec57f2c5eeca213cbf5216a3c0.tar.gz kernel-6a3981af3fd97fec57f2c5eeca213cbf5216a3c0.zip | |
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Fixes: 3f805f8cc23b ("LoadPin: Enable loading from trusted dm-verity devices")
Cc: Matthias Kaehlcke <[email protected]>
Cc: James Morris <[email protected]>
Cc: "Serge E. Hallyn" <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
