aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-11-27 13:16:34 -0800
committerDan Williams <dan.j.williams@intel.com>2018-11-28 11:08:42 -0800
commit55e56f06ed71d9441f3abd5b1d3c1a870812b3fe (patch)
tree6d4ea9c78b457d2b894d11c58af2798b09a8746c /mm/memory-failure.c
parentdax: Check page->mapping isn't NULL (diff)
downloadlinux-dev-55e56f06ed71d9441f3abd5b1d3c1a870812b3fe.tar.xz
linux-dev-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 '')
0 files changed, 0 insertions, 0 deletions