From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756452AbZEaGex (ORCPT ); Sun, 31 May 2009 02:34:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752186AbZEaGep (ORCPT ); Sun, 31 May 2009 02:34:45 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:45804 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbZEaGeo (ORCPT ); Sun, 31 May 2009 02:34:44 -0400 Message-ID: <4A2223FE.3000309@cs.helsinki.fi> Date: Sun, 31 May 2009 09:30:22 +0300 From: Pekka Enberg User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: "Larry H." CC: Alan Cox , Rik van Riel , Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , linux-mm@kvack.org, Ingo Molnar , pageexec@freemail.hu, Linus Torvalds Subject: Re: [patch 0/5] Support for sanitization flag in low-level page allocator References: <20090530082048.GM29711@oblivion.subreption.com> <20090530173428.GA20013@elte.hu> <20090530180333.GH6535@oblivion.subreption.com> <20090530182113.GA25237@elte.hu> <20090530184534.GJ6535@oblivion.subreption.com> <20090530190828.GA31199@elte.hu> <4A21999E.5050606@redhat.com> <84144f020905301353y2f8c232na4c5f9dfb740eec4@mail.gmail.com> <20090530213311.GM6535@oblivion.subreption.com> <20090531001318.093e3665@lxorguk.ukuu.org.uk> <20090530231813.GP6535@oblivion.subreption.com> In-Reply-To: <20090530231813.GP6535@oblivion.subreption.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Larry H. wrote: > OK, I'm going to squeeze some time and provide patches that perform the > same my original page bit ones did, but using kzfree. Behold code like > in the tty buffer management, which uses the page allocator directly for > allocations greater than PAGE_SIZE in length. That needs special > treatment, and is exactly the reason I've proposed unconditional > sanitization since the original patches were rejected. You might want to also do the patch Alan suggested for the security conscious people. That is, do a memset() in every page free and wrap that under CONFIG_SECURITY_PARANOIA or something. There's no reason the kzfree() patches and that can't co-exist. Pekka