From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752442AbdCAUKs (ORCPT ); Wed, 1 Mar 2017 15:10:48 -0500 Received: from mail-pg0-f43.google.com ([74.125.83.43]:36830 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbdCAUKp (ORCPT ); Wed, 1 Mar 2017 15:10:45 -0500 Date: Wed, 1 Mar 2017 12:01:10 -0800 From: Omar Sandoval To: "Michael S. Tsirkin" , Amit Shah Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] virtio-console: avoid DMA from stack Message-ID: <20170301200110.GA24754@vader.dhcp.thefacebook.com> References: <075115ddd99246ffc4228a3e050ba68eb36c6a8c.1485935920.git.osandov@fb.com> <20170201134712.GA7935@amit-lp.rh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170201134712.GA7935@amit-lp.rh> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 01, 2017 at 07:17:12PM +0530, Amit Shah wrote: > On (Wed) 01 Feb 2017 [00:02:27], Omar Sandoval wrote: > > From: Omar Sandoval > > > > put_chars() stuffs the buffer it gets into an sg, but that buffer may be > > on the stack. This breaks with CONFIG_VMAP_STACK=y (for me, it > > manifested as printks getting turned into NUL bytes). > > Seems reasonable. I wonder since all implementations of hvc do a > memcpy, if we can abstract it - but that'll need some work. > > Reviewed-by: Amit Shah > > Michael, please add to the virtio queue. > > Amit Hi, Michael, I don't see this in Linus' master or in your git tree, is it going to go in for -rc1? Thanks.