|
@@ -178,7 +178,7 @@ void __init fork_init(unsigned long mempages)
|
|
/* create a slab on which task_structs can be allocated */
|
|
/* create a slab on which task_structs can be allocated */
|
|
task_struct_cachep =
|
|
task_struct_cachep =
|
|
kmem_cache_create("task_struct", sizeof(struct task_struct),
|
|
kmem_cache_create("task_struct", sizeof(struct task_struct),
|
|
- ARCH_MIN_TASKALIGN, SLAB_PANIC, NULL);
|
|
|
|
|
|
+ ARCH_MIN_TASKALIGN, SLAB_PANIC | SLAB_NOTRACK, NULL);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* do the arch specific task caches init */
|
|
/* do the arch specific task caches init */
|
|
@@ -1470,20 +1470,20 @@ void __init proc_caches_init(void)
|
|
{
|
|
{
|
|
sighand_cachep = kmem_cache_create("sighand_cache",
|
|
sighand_cachep = kmem_cache_create("sighand_cache",
|
|
sizeof(struct sighand_struct), 0,
|
|
sizeof(struct sighand_struct), 0,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_DESTROY_BY_RCU,
|
|
|
|
- sighand_ctor);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_DESTROY_BY_RCU|
|
|
|
|
+ SLAB_NOTRACK, sighand_ctor);
|
|
signal_cachep = kmem_cache_create("signal_cache",
|
|
signal_cachep = kmem_cache_create("signal_cache",
|
|
sizeof(struct signal_struct), 0,
|
|
sizeof(struct signal_struct), 0,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_NOTRACK, NULL);
|
|
files_cachep = kmem_cache_create("files_cache",
|
|
files_cachep = kmem_cache_create("files_cache",
|
|
sizeof(struct files_struct), 0,
|
|
sizeof(struct files_struct), 0,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_NOTRACK, NULL);
|
|
fs_cachep = kmem_cache_create("fs_cache",
|
|
fs_cachep = kmem_cache_create("fs_cache",
|
|
sizeof(struct fs_struct), 0,
|
|
sizeof(struct fs_struct), 0,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_NOTRACK, NULL);
|
|
mm_cachep = kmem_cache_create("mm_struct",
|
|
mm_cachep = kmem_cache_create("mm_struct",
|
|
sizeof(struct mm_struct), ARCH_MIN_MMSTRUCT_ALIGN,
|
|
sizeof(struct mm_struct), ARCH_MIN_MMSTRUCT_ALIGN,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_NOTRACK, NULL);
|
|
vm_area_cachep = KMEM_CACHE(vm_area_struct, SLAB_PANIC);
|
|
vm_area_cachep = KMEM_CACHE(vm_area_struct, SLAB_PANIC);
|
|
mmap_init();
|
|
mmap_init();
|
|
}
|
|
}
|