Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp534693pxf; Thu, 11 Mar 2021 08:59:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXhKrNBXkXfb3eo9LUVztPmvNA5ESc8vbDPbaVKix7rzeba+1bJCcWbCAm4ZKM6/tQPdAR X-Received: by 2002:aa7:db0c:: with SMTP id t12mr9304779eds.34.1615481974879; Thu, 11 Mar 2021 08:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615481974; cv=none; d=google.com; s=arc-20160816; b=V3ECnZVDoy8OvKPlf7VX43Xb1v5d0aLahXiG6reY+rMuP+1zZZZD9FDQ8OfYTBowiZ d17ZuHQG6Ud0UG/sdWzeRHzHHhFr8NUdhzxHvjFkw4F/JHpih1w3t9qywS+Mw4kV7Fdd B8bqGKY61FVTCUzU4NMo90o/x9x7vzyvNcgVT0HmTKOwUGYpApEIRfOyCvUIxDsMd6Ib xmznG53x1mKzJhcegZY617EtIb3qruIc2MKIsVmfELZ0Xdil4Kk2rYCHd5rMkaXE/KbY qP2JHPA6ao49NK0oVNc20ItJKxJvT717SCiQB4i/JBJJ+tPCHEdewriV4KcgLR+d3dRJ b9qw== 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=ppV5eKP+GTwT8841mn3VqiRD2uTN7WT0z5PGxeKiaTU=; b=zTwkFQkpkv1tRknF0DW6jaMW2frhjCczrTWTRNiJiXd2GuWsNy33XouCdLDR8R6aB1 LBD/X6RJMoWfhp6rliOrGCn+zdjAUeMIm0VKMatrXoqHzPyhVenLG0u0TJ7jPldGSb1g oNydyUOZDUMcv3C/m3Q2aNz6zxQXXTK7QBzpBkUzT6aTS1ow/5uz2YNiIC0SCEyOj6Kz DLrgiZJVCQtuDCWTcwSv5vv06qpX8zKHY6UFs2QBvuC6Cs1xdEfJBmPDT7197eHRFf+o iuCnr74ZWmMtfjpSWdPhQfqR46/Nqeb2tXuaMcpboMQLILPqMzNW/b42at8UbcHC0yot HZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=JvvWPkgl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b68si2306899edf.477.2021.03.11.08.59.12; Thu, 11 Mar 2021 08:59:34 -0800 (PST) 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=@infradead.org header.s=desiato.20200630 header.b=JvvWPkgl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbhCKQ5x (ORCPT + 99 others); Thu, 11 Mar 2021 11:57:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbhCKQ50 (ORCPT ); Thu, 11 Mar 2021 11:57:26 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69C0C061574; Thu, 11 Mar 2021 08:57:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ppV5eKP+GTwT8841mn3VqiRD2uTN7WT0z5PGxeKiaTU=; b=JvvWPkglVPY+62xqjH6sjY7+AH dnyYZA6+nBL5WOheOekWnlbQ6GnYvi0waEZ5t4aWCLVN2/uv4qFZ9OrhBNIwQrDxYDa48BDiqtKrL wAkN3RM1PxUTUqOQmW6PXrPB2cHM+bd5wAY56tC6WuekmNVUg7OEF1uYueDAaen3N2TFxZgRCcACb Gy0nfntxV/1oJVsdUGiS1Av+z5v6RBKcIFfTrzPoy/i0uaTqdWIzU6cST62MYG4AXAwSkdp31Bb5T ecWniiVWBTJ6jpgZkDQVrSGGngxUk7BvkGWXIBNwMSfTWmIivDWsN5q1kiFUH8dEHxh9F2Vt8mAg/ sbW9346Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lKOcQ-009cwK-R4; Thu, 11 Mar 2021 16:57:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 55DE63013E5; Thu, 11 Mar 2021 17:56:58 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4110F29E5D623; Thu, 11 Mar 2021 17:56:58 +0100 (CET) Date: Thu, 11 Mar 2021 17:56:58 +0100 From: Peter Zijlstra To: "Luck, Tony" Cc: Andy Lutomirski , Aili Yao , Oleg Nesterov , Linux API , Andy Lutomirski , HORIGUCHI NAOYA , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , "yangfeng1@kingsoft.com" , Linux-MM , LKML , "sunhao2@kingsoft.com" Subject: Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access. Message-ID: References: <4fc1b4e8f1fb4c8c81f280db09178797@intel.com> <047D5B49-FDBB-494C-81E9-DA811476747D@amacapital.net> <20210311091941.45790fcf@alex-virtual-machine> <0a0909a9005842fa9e49ba9917580e79@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a0909a9005842fa9e49ba9917580e79@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 04:52:10PM +0000, Luck, Tony wrote: > > I think we need to at least fix the existing bug before we add more > > signals. AFAICS the MCE_IN_KERNEL_COPYIN code is busted for kernel > > threads. > > Can a kernel thread do get_user() or copy_from_user()? Do we have kernel threads > that have an associated user address space to copy from? kthread_use_mm()