Bob Peterson b1becbdee7 GFS2: Fix kernel NULL pointer dereference by dlm_astd
This patch fixes a problem in an error path when looking
up dinodes.  There are two sister-functions, gfs2_inode_lookup
and gfs2_process_unlinked_inode.  Both functions acquire and
hold the i_iopen glock for the dinode being looked up. The last
thing they try to do is hold the i_gl glock for the dinode.
If that glock fails for some reason, the error path was
incorrectly calling gfs2_glock_put for the i_iopen glock twice.
This resulted in the glock being prematurely freed.  The
"minimum hold time" usually kept the glock in memory, but the
lock interface to dlm (aka lock_dlm) freed its memory for the
glock.  In some circumstances, it would cause dlm's dlm_astd daemon
to try to call the bast function for the freed lock_dlm memory,
which resulted in a NULL pointer dereference.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2010-07-15 09:06:25 +01:00
..
2010-05-21 18:31:20 -04:00
2010-05-27 22:15:42 -04:00
2010-04-14 16:48:05 +01:00
2010-05-27 22:05:02 -04:00
2008-06-27 09:39:44 +01:00
2010-03-01 14:07:37 +00:00
2010-05-06 11:03:29 +01:00
2010-03-09 10:08:36 +00:00
2010-05-21 16:11:36 +01:00
2010-05-21 16:11:36 +01:00
2010-05-05 09:39:18 +01:00
2008-03-31 10:39:54 +01:00
2010-03-29 14:26:49 +01:00
2009-08-26 18:51:04 +01:00
2010-05-12 09:52:50 +01:00
2010-05-21 19:30:44 +02:00
2009-12-03 11:58:47 +00:00
2009-05-19 10:01:18 +01:00
2010-05-06 11:03:29 +01:00
2010-05-21 18:31:20 -04:00
2009-01-05 07:39:13 +00:00
2010-05-05 09:39:18 +01:00
2010-03-01 14:07:37 +00:00
2010-05-21 18:31:20 -04:00
2009-12-16 12:16:49 -05:00