From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757203Ab2ARJUT (ORCPT ); Wed, 18 Jan 2012 04:20:19 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:46423 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757024Ab2ARJUQ (ORCPT ); Wed, 18 Jan 2012 04:20:16 -0500 Message-ID: <4F168E93.5010000@parallels.com> Date: Wed, 18 Jan 2012 13:19:15 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: KOSAKI Motohiro CC: Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Alexey Dobriyan , LKML , Andrey Vagin , Ingo Molnar , Thomas Gleixner , Glauber Costa , Andi Kleen , Tejun Heo , Matt Helsley , Pekka Enberg , Eric Dumazet , Vasiliy Kulikov , Andrew Morton , "Valdis.Kletnieks@vt.edu" Subject: Re: [RFC] syscalls, x86: Add __NR_kcmp syscall References: <20120117142759.GE16213@moon> <20120117144452.GG16213@moon> <4F15C249.3000602@zytor.com> <20120118080103.GA2889@moon> <4F168CF3.5090400@gmail.com> In-Reply-To: <4F168CF3.5090400@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I think Eric only said gt/lt compare is useful. We don't need to expose bare > pointer order. example, kcmp(rotate(ptr, per-task-random-value)) is enough > hide the critical information. I think. The per-task might break thinks up in case (tsk1->file != tsk2->file) && (rotate(tsk1->file, tsk1->random) == rotate(tsk2->file, tsk2->rotate)) but I agree, that the overall idea of comparing not bare pointers, but those poisoned with some global value can address the Peter's concerns about rootkits. Thanks, Pavel