diff options
| author | Omar Sandoval <osandov@fb.com> | 2017-02-01 00:02:27 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-07-04 12:11:21 +0200 |
| commit | 5919ecbf07db04cf6cfcad7f2320c2d057b7728a (patch) | |
| tree | 8a7b6941accf8b80e172111c38ec4f1e12590406 /kernel | |
| parent | 50a9bff9fcdc9ddae8670d4484f60d8f6b470b30 (diff) | |
virtio-console: avoid DMA from stack
commit c4baad50297d84bde1a7ad45e50c73adae4a2192 upstream.
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).
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
