• Home
  • Raw
  • Download

Lines Matching refs:plen

75 		size_t, plen,  in SYSCALL_DEFINE5()  argument
84 if (plen > 1024 * 1024 - 1) in SYSCALL_DEFINE5()
112 if (plen) { in SYSCALL_DEFINE5()
114 payload = kvmalloc(plen, GFP_KERNEL); in SYSCALL_DEFINE5()
119 if (copy_from_user(payload, _payload, plen) != 0) in SYSCALL_DEFINE5()
133 payload, plen, KEY_PERM_UNDEF, in SYSCALL_DEFINE5()
146 memzero_explicit(payload, plen); in SYSCALL_DEFINE5()
328 size_t plen) in keyctl_update_key() argument
335 if (plen > PAGE_SIZE) in keyctl_update_key()
340 if (plen) { in keyctl_update_key()
342 payload = kmalloc(plen, GFP_KERNEL); in keyctl_update_key()
347 if (copy_from_user(payload, _payload, plen) != 0) in keyctl_update_key()
359 ret = key_update(key_ref, payload, plen); in keyctl_update_key()
1103 size_t plen = from ? iov_iter_count(from) : 0; in keyctl_instantiate_key_common() local
1107 kenter("%d,,%zu,%d", id, plen, ringid); in keyctl_instantiate_key_common()
1109 if (!plen) in keyctl_instantiate_key_common()
1113 if (plen > 1024 * 1024 - 1) in keyctl_instantiate_key_common()
1132 payload = kvmalloc(plen, GFP_KERNEL); in keyctl_instantiate_key_common()
1137 if (!copy_from_iter_full(payload, plen, from)) in keyctl_instantiate_key_common()
1148 ret = key_instantiate_and_link(rka->target_key, payload, plen, in keyctl_instantiate_key_common()
1160 memzero_explicit(payload, plen); in keyctl_instantiate_key_common()
1178 size_t plen, in keyctl_instantiate_key() argument
1181 if (_payload && plen) { in keyctl_instantiate_key()
1186 ret = import_single_range(WRITE, (void __user *)_payload, plen, in keyctl_instantiate_key()