Home
last modified time | relevance | path

Searched refs:usersize (Results 1 - 25 of 75) sorted by relevance

123

/kernel/linux/linux-5.10/mm/
H A Dslab_common.c172 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 Dslab_common.c149 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 Dxt_nfacct.c66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct),
77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
H A Dxt_bpf.c126 .usersize = offsetof(struct xt_bpf_info, filter),
137 .usersize = offsetof(struct xt_bpf_info_v1, filter),
H A Dxt_CT.c310 .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 Dxt_cgroup.c185 .usersize = offsetof(struct xt_cgroup_info_v1, priv),
199 .usersize = offsetof(struct xt_cgroup_info_v2, priv),
H A Dxt_TEE.c153 .usersize = offsetof(struct xt_tee_tginfo, priv),
165 .usersize = offsetof(struct xt_tee_tginfo, priv),
H A Dx_tables.c293 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 Dxt_statistic.c84 .usersize = offsetof(struct xt_statistic_info, master),
H A Dxt_string.c78 .usersize = offsetof(struct xt_string_info, config),
H A Dxt_quota.c77 .usersize = offsetof(struct xt_quota_info, master),
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_nfacct.c66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct),
77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
H A Dxt_bpf.c126 .usersize = offsetof(struct xt_bpf_info, filter),
137 .usersize = offsetof(struct xt_bpf_info_v1, filter),
H A Dxt_CT.c321 .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 Dxt_TEE.c153 .usersize = offsetof(struct xt_tee_tginfo, priv),
165 .usersize = offsetof(struct xt_tee_tginfo, priv),
H A Dxt_cgroup.c185 .usersize = offsetof(struct xt_cgroup_info_v1, priv),
199 .usersize = offsetof(struct xt_cgroup_info_v2, priv),
H A Dx_tables.c313 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 Dxt_quota.c77 .usersize = offsetof(struct xt_quota_info, master),
H A Dxt_statistic.c84 .usersize = offsetof(struct xt_statistic_info, master),
/kernel/linux/linux-5.10/include/linux/netfilter/
H A Dx_tables.h171 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 Dx_tables.h171 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 Dip6t_NPT.c151 .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 Dip6t_NPT.c151 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
163 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
/kernel/linux/linux-5.10/include/linux/
H A Dslab_def.h84 unsigned int usersize; /* Usercopy region size */ member
/kernel/linux/linux-6.6/include/linux/
H A Dslab_def.h85 unsigned int usersize; /* Usercopy region size */ member

Completed in 15 milliseconds

123