summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_fbcon.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-10 10:57:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-11 15:33:36 +0200
commite0c47a51fc62a20392b394e7b5e9436988930b7b (patch)
tree664c5a9c69197a2b7238cc4abcb76936872c6870 /drivers/gpu/drm/nouveau/nouveau_fbcon.c
parentfe6402e0e66cfeb957bf9c25a37df392028fcf4f (diff)
net/9p: validate fds in p9_fd_open
[ Upstream commit a39c46067c845a8a2d7144836e9468b7f072343e ] 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/20200710085722.435850-1-hch@lst.de Reported-by: syzbot+e6f77e16ff68b2434a2c@syzkaller.appspotmail.com Signed-off-by: Christoph Hellwig <hch@lst.de> [Dominique: amend goto as per Doug Nazar's review] Signed-off-by: Dominique Martinet <asmadeus@codewreck.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
0 files changed, 0 insertions, 0 deletions