aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAlexey Gladkov <legion@kernel.org>2021-04-22 14:27:09 +0200
committerEric W. Biederman <ebiederm@xmission.com>2021-04-30 14:14:00 -0500
commit905ae01c4ae2ae3df05bb141801b1db4b7d83c61 (patch)
treec4216c817bd6859c8028a25900bcfe4330c1e3c9 /tools/perf/scripts/python/syscall-counts.py
parentIncrease size of ucounts to atomic_long_t (diff)
downloadlinux-905ae01c4ae2ae3df05bb141801b1db4b7d83c61.tar.gz
linux-905ae01c4ae2ae3df05bb141801b1db4b7d83c61.zip
Add a reference to ucounts for each cred
For RLIMIT_NPROC and some other rlimits the user_struct that holds the global limit is kept alive for the lifetime of a process by keeping it in struct cred. Adding a pointer to ucounts in the struct cred will allow to track RLIMIT_NPROC not only for user in the system, but for user in the user_namespace. Updating ucounts may require memory allocation which may fail. So, we cannot change cred.ucounts in the commit_creds() because this function cannot fail and it should always return 0. For this reason, we modify cred.ucounts before calling the commit_creds(). Changelog v6: * Fix null-ptr-deref in is_ucounts_overlimit() detected by trinity. This error was caused by the fact that cred_alloc_blank() left the ucounts pointer empty. Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Alexey Gladkov <legion@kernel.org> Link: https://lkml.kernel.org/r/b37aaef28d8b9b0d757e07ba6dd27281bbe39259.1619094428.git.legion@kernel.org Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
18 15:02:14 -0800'>2012-12-18memcg: aggregate memcg cache values in slabinfoGlauber Costa5-5/+108 2012-12-18memcg/sl[au]b: shrink dead cachesGlauber Costa1-3/+43 2012-12-18memcg/sl[au]b: track all the memcg children of a kmem_cacheGlauber Costa3-2/+55 2012-12-18memcg: destroy memcg cachesGlauber Costa6-2/+106 2012-12-18sl[au]b: allocate objects from memcg cacheGlauber Costa4-5/+16 2012-12-18sl[au]b: always get the cache from its page in kmem_cache_free()Glauber Costa5-14/+53 2012-12-18memcg: skip memcg kmem allocations in specified code regionsGlauber Costa2-3/+55 2012-12-18memcg: infrastructure to match an allocation to the right cacheGlauber Costa3-1/+258 2012-12-18memcg: allocate memory for memcg caches whenever a new memcg appearsGlauber Costa3-16/+221 2012-12-18slab/slub: consider a memcg parameter in kmem_create_cacheGlauber Costa6-18/+157 2012-12-18slab: annotate on-slab caches nodelist locksGlauber Costa1-1/+33 2012-12-18slab/slub: struct memcg_paramsGlauber Costa4-0/+43 2012-12-18memcg: add documentation about the kmem controllerGlauber Costa1-1/+58 2012-12-18fork: protect architectures where THREAD_SIZE >= PAGE_SIZE against fork bombsGlauber Costa2-2/+4 2012-12-18memcg: execute the whole memcg freeing in free_worker()Glauber Costa1-32/+34 2012-12-18memcg: allow a memcg with kmem charges to be destructedGlauber Costa1-1/+14 2012-12-18memcg: use static branches when code not in useGlauber Costa2-5/+78 2012-12-18memcg: kmem accounting lifecycle managementGlauber Costa1-7/+50 2012-12-18res_counter: return amount of charges after res_counter_uncharge()Glauber Costa3-15/+24 2012-12-18mm: allocate kernel pages to the right memcgGlauber Costa2-0/+38 2012-12-18memcg: kmem controller infrastructureGlauber Costa2-0/+280 2012-12-18mm: add a __GFP_KMEMCG flagGlauber Costa2-0/+3 2012-12-18memcg: kmem accounting basic infrastructureGlauber Costa2-3/+124 2012-12-18memcg: change defines to an enumGlauber Costa1-10/+16 2012-12-18memcg: reclaim when more than one page neededSuleiman Souhlal1-7/+9 2012-12-18memcg: make it possible to use the stock for more than one pageSuleiman Souhlal1-10/+18 2012-12-18memory-hotplug: document and enable CONFIG_MOVABLE_NODETang Chen1-1/+12 2012-12-18mm/page_alloc.c: remove duplicate checkGavin Shan1-2/+1 2012-12-18drivers/message/fusion/mptscsih.c: missing breakAlan Cox1-0/+1 2012-12-18h8300: select generic atomic64_t supportFengguang Wu1-0/+1