Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp880444pxk; Thu, 17 Sep 2020 20:11:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLHY0qbryIhaV/ZvNZTNFEth2SWmrwQxX8skGc33LCMvMZAh8689x4kXbY2e/CbDN6y3r2 X-Received: by 2002:a50:f199:: with SMTP id x25mr35326122edl.347.1600398686750; Thu, 17 Sep 2020 20:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600398686; cv=none; d=google.com; s=arc-20160816; b=ths2sDRJyIdLWyHusBcpKfJlP/cl8j8O/EJhDdwECAjDYW3u8cmvpRqJ4RzKj2H0zk j+OPb8IpNLtG1lSekcMbBq50WHFlJVhUT0MDR//hi50RutvsIp07ZOsHNK4Dvy0MKou7 daq1sCivvlvTCMa5FqGuX1lRBqtDtHWg6R0M1TJ4G6V1BdmYb7W/b2G3fEDNGnagttEQ bD3AaPgSlt3mYN89E0kZ8nRgihUhITHwML75R3s1URjYhq0d7sn8gvN/f6Tx3V+WgWV3 oDiGlU8bW7GCtHWQ04cAhXzXEX1ATLY7ny+hDRNb3e0nHIVGZTzrBH4bza7paXyJBXPW tReg== 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=RHX7H/yVPBzyEAjtCTOkvEci7yQjtv2Z311oX24fG9M=; b=EnxBmQlGxnLUlVl9sOD1E2V/jmZPAn34JBAPIRczGoTOxbJkFcSGHPBmRz7X9TT9Fc NW8st9iF3YRQbtOxMD/9CKd11y54S1rLvvmxBW2PyzmoikLMJ/x7czLBtDeB0ccmGv5S VEfJh9eARY/gheoloxd13TiY5CMO6Lpt8zQvXtOGVmfje+6jNIl5XJ5vndWgO+pnx/N+ p7D8XbZ/IU4CsPE+/2iAXaE9rps0ypdDDrVvzKxD2RfTAwR5tl5KNaFf75N4SOS71qoT ZZGAh64B3t/DA0bAbzdMvCBGOErMGnJxnngtkrLDoZnEf/7AKruuMJNRFO6RnLe1PGg/ m1OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LKLd1PBi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si1110985edq.151.2020.09.17.20.11.03; Thu, 17 Sep 2020 20:11:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LKLd1PBi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgIRDHB (ORCPT + 99 others); Thu, 17 Sep 2020 23:07:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:50884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbgIRCEB (ORCPT ); Thu, 17 Sep 2020 22:04:01 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28A1D23731; Fri, 18 Sep 2020 02:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600394634; bh=jmvDnSEOax1Tuvm1Xg+Dd7FydMJu2H7x39Iy9foNVzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LKLd1PBiIROmX5g9x1zh5Ti1AKvDEzbylllsoWWBw6mrwkhtwLplPWquMeG8wzx/R kcYa7AsZRuvsXrtQlj/gSdZdTMkZUtmY4yBnIzTbC8Y+aNxpc6610YbJ3dCSb35vpU g42vCI0ilsmU6QSNwafnvnkcWgVBsQFeANAvcbhE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Paolo Bonzini , Sasha Levin , kvm@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 134/330] KVM: x86: fix incorrect comparison in trace event Date: Thu, 17 Sep 2020 21:57:54 -0400 Message-Id: <20200918020110.2063155-134-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200918020110.2063155-1-sashal@kernel.org> References: <20200918020110.2063155-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paolo Bonzini [ Upstream commit 147f1a1fe5d7e6b01b8df4d0cbd6f9eaf6b6c73b ] The "u" field in the event has three states, -1/0/1. Using u8 however means that comparison with -1 will always fail, so change to signed char. Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- arch/x86/kvm/mmutrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmutrace.h b/arch/x86/kvm/mmutrace.h index 3c6522b84ff11..ffcd96fc02d0a 100644 --- a/arch/x86/kvm/mmutrace.h +++ b/arch/x86/kvm/mmutrace.h @@ -339,7 +339,7 @@ TRACE_EVENT( /* These depend on page entry type, so compute them now. */ __field(bool, r) __field(bool, x) - __field(u8, u) + __field(signed char, u) ), TP_fast_assign( -- 2.25.1