Ashish Samant cbe355f57c ocfs2: fix locking for res->tracking and dlm->tracking_list
In dlm_init_lockres() we access and modify res->tracking and
dlm->tracking_list without holding dlm->track_lock.  This can cause list
corruptions and can end up in kernel panic.

Fix this by locking res->tracking and dlm->tracking_list with
dlm->track_lock instead of dlm->spinlock.

Link: http://lkml.kernel.org/r/1529951192-4686-1-git-send-email-ashish.samant@oracle.com
Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Reviewed-by: Changwei Ge <ge.changwei@h3c.com>
Acked-by: Joseph Qi <jiangqi903@gmail.com>
Acked-by: Jun Piao <piaojun@huawei.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-05 16:32:05 -07:00
..
2017-09-06 17:27:24 -07:00
2018-08-17 16:20:27 -07:00
2018-04-05 21:36:21 -07:00
2018-04-05 21:36:21 -07:00
2018-01-31 17:18:35 -08:00
2018-01-31 17:18:35 -08:00
2018-07-06 23:57:03 +02:00
2018-08-17 16:20:27 -07:00
2018-06-07 17:34:33 -07:00
2018-06-12 16:19:22 -07:00
2015-12-29 17:45:49 -08:00
2017-09-06 17:27:24 -07:00
2012-05-29 23:28:40 -04:00
2018-06-12 16:19:22 -07:00
2016-05-12 15:52:50 -07:00