From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 693EAC63777 for ; Thu, 3 Dec 2020 08:18:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C6A320C56 for ; Thu, 3 Dec 2020 08:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388297AbgLCIRu (ORCPT ); Thu, 3 Dec 2020 03:17:50 -0500 Received: from atcsqr.andestech.com ([60.248.187.195]:18521 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729887AbgLCIRt (ORCPT ); Thu, 3 Dec 2020 03:17:49 -0500 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 0B38HD2t016615; Thu, 3 Dec 2020 16:17:13 +0800 (GMT-8) (envelope-from tesheng@andestech.com) Received: from atcfdc88 (10.0.15.120) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Dec 2020 16:17:00 +0800 Date: Thu, 3 Dec 2020 16:16:55 +0800 From: Eric Lin To: Pekka Enberg CC: LKML , linux-riscv , Michel Lespinasse , Vlastimil Babka , Peter Xu , Andrew Morton , Albert Ou , "Palmer Dabbelt" , Paul Walmsley , Christoph Hellwig Subject: Re: [PATCH v2 0/2] Let illegal access to user-space memory die Message-ID: <20201203081655.GB25276@atcfdc88> References: <20201203064826.30832-1-tesheng@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.0.15.120] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 0B38HD2t016615 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 03:29:57PM +0800, Pekka Enberg wrote: Hi Pekka, > Hi Eric, > > On Thu, Dec 3, 2020 at 8:51 AM Eric Lin wrote: > > > > Accesses to user-space memory without calling uaccess routine > > leads to hanging in page fault handler. Like arm64, we let it > > die earlier in page fault handler. > > > > Changes in v2: > > -Add a die_kernel_fault() helper > > -Split one long line code into two > > Please also make no_context() use the new helper. Other than that: > OK, I'll make no_context() use the new helper in v3. Thanks for your review. > Reviewed-by: Pekka Enberg