diff options
| author | Christoph Hellwig <[email protected]> | 2016-10-02 22:48:08 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2016-10-02 22:48:08 +0000 |
| commit | 0d5b0cf246a3227d811e7bf55d756b273408e414 (patch) | |
| tree | 08163c5359913d1747cc2ef74394b313c0949cbd /net/switchdev/switchdev.c | |
| parent | xfs: update atime before I/O in xfs_file_dio_aio_read (diff) | |
| download | kernel-0d5b0cf246a3227d811e7bf55d756b273408e414.tar.gz kernel-0d5b0cf246a3227d811e7bf55d756b273408e414.zip | |
fs: update atime before I/O in generic_file_read_iter
After the call to ->direct_IO the final reference to the file might have
been dropped by aio_complete already, and the call to file_accessed might
cause a use after free.
Instead update the access time before the I/O, similar to how we
update the time stamps before writes.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
