From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: [PATCH 0/2] tty: erase buffers when the kernel is done with it. Date: Tue, 2 Oct 2018 10:17:06 -0700 Message-ID: <20181002171708.1311-1-gregkh@linuxfoundation.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-serial@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jslaby@suse.com, aszlig@nix.build, gmazyland@gmail.com, torvalds@linux-foundation.org, w@1wt.eu, Greg Kroah-Hartman List-Id: linux-serial@vger.kernel.org azlig and Milan Broz reported that when the tty layer is done with a buffer, the data can hang around in it for a very long time. That sometimes can "leak" to userspace under some conditions. Because of this, just zero out the data after the tty layer is finished with it, for buffers that we "think" should be zeroed out. Greg Kroah-Hartman (1): tty: wipe buffer if not echoing data Linus Torvalds (1): tty: wipe buffer. drivers/tty/n_tty.c | 20 +++++++++++++++++--- drivers/tty/tty_buffer.c | 6 +++++- 2 files changed, 22 insertions(+), 4 deletions(-) -- 2.19.0