/kernel/linux/linux-5.10/mm/ |
H A D | slab_common.c | 172 if (s->usersize) in slab_unmergeable() 234 unsigned int usersize, void (*ctor)(void *), in create_cache() 240 if (WARN_ON(useroffset + usersize > object_size)) in create_cache() 241 useroffset = usersize = 0; in create_cache() 253 s->usersize = usersize; in create_cache() 279 * @usersize: Usercopy region size 303 unsigned int useroffset, unsigned int usersize, in kmem_cache_create_usercopy() 334 /* Fail closed on bad usersize of useroffset values. */ in kmem_cache_create_usercopy() 335 if (WARN_ON(!usersize in kmem_cache_create_usercopy() 231 create_cache(const char *name, unsigned int object_size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void *), struct kmem_cache *root_cache) create_cache() argument 300 kmem_cache_create_usercopy(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void *)) kmem_cache_create_usercopy() argument 540 create_boot_cache(struct kmem_cache *s, const char *name, unsigned int size, slab_flags_t flags, unsigned int useroffset, unsigned int usersize) create_boot_cache() argument 570 create_kmalloc_cache(const char *name, unsigned int size, slab_flags_t flags, unsigned int useroffset, unsigned int usersize) create_kmalloc_cache() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | slab_common.c | 149 if (s->usersize) in slab_unmergeable() 212 unsigned int usersize, void (*ctor)(void *), in create_cache() 218 if (WARN_ON(useroffset + usersize > object_size)) in create_cache() 219 useroffset = usersize = 0; in create_cache() 232 s->usersize = usersize; in create_cache() 257 * @usersize: Usercopy region size 281 unsigned int useroffset, unsigned int usersize, in kmem_cache_create_usercopy() 323 /* Fail closed on bad usersize of useroffset values. */ in kmem_cache_create_usercopy() 325 WARN_ON(!usersize in kmem_cache_create_usercopy() 209 create_cache(const char *name, unsigned int object_size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void *), struct kmem_cache *root_cache) create_cache() argument 278 kmem_cache_create_usercopy(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void *)) kmem_cache_create_usercopy() argument 629 create_boot_cache(struct kmem_cache *s, const char *name, unsigned int size, slab_flags_t flags, unsigned int useroffset, unsigned int usersize) create_boot_cache() argument [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_nfacct.c | 66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct), 77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
|
H A D | xt_bpf.c | 126 .usersize = offsetof(struct xt_bpf_info, filter), 137 .usersize = offsetof(struct xt_bpf_info_v1, filter),
|
H A D | xt_CT.c | 310 .usersize = offsetof(struct xt_ct_target_info, ct), 322 .usersize = offsetof(struct xt_ct_target_info, ct), 334 .usersize = offsetof(struct xt_ct_target_info, ct),
|
H A D | xt_cgroup.c | 185 .usersize = offsetof(struct xt_cgroup_info_v1, priv), 199 .usersize = offsetof(struct xt_cgroup_info_v2, priv),
|
H A D | xt_TEE.c | 153 .usersize = offsetof(struct xt_tee_tginfo, priv), 165 .usersize = offsetof(struct xt_tee_tginfo, priv),
|
H A D | x_tables.c | 293 int usersize, int size, int aligned_size) in xt_data_to_user() 295 usersize = usersize ? : size; in xt_data_to_user() 296 if (copy_to_user(dst, src, usersize)) in xt_data_to_user() 298 if (usersize != aligned_size && in xt_data_to_user() 299 clear_user(dst + usersize, aligned_size - usersize)) in xt_data_to_user() 308 K->u.kernel.TYPE->usersize, \ 638 static bool error_tg_ok(unsigned int usersize, unsigned int kernsize, in error_tg_ok() argument 641 return usersize in error_tg_ok() 292 xt_data_to_user(void __user *dst, const void *src, int usersize, int size, int aligned_size) xt_data_to_user() argument [all...] |
H A D | xt_statistic.c | 84 .usersize = offsetof(struct xt_statistic_info, master),
|
H A D | xt_string.c | 78 .usersize = offsetof(struct xt_string_info, config),
|
H A D | xt_quota.c | 77 .usersize = offsetof(struct xt_quota_info, master),
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_nfacct.c | 66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct), 77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
|
H A D | xt_bpf.c | 126 .usersize = offsetof(struct xt_bpf_info, filter), 137 .usersize = offsetof(struct xt_bpf_info_v1, filter),
|
H A D | xt_CT.c | 321 .usersize = offsetof(struct xt_ct_target_info, ct), 333 .usersize = offsetof(struct xt_ct_target_info, ct), 345 .usersize = offsetof(struct xt_ct_target_info, ct),
|
H A D | xt_TEE.c | 153 .usersize = offsetof(struct xt_tee_tginfo, priv), 165 .usersize = offsetof(struct xt_tee_tginfo, priv),
|
H A D | xt_cgroup.c | 185 .usersize = offsetof(struct xt_cgroup_info_v1, priv), 199 .usersize = offsetof(struct xt_cgroup_info_v2, priv),
|
H A D | x_tables.c | 313 int usersize, int size, int aligned_size) in xt_data_to_user() 315 usersize = usersize ? : size; in xt_data_to_user() 316 if (copy_to_user(dst, src, usersize)) in xt_data_to_user() 318 if (usersize != aligned_size && in xt_data_to_user() 319 clear_user(dst + usersize, aligned_size - usersize)) in xt_data_to_user() 328 K->u.kernel.TYPE->usersize, \ 658 static bool error_tg_ok(unsigned int usersize, unsigned int kernsize, in error_tg_ok() argument 661 return usersize in error_tg_ok() 312 xt_data_to_user(void __user *dst, const void *src, int usersize, int size, int aligned_size) xt_data_to_user() argument [all...] |
H A D | xt_quota.c | 77 .usersize = offsetof(struct xt_quota_info, master),
|
H A D | xt_statistic.c | 84 .usersize = offsetof(struct xt_statistic_info, master),
|
/kernel/linux/linux-5.10/include/linux/netfilter/ |
H A D | x_tables.h | 171 unsigned int usersize; member 212 unsigned int usersize; member 302 int usersize, int size, int aligned_size);
|
/kernel/linux/linux-6.6/include/linux/netfilter/ |
H A D | x_tables.h | 171 unsigned int usersize; member 212 unsigned int usersize; member 302 int usersize, int size, int aligned_size);
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6t_NPT.c | 151 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment), 163 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6t_NPT.c | 151 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment), 163 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | slab_def.h | 84 unsigned int usersize; /* Usercopy region size */ member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | slab_def.h | 85 unsigned int usersize; /* Usercopy region size */ member
|