From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752596AbdBJOua (ORCPT ); Fri, 10 Feb 2017 09:50:30 -0500 Received: from foss.arm.com ([217.140.101.70]:35980 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802AbdBJOu1 (ORCPT ); Fri, 10 Feb 2017 09:50:27 -0500 Date: Fri, 10 Feb 2017 14:38:46 +0000 From: Mark Rutland To: Dmitry Vyukov Cc: Andrey Ryabinin , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "x86@kernel.org" , Tobias Regnery , "Paul E . McKenney" , Alexander Potapenko , kasan-dev , LKML , stable Subject: Re: [PATCH] x86/mm/ptdump: Fix soft lockup in page table walker. Message-ID: <20170210143846.GB29143@leverpostej> References: <0d19ac08-88b0-675d-19bd-4cdc543fdb30@virtuozzo.com> <20170210095405.31802-1-aryabinin@virtuozzo.com> <4bdfc6e9-0f68-bc30-fd1c-0def4508b472@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 10, 2017 at 02:02:19PM +0100, Dmitry Vyukov wrote: > On Fri, Feb 10, 2017 at 1:15 PM, Andrey Ryabinin > wrote: > > > > > > On 02/10/2017 02:18 PM, Thomas Gleixner wrote: > >> On Fri, 10 Feb 2017, Dmitry Vyukov wrote: > >>> Could we default this rodata check to n under KASAN? Or at least print > >>> some explanatory warning message before doing marking rodata (it > >>> should be printed right before "hang", so if you stare at it for a > >>> minute during each boot you realize that it may be related)? Regardless of any optimisation work, I think it would make sense to both log something in the debug_check_wx() and to default it off if KASAN is selected. That could be generic, so we don't have to alter each and every arch port... The WX check is a one-time boot check, and missing it for a KASAN kernel isn't the end of the world, though I'd still like to be able to use the userspace page table dumps. Thanks, Mark.