Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp156401ybl; Thu, 23 Jan 2020 20:34:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwO8ldpE+HbETwP1MpHhuwvIrHuqq/Dx0Q/uhPHNU01IHT+J5cYSVYeIP4UOOtB1lh9EuTu X-Received: by 2002:a05:6830:451:: with SMTP id d17mr1296687otc.53.1579840477510; Thu, 23 Jan 2020 20:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579840477; cv=none; d=google.com; s=arc-20160816; b=isteUhw+fEyF2J8VnwvA1OsL0phkAMrtaip4sSN5vBl9uRNJkunQbh5RfgnRALZN9u wUj6Krkm2ariBjcD4mDVTTpa+ne7Dkv6G3EJ7tP6ri4Pz9c4tOsJQomADm7AQ7M0uFoQ w42zw5IVZLL1e/yPZvkcXGKSobE9MCJkKAqCx/VwYWpuV6ewI5SyMrnUVOfbFTTXnvNl pJ92Gad5hnXBOQVNBXAWewinurAzMNfq4kAok2HxgfnnueZIPhH+LC2rsFlCOkyIz4UN 0CSbLvABaxSAK/6jNdhC5gOw/kxtZ4CM7uq6hfbnCSTRYnUVpnmWBfSUADV/3Et4vTrg dHkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=Qq7FacF5xTUSGTg0s7TEeVM38rbm3n3Bf5N/b8BLGs4=; b=CMW5IdRcU9WAmQODtVlLmURBv2+ggT/4yn9b5s5dLIsmy8c6sThAqN1yybdmMwrpGT ikI/S93Lml+4EyfnNDdLxcXyRomnG/ZL70iSAInmZkYZtNfp7abmd2RakYgSDBepXOAf bqaxXyjWIsEDSgzwKxtEZek4fo9nx3nop2CM0A8njwL5NMLPzKDLkIm7H0wJIUxAopFG BvTlIsYW6KUC5Dli7bl/hMeO0zqu8nz9Q51lxpGVUF5BG8YxUD7gwHXD2UE1YiMpBr+F yrNqlawKXfgjJIRhx9T4t7K4TF2ealh1k48ZYzl8Zbqm2dVrnBiN2QS5OylU4OzC3EYG wgYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=BjIdZtvS; 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 o16si2233959otp.289.2020.01.23.20.34.25; Thu, 23 Jan 2020 20:34:37 -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=pass header.i=@lca.pw header.s=google header.b=BjIdZtvS; 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 S1730255AbgAXEVi (ORCPT + 99 others); Thu, 23 Jan 2020 23:21:38 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:34506 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729797AbgAXEVh (ORCPT ); Thu, 23 Jan 2020 23:21:37 -0500 Received: by mail-qk1-f194.google.com with SMTP id d10so882729qke.1 for ; Thu, 23 Jan 2020 20:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=Qq7FacF5xTUSGTg0s7TEeVM38rbm3n3Bf5N/b8BLGs4=; b=BjIdZtvSGt0iGJ2gHLmhXWfi74+Ve/1rj3yiUk1IJdxGyiQnj8yk9oFRz2N+eQ1OxE yTLV/mk0hbFKdSdw+vLO7F8cvyzEO/urcp76TQPFPCJ/le8aMiZyw8CY5CUuOyuqB2JM Z5pc0KSHEgn2+NnqgHbw/TUipqPsSq15JM5tszkUbHwio3R4S1ZQaAp1uu72CfIfP1Co Y2l1xStSvJILFjikGVOdsn9GXUsvIEGuWw4iOUl8qH66EBIs+T9M2fyMROj9Dj99pnRS PyJ628DWi9fpQqabdXAoIIS5k8oDkhEXADwCTZCQX/XcqhnIW8uH8YVARm1VSL36lzyE gwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Qq7FacF5xTUSGTg0s7TEeVM38rbm3n3Bf5N/b8BLGs4=; b=APTpAChm1sjcKyt2dBt9xhYUf2P/DEaqbhZ+Yrfc952bNMegAN4CFajkIBU8qQoaFD /JdlcOT00UivxGgTGSZ7ZirRswhznMSm3EkIaesUEQCSV5NCjp6TLn+HruIIVDPR5lQO CJD8bm+woUPh7+TnMAS1/As/5hL4DByOZ1gLjXr2C9akye9IGjtsgMjj3YPRe1RAy1J1 +6HAxFbB+hdGnNBsZo6cyBm+dpMhSbVsKdIvj8OKc7q31LcgA77I/P01ORcXmip1tF/n wyDJp5d2Lv/KiqHM2ODQM5i2OL0n5Sbkc8hU7VejKcG+x3rR6NI3F1Xw26kFT61Cxb8Q oBsg== X-Gm-Message-State: APjAAAUzRVQeAfuOOEjQ9Ivd1ePhrJjckhxy33T17EAKuEDIGxafymNE eWzpov090UpkC5IaTujvshvoaw== X-Received: by 2002:a05:620a:166a:: with SMTP id d10mr840663qko.37.1579839697038; Thu, 23 Jan 2020 20:21:37 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id q5sm2277936qkf.14.2020.01.23.20.21.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jan 2020 20:21:36 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2] sched/core: fix illegal RCU from offline CPUs Date: Thu, 23 Jan 2020 23:21:35 -0500 Message-Id: References: <20200121103506.GH14914@hirez.programming.kicks-ass.net> Cc: 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 In-Reply-To: <20200121103506.GH14914@hirez.programming.kicks-ass.net> To: Peter Zijlstra X-Mailer: iPhone Mail (17C54) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 21, 2020, at 5:35 AM, Peter Zijlstra wrote: >=20 > 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 tw= o =E2=80=9Cdead=E2=80=9C arches from scratch. I suppose the first step we co= uld put a dummy finish_cpu() for alpha and parisc if they don=E2=80=99t call= idle_task_exit() in the first place anyway, so if it is a bug there it is a= nother issue that could be dealt with in a separate patch later?=