diff options
| author | Christoph Hellwig <[email protected]> | 2020-07-10 08:57:22 +0000 |
|---|---|---|
| committer | Dominique Martinet <[email protected]> | 2020-07-19 12:58:29 +0000 |
| commit | a39c46067c845a8a2d7144836e9468b7f072343e (patch) | |
| tree | 3a1695a936e75161787df3a635ef3f474d5a7b83 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | Linux 5.8-rc5 (diff) | |
| download | kernel-a39c46067c845a8a2d7144836e9468b7f072343e.tar.gz kernel-a39c46067c845a8a2d7144836e9468b7f072343e.zip | |
net/9p: validate fds in p9_fd_open
p9_fd_open just fgets file descriptors passed in from userspace, but
doesn't verify that they are valid for read or writing. This gets
cought down in the VFS when actually attempting a read or write, but
a new warning added in linux-next upsets syzcaller.
Fix this by just verifying the fds early on.
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: [email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
[Dominique: amend goto as per Doug Nazar's review]
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
