From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161234AbdAEJ5U (ORCPT ); Thu, 5 Jan 2017 04:57:20 -0500 Received: from verein.lst.de ([213.95.11.211]:33449 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762471AbdAEJ5O (ORCPT ); Thu, 5 Jan 2017 04:57:14 -0500 Date: Thu, 5 Jan 2017 10:57:06 +0100 From: Christoph Hellwig To: =?utf-8?B?546L6YeR5rWm?= Cc: Christoph Hellwig , Jens Axboe , mst@redhat.com, jasowang@redhat.com, linux-block@vger.kernel.org, virtualization@lists.linux-foundation.org, LKML Subject: Re: [PATCH] virtio_blk: avoid DMA to stack for the sense buffer Message-ID: <20170105095706.GA15566@lst.de> References: <1483507505-26797-1-git-send-email-hch@lst.de> <1483507505-26797-2-git-send-email-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2017 at 04:47:03PM +0100, 王金浦 wrote: > This sounds scary. > Could you share how to reproduce it, this should go into stable if > it's the case. Step 1: Build your kernel with CONFIG_VMAP_STACK=y Step 2: issue a SG_IO ioctl, e.g. sg_inq /dev/vda