diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-11-27 13:16:34 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-11-28 11:08:42 -0800 |
commit | 55e56f06ed71d9441f3abd5b1d3c1a870812b3fe (patch) | |
tree | 6d4ea9c78b457d2b894d11c58af2798b09a8746c /mm | |
parent | c93db7bb6ef3251e0ea48ade311d3e9942748e1c (diff) |
dax: Don't access a freed inode
After we drop the i_pages lock, the inode can be freed at any time.
The get_unlocked_entry() code has no choice but to reacquire the lock,
so it can't be used here. Create a new wait_entry_unlocked() which takes
care not to acquire the lock or dereference the address_space in any way.
Fixes: c2a7d2a11552 ("filesystem-dax: Introduce dax_lock_mapping_entry()")
Cc: <stable@vger.kernel.org>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions