[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181204043316.GC4981@thunk.org>
Date: Mon, 3 Dec 2018 23:33:16 -0500
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Jan Kara <jack@...e.cz>
Cc: Pan Bian <bianpan2016@....com>,
Andreas Dilger <adilger.kernel@...ger.ca>,
linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ext4: fix possible use after free in ext4_quota_enable
On Tue, Nov 27, 2018 at 10:14:53AM +0100, Jan Kara wrote:
> On Mon 26-11-18 11:21:06, Pan Bian wrote:
> > The function frees qf_inode via iput but then pass qf_inode to
> > lockdep_set_quota_inode on the failure path. This may result in a
> > use-after-free bug. The patch frees df_inode only when it is never used.
> >
> > Signed-off-by: Pan Bian <bianpan2016@....com>
> > Fixes: daf647d2dd5("ext4: add lockdep annotations for i_data_sem")
>
> Thanks for the fix! The patch looks good. You can add:
>
> Reviewed-by: Jan Kara <jack@...e.cz>
Thanks, applied.
- Ted
Powered by blists - more mailing lists