Files
linux-stable-mirror/fs
Andreas GruenbacherandGreg Kroah-Hartman cec5567435 gfs2: prevent NULL pointer dereference during unmount
[ Upstream commit 74b4dbb946 ]

When flushing out outstanding glock work during an unmount, gfs2_log_flush()
can be called when sdp->sd_jdesc has already been deallocated and sdp->sd_jdesc
is NULL.  Commit 35264909e9 ("gfs2: Fix NULL pointer dereference in
gfs2_log_flush") added a check for that to gfs2_log_flush() itself, but it
missed the sdp->sd_jdesc dereference in gfs2_log_release().  Fix that.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202604071139.HNJiCaAi-lkp@intel.com/
Fixes: 35264909e9 ("gfs2: Fix NULL pointer dereference in gfs2_log_flush")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-06-01 17:35:33 +02:00
..
2026-03-04 07:20:07 -05:00
2026-01-19 13:10:10 +01:00
2026-01-19 13:10:18 +01:00
2025-10-19 16:21:28 +02:00
2025-04-10 14:31:50 +02:00
2025-10-29 14:03:09 +01:00
2025-03-13 12:49:50 +01:00
2026-01-19 13:10:10 +01:00