Merge branch 'guilt/xfs-5.19-recovery-buf-cancel' into xfs-5.19-for-next
authorDave Chinner <david@fromorbit.com>
Mon, 30 May 2022 00:58:13 +0000 (10:58 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 30 May 2022 00:58:13 +0000 (10:58 +1000)
commit621dc801df4c2e523a66c96b250e0133ed7da90e
tree9190f8fc1f806d3ae085d8f563db3239a8c25f02
parent6f5097e3367a7c0751e165e4c15bc30511a4ba38
parent910bbdf2f4d7df46781bc9b723048f5ebed3d0d7
Merge branch 'guilt/xfs-5.19-recovery-buf-cancel' into xfs-5.19-for-next

As part of solving the memory leaks and UAF problems in the new LARP
code, kmemleak also reported that log recovery will leak the table
used to hash buffer cancellations if the recovery fails.  Fix this
problem by creating alloc/free helpers that initialize and free the
hashtable contents correctly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>