[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD9gYJ+w4YshNR_G5zHG2SNb9fAhrF9vMbF6=ee-kYbehfGMyw@mail.gmail.com>
Date: Thu, 5 Jan 2017 11:37:46 +0100
From: 王金浦 <jinpuwang@...il.com>
To: Christoph Hellwig <hch@....de>
Cc: Jens Axboe <axboe@...nel.dk>, mst@...hat.com, jasowang@...hat.com,
linux-block@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] virtio_blk: avoid DMA to stack for the sense buffer
2017-01-05 10:57 GMT+01:00 Christoph Hellwig <hch@....de>:
> 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
>
Thanks, so it's only relevant to kernel > 4.9, as CONFIG_VMAP_STACK
only introduced in 4.9 kernel.
Regards,
Jinpu
Powered by blists - more mailing lists