android_kernel_motorola_sm6375/net/9p
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christoph Hellwig e0c47a51fc 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/[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]>
Signed-off-by: Sasha Levin <[email protected]>
2020-08-11 15:33:36 +02:00
..
client.c 9p: Transport error uninitialized 2019-09-03 11:05:34 +00:00
error.c
Kconfig
Makefile
mod.c
protocol.c
protocol.h
trans_common.c
trans_common.h
trans_fd.c net/9p: validate fds in p9_fd_open 2020-08-11 15:33:36 +02:00
trans_rdma.c rdma: Enable ib_alloc_cq to spread work over a device's comp_vectors 2019-08-05 11:50:32 -04:00
trans_virtio.c 9p pull request for inclusion in 5.13 2019-07-12 17:31:19 -07:00
trans_xen.c 9p pull request for inclusion in 5.13 2019-07-12 17:31:19 -07:00