Files
linux/drivers/usb/gadget
Al Viro c81fc59be4 gadgetfs: use-after-free in ->aio_read()
[ Upstream commit f01d35a15f ]

AIO_PREAD requests call ->aio_read() with iovec on caller's stack, so if
we are going to access it asynchronously, we'd better get ourselves
a copy - the one on kernel stack of aio_run_iocb() won't be there
anymore.  function/f_fs.c take care of doing that, legacy/inode.c
doesn't...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-03-28 10:01:39 -04:00
..