Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2212333ioo; Mon, 23 May 2022 12:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9kF5N6/zhpTOEZUhz7AAFNihHsDRqbL9SBZUQzKDz9sa7IJPOBjjrmXpD/V4pqlvsgJ9t X-Received: by 2002:a17:907:9628:b0:6f6:b20c:bd7f with SMTP id gb40-20020a170907962800b006f6b20cbd7fmr20597590ejc.719.1653335408242; Mon, 23 May 2022 12:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653335408; cv=none; d=google.com; s=arc-20160816; b=0UXrcD+z0JhZlvtAAijD1ceVadZJ/2hPLmjz9xDKpJAEIo9slnJu2rXa/qYhmC+0/I tNyI30RG/HwmIkeUsARc3GznVps8H6GPvciEAK7TrEADDmgdjPAGo4mnKldqZMCYxL0b wIU4zIE1/KxU4kfyFcdSjzZZDN658WZjqoRTsEVTOiCaI/qGfFXki64xfJGXlTRqJ+HX DCHQiIudPBWSmPFoyGwsXv6wmprsnIbY2bOF8CU3DcMcFbdFDtDCFOlSjR6ntlx/EMj5 Fj0LSHh4VUM6ijsAfnfxeOICO2Rj8qQZrGKhvg+9QXj4oIlM5qdJCFNzxIxzL3qqDu4g cEEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cyh9GNwkSeiWX8VVWJet6cmrStrv1Y1BhHYKMAKCy08=; b=UyCd5O8vP+touo0qoJMvgOmMKApcKexA54SyvwBqYKzhqfum5CAixmIV0yzBUQj/QV 1+3/fJh/8bWaxqOQe2SJVVx+jriHtshyrGJ9Hjt2REi2UTNQfjK+31Dgw3G9hey8GtlC 16v0vuWn5eAm5bKNEoYUvFJ2PFNadyjcv6c2AX6xnfpF7mwAlO+bn9QJR4DZX4oKwVvp qyrymsHfmzTnkXRxtqYUus1+zg74NveEe88ChD9yozVKuujYgcMt21h6yWKrV+7Mct0B DxVzL93DDbSNTG7gwvrEboKu1gFm0cVwh6aQPdLYifIQFwRVVDrsUnjyqOMEf55SEPpR DjaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HbgDc0yY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a056402054f00b00425bb1f4712si6059118edx.103.2022.05.23.12.49.39; Mon, 23 May 2022 12:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HbgDc0yY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbiEWT2R (ORCPT + 99 others); Mon, 23 May 2022 15:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbiEWT1z (ORCPT ); Mon, 23 May 2022 15:27:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 762FDC8BFD for ; Mon, 23 May 2022 12:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653332857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cyh9GNwkSeiWX8VVWJet6cmrStrv1Y1BhHYKMAKCy08=; b=HbgDc0yYnr/i/lflI5m0ctAGhenqEUDVxobO7FXAvaTxEZ0wOlyvxYSU4sHjD8cvUmsVd9 NMyKj/OuNX4hcHxfRpDwH91HNVG32Q5FrLwKpABdueBw2Xrgftvf1xGScnWhl4iIwJYqVV 14D+ofImKzNsa2jZGbFT1d9PuddmG9E= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-91-DTHuyVKtMrCt--Nfyuy6tA-1; Mon, 23 May 2022 15:07:34 -0400 X-MC-Unique: DTHuyVKtMrCt--Nfyuy6tA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 39AC11C3E985; Mon, 23 May 2022 19:07:33 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4033F492C14; Mon, 23 May 2022 19:07:32 +0000 (UTC) From: Paolo Bonzini To: Ashish Kalra Cc: pbonzini@redhat.com, seanjc@google.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, joro@8bytes.org, Thomas.Lendacky@amd.com, bp@alien8.de, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, theflow@google.com, rientjes@google.com, pgonda@google.com, john.allen@amd.com, stable@vger.kernel.org, michael.roth@amd.com Subject: Re: [PATCH v2] KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel memory leak. Date: Mon, 23 May 2022 15:07:30 -0400 Message-Id: <20220523190730.148395-1-pbonzini@redhat.com> In-Reply-To: <20220516154310.3685678-1-Ashish.Kalra@amd.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Queued, thanks. Paolo