Reply-To: kernel-hardening@lists.openwall.com Sender: Vasiliy Kulikov Date: Thu, 29 Sep 2011 21:25:31 +0400 From: Vasiliy Kulikov Message-ID: <20110929172531.GA19290@albatros> References: <20110927175453.GA3393@albatros> <20110927175642.GA3432@albatros> <20110927193810.GA5416@albatros> <20110929161848.GA16348@albatros> <23921.1317315452@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <23921.1317315452@turing-police.cc.vt.edu> Subject: Re: [kernel-hardening] Re: [PATCH 2/2] mm: restrict access to /proc/meminfo To: kernel-hardening@lists.openwall.com, Valdis.Kletnieks@vt.edu Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Matt Mackall , Andrew Morton , linux-mm@kvack.org, Kees Cook , Dave Hansen , Linus Torvalds , Alan Cox , linux-kernel@vger.kernel.org List-ID: On Thu, Sep 29, 2011 at 12:57 -0400, Valdis.Kletnieks@vt.edu wrote: > But now he has to fly blind for the next 30 because the numbers will disp= lay > exactly the same, and he can't correct for somebody else allocating one s= o he > needs to only allocate 29... You're still talking about "slabinfo", which is already restricted. And meminfo can be still learned with the same race window (ala seq lock): prepare_stuff(); fill_slabs(); // Here we know counters with KB granularity while (number_is_not_ok()) { prepare_stuff(); fill_slabs(); } do_exploit(); Thanks, --=20 Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments