diff options
| author | Chunguang Xu <[email protected]> | 2020-11-07 15:58:18 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2020-12-17 18:30:09 +0000 |
| commit | cca415537244f6102cbb09b5b90db6ae2c953bdd (patch) | |
| tree | 8dce47d4ded574925459bcc9eb47808063a9171b /fs/ext4/fast_commit.c | |
| parent | ext4: delete nonsensical (commented-out) code inside ext4_xattr_block_set() (diff) | |
| download | kernel-cca415537244f6102cbb09b5b90db6ae2c953bdd.tar.gz kernel-cca415537244f6102cbb09b5b90db6ae2c953bdd.zip | |
ext4: fix a memory leak of ext4_free_data
When freeing metadata, we will create an ext4_free_data and
insert it into the pending free list. After the current
transaction is committed, the object will be freed.
ext4_mb_free_metadata() will check whether the area to be freed
overlaps with the pending free list. If true, return directly. At this
time, ext4_free_data is leaked. Fortunately, the probability of this
problem is small, since it only occurs if the file system is corrupted
such that a block is claimed by more one inode and those inodes are
deleted within a single jbd2 transaction.
Signed-off-by: Chunguang Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
