NetBSD-Bugs archive

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

Re: kern/52658: mmap() a file PaX MPROTECT can produce an unkillable process



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

From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/52658: mmap() a file PaX MPROTECT can produce an unkillable
 process
Date: Fri, 27 Oct 2017 14:33:04 +0200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --ON8Ew2Tutu1vdGgF9j5JJMkQTfKLvBa8q
 Content-Type: multipart/mixed; boundary="AdTX1JeojEhR4WmwAX3s799xhhm5qKwum";
  protected-headers="v1"
 From: Kamil Rytarowski <n54%gmx.com@localhost>
 To: gnats-bugs%NetBSD.org@localhost
 Message-ID: <3352e276-653b-e186-8785-95300307ef66%gmx.com@localhost>
 Subject: Re: kern/52658: mmap() a file PaX MPROTECT can produce an unkillable
  process
 References: <pr-kern-52658%gnats.netbsd.org@localhost>
  <20171026145527.A78017A1F3%mollari.NetBSD.org@localhost>
  <20171027123501.2944D7A20E%mollari.NetBSD.org@localhost>
 In-Reply-To: <20171027123501.2944D7A20E%mollari.NetBSD.org@localhost>
 
 --AdTX1JeojEhR4WmwAX3s799xhhm5qKwum
 Content-Type: text/plain; charset=utf-8
 Content-Language: en-US
 Content-Transfer-Encoding: quoted-printable
 
 On 27.10.2017 14:35, Christos Zoulas wrote:
 > The following reply was made to PR kern/52658; it has been noted by GNA=
 TS.
 >=20
 > From: christos%zoulas.com@localhost (Christos Zoulas)
 > To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,=20
 > 	gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, n54%gmx.com@localhost
 > Cc:=20
 > Subject: Re: kern/52658: mmap() a file PaX MPROTECT can produce an unki=
 llable process
 > Date: Fri, 27 Oct 2017 08:16:23 -0400
 >=20
 >  On Oct 27, 12:10pm, uanand009%gmail.com@localhost (Utkarsh Anand) wrote:
 >  -- Subject: Re: kern/52658: mmap() a file PaX MPROTECT can produce an =
 unkilla
 > =20
 >  |  > I told them already and nobody objected.
 > =20
 >  Also, them =3D=3D me + martin. I certainly have not seen any of that b=
 efore.
 >  Anyway, please revert the printf commit; leave the mmap as it is (we c=
 an
 >  think about changing the message later because this messes up the git
 >  conversion).
 > =20
 >  For the printf commit, please explain the problem you are trying to so=
 lve?
 >  Does syzcaller barf when it sees the inconsistent declaration of print=
 f
 >  in systm.h? Or it gets confused differently?
 > =20
 >  Thanks,
 > =20
 >  christos
 > =20
 >=20
 
 There are remaining steps:
 
 1. Add ATF tests verifying this and similar ones scenarios. For example
 the first mmap(2) argument as NULL.
 
 Please use sysctl(2) to check whether the process is executed with PaX
 MPROTECT. If it's not - skip the test verifying W|X flags.
 
 Hint: grep -r MPROTECT /usr/include/sys/sysctl.h
 
 2. Login to gnats, ask for feedback (myself) whether the problem is
 gone. I will test in it in spare time.
 
 3. Once confirmed, close the report.
 
 
 --AdTX1JeojEhR4WmwAX3s799xhhm5qKwum--
 
 --ON8Ew2Tutu1vdGgF9j5JJMkQTfKLvBa8q
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlnzJ4EMHG41NEBnbXgu
 Y29tAAoJEEuzCOmwLnZse7gP/iqvMXcj2sm5k+ttGbh9Gf8loiLodlcdzm1UIBDE
 juZg95a4dkQBbqbkSeBaRqp/XD7h9UZqzjSQdvE6s6rV0vpo00p8yFrQbxHFngf2
 +2Zh+oSekPeiUVkyVhannf+fGS8042d+A9t3WGo/S2Q4gLO/YwapxE3EFZBqNZ1F
 5+5Hf/oGQAD4ceMBxel/zg1lyB1NlW6/BmVtN8q8Weo1wD5DmnldlU/bEjQJwqtv
 SFKsZYJJrJn+XkmpznvUFiD34AJgvWFAru7xLIpDbTs0w2AACuNw5cg79pgPIuW4
 Nl5t2ltJbq6zkEbUD2S+7r58PpcowhTHQFInyzIsSeYN4Zj0qT8/EQUD5qdaUvmn
 GBTrDTojIKGX8/dIHorAqA8JJu+hTBaxt0QaT6xCrGM8yqy5KfxySKz3nql7/J1z
 FhL/+oVQnvDEt0yxypmkmT4+ZWU9fYPQtLso5P/S6Sq/axTtN91v6zfhnAzfTRCD
 LViDSbWYiW5YpfwMneOpSsZXRFdyJlXRv4hPGdaCneVA6vvwuT76lD9oCyl/2s+W
 BRIC0mrhowtWIVCigngLX946Ua0CajoGUJFcwoxVFuZyL+6ESuh7qe+v5REsPJ7n
 xj8j1ox3/JebYZBG3xuv99ayTXLfk2TMilUou5bKxVDR++TJA0M+RH3wQDNeKELT
 m78B
 =iDfO
 -----END PGP SIGNATURE-----
 
 --ON8Ew2Tutu1vdGgF9j5JJMkQTfKLvBa8q--
 


Home | Main Index | Thread Index | Old Index