From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbcDRT5P (ORCPT ); Mon, 18 Apr 2016 15:57:15 -0400 Received: from mout.gmx.net ([212.227.15.15]:57004 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751363AbcDRT5M (ORCPT ); Mon, 18 Apr 2016 15:57:12 -0400 From: =?UTF-8?q?Manuel=20Sch=C3=B6lling?= 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 21:56:43 +0200 Message-Id: <1461009405-1738-1-git-send-email-manuel.schoelling@gmx.de> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:RpaiPvR6AqUYaNM4uRoqi6X8juXgXW72zS0KrKrRE9gsd0L7sCU kuz6TLDGt82OVCA8ZTIuHT1XqA/kxokPrVkDZ+BVrbLKvP4PkFhsE1CoOJHbdl6boep4y6M +YP9e0ZGe+ZllmRctDSoc5Q5eGhYaoDYJvc78VdzQOuSbxlDO9NXUnXTaxHC8A4TBtMhyW4 IcffGG5Ru+IvOz5T9Plkw== X-UI-Out-Filterresults: notjunk:1;V01:K0:CUgHPRe/ozQ=:TXJpgnNktKubaSnXwJoKnZ IAsEw+6Lgok4G9uWXJaSx8JIEeKXJmKmru247cnkQo9FrLbitIx/mB/C0dTt2V2cAIYk0fWIa 2JXcrXlV7EdApbDQY3HEll3iI8DopabOqDfkRQmZt14SE+Qynjys/KwRacd1SrpstLD84Ld9t +0bLtWw3KlyhiZLD6dfjIGJZXahgPbVY4RJ5S7HvXpSszXKmjBR/0UcZkXaXH3OxomhRLLnIr VWnbiUfo2BJIRZgp73E9vOSj0yQghOZHtUHlQJ6kDrBu9We/FwKATn9cZaeYbFePR4usuQKWf RHX12W/ZR4XKXvC+nyvZTwp96daPG/NrJeciJM5b712cyqmIsW64EoR/VEh41Mo5sBrM4bj2h oStcHNg7PIf6wBCvkZMbHv4ptoreY81rOpVSkzUprw3a9RLnLR2I3JNeHo8rjLy25QXlnOQwv PeBPv8fLZkgF+LM5xZOVMR8/5T9YlFq5vZ1P+qODrzP8OF6PqQiA0vpZcDtOo6NEXVP+dyfey gEcoRDSd5Zk0Z7BzWaMVWt3bGQn7Qtj4Di4Wsapn09lcqXbrbGHm1XXAL4MH5qvnAF+D+mMKt DW0yqOk3kwqxW3eqYpaBNmNkjkr1E3Anhk0a4UQmOlpSlrEJCpluDVylfTEFQ+q3rAZ0ONpqR cJRV18izEOfb1aK5pHZrcuMR9qGsSTcXDOfYAl+3hJ2qBQrt396bNDYxyhefdjc/822Zarmyl v7Ie08TIHs7BnQqR0SIFWdV7JDJpmeADsVS52TB2Z+pxSiRc+8CU32zDcVEK1b0srVYIX3G6I LIt4SZb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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