Received: by 10.192.165.148 with SMTP id m20csp885785imm; Fri, 27 Apr 2018 09:03:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqAVft5JCQpfKA8qmNkOdQqhQPwzg6qKRYd+ovhyAjkRMeoL89MVZRINufyKwVA9J0fxjn1 X-Received: by 10.98.15.195 with SMTP id 64mr2693024pfp.63.1524845022578; Fri, 27 Apr 2018 09:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524845022; cv=none; d=google.com; s=arc-20160816; b=zVsRGgECOH5Th5BeGYJB0HIqTWer6AWYoR5UJ7p7aSjaf/KgEVSdylElNUCC0yAxHm 7cY298nBsYP2bNXDbMOMRIyQJU6qC7JH8nGlwdLC4vL/PRexWK5aGYwuglV4wgrFDJsQ zwRGm56FAAHHk/6FfcUifr389Kt1s/Wkz60Gnsj7Efli4+cOhNSpt+asKjm1+9LgivLY hoDsdl6dXTYXRug5JYmStTBdsPiIlATfrVIsiTIj3kLz1QDssFAb65ehVIfFwPLb8EMI rrm61Kn2vAbZ/7ukDf9e+BDovkMdxOljP1BDqOU9ZPEbr1r7SRrjZZT/AgDW5ltRm1T5 +u5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:arc-authentication-results; bh=9hH2j3Nqa5h7YUH+GMIJkXZx5FPU+WkU3ndm3f6CcHA=; b=pmFyTrf8ARy1T8NZM92v4LxI9D1JncZd0WqhIOXy9o6zxuBExgo0MbOCKkG1saGqBz FVPSiHoOUrmX3f+O/0Aw/tH9WJVBjN89+wfQSsHNtUubEWkj6cmehcm9YCpefNlCd7Ih musVDD31R38pW9esHMBhc6YVQAjpsQx42smFhxcCNSP88jrlkQoRxsoSLeH4nkv9iwXL R4xx7BpKWz8ZbsUvdj4giSo1fp98KcPKyTg/xayEvdqG+qJojkSEZIRPNb35AlPLraW9 1aWTkNWM6BDxgcom/PGr01JCnchxQjmirMEOqLtj3wTHwszFOf2E+Syc+tr/TwPgBEz/ P27A== 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 l4-v6si1445663pgn.54.2018.04.27.09.03.28; Fri, 27 Apr 2018 09:03:42 -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 S1758674AbeD0QCH (ORCPT + 99 others); Fri, 27 Apr 2018 12:02:07 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43046 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758604AbeD0QCG (ORCPT ); Fri, 27 Apr 2018 12:02:06 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C009829108; Fri, 27 Apr 2018 16:02:05 +0000 (UTC) Received: from redhat.com (ovpn-123-34.rdu2.redhat.com [10.10.123.34]) by smtp.corp.redhat.com (Postfix) with SMTP id 7EF932026985; Fri, 27 Apr 2018 16:02:05 +0000 (UTC) Date: Fri, 27 Apr 2018 19:02:05 +0300 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Kevin Easton , Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Subject: [PATCH] vhost: make msg padding explicit Message-ID: <1524844881-178524-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 27 Apr 2018 16:02:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 27 Apr 2018 16:02:05 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a 32 bit hole just after type. It's best to give it a name, this way compiler is forced to initialize it with rest of the structure. Reported-by: Kevin Easton Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/vhost.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h index c51f8e5..5a8ad06 100644 --- a/include/uapi/linux/vhost.h +++ b/include/uapi/linux/vhost.h @@ -68,6 +68,7 @@ struct vhost_iotlb_msg { struct vhost_msg { int type; + int padding0; union { struct vhost_iotlb_msg iotlb; __u8 padding[64]; -- MST