From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759676Ab2DJXdh (ORCPT ); Tue, 10 Apr 2012 19:33:37 -0400 Received: from terminus.zytor.com ([198.137.202.10]:51870 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758Ab2DJXdf (ORCPT ); Tue, 10 Apr 2012 19:33:35 -0400 Message-ID: <4F84C2FA.8090703@zytor.com> Date: Tue, 10 Apr 2012 16:32:10 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Oleg Nesterov CC: Cyrill Gorcunov , Andrew Morton , "Eric W. Biederman" , Pavel Emelyanov , Andrey Vagin , KOSAKI Motohiro , Ingo Molnar , Thomas Gleixner , Glauber Costa , Andi Kleen , Tejun Heo , Matt Helsley , Pekka Enberg , Eric Dumazet , Vasiliy Kulikov , Alexey Dobriyan , Valdis.Kletnieks@vt.edu, Michal Marek , Frederic Weisbecker , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: + syscalls-x86-add-__nr_kcmp-syscall-v8.patch added to -mm tree References: <20120215143606.GA14037@redhat.com> <20120215160652.GA17680@redhat.com> <20120215162752.GF4533@moon> <20120409151027.7f3e0fa5.akpm@linux-foundation.org> <20120409222443.GW1625@moon> <4F836F3E.9090207@zytor.com> <20120410223758.GL24857@moon> <20120410230833.GA17620@redhat.com> In-Reply-To: <20120410230833.GA17620@redhat.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2012 04:08 PM, Oleg Nesterov wrote: > > OK, since this is discussed again... > > Can this comment can also explain why do we obfuscate the pointers > by type? I mean, I don't really understand why the one-dimensional > cookies[2] is "not enough" from security pov. > Because it's cheap. "Just enough" is not what you want to shoot for, ever, you want to get past the "just enough" point and then consider "what can I get for cheap at this point"? -hpa