Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp596651imu; Tue, 11 Dec 2018 04:35:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xq9N2vPZ0Eo+orpGzmQAQMAq2sA9EvheljHG1kWXOpZSQXp3238LGA9TnqyhoaMzL18qv0 X-Received: by 2002:a17:902:5588:: with SMTP id g8mr15922391pli.22.1544531728762; Tue, 11 Dec 2018 04:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544531728; cv=none; d=google.com; s=arc-20160816; b=N6vnnnJnwv8op72p/IetcrBtlGu1R8oc5Immd9mcPcyM6NQQlnmzIY5wjN++Kw9SCq 4raWo3V6sfObW143pOc5aPC1qSSYtS6q3mko6yb+ZIoCypBTwJ+QpT/nuHYAZPmpT3rl Ggw1pLZSGpbWqei1avJvL+s98kmQkQYnmVTOgcyumWOYS8kX3WQ41h7o9RJtIFckAg/S RNLHNhDLa1Cv2CF6JlElxr3OmlM7d0NXmsIkvXyooiPtP5nxleTw0evsKLV69HY7VXnh emB1gzxonYtFvblh/OGNYWfDpLlVi4czVyFzTE61jxVox99vUnD8lm2uFY3r4Kw/aWPJ L6RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6r0gRe2JnrBWxBqnxct9gmZ2JjTAbHKPYqnAiXk53g4=; b=wovpQoQh7/GW7PvnZ8Y1WAhVDA/N3zUlZlmNa1GDYQYbxy7flWv8DOXvgz8gZ8snSa wRazpY5dGxISUJgxfsZGhf2/lXXD3gdNS4FAgX51ZkEOEZGe40sur23r6X7qf/0PQEES U/eI5saTu2KnEPZ9RvelQS3uYwDOdoczQ77GHL527sZm2D0BiuhrCnO/DFGyfPhjvM/W AXkIVKtsVmm1soDljTqf0yQYaki1s8AbIIGzL7J+u+V+GMiM+UOW5h+ryEWvTnvTdZNU h3zWtBdEJ2S8qKLBKu+M0fzOw6KyxroPa52nqZN2pdIX0K5QmS5ii5G3R/AEAQrTCTm+ M30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=lp6GYxHY; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az11si12060110plb.386.2018.12.11.04.35.13; Tue, 11 Dec 2018 04:35:28 -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=@alien8.de header.s=dkim header.b=lp6GYxHY; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbeLKMeQ (ORCPT + 99 others); Tue, 11 Dec 2018 07:34:16 -0500 Received: from mail.skyhub.de ([5.9.137.197]:36962 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeLKMeQ (ORCPT ); Tue, 11 Dec 2018 07:34:16 -0500 Received: from zn.tnic (p200300EC2BCD2B00C44E50A76C8F50EC.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:2b00:c44e:50a7:6c8f:50ec]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E66511EC0B6D; Tue, 11 Dec 2018 13:34:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544531654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=6r0gRe2JnrBWxBqnxct9gmZ2JjTAbHKPYqnAiXk53g4=; b=lp6GYxHYKg6Kav3DeFHAYl4Ttjr+fdjMG3nW/WQ2k75aziM2KCEwXqE/I85l/b3oTnd9KZ iX4d5WWHE03mgIgYHjKosjMh4hKmApYpT+FdQq2AgUOI/d/y2HZeviKOAl6BzTSTTQGAg/ KepBNP0tWt+HZ3p2EVG/SNrJoWsHljE= Date: Tue, 11 Dec 2018 13:34:04 +0100 From: Borislav Petkov To: Reinette Chatre Cc: tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com, gavin.hindman@intel.com, jithu.joseph@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH V2] x86/intel_rdt: Ensure usage of CPUs are locked while needed Message-ID: <20181211123404.GC27375@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 10, 2018 at 01:21:54PM -0800, Reinette Chatre wrote: > The user triggers the creation of a pseudo-locked region when writing > the requested schemata to the schemata resctrl file. The pseudo-locking > of a region is required to be done on a CPU that is associated with the > cache on which the pseudo-locked region will reside. In order to run the > locking code on a specific CPU the needed CPU has to be selected and > ensured to remain online during the entire locking sequence. > > At this time the cpu_hotplug_lock is not taken during the pseudo-lock > region creation and it is thus possible for a CPU to be selected to run > the pseudo-locking code and then that CPU to go offline before the > thread is able to run on it. > > Fix this by ensuring that the cpu_hotplug_lock is taken while the CPU on > which code has to run needs to be controlled. Since the cpu_hotplug_lock > is always taken before rdtgroup_mutex the lock order is maintained. > > Fixes: e0bdfe8e36f3 ("x86/intel_rdt: Support creation/removal of pseudo-locked region") > Signed-off-by: Reinette Chatre > Cc: stable@vger.kernel.org > --- > V2: > - Rebase against tip/x86/urgent > - Modify subject from x86/resctrl to x86/intel_rdt to match subject used > before the code reorganization. > > arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 4 ++++ > 1 file changed, 4 insertions(+) I took it but changed the subject to the more straight-forward: "x86/intel_rdt: Disable CPU hotplug while modifying schemata" Now, your second patch: Subject: [PATCH V2] x86/resctrl: Fix rdt_find_domain() return value and checks Message-Id: has the new file paths, has Fixes: tags but no CC:stable. I'm guessing it needs to go in the next merge window with the rest of the new stuff and not now, with the urgent pile? I'm thinking that because it is not really a bug now, as the negative ID happens to work. Right? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.