Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033883AbbKFUq7 (ORCPT ); Fri, 6 Nov 2015 15:46:59 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:37090 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030221AbbKFUq4 (ORCPT ); Fri, 6 Nov 2015 15:46:56 -0500 Date: Fri, 6 Nov 2015 20:46:41 +0000 From: Russell King - ARM Linux To: Laura Abbott Cc: Kees Cook , Laura Abbott , Catalin Marinas , Will Deacon , "linux-arm-kernel@lists.infradead.org" , LKML , Linux-MM Subject: Re: [PATCH] arm: Use kernel mm when updating section permissions Message-ID: <20151106204641.GT8644@n2100.arm.linux.org.uk> References: <1446685239-28522-1-git-send-email-labbott@fedoraproject.org> <20151105094615.GP8644@n2100.arm.linux.org.uk> <563B81DA.2080409@redhat.com> <20151105162719.GQ8644@n2100.arm.linux.org.uk> <563BFCC4.8050705@redhat.com> <563CF510.9080506@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <563CF510.9080506@redhat.com> 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 Content-Length: 900 Lines: 18 On Fri, Nov 06, 2015 at 10:44:32AM -0800, Laura Abbott wrote: > with my test patch. I think setting both current->active_mm and &init_mm > is sufficient. Maybe explicitly setting swapper_pg_dir would be cleaner? Please, stop thinking like this. If you're trying to change the kernel section mappings after threads have been spawned, you need to change them for _all_ threads, which means you need to change them for every page table that's in existence at that time - you can't do just one table and hope everyone updates, it doesn't work like that. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/