GFS2: Fix unsafe dereference in dump_holder()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 2 Jan 2014 10:52:20 +0000 (19:52 +0900)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 2 Jan 2014 12:18:04 +0000 (12:18 +0000)
commit0b3a2c9968d453d5827e635a6f3d69129f70af66
treeb5c0d6cee7f88e7d6dfc99afc51ec2be066906a8
parent582d2f7aedfde9e1a01170deb003df510aa778d3
GFS2: Fix unsafe dereference in dump_holder()

GLOCK_BUG_ON() might call this function without RCU read lock. Make sure that
RCU read lock is held when using task_struct returned from pid_task().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c