diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-11-27 22:16:34 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-11-28 20:08:42 +0100 |
commit | 55e56f06ed71d9441f3abd5b1d3c1a870812b3fe (patch) | |
tree | 6d4ea9c78b457d2b894d11c58af2798b09a8746c /include | |
parent | dax: Check page->mapping isn't NULL (diff) | |
download | linux-55e56f06ed71d9441f3abd5b1d3c1a870812b3fe.tar.xz linux-55e56f06ed71d9441f3abd5b1d3c1a870812b3fe.zip |
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 'include')
0 files changed, 0 insertions, 0 deletions