suspicious RCU usage?
From: Mulyadi Santosa <hidden>
Date: 2012-03-06 15:30:29
From: Mulyadi Santosa <hidden>
Date: 2012-03-06 15:30:29
Hi.... :) On Sun, Mar 4, 2012 at 20:16, Peter Senna Tschudin [off-list ref] wrote:
[ ?858.634435] kernel/pid.c:425 find_task_by_pid_ns() needs rcu_read_lock() protection!
hmm....ok....kernel said that.... so...
int yfkm2_is_pid_running(pid_t pid)
{
? ? ? ?struct task_struct *q;
? ? ? ?q = find_task_by_vpid(pid);I think this section that makes kernel barf. It wants you to grab rcu_read_lock(), right before you do find_task_by_vpid(). What do you think? :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com