Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6240231imu; Mon, 21 Jan 2019 05:39:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN4kcGzObxgiILbj9w2nMCLlfZZTDQrPpIw3N049jXaaKdzBTPnkh0zsF7OOvQNBuq+bwE+j X-Received: by 2002:a63:4566:: with SMTP id u38mr28042012pgk.4.1548077994729; Mon, 21 Jan 2019 05:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548077994; cv=none; d=google.com; s=arc-20160816; b=pt/gnmd3Z2vI3ekcXdCVXb//DRczhs/LsyLzHykqKoipQIDOrJmUcH4FlTCpJNKX3X qGcdwyY+Dy/w/oX/11Hjs5VT6a72+gyDme6IUd/8hBrIiMV/lvLeXBaWO0OhuN/4RHw0 ejcIBiICOsPJVb5Nwd1YyErLkDr1VaKXaduC1iOTHFKU8SO409mroePbiR/zvSal5CjB H2JpeTzkiX2N2be+jPBx3g4OhvUq7tlpCqBGaiZ3RtXnWcvxjj8Ytsg44KDQcWNw3PkE AAQeHqFbZc4daz/AW6Zz1om6TO1wwlqoy/E4QmK2gpFQGJSQnv0P6nZrSnLjqYNOfKXc on7A== 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:dkim-signature; bh=VeapZkuR0cIdLclyZaeUTkTP3ZAnzxD9j4NtyBXQXWI=; b=TJrBiNHZ5TurMpl+j/RO97gCy/Oq82cU36rVDNfvmRDA+Ov7CddXT6BgAwBhCZP+la TJSxYGbgREOFJJE85bsQgiHG2TcbI0iupntI0Q+TRQ9mjV6PLsThPijOiopaS0AG9IAs omFqEyto0351aXkKCYRE+bqYQeb5UY64RcUarvF5ML3/Vae/dtFnJZ3GH8c9ubYdHCWt OPhQjl0YI9r8c8CiDapn5ez+HZVa6jFc/3OPQqo8MMpD5iAKtoMHwA8ELLKFOptZheFq nCkgvCN8lsn3O/qZB1qBidUbUldap2LecdQvUo/oEwVPN83cPRDpY26gfiZ2TSTv+Hb0 jY+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=pE1RYGpY; 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=pass (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 e3si12980732pfe.203.2019.01.21.05.39.25; Mon, 21 Jan 2019 05:39:54 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=pE1RYGpY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbfAUNg7 (ORCPT + 99 others); Mon, 21 Jan 2019 08:36:59 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:56854 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728982AbfAUNg6 (ORCPT ); Mon, 21 Jan 2019 08:36:58 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0LDSwbE023703; Mon, 21 Jan 2019 13:36:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=VeapZkuR0cIdLclyZaeUTkTP3ZAnzxD9j4NtyBXQXWI=; b=pE1RYGpYMJf6wr7Ley2UOIFQJsSLmk+bHdodQMPIlR7mLEQrEAq2tUyFN3j7hnftHiMt lJTY67R8iYsJrFO+Hcq8mvJTzi8SUJXoU53nhBym19AxWZ45P0T6KYXCalSDwZkTlq4y uSobxWtkY6wbLMMyBdnOQXRXwMmhuurR6DMOQP65po2VpfOOPlOvvQhkyZrBurNK0UJA 3X1k7fDmJnUQdWQi0KxEXU62tzVPrMi55EBViIbj7Wj4cdcrs7RBEihs1jGnShl2Y27Z wplnb9G8fXTeyfSOSSfLKNjYuS1BY0TrPOrwhaPyBBiG8FOwRnFYB9V/9yjjxTJlIZSu xw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2q3vhrep9q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 13:36:51 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0LDaoHE011808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 13:36:50 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0LDanmL022836; Mon, 21 Jan 2019 13:36:50 GMT Received: from kadam (/197.157.34.164) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Jan 2019 05:36:49 -0800 Date: Mon, 21 Jan 2019 16:36:28 +0300 From: Dan Carpenter To: Ajay Kaher Cc: linux-pci@vger.kernel.org, haiyangz@microsoft.com, linux-kernel@vger.kernel.org, Bjorn Helgaas , devel@linuxdriverproject.org Subject: Re: [PATCH 1/3] PCI: hv: Allocate physically contiguous hypercall params buffer Message-ID: <20190121133628.GI4482@kadam> References: <1547758038-5255-1-git-send-email-akaher@vmware.com> <1547758038-5255-2-git-send-email-akaher@vmware.com> <20190121131942.GH4482@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190121131942.GH4482@kadam> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9142 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=963 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901210107 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 04:19:42PM +0300, Dan Carpenter wrote: > On Fri, Jan 18, 2019 at 02:17:16AM +0530, Ajay Kaher wrote: > > hv_do_hypercall() assumes that we pass a segment from a physically > > contiguous buffer. A buffer allocated on the stack may not work if > > CONFIG_VMAP_STACK=y is set. > > > > Use kmalloc() to allocate this buffer. > > > > Since you're going to need to resend this anyway, can you add in the > commit message what this looks like from a user perspective? Presumably > it's an occasional crash? > Never mind. I didn't realize this was a two year old patch. regards, dan carpenter