From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757487Ab2JJXo2 (ORCPT ); Wed, 10 Oct 2012 19:44:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38140 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754784Ab2JJXo1 (ORCPT ); Wed, 10 Oct 2012 19:44:27 -0400 Date: Wed, 10 Oct 2012 16:44:26 -0700 From: Andrew Morton To: Kees Cook Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Andi Kleen , PaX Team Subject: Re: [PATCH v2] fix stack memory content leak via UNAME26 Message-Id: <20121010164426.761987e0.akpm@linux-foundation.org> In-Reply-To: References: <20121009225401.GA10219@www.outflux.net> <20121010134646.4e9bba55.akpm@linux-foundation.org> <20121010154637.5b201ed7.akpm@linux-foundation.org> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Oct 2012 16:36:44 -0700 Kees Cook wrote: > > would suffice? > > > > Not a big deal I guess, but copying out stuff beyond the NUL is a bit odd. > > Sure, that looks good to me. I think I'll stick with your tested patch for now. Could you please add "clean that up" to your todo list?