Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp921424lqs; Wed, 6 Mar 2024 00:16:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOtmb1o/W/gRmcbJ3R5lryf08nU/w/GZZ2RZPcrZUomFgOVpv/jJ8VaX/flOTpZJKd/ZX/GMc07IGV7LBEku7urxKRRAcBFZ6bv1SlZg== X-Google-Smtp-Source: AGHT+IHD0LepDbyphlmGweqCGiAIQyP7QAoy2/ljpCRLwjZ/AauoLFcdEaam79eL7EYDRF3Y6cHY X-Received: by 2002:a17:902:768b:b0:1d4:4df7:22ab with SMTP id m11-20020a170902768b00b001d44df722abmr3581458pll.55.1709712974121; Wed, 06 Mar 2024 00:16:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709712974; cv=pass; d=google.com; s=arc-20160816; b=k7LTrR/hLJPO+bjnn8NzUgsRrdP5941J1UBxzoThjVifybX2g4UO4I2LPUGZ7eUeMA 9vBVvMXlCg+cvZre1UOhcBujehh5JY6JzvqKtjAcMlRN+Pdmro//EJqvtF4bpQNEKpgd IXBFEHwJwro/kqispwqVcq4x3yFHeYhwP+/WkZh02GcqGVQfnE93A0g/3R/Q8p/iVBi3 LgmUOwXXSOFW+vk2fB5GT2jZuc+JLtN/JCt4rOvMEu1qc73weeNAI8bJhcCV0A1hdduS sl9VMpydGMA5Yp2BM0ii4bXV8klibtpS1WFDjt35Jc5eR6t0l4h+ZJ5gpKfEwWCrAjqn lcjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=xJyqNxLf+jZXOXYD+8fg3XBfC72ZeiyXKr8oxT9zAQk=; fh=KNYqGcBSnWp+8owF/j4S9gxfyOgZ5gkXKL2DlScdH4A=; b=VT5vhf7gbAgra+5sPwwo94Eu7EGKix3nduyGUkj9J11mlyIooWs2kBGKl8d6dNErK0 7dBR209Ynkbf7qNH/R1n17wCKiqm2IoSQFjBC775w47LAAEm7+zePAguueC+Z1Qfi9ss QlimreYJVFwbvc7c/qoZvjDbbX9x2kE8Rai7NKeKX7FoNwQDDYDLkKrBT0NVeg6BdjYB QKNHRWgriA1BxBJYsyKVRz+JyUIlamI3ERAAcmNF9lUyhM6xdwQBsjyJd8TrDcghyRIK Bq8mYmYBuVeqBKBxRyiDAoWRX7aTr2Yg+kkPG80P/UBRXqztg93E2tEquRjpynHAcb/j Ai9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uMaM97xM; dkim=pass header.i=@suse.com header.s=susede1 header.b=uMaM97xM; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-93461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2-20020a170903230200b001dca2801b86si11967676plh.353.2024.03.06.00.16.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:16:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uMaM97xM; dkim=pass header.i=@suse.com header.s=susede1 header.b=uMaM97xM; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-93461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 61808B217C5 for ; Wed, 6 Mar 2024 08:06:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F2725CDFC; Wed, 6 Mar 2024 08:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="uMaM97xM"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="uMaM97xM" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C51DF5CDDC for ; Wed, 6 Mar 2024 08:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709712406; cv=none; b=Y8i/UkXPj9zHr3AkO5lrHXFJSlXHXy0+eNVAJrNo1wQE06Zb1MddpU5LV5J8xjNRMzoxGid88pKUcoCxKoAh0+xfexDcbbc5FhbL/cS/to6P5GcT24BtzQWhVCb2ZVgRTQsiiB5v561VqoE8pnxbeHG5C05ogSLG9KOVPoQw+q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709712406; c=relaxed/simple; bh=MqQXZ9imZCuItatNwAjp9sOkRK9vVNm4gr2kYvZTvn0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HLfzjgM95P2wWIjeqCeLJKX5Pi2zqp1ZnFYj6whSYVVhrUVok0svgwxLvK0r81N/z5wCSjdn2B8I9ZPziUaGableYkdgnMTX+fa9V9UJD1QFKkOBOr2GWBdJX0CUfFem/TWmfTGJVyMAuueN5dPbsQlqE2rpncKpaJcG/v2/cKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=uMaM97xM; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=uMaM97xM; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 09AC46732A; Wed, 6 Mar 2024 08:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1709712403; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xJyqNxLf+jZXOXYD+8fg3XBfC72ZeiyXKr8oxT9zAQk=; b=uMaM97xMyVH5AQI463diHs9G6GIX6zVf53LthBxh2ifNA6xCxBpYaEii2NAFISC/QB2m5X /6pKPiTZZHa3fC9DgHnriuOg750S82tmsrU/M9R/PeP3ZeIGdHo05QLx+VlVO/ewVsCe58 C9stWHUMpgAqY5UHNTNuQiJZZXNYqD8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1709712403; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xJyqNxLf+jZXOXYD+8fg3XBfC72ZeiyXKr8oxT9zAQk=; b=uMaM97xMyVH5AQI463diHs9G6GIX6zVf53LthBxh2ifNA6xCxBpYaEii2NAFISC/QB2m5X /6pKPiTZZHa3fC9DgHnriuOg750S82tmsrU/M9R/PeP3ZeIGdHo05QLx+VlVO/ewVsCe58 C9stWHUMpgAqY5UHNTNuQiJZZXNYqD8= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E72AB13AAD; Wed, 6 Mar 2024 08:06:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id MI9qNRIk6GUqZAAAD6G6ig (envelope-from ); Wed, 06 Mar 2024 08:06:42 +0000 Date: Wed, 6 Mar 2024 09:06:42 +0100 From: Michal Hocko To: Greg Kroah-Hartman Cc: cve@kernel.org, linux-kernel@vger.kernel.org Subject: Re: CVE-2021-47090: mm/hwpoison: clear MF_COUNT_INCREASED before retrying get_any_page() Message-ID: References: <2024030413-CVE-2021-47090-a429@gregkh> <2024030541-unhappily-staff-8662@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2024030541-unhappily-staff-8662@gregkh> Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-2.60 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -2.60 On Tue 05-03-24 22:20:17, Greg KH wrote: > On Tue, Mar 05, 2024 at 07:45:04PM +0100, Michal Hocko wrote: > > On Mon 04-03-24 19:11:17, Greg KH wrote: > > > Description > > > =========== > > > > > > In the Linux kernel, the following vulnerability has been resolved: > > > > > > mm/hwpoison: clear MF_COUNT_INCREASED before retrying get_any_page() > > > > I would like to dispute this CVE. The interface is behind CAP_SYSADMIN > > and allowing access to this to any untrusted party is risking serious > > troubles. This is a testing only feature. > > This fixes a weakness in the kernel, one that is allowed to crash it, > why isn't that a good thing to have a CVE entry for? Are we saying that > all VM_BUG_ON_PAGE() instances should not be accounted for? That's not > what the config option for CONFIG_DEBUG_VM says, it just says it will > affect performance. I wouldn't personaly recommend anybody using CONFIG_DEBUG_VM=y in production. But I am not questioning if somebody does that. This is not really what I am objecting to. Hwpoisoning or soft offlining is not aimed for other than testing purposes. Things can go wrong during these oprations. If you insist this still qualifies as a vulnaribility/weakness fix then I would propose a new category pig-with-a-lipstick-CVE. > Also /sys/devices/system/memory/soft_offline_page doesn't say "can crash > the system", so it should work properly, even if an admin uses it, it > shouldn't shut the box down. I agree that Documentation/ABI/testing/sysfs-memory-page-offline would benefit from an update. Documentation/admin-guide/mm/memory-hotplug.rst is explicit about this being a testing feature. -- Michal Hocko SUSE Labs