Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751792AbeAEEjC convert rfc822-to-8bit (ORCPT + 1 other); Thu, 4 Jan 2018 23:39:02 -0500 Received: from mout.gmx.net ([212.227.15.19]:51870 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbeAEEi7 (ORCPT ); Thu, 4 Jan 2018 23:38:59 -0500 Message-ID: <1515127074.7787.12.camel@gmx.de> Subject: Re: [PATCH 4.4 00/37] 4.4.110-stable review From: Mike Galbraith To: Guenter Roeck , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuahkh@osg.samsung.com, patches@kernelci.org, ben.hutchings@codethink.co.uk, lkft-triage@lists.linaro.org, stable@vger.kernel.org, Tao Wu Date: Fri, 05 Jan 2018 05:37:54 +0100 In-Reply-To: <20180104234555.GA4143@roeck-us.net> References: <20180103195056.837404126@linuxfoundation.org> <20180104234555.GA4143@roeck-us.net> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:spk3pj30e7H+psR7mMpy7OGSpc93A2LghaXgdRXgY0mYBD4D22G fR5TLRHh7OND+XWopxHfZDZs2vWalIRiZbp+/9NRz+UIgkgoWTtSCls0X7b85Vt3k5tMybU CCxZeyE8DE3/YelKC1Gq4+rQqsQivAIhJAIAdH9tZn12vP4sMW/xMP7AS/GpWJSMSXC92Xw A+ybtqYk4Wi5kup+I8W1g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Hlm2pwxMfr8=:94sYIrSs0ritGH7TKdOpFs QIWI0ZCzdw8+zBvfQgCNBRmVSBk4J0w6CJjfY3EbeM4FbO9w/tsdoGKM+5AomHt3Wy2aiDbJC XqdglLDgHDS4M8TMZZzQlF7beCrEHGbZY2akPiA6D8MiqeIqlbBGu+6JY2ThNl8EgJxe3rMmh 3issW767P83os0tuQidqMlK5FlMSTWQitykU1dh09AZXX84TgLYs1IqEpzS8Bli92tzL7VQnj JBNHuetN693IwaCRL4GcZJ0HU0VFJWyBugnooQgqn867KoPJuu7s6hFZ0jBziD+u8grzy28BU 5abwucy8qewAFpX3TccKfIcc4Or56ld5GJ+/eSr+yF/2b3QeB0acJQmGV2bHa5UGbiYdsFaa4 IJxRNbF5wj8Nd9oYbPEZj3g0xf5vmXSoLaO+zXNF1UWauAbgzI6+bNybuipUxMIumYBrCLHcz EItmc1CsdWvxD6W+VogbRgflJtF56I+KgVNt2x3868YTNQmzwoYDZWgA//0MNECRmXG/i+HSr 7/uwD3jEZe1zmG0tfz4OWFrPM4T8V4hgRMrTIjICHY9BaWjy2FQIYzf/celtZbee+BLqjibWB fkB8G4+g8oSLrMVdgdXrRf+8kytpOKFVTk4djnJmDZnHJXTQTFFEdh1oBrcxqBxgD5EhVQ5t9 h2wjwdomSNr4KAQAuT5ubJmZ0iNIhJ/CFxIktrAuo0OutgVG5bovxovptt5LlVmL7/qO5v2SH V1dJtRaBA8onnPQFz24uZheJFkP1JF+NUnNTtYuGw7g2dbK0bHZovmWm75qH+SikWHt675yfm 9hv5EwOrXuXUS1TuEMdJ7LdMBTowgTCQa40bd/jz9+jJM1umF8= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 2018-01-04 at 15:45 -0800, Guenter Roeck wrote: > > The crash part of this problem may be solved with the following patch > (thanks to Hugh for the hint). There is still another problem, though - > with this patch applied, the qemu session aborts with "VCPU Shutdown > request", whatever that means. The crash part is not fixed by your patch here, w/wo I get this, and it is PTI, as virgin 109 boots/works with identical everything else. ?My shiny new PTI equipped enterprise 4.4 RT kernels also boot/work fine, which seems a bit odd.. and not particularly comforting. [ 1.244354] Freeing unused kernel memory: 1192K [ 1.245278] Write protecting the kernel read-only data: 10240k [ 1.247626] Freeing unused kernel memory: 1152K [ 1.251318] Freeing unused kernel memory: 1476K [ 1.253393] init[1]: segfault at ffffffffff5ff100 ip 00007fffb7ffac6e sp 00007fffb7fa07d8 error 5 [ 1.254629] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 1.254629] [ 1.256202] CPU: 4 PID: 1 Comm: init Not tainted 4.4.110-rc1-smp #4 [ 1.257169] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.0.0-prebuilt.qemu-project.org 04/01/2014 [ 1.258563] 0000000000000000 ffffffff8125a9c0 ffffffff817de7c8 ffff880197e83cf0 [ 1.260850] ffffffff8112bb2d ffffffff00000010 ffff880197e83d00 ffff880197e83ca0 [ 1.263091] ffffffff81c3cf30 000000000000000b ffff880197e90010 0000000000000000 [ 1.264580] Call Trace: [ 1.265617] [] ? dump_stack+0x5c/0x7c [ 1.266671] [] ? panic+0xc8/0x20f [ 1.267799] [] ? do_exit+0xa50/0xa50 [ 1.268971] [] ? do_group_exit+0x39/0xa0 [ 1.270281] [] ? get_signal+0x1d0/0x600 [ 1.271347] [] ? do_signal+0x23/0x5b0 [ 1.272259] [] ? __send_signal+0x179/0x460 [ 1.273235] [] ? force_sig_info_fault+0x5f/0x70 [ 1.274258] [] ? __bad_area_nosemaphore+0x1cc/0x200 [ 1.275268] [] ? exit_to_usermode_loop+0x54/0x95 [ 1.276262] [] ? prepare_exit_to_usermode+0x31/0x40 [ 1.277266] [] ? retint_user+0x8/0x2c [ 1.278274] Dumping ftrace buffer: [ 1.279011] (ftrace buffer empty) [ 1.279728] Kernel Offset: disabled [ 1.280432] Rebooting in 60 seconds.. virsh # exit ? > > Guenter > > --- > From: Guenter Roeck > Date: Thu, 4 Jan 2018 13:41:55 -0800 > Subject: [PATCH 2/2] WIP: kaiser: Set _PAGE_NX only if supported > > Change-Id: Ie6ab566c1d725b24c4b3aa80a47c3ff3a5feddb9 > Signed-off-by: Guenter Roeck > --- > arch/x86/mm/kaiser.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/mm/kaiser.c b/arch/x86/mm/kaiser.c > index 7d2f7eb6857f..e4706273d4a1 100644 > --- a/arch/x86/mm/kaiser.c > +++ b/arch/x86/mm/kaiser.c > @@ -421,7 +421,8 @@ pgd_t kaiser_set_shadow_pgd(pgd_t *pgdp, pgd_t pgd) > * get out to userspace running on the kernel CR3, > * userspace will crash instead of running. > */ > - pgd.pgd |= _PAGE_NX; > + if (__supported_pte_mask & _PAGE_NX) > + pgd.pgd |= _PAGE_NX; > } > } else if (!pgd.pgd) { > /*