From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Date: Thu, 13 Mar 2014 03:52:35 +0000 Subject: Re: [PATCH v2 2/2] kallsyms: handle special absolute symbols Message-Id: <87lhwevk98.fsf@rustcorp.com.au> List-Id: References: <1394240425-11647-1-git-send-email-keescook@chromium.org> <1394240425-11647-3-git-send-email-keescook@chromium.org> <87y50fuei5.fsf@rustcorp.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Kees Cook Cc: Linus Torvalds , Andrew Morton , Andrew Honig , Michal Marek , "x86@kernel.org" , Tejun Heo , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, LKML Kees Cook writes: > Why not just do this with 0-base-address detection like my v2? That > would mean we don't need to remember to add this flag in the future to > imagined new architectures that might want this 0-based per_cpu > feature. Because future architectures will get this right and emit absolute symbols. I hope! I'm swamped at the moment, but am hoping to investigate that for x86-64. This is a stop-gap. Cheers, Rusty. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbaCMEik (ORCPT ); Thu, 13 Mar 2014 00:38:40 -0400 Received: from ozlabs.org ([203.10.76.45]:44388 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750754AbaCMEii (ORCPT ); Thu, 13 Mar 2014 00:38:38 -0400 From: Rusty Russell To: Kees Cook Cc: Linus Torvalds , Andrew Morton , Andrew Honig , Michal Marek , "x86\@kernel.org" , Tejun Heo , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, LKML Subject: Re: [PATCH v2 2/2] kallsyms: handle special absolute symbols In-Reply-To: References: <1394240425-11647-1-git-send-email-keescook@chromium.org> <1394240425-11647-3-git-send-email-keescook@chromium.org> <87y50fuei5.fsf@rustcorp.com.au> User-Agent: Notmuch/0.15.2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Thu, 13 Mar 2014 14:10:35 +1030 Message-ID: <87lhwevk98.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees Cook writes: > Why not just do this with 0-base-address detection like my v2? That > would mean we don't need to remember to add this flag in the future to > imagined new architectures that might want this 0-based per_cpu > feature. Because future architectures will get this right and emit absolute symbols. I hope! I'm swamped at the moment, but am hoping to investigate that for x86-64. This is a stop-gap. Cheers, Rusty.