Files
linux/security
Tejun Heo 201e72acb2 device_cgroup: fix RCU usage
dev_cgroup->exceptions is protected with devcgroup_mutex for writes
and RCU for reads; however, RCU usage isn't correct.

* dev_exception_clean() doesn't use RCU variant of list_del() and
  kfree().  The function can race with may_access() and may_access()
  may end up dereferencing already freed memory.  Use list_del_rcu()
  and kfree_rcu() instead.

* may_access() may be called only with RCU read locked but doesn't use
  RCU safe traversal over ->exceptions.  Use list_for_each_entry_rcu().

Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]>
Cc: [email protected]
Cc: Aristeu Rozanski <[email protected]>
Cc: Li Zefan <[email protected]>
2012-11-06 12:25:51 -08:00
..
2012-10-05 22:32:16 +10:00
2012-10-16 13:36:50 -04:00
2012-10-11 20:02:04 -04:00
2012-10-11 20:02:04 -04:00
2012-09-28 13:37:32 +10:00
2012-10-11 20:02:04 -04:00
2012-11-06 12:25:51 -08:00
2012-01-10 10:20:35 -05:00
2012-02-10 09:18:52 +11:00
2012-10-11 20:02:04 -04:00