Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp491071lqb; Wed, 29 May 2024 01:35:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3lfVsolz8gKeTOOIJQUkGf5YXihKYsp1iHo1VTZ8S+wQU7ZR6Ez3y2JlttlBILatx6sTNFXqxOJFGhxWxwNxqP7IYVRHpMR182xgs0Q== X-Google-Smtp-Source: AGHT+IFpqSCDF1gSwlKoXydIMBeSQ15y1cwaqGehs3b2zfdnhzTboLUuNKsYazq2hrGm88KRS9E9 X-Received: by 2002:a05:6214:5985:b0:6ab:5bca:8cd8 with SMTP id 6a1803df08f44-6abccfadae8mr154373786d6.51.1716971717926; Wed, 29 May 2024 01:35:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716971717; cv=pass; d=google.com; s=arc-20160816; b=evXyT+WoMixoUE6RWaflg34R5AvMbzdXJj88oqA4PYwCl9tCnBqnOtN2jSxFHEt+4c dF/hM6E/mtonhpOZE7Z+C4nl4ffeNgl1F28UUywA8WSZ01BGO32c5cTyAldUoLislxOW VgbV6ai47AJtIZjwUfWlmpyExbfmRP3KLbhUpZpwfF56LvinJHzS7yVRn8ErcaVij+l8 yMW7bJ4glTUudUvce1Boe4WaGInoZ62KZIj8bcbA7ZUBzq+lZ7Izt18SZF1QjMGZiOhW Zgcqzn0GAWFs+a+eYOC7vmA1CLMJWbaStLiwgNm5fA3GPla5R64URvelT++EVavYR8M9 X6bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=HefkzrqIvoeRpLVQQPTJbSB+91Y09a6Yx1nOq5ezqzw=; fh=58SbopcHPC4VzHRE0vMy7HlJARSE+oimO7J/SUYF7yg=; b=eIX93qPUE458MCtnb+3vusdsYVC1dLC71jIiuGpHQZk1991ITzj+BmFMehXx/D+sIJ M0l8V/4te2F6Q+XBDKyEQtWIE61HnlRGH7QryWfC8bep29uEgw+ExXoqq6xPeDVMqbYb TqnkR1j0iRqIVfPgH4toTlKgulgbbyAph/f2aw/IUFUhHIh49SywLIf84MVnM4sv9jMA YY/qtMvCIowH5qWaRmKS5rDwD5DG/EfmfrVW8nyH16RdFLaYO1jUrL7XbC4w/lR08vXr kSUlOjbgWJ2ZQUeFtivf/UBtjbcSY/qKZ8hI84JcH6CrzsU2QMplPXOW6bIEEb983pRh xNcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-193752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac160750f5si122838326d6.394.2024.05.29.01.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-193752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A4CAB1C23D9C for ; Wed, 29 May 2024 08:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59066180A92; Wed, 29 May 2024 08:29:40 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 ADC2C16A386; Wed, 29 May 2024 08:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716971379; cv=none; b=cyaHtMzTjTyGD/o39n4xwY9tHdGdoBM17fR0kgMTZuVY6rCPLpbqEIst2l+N0r5o0cVoGz4pE8Aa/DoYTQQ42eib/LXO3+lLWWhhOOiR7E4XBE/0SECR2Ypsybjs0Y2Ma11/z42mqz6SvgAJNOiSk6arDEVKzX1bqF7G3xZK92E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716971379; c=relaxed/simple; bh=8SW852+Vfnp4PsENYXV4X/Claa09p9DB1Fs1huwvNrM=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=dgG9cwA65hW1XW2/C3yGVa6c2r/qkjlvkRIuoo7VpHTTk8d39ElHiJ5KpldovWuDULCXyTDCglpSg8aI/XfgW82eqhpcBR5wQ7vKybdRzqSpMt2QyxVRXA2DIXG29Vhbe9bOm1CSCs8OzYDcNOq3Aiyg9Cev7jFTm1oOjBbmfAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Vq2Xc1pxLzPkf8; Wed, 29 May 2024 16:26:24 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id DA2E2140FB3; Wed, 29 May 2024 16:29:33 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 29 May 2024 16:29:32 +0800 Subject: Re: [PATCH MANUALSEL 4.19 1/2] KVM: x86: Handle SRCU initialization failure during page track init To: Sasha Levin CC: Paolo Bonzini , , , Haimin Zhang , TCS Robot , , , , , References: <20211006111259.264427-1-sashal@kernel.org> <0fd9f7e5-697f-6ad0-b1e3-40bd48a8efae@redhat.com> From: Zenghui Yu Message-ID: <9acccdfe-b7d8-b59d-7b00-d5a266b84d36@huawei.com> Date: Wed, 29 May 2024 16:29:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <0fd9f7e5-697f-6ad0-b1e3-40bd48a8efae@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600007.china.huawei.com (7.193.23.208) 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