Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754691AbaAUOV0 (ORCPT ); Tue, 21 Jan 2014 09:21:26 -0500 Received: from terminus.zytor.com ([198.137.202.10]:35991 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754361AbaAUOVX (ORCPT ); Tue, 21 Jan 2014 09:21:23 -0500 Message-ID: <52DE8231.6080408@zytor.com> Date: Tue, 21 Jan 2014 06:20:33 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Peter Zijlstra CC: Linus Torvalds , Arnaldo Carvalho de Melo , Cong Ding , "H. Peter Anvin" , Ingo Molnar , Ingo Molnar , Kees Cook , Linux Kernel Mailing List , Mathias Krause , Michael Davidson , Thomas Gleixner , Wei Yongjun Subject: Re: [GIT PULL] x86/kaslr for v3.14 References: <201401201647.s0KGlZdh004167@tazenda.hos.anvin.org> <52DDAD9D.9030504@zytor.com> <20140121090003.GO31570@twins.programming.kicks-ass.net> In-Reply-To: <20140121090003.GO31570@twins.programming.kicks-ass.net> X-Enigmail-Version: 1.6 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 On 01/21/2014 01:00 AM, Peter Zijlstra wrote: >> >> So this is presumably something that needs to be fixed in perf? > > Where do we learn about the offset from userspace? > Now this is tricky... if this offset is too easy to get it completely defeats kASLR. On the other hand, I presume that if we are exporting /proc/kcore we're not secure anyway. Kees, I assume that in "secure" mode perf annotations simply wouldn't work anyway? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/