Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp412950lqp; Wed, 12 Jun 2024 05:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqEvJ1rO+LSu7c9lDJOyyTvLb21vWS6wBd7xKCc8a6YflZqbykbzsMWZg1icLyRO0i9yq09kzrW2prDdyrvutR06EK8V81q+fHQX62tA== X-Google-Smtp-Source: AGHT+IGPkR0ks94+uqBQ2HYJx8JNRjtqsyCG3ifGMwZvQyo8BcquUe86rtw7S3lPHYhURKA2yaFV X-Received: by 2002:a05:6a00:4b54:b0:704:24fb:11b8 with SMTP id d2e1a72fcca58-705bcdee4e0mr1689725b3a.7.1718196227563; Wed, 12 Jun 2024 05:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718196227; cv=pass; d=google.com; s=arc-20160816; b=QW0KGChGEoCWgqZq6D0pcW1r7nqP0N745d7mJJHLv7fGvZ0wfS3XYtJN2QPlUGSeVd 5pLHOEwvrbyj8WHK7A/LtTZ62sxBU+S3hg4Li9lL30phb7YtFY1zac1cWQBq44otKmIh U/3lul65O9LWV1O9QCGzlJ7HbqYGuUMVakJ+Hn/eFI7j+wb85Jkmv7rzO5cDsF/Mhhjb O9NyesoRicz17sv+jVz2Lw8bq+Lzmo9JmkukRSBRcdhN/QCGkhbxZrLljcbLBr/gDCm4 9PDCexavZVIgPp96YBiaZRqne7wmPG9vAVx/+7eIOgyFzswET1/R5o06WeXdw3yZ14bs PFoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KhmNVP9yn/pOs20SJjGdSTzDTovrTB0utuZSYqIQoB0=; fh=GkdLhbIORYc9mem6zlysmzFj0rBwLrojlKk0XRPUXXo=; b=WVVqB7VfFmR8qIvC8vT4NR4+GDsPsiY9qi/DR0rj0LYFvnqv1/KPKykZfUkbxN+FIl cyMyi3Sxb6Ro5WxmvRB5pnuYc9e5UsqV/qsAy8tKe39F7wMbNfJ9hP2Qp97yXjnIpHEE TpTgvOh5YsG9on0fN7PgVVvLQgowFVs1TuhT/yqyIUAl8XR6rPIUGIGEwA7NO0RgI4cr TDWagv0jwJzVvg8M5PxlLzHmbFXv+y23ivLt12Xp055sU4ILOjC+Oq+vbt33g0j42Grn Rojq7BsATg8VdPwT4RoTMwIefem3wfp0bpIgSRdFR0mZqLSaokg3+5zfTMRWoxgsgmnR PLzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XQzuenDC; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-705bdad83efsi1376507b3a.58.2024.06.12.05.43.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211493-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=@linuxfoundation.org header.s=korg header.b=XQzuenDC; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 D89B0B2276D for ; Wed, 12 Jun 2024 12:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0AA0170846; Wed, 12 Jun 2024 12:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XQzuenDC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C133416F29C; Wed, 12 Jun 2024 12:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718195888; cv=none; b=FHONbCjR7lVEnLB1/UWPvdKasqxCnzo9Dc9SLfCwLDtKPXLrLC3gYoJb4HRWfIX6tQVffXM1e5NvKX+fu4oPH67s1RVBg4ZuuQ6W/j/u7n94f0uvXE8oGBRKS09MNgCeT3kT+Bs5lmGpjCvG9XpHJXGnnraHshEyH7XtXtoWrN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718195888; c=relaxed/simple; bh=RMhTmUYidEH/Wcb7QQv/55jUD5NSSnQO9os8yqUo8Wk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O8AbqvJUVm/sp4DWGJN3WazdWagwle5bRmCCGkzhlLdRW+YlOBjVzXad3EUMEfCXBDRO6H0giFr94qDc5LRDYwijgJa3pq4iYmK9EuMYiaLMzQJUfkG/pLPP2hm8GHJGmH0t5mVF3ZsMrXjl1ZejPy6AcZyZdwLRrQCcJPE3RTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XQzuenDC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1857C3277B; Wed, 12 Jun 2024 12:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718195888; bh=RMhTmUYidEH/Wcb7QQv/55jUD5NSSnQO9os8yqUo8Wk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XQzuenDC7J1p/Wn/LXlAu1FCsX7iDKTSry7WfkaCEAPejGVTLULQAD2lsDdXqn568 qXEX52V4/MeIE3gOvzvF9bw6r1gkM9WIf+3E1ntTpwmL3RpBFD2EJvrg+8TK4wluJN 4YhHY16AjZ6JJsvmgoccY++7diOphNQ7x87icx+M= Date: Wed, 12 Jun 2024 14:38:05 +0200 From: Greg KH To: Zenghui Yu Cc: Sasha Levin , Paolo Bonzini , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Haimin Zhang , TCS Robot , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH MANUALSEL 4.19 1/2] KVM: x86: Handle SRCU initialization failure during page track init Message-ID: <2024061239-tinfoil-cryptic-e638@gregkh> References: <20211006111259.264427-1-sashal@kernel.org> <0fd9f7e5-697f-6ad0-b1e3-40bd48a8efae@redhat.com> <9acccdfe-b7d8-b59d-7b00-d5a266b84d36@huawei.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9acccdfe-b7d8-b59d-7b00-d5a266b84d36@huawei.com> On Wed, May 29, 2024 at 04:29:32PM +0800, Zenghui Yu wrote: > On 2021/10/6 19:23, Paolo Bonzini wrote: > > On 06/10/21 13:12, Sasha Levin wrote: > > > From: Haimin Zhang > > > > > > [ Upstream commit eb7511bf9182292ef1df1082d23039e856d1ddfb ] > > > > > > Check the return of init_srcu_struct(), which can fail due to OOM, when > > > initializing the page track mechanism.? Lack of checking leads to a NULL > > > pointer deref found by a modified syzkaller. > > > > > > Reported-by: TCS Robot > > > Signed-off-by: Haimin Zhang > > > Message-Id: <1630636626-12262-1-git-send-email-tcs_kernel@tencent.com> > > > [Move the call towards the beginning of kvm_arch_init_vm. - Paolo] > > > Signed-off-by: Paolo Bonzini > > > Signed-off-by: Sasha Levin > > > > Acked-by: Paolo Bonzini > > Sasha, will this patch be applied for 4.19? > > The same question for the 5.4 backport [*]. It looks like both of them > are missed for unknown reasons. > > [*] https://lore.kernel.org/stable/20211006111250.264294-1-sashal@kernel.org This was from 2021, quite a while ago. Can you please send them in backported form if you feel they should be applied? thanks, greg k-h