Files
linux/security
Oleg Nesterov fbf8f2e409 selinux: selinux_setprocattr()->ptrace_parent() needs rcu_read_lock()
commit c0c1439541 upstream.

selinux_setprocattr() does ptrace_parent(p) under task_lock(p),
but task_struct->alloc_lock doesn't pin ->parent or ->ptrace,
this looks confusing and triggers the "suspicious RCU usage"
warning because ptrace_parent() does rcu_dereference_check().

And in theory this is wrong, spin_lock()->preempt_disable()
doesn't necessarily imply rcu_read_lock() we need to access
the ->parent.

Reported-by: Evan McNabb <emcnabb@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-01-13 10:01:05 -08:00
..
2013-12-06 14:27:45 -08:00
2012-10-11 20:02:04 -04:00
2012-01-10 10:20:35 -05:00
2012-02-10 09:18:52 +11:00