From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbdBUWOu (ORCPT ); Tue, 21 Feb 2017 17:14:50 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53976 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbdBUWO2 (ORCPT ); Tue, 21 Feb 2017 17:14:28 -0500 Date: Tue, 21 Feb 2017 23:14:25 +0100 From: Pavel Machek To: kernel list , arjan@infradead.org, mingo@elte.hu, tglx@linutronix.de Subject: 4.10 kernel on thinkpad x220: rodata_test: test data was not read only Message-ID: <20170221221425.GB6918@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/WwmFnJnmDyWGHa4" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I'm getting [ 3.822386] VFS: Mounted root (ext4 filesystem) readonly on device 8:4. [ 3.840420] devtmpfs: mounted [ 3.842346] Freeing unused kernel memory: 536K [ 3.844081] Write protecting the kernel text: 11764k [ 3.845753] Write protecting the kernel read-only data: 4780k [ 3.847326] rodata_test: test data was not read only [ 3.848906] NX-protecting the kernel data: 6668k [ 3.850662] x86/mm: Checked W+X mappings: passed, no W+X pages found. I guess that means that kernel hardening does not work as expected... 32bit kernel on thinkpad x220. Git blame points to commit edeed30589f5defe63ce6aaae56f2b7c855e4520 Author: Arjan van de Ven Date: Wed Jan 30 13:34:08 2008 +0100 x86: add testcases for RODATA and NX protections/attributes Any ideas? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --/WwmFnJnmDyWGHa4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlisu8EACgkQMOfwapXb+vLbSgCgrLk8XMn310IqpilGFPUEAvlt IQoAnixrtAb7iZZUxCFs1YQLMsPFxl7R =uVQa -----END PGP SIGNATURE----- --/WwmFnJnmDyWGHa4--