Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp469283pxb; Tue, 14 Sep 2021 01:30:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZPZDq6iVugc5RBTSt+60aLv9gnIXKYrWF8qdUzQ4fZ8qsDXdHIrKySAC5CdPmTA2dTVYf X-Received: by 2002:a05:6402:715:: with SMTP id w21mr17672250edx.271.1631608203485; Tue, 14 Sep 2021 01:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631608203; cv=none; d=google.com; s=arc-20160816; b=mLIHCmLr5EmoMZx4chDblBADfeF2R3V32Aw3LhWFryNbaY1fBhw7+5Oe5cJGCQdof1 rKh5ORsX6bcpaZ5hS5mGPUyHRgnHEgx7Gxi0Zd3uu+P5YwnPJLn2qXJnLRyE3QDAGTv1 PNX0L3pvhBExxZ2h415KeLf/MrHjyMjyo4FPlHaQtFiU6hdh33pMTHal5u62IgdZHNn0 rI+Dg3fVMV8Kdr/pZn8YGc2PFTf1O1epYCs+R34ihCJkaemgKPj/1M2/297XV6qK7Mmk kseuswkw/0pVZ7v21mYA09BGKKCogUh/XnG+avxhDGrDsuvqNGFYw5t7DyovPSNwL3ky gD4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a4eAzcmgT+Cbjjd6VWGKBIiTujYg8WfJzuB6hTCYge0=; b=RldyIGUVep6ShYh5uqirVTXAkdvs3CYOUXESKs98IthfwNKkvRs8cDJKJwAppQOE76 ini8+5dIyks4F8VZ9KWjTnOcEOjDe2qErSPcwLcrf4Nkz2zy3NS+FRfcmGqVPtPswt5t Ggjy4jp+K4FsSmm0v7Dhx38+19M5bi6rFQ8prUq93ejAd0NNmjVfc9Bh29UjZCIqxPN2 XXhRxfAhZqAv1X8G0TfvkT9Meg+p0Ox3fQoKfzKDB2E1RpJSTxO+Gepz65ZUdom29bqm RJhoz46/XIixyifXCc/knMJcsNZ8ZnJJQvQgUmMsiX7OedvojuDZfvSa/DeLhHA4th/8 sV5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=l1T5lQUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si9896471edf.591.2021.09.14.01.29.39; Tue, 14 Sep 2021 01:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=l1T5lQUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbhINI3j (ORCPT + 99 others); Tue, 14 Sep 2021 04:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhINI3i (ORCPT ); Tue, 14 Sep 2021 04:29:38 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37DDCC061574; Tue, 14 Sep 2021 01:28:21 -0700 (PDT) Received: from zn.tnic (p200300ec2f1048004bf380b26d2cf776.dip0.t-ipconnect.de [IPv6:2003:ec:2f10:4800:4bf3:80b2:6d2c:f776]) (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 7699A1EC0464; Tue, 14 Sep 2021 10:28:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631608094; 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=a4eAzcmgT+Cbjjd6VWGKBIiTujYg8WfJzuB6hTCYge0=; b=l1T5lQUt6p7TqQ2QYh6YIHTDNZbLx5KQRUA/63x2LTVAnIlUUp3NxdLHluIzr7RKuEZ7S0 hmW69MX2VECRwla3/KAx73SFgDDjgNCCjeNjQiv0BD65WMV2rI/i1k9dTbvfi2hK65gHGR 7LqZJqXn2VQhbNah1rz0rWeO1O7H7qY= Date: Tue, 14 Sep 2021 10:28:08 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: Jue Wang , Ding Hui , naoya.horiguchi@nec.com, osalvador@suse.de, Youquan Song , huangcun@sangfor.com.cn, x86@kernel.org, linux-edac@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] x86/mce: Avoid infinite loop for copy from user recovery Message-ID: References: <20210706190620.1290391-1-tony.luck@intel.com> <20210818002942.1607544-1-tony.luck@intel.com> <20210818002942.1607544-2-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 02:52:39PM -0700, Luck, Tony wrote: > Also mark queue_task_work() as "noinstr" (as reported kernel test robot > ) Yeah, that's not enough - I have a patchset in the works for all this so I'm going to drop your annotation. > Cc: > Fixes: 5567d11c21a1 ("x86/mce: Send #MC singal from task work") Ah ok, that one makes sense. > Signed-off-by: Tony Luck > --- > > > What about a Fixes: tag? > > Added a Fixes tag. > > Also added "noinstr" to queue_task_work() per a kernel robot report. > > Also re-wrote the commit comment (based on questions raised against v2) Thanks - very much appreciated and it reads really good! > > I guess backporting this to the respective kernels is predicated upon > > the existence of those other "places" in the kernel where code assumes > > the EFAULT was because of a #PF. > > Not really. I don't expect to change any kernel code that just bounces > off the same machine check a few times. This patch does work best in > conjunction with patches 2 & 3 (unchanged, not reposted here). But it > will fix some old issues even without those two. Ok, got it. /me queues. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette