This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add x32 arch_prctl support
I need more context...
"H.J. Lu" <email@example.com> wrote:
>On Mon, May 21, 2012 at 4:53 PM, Roland McGrath <firstname.lastname@example.org>
>>> The goes back to user uint32_t vs kernel uint64_t:
>>> The difference is movq vs movl. ÂThere is no need for movq
>>> since x32 will only pass unsigned 32-bit value to kernel.
>> I see. ÂThat one byte in a rarely-used call is not reason enough to
>> make the code uglier.
>Also since all inlined arguments will be casted to "long int",
>using unsigned long long int or uint64_t is quite strange.
>>> Thanks. ÂBut since x32 kernel takes PTRACE_ARCH_PRCTL, I
>>> still need x32 ptrace to either handle it properly or set EINVAL
>>> when PTRACE_ARCH_PRCTL is passed.
>> It was my proposal that the kernel be changed to refuse
>> in a ptrace call made from an x32 task.
>Adding Peter. The x32 PTRACE_ARCH_PRCTL change is in kernel 3.4.
>Peter, how hard to remove it from kernel?
Sent from my mobile phone. Please excuse brevity and lack of formatting.