Re: [PATCH 07/11] arm64: add basic pointer authentication support

2017-08-11 Thread Yao Qi
Hi Mark, On 19/07/17 17:01, Mark Rutland wrote: +#define HWCAP_APIA (1 << 16) Can you rename it to HWCAP_ARM64_APIA or HWCAP_ARM_APIA? When we use it in user space, at least in GDB, we usually do this, #ifndef HWCAP_APIA #define HWCAP_APIA (1 << 16) #endif However, the code use th

Re: [PATCH 00/11] ARMv8.3 pointer authentication userspace support

2017-07-25 Thread Yao Qi
On 19/07/17 17:01, Mark Rutland wrote: If authentication fails, bits are set in the pointer such that it is guaranteed to cause a fault if used. How does user space know the fault is caused by authentication fail? When GDB is debugging a program, and it failed in pointer authentication, I assum

Re: [PATCH 00/11] ARMv8.3 pointer authentication userspace support

2017-07-24 Thread Yao Qi
On 19/07/17 17:01, Mark Rutland wrote: * Should the kernel remove PACs when unwinding user stacks? This is simple to do, but it's arguably placing a policy in the kernel as to what we expect user stacks to look like. Regardless, userspace will have to perform this when unwinding with DWARF

Re: [PATCH 3/4] arm64: Allow hw watchpoint of length 3,5,6 and 7

2016-10-12 Thread Yao Qi
On Wed, Oct 12, 2016 at 6:58 AM, Pratyush Anand wrote: > Since, arm64 can support all offset within a double word limit. Therefore, > now support other lengths within that range as well. How does ptracer (like GDB) detect kernel has already supported all byte address select values? I suppose ptr