aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-05-15 09:19:27 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-15 09:26:56 -0400
commit789f90fcf6b0b54e655740e9396c954378542c79 (patch)
treedccfe1ffac1202729238385923e74a8b5ebab979 /include/linux/sched.h
parent548e1ddf255b4ebfb4ef20c08936fd8d4deb3bd9 (diff)
perf_counter: per user mlock gift
Instead of a per-process mlock gift for perf-counters, use a per-user gift so that there is less of a DoS potential. [ Impact: allow less worst-case unprivileged memory consumption ] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <20090515132018.496182835@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index d1857580a132..ff59d1231519 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -674,6 +674,10 @@ struct user_struct {
674 struct work_struct work; 674 struct work_struct work;
675#endif 675#endif
676#endif 676#endif
677
678#ifdef CONFIG_PERF_COUNTERS
679 atomic_long_t locked_vm;
680#endif
677}; 681};
678 682
679extern int uids_sysfs_init(void); 683extern int uids_sysfs_init(void);