Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3099071rdb; Tue, 13 Feb 2024 06:58:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUw1gyQHYB4NIAcvXJb1U7/V7u79+3JiNBhDvOwnlfai22b8z3ylvUWQ+krv7QZGJoiAmiWmf23S3zH06DR3oth1aeLIY/fyhFlP/9lrQ== X-Google-Smtp-Source: AGHT+IG+uiJW6I+SdoIzEqVmISeea1jh13id20Abk5qFab220bouC5kiCZ4q3dmfqz8dvnqedm6r X-Received: by 2002:a05:6358:579c:b0:176:916e:5d97 with SMTP id m28-20020a056358579c00b00176916e5d97mr10415193rwf.32.1707836334403; Tue, 13 Feb 2024 06:58:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707836334; cv=pass; d=google.com; s=arc-20160816; b=wzR8egj/bLe4fK8v3wMu+gILqDXFD55osGi6H7D1FQ7yxuVDv5yptLW2mFVeJfDw1c 00JRDGASGPXUharyjY+8j7+M6ysehxfO0gSKu7bi5GrYa0oXA0egxc9FIyXy2I+osXHS ayqGkJurKHzkU6uW3neKRC3uJ0BVwV//A9RkKCT6cajHNEkbpdkb2Wb1QFPTghJBwKY0 J/MGWpKlVWGNQQkiKYkkjZh6Km9u7vB/XZchjiTegjDusUFm1IulGcJ2g5vp8OuYcqHg CnrVHsq3C9YcD5bCIiI9flUfhutFXJMV8sebB3WsrhhOAYhUBMAguiBkQ16bF35nfsgV q5+Q== 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; bh=wJiewVWV/09Sx/EaGgZiMLbVfDZePr+kInidahFlvtw=; fh=Um4Ix0JttqF5iKGwRWB/EfTbJxK/ajFL5oV5M6w1sJw=; b=0EU8k8AARGlAo1K94DbIjtyn0txY2jC5T/w54zI+xzlBC649YOWRgRvLLJBgZ8uTPQ SoEkJtCRnjx/oOS0WBgdwUFAGN7ik0dPDeHx+eAh5TuYhFK7l1qpukYSLqaqp9sQqGoj gS6NL0Jm6Frah3l223bx/dL50VMzH5s5CAMwkidR65vt/6BW8JW+NvTVGAHmMCuZuyae 57PbSY19oDtsYAUjuRVjO6faYK2GJDmgMTvbZw8mRGUBjaCLJHFnP4vsGTtGt+4uAG6p xRdD4EoG0Hw7r/N6dW8t63mFWiFJtBXU/k0FuT0sqeTNj/KPuq9wQKElk0VXzhIi5Kca pPBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=js+XN5kI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCVBIsLB3z/qtnFY4HyPe33hgE4Ovnqmx+BJEmY8aX2pX3lLTHQ2/QbOm8XxM5MdK5XenE2YHa2gKKe9XK5mjdfQqoCMuoExW0egLuhS8g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bw8-20020a056a02048800b005d91365dedasi2110878pgb.613.2024.02.13.06.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 06:58:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=js+XN5kI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63728-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5AF42288324 for ; Tue, 13 Feb 2024 14:55:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF35F5EE9A; Tue, 13 Feb 2024 14:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="js+XN5kI" 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 089BF57873; Tue, 13 Feb 2024 14:54:30 +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=1707836071; cv=none; b=jZMhjCXDqm18DnokOqFjW0esCJyM2UEKW2oihwIBiQMqvfqlzCGyLzsox9BLtAAseI7ktplfx0/X+hMuF/x3qDsDTQfFDiasRtPu8JMNASkj4PTPWINfCY1MyvrSYSH4w/DOApYz94dy5J8bG4VTynqcCWmu55fssTd96mTXw4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836071; c=relaxed/simple; bh=G4LX9kvo4BgwHGeUq7JLs9/XHpEGSlotttquVOhu24o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nsnH/kVzFjcRqgVC09THc0CZ9vLZDDk2FI7qmIzkbmp2wWyOYHpntxJjXFtlyXQVdG+/piHVfjz4etM73yfT6N7KrxL6QOaTYTzsESodd3WmcBImoVMQnCavDvs7/aFsOXscXm+Xrm7SK4tr1vcCcLaqfHp2NH1vGEX6/RkUOWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=js+XN5kI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05104C43399; Tue, 13 Feb 2024 14:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707836070; bh=G4LX9kvo4BgwHGeUq7JLs9/XHpEGSlotttquVOhu24o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=js+XN5kIZ2oj49KFq7EeQPD3BbeGrnnYa+LVtQvb+QaepYq6jIdyLRR7/tlQIf3W2 1Ij4Nqv8Ks33RuRMDmxroWfMDoOv1XgKZvCRhiDx3DeRtr6+djHMeQfUT69sVtE3nM 9VNTEtTUQjJIi1kgpqzOHU1uvkIOwDX/lr2NhCM8= Date: Tue, 13 Feb 2024 15:54:27 +0100 From: Greg KH To: Ajay Kaher Cc: stable@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexey.makhalov@broadcom.com, vasavi.sirnapalli@broadcom.com, Prathu Baronia Subject: Re: [PATCH v6.1.y-v4.19.y] vhost: use kzalloc() instead of kmalloc() followed by memset() Message-ID: <2024021348-always-splendid-c1f8@gregkh> References: <1707110377-1483-1-git-send-email-ajay.kaher@broadcom.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=us-ascii Content-Disposition: inline In-Reply-To: <1707110377-1483-1-git-send-email-ajay.kaher@broadcom.com> On Mon, Feb 05, 2024 at 10:49:37AM +0530, Ajay Kaher wrote: > From: Prathu Baronia > > From: Prathu Baronia > > commit 4d8df0f5f79f747d75a7d356d9b9ea40a4e4c8a9 upstream > > Use kzalloc() to allocate new zeroed out msg node instead of > memsetting a node allocated with kmalloc(). > > Signed-off-by: Prathu Baronia > Message-Id: <20230522085019.42914-1-prathubaronia2011@gmail.com> > Signed-off-by: Michael S. Tsirkin > Reviewed-by: Stefano Garzarella > [Ajay: This is a security fix as per CVE-2024-0340] And this is why I am so grumpy about Red Hat and CVEs, they know how to let us know about stuff like this, but no. Hopefully, someday soon, they will soon not be allowed to do this anymore. {sigh} Now queued up, thanks. greg k-h