public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] xfs: fix two problem when recovery intents fails
@ 2023-06-29 13:17 Long Li
  2023-06-29 13:17 ` [PATCH 1/3] xfs: factor out xfs_defer_pending_abort Long Li
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Long Li @ 2023-06-29 13:17 UTC (permalink / raw)
  To: djwong, david; +Cc: linux-xfs, yi.zhang, houtao1, leo.lilong, yangerkun

This patch set fix two problem when recovery intents fails.

Patches 1-2 fix the possible problem that intent items not released.
When recovery intents, new intents items may be created during recovery
intents. if recovery fails, new intents items may be left in AIL or
leaks.

Patch 3 fix a uaf problem, when recovery intents fails, intent items
may be freed before done item commited.

Long Li (3):
  xfs: factor out xfs_defer_pending_abort
  xfs: abort intent items when recovery intents fail
  xfs: make sure done item committed before cancel intents

 fs/xfs/libxfs/xfs_defer.c | 26 +++++++++++++++++---------
 fs/xfs/libxfs/xfs_defer.h |  1 +
 fs/xfs/xfs_log_recover.c  | 15 ++++++++-------
 3 files changed, 26 insertions(+), 16 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-30  1:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-29 13:17 [PATCH 0/3] xfs: fix two problem when recovery intents fails Long Li
2023-06-29 13:17 ` [PATCH 1/3] xfs: factor out xfs_defer_pending_abort Long Li
2023-06-29 15:10   ` Darrick J. Wong
2023-06-29 13:17 ` [PATCH 2/3] xfs: abort intent items when recovery intents fail Long Li
2023-06-29 14:42   ` Darrick J. Wong
2023-06-30  1:51     ` Long Li
2023-06-29 13:17 ` [PATCH 3/3] xfs: make sure done item committed before cancel intents Long Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox