[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/7] x86_64: expand and shrink messages in copy{in, out}msg r
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/7] x86_64: expand and shrink messages in copy{in, out}msg routines |
Date: |
Wed, 18 Jan 2023 02:22:48 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied except a little thing, thanks!
Luca Dariz, le lun. 16 janv. 2023 11:58:52 +0100, a ecrit:
> +static inline int copyin_address(const rpc_vm_offset_t *uaddr, vm_offset_t
> *kaddr)
> +{
> +#ifdef __x86_64
> + return copyin_32to64(uaddr, kaddr);
> +#else /* __x86_64__ */
> + return copyin(uaddr, kaddr, sizeof(*uaddr));
> +#endif /* __x86_64__ */
> +}
> +
> +static inline int copyout_address(const vm_offset_t *kaddr, rpc_vm_offset_t
> *uaddr)
> +{
> +#ifdef __x86_64
> + return copyout_64to32(kaddr, uaddr);
> +#else /* __x86_64__ */
> + return copyout(kaddr, uaddr, sizeof(*kaddr));
> +#endif /* __x86_64__ */
> +}
These were to be USER32 rather than __86_64, to properly handle the case
of 64-on-64.
Samuel
- Re: [PATCH 1/7] add msg_user_header_t for user-side msg structure, (continued)
- [PATCH 3/7] update syscall signature with rpc_vm_* and mach_port_name_t, Luca Dariz, 2023/01/16
- [PATCH 4/7] update writev syscall signature with rpc types, Luca Dariz, 2023/01/16
- [PATCH 7/7] replace mach_port_t with mach_port_name_t, Luca Dariz, 2023/01/16
- [PATCH 5/7] adjust rdxtree key to the correct size, Luca Dariz, 2023/01/16
- [PATCH 2/7] x86_64: expand and shrink messages in copy{in, out}msg routines, Luca Dariz, 2023/01/16
- Re: [PATCH 2/7] x86_64: expand and shrink messages in copy{in, out}msg routines,
Samuel Thibault <=
- [PATCH 6/7] add conversion helpers for invalid mach port names, Luca Dariz, 2023/01/16