/kernel/linux/linux-5.10/lib/ |
H A D | test_user_copy.c | 110 size_t ksize, usize; in test_copy_struct_from_user() local 127 /* Check basic case -- (usize == ksize). */ in test_copy_struct_from_user() 128 ksize = size; in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user() 135 "copy_struct_from_user(usize == ksize) failed"); in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 137 "copy_struct_from_user(usize == ksize) gives unexpected copy"); in test_copy_struct_from_user() 139 /* Old userspace case -- (usize < ksize). */ in test_copy_struct_from_user() 140 ksize in test_copy_struct_from_user() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | test_user_copy.c | 110 size_t ksize, usize; in test_copy_struct_from_user() local 127 /* Check basic case -- (usize == ksize). */ in test_copy_struct_from_user() 128 ksize = size; in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user() 135 "copy_struct_from_user(usize == ksize) failed"); in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 137 "copy_struct_from_user(usize == ksize) gives unexpected copy"); in test_copy_struct_from_user() 139 /* Old userspace case -- (usize < ksize). */ in test_copy_struct_from_user() 140 ksize in test_copy_struct_from_user() [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | testmgr.h | 33 * @ksize: Length of @key in bytes (0 if no key) 42 unsigned short ksize; member 4183 .ksize = 32, 4202 .ksize = 32, 4354 .ksize = 32, 4368 .ksize = 37, 4382 .ksize = 32, 4391 .ksize = 4, 5696 .ksize = 16, 5705 .ksize [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | testmgr.h | 33 * @ksize: Length of @key in bytes (0 if no key) 43 unsigned short ksize; member 5595 .ksize = 32, 5614 .ksize = 32, 5766 .ksize = 32, 5780 .ksize = 37, 5794 .ksize = 32, 5803 .ksize = 4, 6982 .ksize = 16, 6991 .ksize [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-secvar.c | 57 static int opal_get_variable(const char *key, uint64_t ksize, in opal_get_variable() argument 67 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable() 91 static int opal_set_variable(const char *key, uint64_t ksize, u8 *data, in opal_set_variable() argument 99 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_get_stack_rawtp.c | 36 * ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); 62 long usize, ksize; in bpf_prog1() local 91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1() 92 if (ksize < 0) in bpf_prog1() 95 total_size = usize + ksize; in bpf_prog1()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_get_stack_rawtp.c | 36 * ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); 62 long usize, ksize; in bpf_prog1() local 91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1() 92 if (ksize < 0) in bpf_prog1() 95 total_size = usize + ksize; in bpf_prog1()
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-heap.c | 120 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 139 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl() 142 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 143 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 154 if (ksize > in_size) in dma_heap_ioctl() 155 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-secvar.c | 57 static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize) in opal_get_variable() argument 66 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable() 89 static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize) in opal_set_variable() argument 96 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | uaccess.h | 299 * @dst: Destination address, in kernel space. This buffer must be @ksize 301 * @ksize: Size of @dst struct. 311 * @ksize is just sizeof(*dst), and @usize should've been passed by userspace. 332 * * If @usize == @ksize, then it's copied verbatim. 333 * * If @usize < @ksize, then the userspace has passed an old struct to a 334 * newer kernel. The rest of the trailing bytes in @dst (@ksize - @usize) 336 * * If @usize > @ksize, then the userspace has passed a new struct to an 337 * older kernel. The trailing bytes unknown to the kernel (@usize - @ksize) 341 * * -E2BIG: (@usize > @ksize) and there are non-zero trailing bytes in @src. 345 copy_struct_from_user(void *dst, size_t ksize, cons argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | uaccess.h | 302 * @dst: Destination address, in kernel space. This buffer must be @ksize 304 * @ksize: Size of @dst struct. 314 * @ksize is just sizeof(*dst), and @usize should've been passed by userspace. 335 * * If @usize == @ksize, then it's copied verbatim. 336 * * If @usize < @ksize, then the userspace has passed an old struct to a 337 * newer kernel. The rest of the trailing bytes in @dst (@ksize - @usize) 339 * * If @usize > @ksize, then the userspace has passed a new struct to an 340 * older kernel. The trailing bytes unknown to the kernel (@usize - @ksize) 344 * * -E2BIG: (@usize > @ksize) and there are non-zero trailing bytes in @src. 348 copy_struct_from_user(void *dst, size_t ksize, cons argument [all...] |
/kernel/linux/linux-6.6/drivers/dma-buf/ |
H A D | dma-heap.c | 132 unsigned int in_size, out_size, drv_size, ksize; in dma_heap_ioctl() local 151 ksize = max(max(in_size, out_size), drv_size); in dma_heap_ioctl() 154 if (ksize > sizeof(stack_kdata)) { in dma_heap_ioctl() 155 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 166 if (ksize > in_size) in dma_heap_ioctl() 167 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl()
|
/kernel/linux/linux-5.10/arch/alpha/boot/ |
H A D | misc.c | 154 size_t ksize, in decompress_kernel() 162 free_mem_ptr = (ulg)output_start + ksize; in decompress_kernel() 163 free_mem_end_ptr = (ulg)output_start + ksize + 0x200000; in decompress_kernel() 152 decompress_kernel(void *output_start, void *input_start, size_t ksize, size_t kzsize) decompress_kernel() argument
|
H A D | Makefile | 46 $(obj)/main.o: $(obj)/ksize.h 47 $(obj)/bootp.o: $(obj)/ksize.h 50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
|
/kernel/linux/linux-6.6/arch/alpha/boot/ |
H A D | misc.c | 152 size_t ksize, in decompress_kernel() 160 free_mem_ptr = (ulg)output_start + ksize; in decompress_kernel() 161 free_mem_end_ptr = (ulg)output_start + ksize + 0x200000; in decompress_kernel() 150 decompress_kernel(void *output_start, void *input_start, size_t ksize, size_t kzsize) decompress_kernel() argument
|
H A D | Makefile | 46 $(obj)/main.o: $(obj)/ksize.h 47 $(obj)/bootp.o: $(obj)/ksize.h 50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
|
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | pkey_api.c | 700 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_genseckey2() 728 switch (ksize) { in pkey_genseckey2() 743 rc = ep11_genaeskey(card, dom, ksize, kflags, in pkey_genseckey2() 746 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2() 750 rc = cca_gencipherkey(card, dom, ksize, kflags, in pkey_genseckey2() 761 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_clr2seckey2() 790 switch (ksize) { in pkey_clr2seckey2() 807 rc = ep11_clr2keyblob(card, dom, ksize, kflags, in pkey_clr2seckey2() 811 rc = cca_clr2seckey(card, dom, ksize, in pkey_clr2seckey2() 816 rc = cca_clr2cipherkey(card, dom, ksize, kflag in pkey_clr2seckey2() 699 pkey_genseckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, u8 *keybuf, size_t *keybufsize) pkey_genseckey2() argument 760 pkey_clr2seckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, const u8 *clrkey, u8 *keybuf, size_t *keybufsize) pkey_clr2seckey2() argument 826 pkey_verifykey2(const u8 *key, size_t keylen, u16 *cardnr, u16 *domain, enum pkey_key_type *ktype, enum pkey_key_size *ksize, u32 *flags) pkey_verifykey2() argument [all...] |
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | pkey_api.c | 542 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_genseckey2() 565 switch (ksize) { in pkey_genseckey2() 579 rc = ep11_genaeskey(card, dom, ksize, kflags, in pkey_genseckey2() 582 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2() 585 rc = cca_gencipherkey(card, dom, ksize, kflags, in pkey_genseckey2() 595 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_clr2seckey2() 619 switch (ksize) { in pkey_clr2seckey2() 633 rc = ep11_clr2keyblob(card, dom, ksize, kflags, in pkey_clr2seckey2() 636 rc = cca_clr2seckey(card, dom, ksize, in pkey_clr2seckey2() 640 rc = cca_clr2cipherkey(card, dom, ksize, kflag in pkey_clr2seckey2() 541 pkey_genseckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, u8 *keybuf, size_t *keybufsize) pkey_genseckey2() argument 594 pkey_clr2seckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, const u8 *clrkey, u8 *keybuf, size_t *keybufsize) pkey_clr2seckey2() argument 649 pkey_verifykey2(const u8 *key, size_t keylen, u16 *cardnr, u16 *domain, enum pkey_key_type *ktype, enum pkey_key_size *ksize, u32 *flags) pkey_verifykey2() argument [all...] |
/kernel/linux/linux-6.6/security/landlock/ |
H A D | syscalls.c | 53 * @ksize: Actual size of the data pointed to by @dst. 59 copy_min_struct_from_user(void *const dst, const size_t ksize, in copy_min_struct_from_user() argument 69 BUILD_BUG_ON(ksize <= 0); in copy_min_struct_from_user() 70 BUILD_BUG_ON(ksize < ksize_min); in copy_min_struct_from_user() 77 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
|
/kernel/linux/linux-5.10/arch/microblaze/mm/ |
H A D | init.c | 246 unsigned int kstart, ksize; in mmu_init() local 282 ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START)); in mmu_init() 283 memblock_reserve(kstart, ksize); in mmu_init()
|
/kernel/linux/linux-6.6/arch/microblaze/mm/ |
H A D | init.c | 194 unsigned int kstart, ksize; in mmu_init() local 230 ksize = PAGE_ALIGN(((u32)_end - (u32)CONFIG_KERNEL_START)); in mmu_init() 231 memblock_reserve(kstart, ksize); in mmu_init()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_pedit.c | 153 int i, ksize; in tcf_pedit_init() local 179 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init() 180 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init() 221 keys = kmalloc(ksize, GFP_ATOMIC); in tcf_pedit_init() 231 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_ioctl.c | 828 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 863 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 879 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 882 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 894 if (ksize > in_size) in drm_ioctl() 895 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_ioctl.c | 826 unsigned int in_size, out_size, drv_size, ksize; in drm_ioctl() local 861 ksize = max(max(in_size, out_size), drv_size); in drm_ioctl() 877 if (ksize <= sizeof(stack_kdata)) { in drm_ioctl() 880 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 892 if (ksize > in_size) in drm_ioctl() 893 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl()
|
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/ |
H A D | xstate.c | 1488 * @ksize: The required size for the kernel buffer 1498 static int fpstate_realloc(u64 xfeatures, unsigned int ksize, in fpstate_realloc() argument 1506 fpsize = ksize + ALIGN(offsetof(struct fpstate, regs), 64); in fpstate_realloc() 1511 newfps->size = ksize; in fpstate_realloc() 1596 unsigned int ksize, usize; in __xstate_request_perm() local 1609 ksize = xstate_calculate_size(mask, compacted); in __xstate_request_perm() 1625 perm->__state_size = ksize; in __xstate_request_perm() 1679 unsigned int ksize, usize; in __xfd_enable_feature() local 1699 ksize = perm->__state_size; in __xfd_enable_feature() 1714 if (fpstate_realloc(xfd_event, ksize, usiz in __xfd_enable_feature() [all...] |