Skip to content

Commit 875ec3d

Browse files
committed
security/compat: convert to COMPAT_SYSCALL_DEFINE
Convert all compat system call functions where all parameter types have a size of four or less than four bytes, or are pointer types to COMPAT_SYSCALL_DEFINE. The implicit casts within COMPAT_SYSCALL_DEFINE will perform proper zero and sign extension to 64 bit of all parameters if needed. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
1 parent c93e0f6 commit 875ec3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎security/keys/compat.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ static long compat_keyctl_instantiate_key_iov(
6565
* taking a 32-bit syscall are zero. If you can, you should call sys_keyctl()
6666
* directly.
6767
*/
68-
asmlinkage long compat_sys_keyctl(u32 option,
69-
u32 arg2, u32 arg3, u32 arg4, u32 arg5)
68+
COMPAT_SYSCALL_DEFINE5(keyctl, u32, option,
69+
u32, arg2, u32, arg3, u32, arg4, u32, arg5)
7070
{
7171
switch (option) {
7272
case KEYCTL_GET_KEYRING_ID:

0 commit comments

Comments
 (0)