Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1590610 > unrolled thread

Re: [PATCH] virtio-console: avoid DMA from stack

Started byOmar Sandoval <osandov@osandov.com>
First post2017-03-01 21:20 +0100
Last post2017-03-01 22:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] virtio-console: avoid DMA from stack Omar Sandoval <osandov@osandov.com> - 2017-03-01 21:20 +0100
    Re: [PATCH] virtio-console: avoid DMA from stack "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-01 22:40 +0100

#1590610 — Re: [PATCH] virtio-console: avoid DMA from stack

FromOmar Sandoval <osandov@osandov.com>
Date2017-03-01 21:20 +0100
SubjectRe: [PATCH] virtio-console: avoid DMA from stack
Message-ID<tgiT7-89b-1@gated-at.bofh.it>
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 <osandov@fb.com>
> > 
> > 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 <amit.shah@redhat.com>
> 
> 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.

[toc] | [next] | [standalone]


#1590637

From"Michael S. Tsirkin" <mst@redhat.com>
Date2017-03-01 22:40 +0100
Message-ID<tgk8y-ze-11@gated-at.bofh.it>
In reply to#1590610
On Wed, Mar 01, 2017 at 12:01:10PM -0800, Omar Sandoval wrote:
> 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 <osandov@fb.com>
> > > 
> > > 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 <amit.shah@redhat.com>
> > 
> > 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.

Yes.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web