NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/52675 (crunching binaries improperly removes PaX notes)



The following reply was made to PR toolchain/52675; it has been noted by GNATS.

From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>
Cc: netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/52675 (crunching binaries improperly removes PaX notes)
Date: Mon, 5 Jun 2023 17:41:55 +0900

 --000000000000a3afca05fd5de0c7
 Content-Type: text/plain; charset="UTF-8"
 
 I've prepared a candidate fix for this PR:
 
 https://www.netbsd.org/~rin/pr52675.patch
 
 For crunchgen(1), clear PaX flags instead of removing its section.
 Otherwise, a zero-filled hole appears in ELF note segment for arm,
 for which MARCH note is located after PaX one.
 
 For this purpose, introduce -0 option for paxctl(8) to zero-clear
 PaX flags. IMO, this should be clearer than disabling all available
 flags.
 
 Comments?
 
 Thanks,
 rin
 
 --000000000000a3afca05fd5de0c7
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr">I&#39;ve prepared a candidate fix for this PR:<br><br><a h=
 ref=3D"https://www.netbsd.org/~rin/pr52675.patch";>https://www.netbsd.org/~r=
 in/pr52675.patch</a><br><br>For crunchgen(1), clear PaX flags instead of re=
 moving its section.<br>Otherwise, a zero-filled hole appears in ELF note se=
 gment for arm,<br>for which MARCH note is located after PaX one.<br><br>For=
  this purpose, introduce -0 option for paxctl(8) to zero-clear<br>PaX flags=
 . IMO, this should be clearer than disabling all available<br>flags.<br><br=
 >Comments?<br><br>Thanks,<br>rin<br></div>
 
 --000000000000a3afca05fd5de0c7--
 


Home | Main Index | Thread Index | Old Index