From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755044AbbA2Rvr (ORCPT ); Thu, 29 Jan 2015 12:51:47 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:46162 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbbA2Rvp (ORCPT ); Thu, 29 Jan 2015 12:51:45 -0500 Message-ID: <54CA7324.7000000@arm.com> Date: Thu, 29 Jan 2015 17:51:32 +0000 From: Marc Zyngier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Christoffer Dall CC: Arnd Bergmann , Russell King , linux-kernel , KVM General , linux-arm-kernel Subject: Re: randconfig bug: ARM/KVM link error in hyp_idmap section References: <3919069.MpPCrczKD2@wuerfel> <1611315.VFEsrxkfBf@wuerfel> <54CA5954.8060506@arm.com> In-Reply-To: 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 29/01/15 17:40, Christoffer Dall wrote: > > > On Thu, Jan 29, 2015 at 5:01 PM, Marc Zyngier > wrote: > > Hi Arnd, > > On 29/01/15 15:53, Arnd Bergmann wrote: > > On Thursday 29 January 2015 16:23:42 Christoffer Dall wrote: > >> the changes look ok, but I don't understand why putting stuff in > rodata is > >> a good solution, is it simply by chance that the linker then > generates > >> fewer veneers there? I think we're only branching internally in > the hyp > >> idmap text page anyhow, so wondering why this appears in the > first place... > >> hmmm. > > > > The linker will not generate any veneers for .rodata because it > does not > > expect executable code in there. As I said, above, this is also > correct > > because it matches how we access that section (read-only, never > execute). > > Not sure about the later point. We only copy the code if it is not page > aligned, and use it in place otherwise. I guess we could change that, > but we'd need the same change for arm64. > > > I'd be ok with changing that... In which case I have no further objection. Thanks, M. -- Jazz is not dead. It just smells funny...