From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934273AbbLWV3S (ORCPT ); Wed, 23 Dec 2015 16:29:18 -0500 Received: from muru.com ([72.249.23.125]:51365 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933751AbbLWV3Q (ORCPT ); Wed, 23 Dec 2015 16:29:16 -0500 Date: Wed, 23 Dec 2015 13:29:12 -0800 From: Tony Lindgren To: Laura Abbott Cc: Kees Cook , Russell King , Arnd Bergmann , Ard Biesheuvel , Catalin Marinas , Nicolas Pitre , Will Deacon , LKML , Linux-MM , kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, Laura Abbott Subject: Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA Message-ID: <20151223212911.GR2793@atomide.com> References: <20151202202725.GA794@www.outflux.net> <20151223195129.GP2793@atomide.com> <567B04AB.6010906@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <567B04AB.6010906@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Laura Abbott [151223 12:31]: > > Looks like a case similar to Geert's > > adr r7, kick_counter > wait_dll_lock_timed: > ldr r4, wait_dll_lock_counter > add r4, r4, #1 > str r4, [r7, #wait_dll_lock_counter - kick_counter] > ldr r4, sdrc_dlla_status > /* Wait 20uS for lock */ > mov r6, #8 > > > kick_counter and wait_dll_lock_counter are in the text section which is marked read only. > They need to be moved to the data section along with a few other variables from what I > can tell (maybe those are read only?). Thanks for looking, yeah so it seem. > I suspect this is going to be a common issue with suspend/resume code paths since those > are hand written assembly. Yes I suspect we have quite a few cases like this. Regards, Tony