[PATCH 5.1 088/128] ext4: avoid drop reference to iloc.bh twice

2019-05-20 Thread Greg Kroah-Hartman
From: Pan Bian commit 8c380ab4b7b59c0c602743810be1b712514eaebc upstream. The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. However, the reference is dropped again if error occurs during ext4_handle_dirty_metadata, which may result in use-after-free bugs. Fixes: fb265c9cb49e("ex

[PATCH 5.0 085/123] ext4: avoid drop reference to iloc.bh twice

2019-05-20 Thread Greg Kroah-Hartman
From: Pan Bian commit 8c380ab4b7b59c0c602743810be1b712514eaebc upstream. The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. However, the reference is dropped again if error occurs during ext4_handle_dirty_metadata, which may result in use-after-free bugs. Fixes: fb265c9cb49e("ex

[PATCH 4.19 069/105] ext4: avoid drop reference to iloc.bh twice

2019-05-20 Thread Greg Kroah-Hartman
From: Pan Bian commit 8c380ab4b7b59c0c602743810be1b712514eaebc upstream. The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. However, the reference is dropped again if error occurs during ext4_handle_dirty_metadata, which may result in use-after-free bugs. Fixes: fb265c9cb49e("ex

[PATCH 4.14 43/63] ext4: avoid drop reference to iloc.bh twice

2019-05-20 Thread Greg Kroah-Hartman
From: Pan Bian commit 8c380ab4b7b59c0c602743810be1b712514eaebc upstream. The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. However, the reference is dropped again if error occurs during ext4_handle_dirty_metadata, which may result in use-after-free bugs. Fixes: fb265c9cb49e("ex

Re: ext4: avoid drop reference to iloc.bh twice

2019-04-25 Thread Theodore Ts'o
On Thu, Apr 18, 2019 at 02:35:19PM +0200, Jan Kara wrote: > On Thu 18-04-19 16:31:18, Pan Bian wrote: > > The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. > > However, the reference is dropped again if error occurs during > > ext4_handle_dirty_metadata, which may result in use-aft

Re: ext4: avoid drop reference to iloc.bh twice

2019-04-18 Thread Jan Kara
On Thu 18-04-19 16:31:18, Pan Bian wrote: > The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. > However, the reference is dropped again if error occurs during > ext4_handle_dirty_metadata, which may result in use-after-free bugs. > > Fixes: fb265c9cb49e("ext4: add ext4_sb_bread()

ext4: avoid drop reference to iloc.bh twice

2019-04-18 Thread Pan Bian
The reference to iloc.bh has been dropped in ext4_mark_iloc_dirty. However, the reference is dropped again if error occurs during ext4_handle_dirty_metadata, which may result in use-after-free bugs. Fixes: fb265c9cb49e("ext4: add ext4_sb_bread() to disambiguate ENOMEM cases") Signed-off-by: Pan B