Files
linux/fs/gfs2
Bob Peterson 0809e1087c gfs2: fix glock reference problem in gfs2_trans_remove_revoke
[ Upstream commit fe5e7ba11f ]

Commit 9287c6452d fixed a situation in which gfs2 could use a glock
after it had been freed. To do that, it temporarily added a new glock
reference by calling gfs2_glock_hold in function gfs2_add_revoke.
However, if the bd element was removed by gfs2_trans_remove_revoke, it
failed to drop the additional reference.

This patch adds logic to gfs2_trans_remove_revoke to properly drop the
additional glock reference.

Fixes: 9287c6452d ("gfs2: Fix occasional glock use-after-free")
Cc: stable@vger.kernel.org # v5.2+
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-17 20:35:55 +01:00
..
2016-05-12 22:28:05 -04:00
2018-07-02 16:27:17 +01:00
2018-06-04 07:56:51 -05:00
2016-06-27 09:47:09 -05:00
2018-07-25 00:08:59 +02:00
2016-06-27 09:47:08 -05:00
2008-06-27 09:39:44 +01:00
2018-02-01 11:25:31 -07:00
2018-01-23 07:38:53 -07:00
2018-06-12 16:19:22 -07:00
2018-03-08 09:26:20 -07:00
2019-12-01 09:16:15 +01:00
2017-04-19 08:25:43 -04:00
2018-07-25 00:06:24 +02:00
2012-01-11 09:23:05 +00:00
2018-07-05 17:47:16 +02:00
2018-06-21 07:39:44 -05:00
2018-08-03 13:20:02 +01:00
2015-12-06 21:25:17 -05:00