Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3820941yba; Tue, 7 May 2019 07:37:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMFtWr9rqWegEcJWN5Q9f7w9J2uIFIUpt8vx0r7DE3O5496mk/1Vft4FFdfPywHRcbsrof X-Received: by 2002:a63:17:: with SMTP id 23mr39523490pga.206.1557239852986; Tue, 07 May 2019 07:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557239852; cv=none; d=google.com; s=arc-20160816; b=lHS4eWyMwYNKbT+gnEQp5V8yH/PvJlW6i9ZG1X4vrFZ9QWdokyP/omw8jBsytJo7IF VvaUzb6sqnn3M2C0JHM8ccFIyNniH+LfS7bMqs1wEfMRAGwdokq8aDoyrM+d+F3n3/2y gmhf8Ka60GskCQzYAKiev+iC5Ad+CTM+FwwQRp19SwGjD6qxdfQFnDsStJtfLKkesy3q LEJLsG0ofi6eDxqHfw7VQLnYaZzmx2LVGmjWx5P68cCpblJvUT0k8WlRFKUbh2m08C6r kXuYMwbq8vpxY8IKDwetg3Wrc8sALnINjri+pfEZpttCxPLGN8inpKVHlq1i5xmWtBl9 J/bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=VHTLrjnyxRWkbf8nUZts2J1hYOqErjaktMCZwFTf7TQ=; b=KuAteuxe+TeZUM2PcSjZdHOFZXRt4kve6ca9PR/IEq50bZmwqbBo9/u6IO5Mz+5/br 80H1Rr7WeYeXopuF7HlT0IcrbyAAuR4qpzDqUgWSO2k7jFjc4lAQ9l6VcXu+Ir6EAEBY sAgnm9/bJPTt2MeYsWrV9KrfpRpw88hDqkhnNQ812anqL09k9LtvOG5TCR0dhJ4V5CiS Phi6142gdojM7BVqukFQxMLAHGORgmN1kCpPGpGP3qvl27uiPQj6FoILl+AnI21Hexhk PXSxDWRUcOw2s13vL2jBcsfSsrv5E4P2nMUXD/WrgC6Q8o+xQ7b6ebljiesVwDfh4BM9 ntiA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d131si1969219pfg.21.2019.05.07.07.37.16; Tue, 07 May 2019 07:37:32 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbfEGOgE (ORCPT + 99 others); Tue, 7 May 2019 10:36:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:51874 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726403AbfEGOgD (ORCPT ); Tue, 7 May 2019 10:36:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C26BDAD55; Tue, 7 May 2019 14:36:02 +0000 (UTC) From: Andreas Schwab To: Nikolay Borisov Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: fix locking violation in page fault handler References: X-Yow: I'm RELIGIOUS!! I love a man with a HAIRPIECE!! Equip me with MISSILES!! Date: Tue, 07 May 2019 16:36:02 +0200 In-Reply-To: (Nikolay Borisov's message of "Tue, 7 May 2019 17:22:08 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mai 07 2019, Nikolay Borisov wrote: > On 7.05.19 г. 17:12 ч., Andreas Schwab wrote: >> On Mai 07 2019, Nikolay Borisov wrote: >> >>> At the very least the code under >>> no_context label could go into it's own function since it just kills the >>> process and never returns? >> >> This is not true. > > Be more specific, according to do_task_dead after the last __schedule is > called the calling context is no more? /* Are we prepared to handle this kernel fault? */ if (fixup_exception(regs)) return; Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."