Files
yangerkun cef20b45c9 ext4: do not use extent after put_bh
commit d7dce9e085 upstream.

ext4_ext_search_right() will read more extent blocks and call put_bh
after we get the information we need.  However, ret_ex will break this
and may cause use-after-free once pagecache has been freed.  Fix it by
copying the extent structure if needed.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Link: https://lore.kernel.org/r/20201028055617.2569255-1-yangerkun@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-05 11:51:52 +01:00
..
…
…
2020-11-05 11:51:52 +01:00
…
2020-08-18 14:27:40 -04:00
2020-08-19 12:04:35 -04:00
2020-07-08 10:29:43 -07:00
…