Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3221109imu; Sat, 24 Nov 2018 00:26:01 -0800 (PST) X-Google-Smtp-Source: AJdET5cWkkztodGQVh93WAlevJ84nws/psqa5fn0Xee2Zbxn7LFKrdbxxqIH14hT+HQi41c80VDQ X-Received: by 2002:a62:81c1:: with SMTP id t184mr19341585pfd.246.1543047961341; Sat, 24 Nov 2018 00:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047961; cv=none; d=google.com; s=arc-20160816; b=fqXvEdeyaZHWpH9Om/L+EQmFGpOIfFRvOPgjtDS8nhgGG/VCwmGgZ7y3z4MLi5ZAAO VYC3BI4b0wYCvLCy2XVQvVpvNPNChooPWlivJvKqkzaMdex6Q69CTZ45djaqzU+lcx0j EUwK+ATTdiKUEcsjtVZp/JHbe8JhNtkii2ptfETyiMdQGler7ca+zk540fOsH8VP+Dep 5i9ySHuqDey1oe42cZ60NxDgW79Qr3gCSJp1HnjkQypCUe29St+9jfC8/PEFF9s/dMke x4HFI9CgRJhOnf014gjVLfwQLMArrdNfNHEB+R2OZxzsXW53R56fiYXkYspVQM9KnMW8 Wk/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aqwRYY/+vwgYY35oZo7jprbLdTwnQC03VnyqJIDHueg=; b=OogQ+C3mz9Rw4UfCeilEb1KmMPEw7A6XxfmxD6kqhdhVgBWFvURwn5HZgoesB5EMvl HuLFJ0j/rSUXi/8qpYTlchxyIfJWMW+QEqsUzofRMmBGu/Q8o1qTqbP96bFdsJl6VlwN NY0lzHRAax+29hHijM2T4oe1nG52l5VUlcoG4AEFv3HM18LDmkF7Jvh7yUBmIP0w2LKP 17L6rDO43xCuIrUgcDSD5CzMl7WG0+kNoprCmlwMHicCKFjaKR6NsZ3Bm1X2Ap4ZcJOk OptmcOgepYBCMwF1NqKV84YKpxOYPMezSyGH/ZcIPCRlp8n7hYOsLz+ZZaEB97n3UwU2 JcTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=pqPQxwUT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si40192003pll.428.2018.11.24.00.25.46; Sat, 24 Nov 2018 00:26:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=pqPQxwUT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503496AbeKWVej (ORCPT + 99 others); Fri, 23 Nov 2018 16:34:39 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:49882 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387655AbeKWVej (ORCPT ); Fri, 23 Nov 2018 16:34:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aqwRYY/+vwgYY35oZo7jprbLdTwnQC03VnyqJIDHueg=; b=pqPQxwUTHIa8iJ6YHnQl55uGn 9By20yQzyqlJ0OPD71W3w+LWWNYPxVgwl7lHbtaTYDSz2dsJ+44JeVQYH3QxA5uGTOrjmpoWzSF2d gPQ45S1gczHe/1Lz75dHbYf/5SADf7G3CLtlTwCFfeiKmANe4HPVW/rSUN5y6kaWDJ6Q4=; Received: from n2100.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:37903) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gQ92s-0007Va-9P; Fri, 23 Nov 2018 10:50:46 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1gQ92l-0005eA-6E; Fri, 23 Nov 2018 10:50:39 +0000 Date: Fri, 23 Nov 2018 10:50:34 +0000 From: Russell King - ARM Linux To: hpa@zytor.com Cc: Julien Thierry , Ingo Molnar , LKML , "linux-arm-kernel@lists.infradead.org" , Catalin Marinas , Will Deacon , James Morse Subject: Re: Sleeping in user_access section Message-ID: <20181123105034.GQ30658@n2100.armlinux.org.uk> References: <3e881ee6-0ff6-b8b6-0633-3d4a7743411d@arm.com> <5B3B6AF9-9D8C-4577-905E-D407A5E7D0E3@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B3B6AF9-9D8C-4577-905E-D407A5E7D0E3@zytor.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 23, 2018 at 01:57:12AM -0800, hpa@zytor.com wrote: > You should never call a sleeping function from a user_access section. > It is intended for very limited regions. So, what happens if the "unsafe" user access causes a page fault that ends up sleeping? -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up