Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp123929yba; Fri, 5 Apr 2019 03:25:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqycAJAHDJxT/+y6yDYi2hug3uWM4bLPS4+oDTQqFOiO1/P0/8jYl5RCT2DLDt7dlQtjUcOa X-Received: by 2002:aa7:8384:: with SMTP id u4mr11534181pfm.214.1554459935098; Fri, 05 Apr 2019 03:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554459935; cv=none; d=google.com; s=arc-20160816; b=vVvMZ7+YPiKOmVrq1cKoG0VXNmeaH3EZQyMYKgs9WTM2WSDbaIuqnmKkHnbDCo9foL gH22MNviui2HZgCcPdIp7rgtotkwscKaT5Th327Mh4FkO9GRDPVs4N6si4FOl8aU1lxf KGTrWbgy+Nixsftqn/+dwIRI7ELu78/kUVCDtXVn3mOlfF9/ZeZ7wmt0MUOHoDWjt6KZ kCa2wMGitaopWMDFgATldtcstTWnMZsPD/OSLdnjVy1AL4EX1+IU5FHkTvnO4ezqa7ap Y/UDtPN2GfQLMJQVhAoNttI03XqNmpPc5q2+2wLU5BfSC5eW8kq7aV2gy6eii0AH7tbM M4Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4U7G1zVZ4DW+JL8ocDXSNFvY5C33qRhRNYVdGLyaPWg=; b=IfkdHQSU9DVi3+5BX7eBpPzdvF1meQ8CTe7TewOpLZDjCPjVasbnNStQYFbWU0m8R5 Lg3f/fJ76DNxkgrjvAFe/FQxDHQjIRSaCY76HihTc5e5/7wDWvR5GOgezeEljYUQ0z/O aq1hwPduq8QT1isxopFhsN4JTKtnBbjAlynbogQ5XPDAaG+GT3kksIxqXj3L8Zy9xfeN VYJyrtFAvIL1hPkssw3wEaHmNuW64ZdE0iq6yWUwTe9IR+D/gjkpU4XO9W5asjLzQwJT Z3msUYukyyB8O5Li0ozO+dIe11tmOavGx4cOvFgwONQnFhcaUiRh1ZL0AR/yvxh/TquQ WihQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si14020053pfn.164.2019.04.05.03.25.19; Fri, 05 Apr 2019 03:25:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730825AbfDEKY1 (ORCPT + 99 others); Fri, 5 Apr 2019 06:24:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49202 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730546AbfDEKY1 (ORCPT ); Fri, 5 Apr 2019 06:24:27 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F212C02500A; Fri, 5 Apr 2019 10:24:27 +0000 (UTC) Received: from localhost (ovpn-117-172.ams2.redhat.com [10.36.117.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id F40A56091F; Fri, 5 Apr 2019 10:24:22 +0000 (UTC) Date: Fri, 5 Apr 2019 11:24:18 +0100 From: Stefan Hajnoczi To: Vitaly Mayatskikh Cc: linux-kernel@vger.kernel.org, "Michael S. Tsirkin" Subject: Re: [PATCH] vhost/vsock: initialize vhost_vsock->hash Message-ID: <20190405102418.GF25152@stefanha-x1.localdomain> References: <1553793057-24002-1-git-send-email-v.mayatskih@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kR3zbvD4cgoYnS/6" Content-Disposition: inline In-Reply-To: <1553793057-24002-1-git-send-email-v.mayatskih@gmail.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 05 Apr 2019 10:24:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kR3zbvD4cgoYnS/6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2019 at 01:10:57PM -0400, Vitaly Mayatskikh wrote: > There's no current valid use case when uninitialized hash can be read > before being written, however let's keep every vhost_vsock field > initialized just for clarity. >=20 > Signed-off-by: Vitaly Mayatskikh > --- > drivers/vhost/vsock.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c > index bb5fc0e..f43f4ed 100644 > --- a/drivers/vhost/vsock.c > +++ b/drivers/vhost/vsock.c > @@ -537,6 +537,7 @@ static int vhost_vsock_dev_open(struct inode *inode, = struct file *file) > spin_lock_init(&vsock->send_pkt_list_lock); > INIT_LIST_HEAD(&vsock->send_pkt_list); > vhost_work_init(&vsock->send_pkt_work, vhost_transport_send_pkt_work); > + INIT_HLIST_NODE(&vsock->hash); > return 0; > =20 > out: > --=20 > 1.8.3.1 Reviewed-by: Stefan Hajnoczi --kR3zbvD4cgoYnS/6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcpyzSAAoJEJykq7OBq3PIXQoH/1x/QiN7WueqBBia1ZM1z4ju zY9I9PgH9nksM48rspSG+Ko/L8kESslYCzVSsns05e1o4FNonfoo+QNjvciZ1AXs Xvuc8qf7BoW+F/VtDRfhFTE1wD9iTvDMY5d3rWSWP8zCzOvz4Ej0Dw1mrekl/TA3 rANt1yH+JYSbOYd9SePbnqGsM7ygdTIQPHVpYgwdkcFZ1PewhJpNl0n8K/ikfEPV qgdnLUdmAHgqAlQgKA8RkXMZ30pZI7jXS9otPGpzEYkmomlclA88mObygICJrTug julhk8XUJ17IEglftKs/0NXVEkatMJBX1tADFXAAcnIFEjvZYRElAL5bfmjbKtY= =wo/m -----END PGP SIGNATURE----- --kR3zbvD4cgoYnS/6--