This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make guality.h handle Yama restricted ptrace mode


On 7/7/19 3:39 AM, Richard Sandiford wrote:
> guality.exp is silently skipped on Linux systems with
> kernel.yama.ptrace_scope=1 because gdb fails to attach to the
> sanity check test.  This patch uses PR_SET_PTRACER (where available)
> to avoid this.
> 
> prctl was apparently added in Linux 2.1.57, so I don't think we
> need any tests other than __linux for the #include.
> 
> Tested on aarch64-linux-gnu and x86_64-linux-gnu.  OK to install?
> 
> Richard
> 
> 
> 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
> 
> gcc/testsuite/
> 	* gcc.dg/guality/guality.h: Include <sys/prctl.h> on Linux targets.
> 	(main): Use PR_SET_PTRACER where available.
OK
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]