Received: by 10.223.164.202 with SMTP id h10csp132628wrb; Wed, 8 Nov 2017 13:20:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+SDbX3H6kqyzTPrLZFJ1KDL0gNVYvSsS72bazrjMoSSAJqT7KXtF1+p1McQWg5go7PhoXEa X-Received: by 10.101.73.136 with SMTP id r8mr1694713pgs.411.1510176006853; Wed, 08 Nov 2017 13:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510176006; cv=none; d=google.com; s=arc-20160816; b=eIS/wzMLn4UBdPHu0hmx9+9v3jKoQcCk5PuhRLzdYc3L0C48YfFiPAksLxwEt6bdSf +aWV/I4DkuriKZTqJaKpt7DUoGpRgkaD6gfwQ4WZp4GFQNpeysomwyGc4fCLxVH5v1lO wC488UaZ7gEKys8epQ42OGO98nTC1ynbUkKj6zth4af84VfyLYHTtE4UkNxab6m8iPFT qG06UMEovDdDvNcfvRvbLidQpbkXux46rrWHjQ6yhcD7sRA96XC9KpImqJdK4gL8GaRx CLKfq2ANkxGGDXfqvz07f9d4Gsk4MUJrBdxsO68Z7OcusrBWH7oH0XI0CYvRcvB14N5r Lb1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=c0VyFU6IXsun0UUDHhtG2TE5xRISerK8wRYZ/5T0Q8Y=; b=YSSI+eeQlrow4Z0O5qhQG9/C0Pzj1Vu+6XyCLjeWnbWIL7Or7uTK09zlt1yTbjzY+1 wR4jfnoYRuhF+kyG/tttoG+wQsWDCiCte29Sj53CbGJNRRc10nYv1idbCHbjbFqchAEb FJavE7m2Nzrp7pcgfV5rx06nzSknCG13XJOyKsQ2Bosz2Mu1/BB2LdUJydjvmDLwBVBd ZIFHVUvjfmLrCJphIQROW7FG3n/czqNhE1DIsCnBqCn4L0nYwGZBUbQOdZr85sVSMmHU 3Tv8zWkfX/tEkdAtKdTvZMP8mfWrdNXEDswMXWwW5ZD9mDj/j8l2hv2HlVgU8+8CsfVJ wa1w== 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si4759159pgc.544.2017.11.08.13.19.55; Wed, 08 Nov 2017 13:20:06 -0800 (PST) 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753346AbdKHVTL (ORCPT + 84 others); Wed, 8 Nov 2017 16:19:11 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:30994 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbdKHVTJ (ORCPT ); Wed, 8 Nov 2017 16:19:09 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA8LJ2w9023041 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Nov 2017 21:19:03 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA8LJ26X030844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Nov 2017 21:19:02 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vA8LJ1E1010849; Wed, 8 Nov 2017 21:19:01 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Nov 2017 13:19:01 -0800 Subject: Re: [PATCH] xen/pvcalls: fix unsigned less than zero error check To: Juergen Gross , Colin King , xen-devel@lists.xenproject.org References: <20171103084202.27790-1-colin.king@canonical.com> <2116793f-cd52-a99f-772e-5dcb768ad411@suse.com> Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org From: Boris Ostrovsky Message-ID: <81dba278-f38e-3043-c1f7-2a0f00ae07d7@oracle.com> Date: Wed, 8 Nov 2017 16:20:32 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <2116793f-cd52-a99f-772e-5dcb768ad411@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2017 05:01 AM, Juergen Gross wrote: > On 03/11/17 09:42, Colin King wrote: >> From: Colin Ian King >> >> The check on bedata->ref is never true because ref is an unsigned >> integer. Fix this by assigning signed int ret to the return of the >> call to gnttab_claim_grant_reference so the -ve return can be checked. >> >> Detected by CoverityScan, CID#1460358 ("Unsigned compared against 0") >> >> Fixes: 219681909913 ("xen/pvcalls: connect to the backend") >> Signed-off-by: Colin Ian King > Reviewed-by: Juergen Gross Applied to for-linus-4.15. -boris From 1583034918072649834@xxx Fri Nov 03 09:02:23 +0000 2017 X-GM-THRID: 1583033712795190059 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread