linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Manuel Schölling" <manuel.schoelling@gmx.de>
To: gregkh@linuxfoundation.org
Cc: jslaby@suse.com, thomas@winischhofer.net, plagnioj@jcrosoft.com,
	tomi.valkeinen@ti.com, jejb@parisc-linux.org, deller@gmx.de,
	manuel.schoelling@gmx.de, sfr@canb.auug.org.au,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-fbdev@vger.kernel.org, linux-parisc@vger.kernel.org
Subject: [PATCH 0/2] Persistent scrollback buffers for all VGA consoles
Date: Mon, 18 Apr 2016 19:56:43 +0000	[thread overview]
Message-ID: <1461009405-1738-1-git-send-email-manuel.schoelling@gmx.de> (raw)

Another attempt to add persistent scrollback buffers for all VGA consoles,
so the buffer is not flushed when swithing back and forth between consoles.

Note that breaks tools like bash's clear_console and thus might have
security implications:
clear_console relies on this 'anti-feature' of the kernel to clear the buffer
when consoles are switched.

To offer a way for userland tools to flush the buffer my second patch adds
a ioctl call for that.
Also this feature is disabled by default and security implications are clearly
stated in its documentation.

Manuel Schölling (2):
  console: Add persistent scrollback buffers for all VGA consoles
  console: Add ioctl for flushing the scrollback buffer

 drivers/tty/vt/vt_ioctl.c               |  20 ++++
 drivers/usb/misc/sisusbvga/sisusb_con.c |   1 +
 drivers/video/console/Kconfig           |  22 +++-
 drivers/video/console/dummycon.c        |   1 +
 drivers/video/console/mdacon.c          |   6 +
 drivers/video/console/newport_con.c     |   1 +
 drivers/video/console/sticon.c          |   7 ++
 drivers/video/console/vgacon.c          | 195 ++++++++++++++++++++++----------
 include/linux/console.h                 |   1 +
 include/uapi/linux/vt.h                 |   1 +
 10 files changed, 194 insertions(+), 61 deletions(-)

-- 
2.1.4


             reply	other threads:[~2016-04-18 19:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18 19:56 Manuel Schölling [this message]
2016-04-18 19:56 ` [PATCH 0/2] Persistent scrollback buffers for all VGA consoles Manuel Schölling
2016-04-18 19:56   ` [PATCH 1/2] console: Add persistent " Manuel Schölling
2016-04-18 19:56   ` [PATCH 2/2] console: Add ioctl for flushing the scrollback buffer Manuel Schölling
2016-04-18 20:16     ` kbuild test robot
     [not found]   ` <1461009418-1795-1-git-send-email-manuel.schoelling-Mmb7MZpHnFY@public.gmane.org>
2016-04-18 20:38     ` [PATCH 0/2] Persistent scrollback buffers for all VGA consoles Jakub Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461009405-1738-1-git-send-email-manuel.schoelling@gmx.de \
    --to=manuel.schoelling@gmx.de \
    --cc=deller@gmx.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=jejb@parisc-linux.org \
    --cc=jslaby@suse.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=plagnioj@jcrosoft.com \
    --cc=sfr@canb.auug.org.au \
    --cc=thomas@winischhofer.net \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).