Commit 4965d5dc authored by yangerkun's avatar yangerkun Committed by Long Li
Browse files

xfs: shutdown xfs once inode double free

hulk inclusion
category: bugfix
bugzilla: 189240, https://gitee.com/openeuler/kernel/issues/I76JSK


CVE: NA

--------------------------------

Once we free exact one inode twice in xfs_difree_inobt, this lead to
that ir_freecount does not match ir_free(ir_freecount will add twice,
but ir_free will change only once), and the latter xfs_inobt_get_rec
will bark for the mismatch of the ir_freecount and ir_free. Once we
call xfs_inobt_get_rec when we process AGI unlinked lists, this will
fail xfs mount.

We has not found the root cause why we free exact one inode twice, but
we really should reject this for the purpose to not spread mistakes.

Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 3d38f77c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment