From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933532AbaJVWtw (ORCPT ); Wed, 22 Oct 2014 18:49:52 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:58356 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932743AbaJVWtv (ORCPT ); Wed, 22 Oct 2014 18:49:51 -0400 Date: Wed, 22 Oct 2014 15:49:48 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Kees Cook cc: linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Rik van Riel , Aaron Tomlin , Dario Faggioli , Andi Kleen , Peter Zijlstra , Jens Axboe , "Paul E. McKenney" Subject: Re: [PATCH] sysctl: terminate strings also on \r In-Reply-To: <20141021202137.GA20114@www.outflux.net> Message-ID: References: <20141021202137.GA20114@www.outflux.net> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Oct 2014, Kees Cook wrote: > From: Paul Wise > > This partially mitigates a common strategy used by attackers for hiding > the full contents of strings in procfs from naive sysadmins who use cat, > more or sysctl to inspect the contents of strings in procfs. > > References: http://www.jakoblell.com/blog/2014/05/07/hacking-contest-hiding-stuff-from-the-terminal/ > Signed-off-by: Paul Wise > Signed-off-by: Kees Cook Acked-by: David Rientjes