Re: [PATCH] ext4: Fix accessing uninit percpu counter variable with fast_commit
From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-06-03 01:41:39
From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-06-03 01:41:39
On Thu, Apr 29, 2021 at 04:13:44PM +0530, Ritesh Harjani wrote:
When running generic/527 with fast_commit configuration, below issue is seen on Power. With fast_commit, during ext4_fc_replay() (which can be called from ext4_fill_super()), if inode eviction happens then it can access an uninitialized percpu counter variable. This patch adds the check b4 accessing the counters in ext4_free_inode() path.
Applied, thanks. - Ted