Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp221964ybl; Thu, 23 Jan 2020 22:16:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwrWmyPR3gTVnMgP3HPfaYYHh1ZL71+TjbsRd2tS4wflXOyMTsQb2PGR15PKf3iDyP3xPaj X-Received: by 2002:aca:4ec5:: with SMTP id c188mr1078069oib.1.1579846572188; Thu, 23 Jan 2020 22:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579846572; cv=none; d=google.com; s=arc-20160816; b=OF8H5PVF0qB4OB5KPpti9S5ghMY9ukGE1WanYmBK+tYoVzdTHUoNjN2cVcdcprtQXw TzwdD5ZWWgqvmdWelNL62v+QfiIGUcBp59wsB1OIbAR/56vsGW6poAmXGwT9KuZkzb3l oCe5ro3Tp0gfS7alY5LtJSiev6tG5qtyCAB3YqfNTSslm6gUIyo+E14aB/qs6tgVPIL0 Rw4IJsBeL9Y4YSXRQqaIdljRHiRDqCEbjBZj8IJsSWjHEzWSY1GzetyEUe6teXHmEQjt J3o6buA7EJqQs6203qX+0zDixgdxG9S8HW/atOqm4EY+WbJyKhebdvvZrckci+lP9vWM axbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ov31A6tYKcczbAgX5V+K/86bJ5Mzf/GVps9NpBV92oA=; b=bE3BlN1wEJZiF7lJqpTEaog909N96SKjG2TCnYfY+8EFrDeLUxqUK/BEOoEVEDTmi/ TWIG6TdezB/SyZSPcBM6++3YgX31pvZieU5tDVyzXq8Xwwhn17qA4D3sRflmpRJKrarM 9sXRRnlQ/jAqKL8sl2sRQ2WXXa3arQ/T3NX87aKjcnaqSInEcBF96XPLYBKczTZD0MZO su8FRsGDOSzWbZ34lAaCc0JzaOzBfvv+Uf4xPyvIa1niEbvFHXII9N73wErcDvJvM9Vg wbUaJAXNmRX/MSxmFN6fk83PbGCzQNHPwZKV6Irns7bddKUC2B9q57gE2yMA59RBEyz2 itVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MwrTy9e7; 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 h8si1790374oib.104.2020.01.23.22.15.57; Thu, 23 Jan 2020 22:16:12 -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=@infradead.org header.s=bombadil.20170209 header.b=MwrTy9e7; 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 S1726173AbgAXFCb (ORCPT + 99 others); Fri, 24 Jan 2020 00:02:31 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:55372 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbgAXFCb (ORCPT ); Fri, 24 Jan 2020 00:02:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To: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=ov31A6tYKcczbAgX5V+K/86bJ5Mzf/GVps9NpBV92oA=; b=MwrTy9e7zWFtY+ARjOGY0FjNXH XHKtTGNYClFWFRLZh1KzO2E6mrNLhwzW80c/Pm15BcjbBYcBYBQpvKWdL26Y4F9pvsSsj/mXHLwvD DNuDftcC/mCDNRo4klh7c8mt1ywyIaBLlhraNWuDfJ8DWnpiKXG8o5satL11AZWjbocO0XmeqvWUe xIQKvRapY1sPTLkj549d6W+gciGXO+lYVOo0tFIHGZN9XFiMTwuSKVxI1hfdYSelKPjjgtruuxYLC f6OUy/Mm6Lb6QNOCpl+PiOrlMkjI9O0xTijyh9icTzEAxZ/lK/oeH+kjwI+kvKZVLY++oTDHoCiv4 oCbLVLhg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iur6Y-0004ub-AN; Fri, 24 Jan 2020 05:02:02 +0000 Date: Thu, 23 Jan 2020 21:02:02 -0800 From: Matthew Wilcox To: Qian Cai Cc: Peter Zijlstra , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, paulmck@kernel.org, tglx@linutronix.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, Matt Turner , linux-parisc@vger.kernel.org, Helge Deller Subject: Re: [PATCH v2] sched/core: fix illegal RCU from offline CPUs Message-ID: <20200124050202.GJ4675@bombadil.infradead.org> References: <20200121103506.GH14914@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 23, 2020 at 11:21:35PM -0500, Qian Cai wrote: > > On Jan 21, 2020, at 5:35 AM, Peter Zijlstra wrote: > > > > Something like this; except you'll need to go audit archs to make sure > > they all call idle_task_exit() and/or put in comments on why they don't > > have to (perhaps their bringup switches them to &init_mm unconditionally > > and the switch_mm() is not required). > > Damn, I am having a hard time to motivate myself to learn all about those two “dead“ arches from scratch. I suppose the first step we could put a dummy finish_cpu() for alpha and parisc if they don’t call idle_task_exit() in the first place anyway, so if it is a bug there it is another issue that could be dealt with in a separate patch later? Or you could consult the maintainers of those architectures? There are regular pull requests for parisc still, and alpha still gets odd fixes. It would have helped had you not trimmed the context so aggressively. For those seeing this thread for the first time, try: https://lore.kernel.org/linux-mm/A72A7F42-A166-4403-B12C-32B2D7A662C4@lca.pw/T/#t