Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp962633yba; Wed, 24 Apr 2019 12:31:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+yKUR0pZAJABU9FsJmkybrFy1AakXaHEwHCqib9pdLdZvjM9co2bNExbyvZ1wcn47hHmo X-Received: by 2002:a65:64d3:: with SMTP id t19mr32934906pgv.57.1556134317688; Wed, 24 Apr 2019 12:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556134317; cv=none; d=google.com; s=arc-20160816; b=L9I7TCZpxmeNl3ZScIGXDWFF6xzFVE5lRswCsTEzXzO28Vm1dSOSdd+OGcothK+oM9 rVXPx6dzL8CEc7x1BSWdbLY9+echuQATPsDe+EfypRtrPvNAg5gacluJS7sotavxEOys XlePcGKGIRTCB5SyLBaqEYAx9BcpLw2dsX2g5GxAcMMzxr8YAWBFPSmIhi2gXuVWlDj8 8iEO2j6uRkfoLi+AayH77uKtsjCo9eg//pf20kSV7NaYbZJLZbDYyKQHXmWaKo9PwGld QF6k2KsTItOtCrhUMcfIkMJbix+tGoJI3jtgWxgsmfhvDTlLsxBedhB0usfP/DEKij+q sGog== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=89e+dSKzA5afsooadXFqIW/dhRPfNS/VO9cxUzIYJzA=; b=YNIHttnTwPzz7gBpPoN7OCQ/qjrzbba9R66DNfCFbVeIKHPHjWswM6pcFO+rj3h1Gc PHml8R0bt5DFOVXRx3+QF3/NQEzeIRjtcg5cRZ8Q2AMwBR2aHEabkMVfP7ndhpWhkJFH ZKHy3IEYZr9vWuYK3DX+XFYEO+dRZltDODME2gp0aR+lP2MkklqphRLTdJ/f7BJRC+rA s62eyv+U78GKHTAdYAa9WZ6+sFxPBGZMBBytXk2+PGeTsyQjPh5EOleEEoeBgad+Tm4M mLX1/QMhrOH211H/cwVR4czG5eVUSDe7g3rkSvg6oLdrJ7r1VvmMs6g6DJR9hE0Gh1nx z/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=XbQKZGHe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si18862040pgb.531.2019.04.24.12.31.42; Wed, 24 Apr 2019 12:31:57 -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; dkim=pass header.i=@digitalocean.com header.s=google header.b=XbQKZGHe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbfDXLTe (ORCPT + 99 others); Wed, 24 Apr 2019 07:19:34 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:54446 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfDXLTd (ORCPT ); Wed, 24 Apr 2019 07:19:33 -0400 Received: by mail-it1-f194.google.com with SMTP id a190so5596972ite.4 for ; Wed, 24 Apr 2019 04:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to; bh=89e+dSKzA5afsooadXFqIW/dhRPfNS/VO9cxUzIYJzA=; b=XbQKZGHeg3iLzUZ0V+4n6tNPHiHq1l7B8g05mD4Jgmgky8oRQ/hrTEvVZMrnxcS876 I6+4dsE34yBbDaZkExOPOX5ZTUGp2gxfGI12SYG9trTBzulifeNge8zoLtDE+ok60pFB G5/VYKZ0ETiuf76ntTsPaMdPYSAFvNFvz4nzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=89e+dSKzA5afsooadXFqIW/dhRPfNS/VO9cxUzIYJzA=; b=oDmQ2pfjcsJwLSjL9uR3RnPuGRagEGS09/k/BWJ5QzJbhVR75KPmSEiTvK5pYcmRu6 ytEKceVNqlVxUnusZIwHy81mMgtTFCTsZoWG/5TxNYjT7kmVZLn8KWNhmElB0YrLQOdV PRMFTR/GkMpXmt1W5sjLc13lb4vmlQ2EqzC4aBJyT6BfPMFBBUEAKtT39J36dnve3pkI INYduxIuEbRUnPC8yK8oFaLSwxdd0r/m/4QTU1QDrZfJVduye19UA6hqyAskya1Y0h/j VPcJXeSj4SYVxq07WSWqtodbQkbro7mQW04zK4kfojBsippHpgSE7yQEtVWNPWgeSjFt JBuA== X-Gm-Message-State: APjAAAXIHdTJWyz2fRFa2d/ALmNgr4ZbyASS9rHGIZnWl9Is/7rnlWiT LKp1q9GReEal5etbECsWZQezSw== X-Received: by 2002:a24:7688:: with SMTP id z130mr5962841itb.57.1556104772835; Wed, 24 Apr 2019 04:19:32 -0700 (PDT) Received: from swap-tester ([178.128.225.14]) by smtp.gmail.com with ESMTPSA id r21sm8889191itb.35.2019.04.24.04.19.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 04:19:32 -0700 (PDT) From: Vineeth Remanan Pillai To: Aubrey Li Cc: Vineeth Remanan Pillai , Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , mingo@kernel.org, tglx@linutronix.de, pjt@google.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, subhra.mazumdar@oracle.com, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , Phil Auld Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 Date: Wed, 24 Apr 2019 11:19:13 +0000 Message-Id: <20190424111913.1386-1-vpillai@digitalocean.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Is this one missed? Or fixed with a better impl? > > The boot up CPUs don't match the possible cpu map, so the not onlined > CPU rq->core are not initialized, which causes NULL pointer dereference > panic in online_fair_sched_group(): > Thanks for pointing this out. I think the ideal fix would be to correctly initialize/cleanup the coresched attributes in the cpu hotplug code path so that lock could be taken successfully if the sibling is offlined/onlined after coresched was enabled. We are working on another bug related to hotplugpath and shall introduce the fix in v3. Thanks