From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754777AbbDHWIN (ORCPT ); Wed, 8 Apr 2015 18:08:13 -0400 Received: from one.firstfloor.org ([193.170.194.197]:40045 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752973AbbDHWIK (ORCPT ); Wed, 8 Apr 2015 18:08:10 -0400 Date: Thu, 9 Apr 2015 00:08:08 +0200 From: Andi Kleen To: Peter Zijlstra Cc: mingo@kernel.org, rusty@rustcorp.com.au, mathieu.desnoyers@efficios.com, oleg@redhat.com, paulmck@linux.vnet.ibm.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, andi@firstfloor.org, rostedt@goodmis.org, tglx@linutronix.de Subject: Re: [PATCH v4 0/9] latched RB-trees and __module_address() Message-ID: <20150408220808.GS2366@two.firstfloor.org> References: <20150408164813.810874878@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150408164813.810874878@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the record I still think it's better to just look it up in the kernel page tables, which already maintain that information. This is a much simpler, much less risky patch. It works on all architectures that use page tables for the kernel, and have a X bit in them. The rest are likely obscure and won't have a lot of modules. My patch implementing this for x86 is here: http://lkml.iu.edu/hypermail/linux/kernel/1410.1/01879.html -Andi -- ak@linux.intel.com -- Speaking for myself only.