]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f6be53731b30d4a7c4e88a86d4cd3a7df0b44ff
tree9190f8fc1f806d3ae085d8f563db3239a8c25f02
parentbf18bfc9066a93489d5a52ac17add368f10c5f38
parenta3339b6dc4bc489fbb8f2b91fa1381a9b94e9e75
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>