diff options
| author | Jeffrey Mitchell <[email protected]> | 2020-08-05 17:23:19 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2020-08-12 13:46:22 +0000 |
| commit | b4487b93545214a9db8cbf32e86411677b0cca21 (patch) | |
| tree | e19a8f9cbb3f0a7540eb9106fe85b6982d07f439 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | NFS: Don't return layout segments that are in use (diff) | |
| download | kernel-b4487b93545214a9db8cbf32e86411677b0cca21.tar.gz kernel-b4487b93545214a9db8cbf32e86411677b0cca21.zip | |
nfs: Fix getxattr kernel panic and memory overflow
Move the buffer size check to decode_attr_security_label() before memcpy()
Only call memcpy() if the buffer is large enough
Fixes: aa9c2669626c ("NFS: Client implementation of Labeled-NFS")
Signed-off-by: Jeffrey Mitchell <[email protected]>
[Trond: clean up duplicate test of label->len != 0]
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
