Received: by 10.223.164.202 with SMTP id h10csp1816781wrb; Fri, 24 Nov 2017 01:47:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMbZoEQfTWcJs550eH8R3yz39gkrEov2wk/jwrhS4AgpLo6lCMWEoM4inuujMSFtPV5kuOW0 X-Received: by 10.99.124.85 with SMTP id l21mr27258776pgn.85.1511516868683; Fri, 24 Nov 2017 01:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511516868; cv=none; d=google.com; s=arc-20160816; b=L85lI63MPau8+Nm4CpFd0FPpnlEB2a97XjgOP1zOao6yqMdVTmsuihHBlWiqdQWsQ4 J567JT6u66NasPVLpdMayD2tYYKPU0bk5eHgq47dp8j0JSFxO0K2twh8/PjKPAeoXlVq R4qbwV3QsK9qbtLXbHvSzohh5ro8HIS3Kz3Yw3ue2dHO5Ih+iPN+eVdnfVrLJ3v+M8Vf 7CgjCOOf6freMBKCx42ccqsA+IZ55ZvVXvpOdSwcbtepJIjhVBPLZIPXrkFiOGQBOzrT 7jWXV5JJ4Qtk8ctubZAhNT5ouSE87ZWDa3Cs/zecEOkMBjK6+U36cUKPJKV0mvHbsn0K SviA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=cJsx6+VJ+V7xfF5vHqcyqnRjpOCpBJqQmKkpHMnuqaU=; b=Pw/dr+SRpbhHwID3mBPsk6xOMjnDSmmHEzGRSTqLZTwUNaCNCfxVwCWt4GpWOIE1gg jmlfNWssfZGnnn/bczBPqDfwZ7q0Z9VDtLdfmgFqF9PlugoiX7oFOmpoDbI/RIPr0V8X anQRjhBsJFOlpgDjDFtE9X5Y+zOiU3CykcQL12aQzoxowdw9tHmHhvaBuucg3rCeBnaf b8af7xMkZrF/mEja/l6+GGenDUnAtGmtEu7VdTd9VNDWcs8UzmXM4DlELKmsxpsnTh4s oxaNa1UKRVVy5KVJoMFAG8eTHI77ZycdbQuyyqTwGajkRO6ecGhO4qGVdTENw3HThdXk 6pEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si17718217pgu.693.2017.11.24.01.47.37; Fri, 24 Nov 2017 01:47:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753452AbdKXJqn (ORCPT + 76 others); Fri, 24 Nov 2017 04:46:43 -0500 Received: from ozlabs.org ([103.22.144.67]:33547 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753428AbdKXJqi (ORCPT ); Fri, 24 Nov 2017 04:46:38 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 3yjrtj40HRz9rxl; Fri, 24 Nov 2017 20:46:37 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 252eb55816a6f69ef9464cad303cdb3326cdc61d In-Reply-To: <20171121142820.C744F6BB8F@po15668-vm-win7.idsi0.si.c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood , Meelis Roos , Balbir Singh From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX Message-Id: <3yjrtj40HRz9rxl@ozlabs.org> Date: Fri, 24 Nov 2017 20:46:37 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-11-21 at 14:28:20 UTC, Christophe Leroy wrote: > On powerpc32, patch_instruction() is called by apply_feature_fixups() > which is called from early_init() > > There is the following note in front of early_init(): > * Note that the kernel may be running at an address which is different > * from the address that it was linked at, so we must use RELOC/PTRRELOC > * to access static data (including strings). -- paulus > > Therefore, slab_is_available() cannot be called yet, and > text_poke_area must be addressed with PTRRELOC() > > Fixes: 37bc3e5fd764f ("powerpc/lib/code-patching: Use alternate map > for patch_instruction()") > Reported-by: Meelis Roos > Cc: Balbir Singh > Signed-off-by: Christophe Leroy Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/252eb55816a6f69ef9464cad303cdb cheers From 1584858378192629619@xxx Thu Nov 23 12:05:30 +0000 2017 X-GM-THRID: 1584668609894381968 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread