]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e1b25a426e44cf0b56664c04ff4cb8e666cf906
treeb5c0d6cee7f88e7d6dfc99afc51ec2be066906a8
parent35bee4f19c0478f7b7fbc1ea6133b933131a5c91
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