This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gadgetfs: use-after-free in ->aio_read()
[ Upstream commit f01d35a ] 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: [email protected] Signed-off-by: Al Viro <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information