Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752896AbcDRT5g (ORCPT ); Mon, 18 Apr 2016 15:57:36 -0400 Received: from mout.gmx.net ([212.227.17.22]:49940 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbcDRT5b (ORCPT ); Mon, 18 Apr 2016 15:57:31 -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:56 +0200 Message-Id: <1461009418-1795-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:yUUR3AMC84b06BCtr6HlqyEOYs6otNSjOjIefQqxfnMnpUdMpQp BXfBMKvC6K6mkEqLquBtOF9GaCd5rN7vQjLK4lrthDBs8XPonbhVUgZlCgPT3CHUo1jldzy P3Z7/ZwJaGTkjm+V/rWwXt3bvsO5eSPTY6w+sfQNKSFlrT4iadddbzQ+SqDyTnk51e1wZco twS3HXCk7B0WoLNOAJIbA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4cmJbteS+FU=:ocsAIhWmfMnCyX162qEn+e g+FgenoujoyZxZAq0gl9d9imS2YnaB8sVfULiFT4eWcqB9Lggcf7dptmm1eKsk/sUnt3m9olF xYO5e9HCvBMLTHOCsyrs5g6Cq+tfuce3GARRBKcjp0B0K6xBjykWtBzcdFayEgzVgI0GfWlGy 5sI+xYrAo64djJ5MdD93EMbTze0x9jeSJhgVMIYzdFyQh5pk5WbGIyINPHRPMvK2VV3OEIz6E 1uQGkoDQ/w09fG5kqf1PgUBbAbGOGGeULfSMexAo9BajZ4xw5Iv9pNP8rb1koooY3HsRTY1FC pAb2PVrzMTx7r62cilvG9u/df4xx7Ti90fDgue75oU9F6nb6fEvEpGa04aPYGwqACpVc4N6/6 syNJXtZpZtphkGnXlxwJghm5QKH41isS+LcXxVa105OE/HnuXQjI9hK9V4w9+1jXAAFeMMdqc mCXTzbBsN7DknFNA/9hJHNC3eayhsHiAMNbRQI8mayDOa2q5FsO0ZI1mZsmy/uyVtdv9TLOoQ ftSm1iZcF2mu8bTuofKPjotPOX/268J5BpD79zCP5nUXQfNgion35q0GVsLRN4Np9G9JwBWYK dYn5hn3c0dzM0sYkztUy3yXrvX+x8YfqpRDBswiTPvfRyuuZP9SM0QUS73zX5Z2gsOa8S1FAl QhpcryO5lCN/bqrA2ZdBgSCaPWvNo47TX7t4lI7LH5/9Fg//zDTkCrUOH+SSMO4hxF/vmggi0 WyMVQpLe34eyaFld2ghm271e4Yzm1PapM8xoh7mFrLcE60rYJDH2v4+YOZIBMBq/pkSMFzX+H w982tV9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 31 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