Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6223730imu; Mon, 21 Jan 2019 05:22:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN69reENmXD+ftiBPc264/qgbv32yCbCWAxjcpceaz4wvD+mFJ+FaCWuCAqN8yz9pmolPQDm X-Received: by 2002:a63:b4c:: with SMTP id a12mr28613908pgl.131.1548076960054; Mon, 21 Jan 2019 05:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548076960; cv=none; d=google.com; s=arc-20160816; b=oBd4YF7bgKKXpFiB5N/7bwuanr0qRLZIWhEcZu1hAKa2JQvho6/+Mzyw83Di1BLtq7 JKrIrnjXFPrL9YT6nfYjroi2TZgfT3LKPhkWEBy2AlgyvqSm5Qvu8ThqnPwog3T9MRwi RyR5Fx8XLa3sLwdMV6l26tlKue2vHCrahe+kNSoMSl3uW0Q0fc3y3UcTLTlrglYvSnyF AIvuqNfD+fcD063JfZ05Z7OQx1pZjcEg0Jgo+dBhQsk/f92h6kdsCYwKRNAKtgyJsBkP 5SoI7vj/4CVkpcJsX+cIwbnG6fDzmlMN2Slps6ZD5EV5PkZh0N2PnGi2/aZqNkUVL9eT f7cA== 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=6o0yPlT1lwAkGjTg/hifyvWqMRhV8PQmtYQu5qXlFt0=; b=N3SfuCvegMJmfh/1Cm4f83uu41oN/zVu9KwJj2qYZyDnBY0DLXAmCn2ZqLqycJ7N7A oKztFJG9+LFBNSPR4mpaMRLdr3BdN29grDSdJWX7HstlY7lRnPW96qgj+ngsVcg1uuI0 UeDW7ES7KKW87jP60V9sislZNWXV6J7Oj1K2s/o7A/VkoVHcSA8EL8vW20y7lWGeCIxV iGy0ceXZbIptnNGALJjsqtNPddgv8u8rVdAuBnTnHme/3oy4Ytjd5L9ooX65s8vGGIuL IMeHTofBPjxhK7GinzSlAMu6WXkgtq7LYQep3+9HWY3Gt0HWfTIqsJl7I5VEkkT/kBA8 gOxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="rbdXZ/Km"; 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 f61si12987601plb.51.2019.01.21.05.22.21; Mon, 21 Jan 2019 05:22:40 -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="rbdXZ/Km"; 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 S1728822AbfAUNUO (ORCPT + 99 others); Mon, 21 Jan 2019 08:20:14 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:50316 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728314AbfAUNUO (ORCPT ); Mon, 21 Jan 2019 08:20:14 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0LDJOqj196465; Mon, 21 Jan 2019 13:20:07 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=6o0yPlT1lwAkGjTg/hifyvWqMRhV8PQmtYQu5qXlFt0=; b=rbdXZ/Km5btZOxNA/CClRvC0wTDYbgYlZeOjwDTOPwBZo7tuQu3A0BJE5fesfRbVzEji FVMfXN++62S2i4ZEUaGfLuyLBZNLRYG0hq9CJ6q6i9YDIWQTFTi7emiBOErElhmurhYe OPxFnitYtEk/OZsfJpc5N+lXf6D31fOZkSJIGuiAul7yOnyTxFg9jF8oZhTPrrpC8/tP IqDpX2EaL1o66RgqztOqSy9O5R/I5Q7et7o3kt3naFGcn7/6vIZi2169+/mqCFH/QMGA 9yfHtltReBNX9u6WIezEXnXvhR4xP+GsgOOo0Eiu91EhmUIgbHrsf4u1rXeD4itVnHkv ow== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2q3sde6w3h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 13:20:06 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0LDK6qw030082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 13:20:06 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0LDK5cD022094; Mon, 21 Jan 2019 13:20:05 GMT Received: from kadam (/197.157.0.41) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Jan 2019 05:20:04 -0800 Date: Mon, 21 Jan 2019 16:19:42 +0300 From: Dan Carpenter To: Ajay Kaher Cc: kys@microsoft.com, haiyangz@microsoft.com, linux-pci@vger.kernel.org, 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: <20190121131942.GH4482@kadam> References: <1547758038-5255-1-git-send-email-akaher@vmware.com> <1547758038-5255-2-git-send-email-akaher@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547758038-5255-2-git-send-email-akaher@vmware.com> 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=989 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901210105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? regards, dan carpenter