Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp346800pxb; Wed, 14 Apr 2021 17:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ4d80KiPHq7zy78H/r43vG54i1HJuVHnk5/x6PoQjk8qGFurPP8QI/zvglz93wmXPetit X-Received: by 2002:a63:5361:: with SMTP id t33mr884386pgl.439.1618446271035; Wed, 14 Apr 2021 17:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446271; cv=none; d=google.com; s=arc-20160816; b=WbGRWOEnZSTNzQPH8NSvOYruyInwBFwKlAl+y91Bc9OQkZ8AX7lx8neU2JNHDTh4Jp 2/DERh67TXs5kS/i39TXJtNypCIPrNCQOYUTvYzq0guNW7j3mGd7DMngpSiIPFx721wJ fvSkPWfXskYjQG873pVuhXneLRxUMyN5oS+OR5Si8VL/Magy+rQlgBXI3fY0OwOT/7pF HXWX4HXLP8iXh9V5smfpF87Jnn+iF7O0duBAv4pAstYHEQw9bzNCqrkZpM2E0NtNAT69 lyRsfaHP4gY2bxF8Yb+Q7DyOjct9LPhqkV1jBe4s/gu4g83cUxFUwwvV5RpsE4SpFoWI b8Jg== 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=pDuekF9w0MXd1qItoeFQ9QxXI7Xjo0WpNUInm4OD5SM=; b=y7JjGMAHMHreNQ18dCT4puNV3gD0Q9RfU9hfk+FYT613PcpHoWQ9PcOCah3EAOOgEi 6B0PuAvFu7+UIXWN8fTxHcp0BEpbS76MYiPtG/C9ultUiaIHKJkcn8mtvArLVhrRUAJg +bgKv5hQaw3gFwV9nmlZlu7+AODvOVu1VSCdxFYwSdsjbtFVLAiwS7Z4mrMuMgnN3FF/ RXrShFsCRev0txavbsVDPXC5Oc24xkiNVt/1iZ23MPYQB7Ocor4dh56lf0bzTtJtqCBz PTznrx1fOohBs6eNm9Efjgajo75mm1K4jafsf5gsc7ERFTtUmS4QODUaZoEfznN6L1fX v/lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gqITvJI1; 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 b11si1356617plg.355.2021.04.14.17.24.19; Wed, 14 Apr 2021 17:24:31 -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=gqITvJI1; 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 S1345934AbhDNNF4 (ORCPT + 99 others); Wed, 14 Apr 2021 09:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbhDNNFs (ORCPT ); Wed, 14 Apr 2021 09:05:48 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D7BC061574 for ; Wed, 14 Apr 2021 06:05:20 -0700 (PDT) Received: from zn.tnic (p200300ec2f0e8f0048923c048b418a85.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:8f00:4892:3c04:8b41:8a85]) (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 9DEEB1EC0258; Wed, 14 Apr 2021 15:05:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1618405514; 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=pDuekF9w0MXd1qItoeFQ9QxXI7Xjo0WpNUInm4OD5SM=; b=gqITvJI1pOnfp6ueiuu+dKNSWjZG9ml543//8THt7p8wjk2BrwH8JGAXY8GI/KQezikMhP uuWiOhv5p4q9YuJLTybHUAZJEHdw1tN/A7bCMpe9tm/Ek+KRxUO2MUHHJy/upYGo0TWq3R QzheHW9yXsTHICoO4yesmocUjMWgln8= Date: Wed, 14 Apr 2021 15:05:09 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Andy Lutomirski , Aili Yao , HORIGUCHI =?utf-8?B?TkFPWUEoIOWggOWPo+OAgOebtOS5nyk=?= Subject: Re: [PATCH 3/4] mce/copyin: fix to not SIGBUS when copying from user hits poison Message-ID: <20210414130509.GF10709@zn.tnic> References: <20210326000235.370514-1-tony.luck@intel.com> <20210326000235.370514-4-tony.luck@intel.com> <20210407211816.GP25319@zn.tnic> <20210407214310.GA479383@agluck-desk2.amr.corp.intel.com> <20210408084958.GC10192@zn.tnic> <20210408170852.GA485019@agluck-desk2.amr.corp.intel.com> <20210413100722.GC16519@zn.tnic> 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 Tue, Apr 13, 2021 at 04:13:03PM +0000, Luck, Tony wrote: > Even if no applications ever do anything with it, it is still useful to avoid > crashing the whole system and just terminate one application/guest. True. > There's one more item on my long term TODO list. Add fixups so that > copy_to_user() from poison in the page cache doesn't crash, but just > checks to see if the page was clean .. .in which case re-read from the > filesystem into a different physical page and retire the old page ... the > read can now succeed. If the page is dirty, then fail the read (and retire > the page ... need to make sure filesystem knows the data for the page > was lost so subsequent reads return -EIO or something). Makes sense. > Page cache occupies enough memory that it is a big enough > source of system crashes that could be avoided. I'm not sure > if there are any other obvious cases after this ... it all gets into > diminishing returns ... not really worth it to handle a case that > only occupies 0.00002% of memory. Ack. > See above. With core counts continuing to increase, the cloud service > providers really want to see fewer events that crash the whole physical > machine (taking down dozens, or hundreds, of guest VMs). Yap. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette