Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp791992rwe; Thu, 1 Sep 2022 07:42:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5k8qifoQgzGiJ8uRyyb45bqDD+48964mJbdymGHgRoN3S9NoEcilIPmCuuyc7EW0VvTypf X-Received: by 2002:a63:4e44:0:b0:42b:1fff:72d1 with SMTP id o4-20020a634e44000000b0042b1fff72d1mr27091142pgl.432.1662043357648; Thu, 01 Sep 2022 07:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662043357; cv=none; d=google.com; s=arc-20160816; b=GYie0R1HNMD5cl6rQXF5ikVY/a4RnJcrzEOUpSA//fkjR8K28T8FSEvRfbpn/jhmoA yeDctGNoGPivL0APbFxEvufgVUJYT50i6LNM8JJZPP12dscyLqWifHtaEkuBWSRAsbPn O0NQCdxuVWIMAjYAGny7pruutOTh46L1jI8btOoxV5sIpGHytLhyMzhpEd5MEHIBox/0 LFRXck+7TkA209Zy9pjEH+iNTaXfCJ03VRe+QMzDKfmDQkig4AawC3I/VJAls3JC2RXp AEl1jQGZvfMwUDAfiAe4KPVVAyoaERX79TVY1A8zCXe6ErW317ZbOBdP/+huqFgKvske +nWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rHXw5sVv5WMfWsxEPoXEF6n0ilTq5kDU1NXGKIkZMYI=; b=cpbELgMEjnX1IKL8W+I84Jf/2foX5miEE6bbF+Wc115nY7bQb5qce2HU/qBSIbZO1W EKmGkcTPgw8bnIs/YK3DEpQYidnHpDqUe4Y60bQJDExl8wHIfu7QQAiL39/12LRt96mq M00ijWOe+/ONH5fupqiMMh4grpJ92+8vEmlznOtI2jeYVAkz77F8HrRjCZyliV840OTX 2vtd+8Lt3RRGHbl2RoUjYz+0u04xuptcFvT4iBsFQBPobCNfexhCaUcwz7oevfs29Oil XC2V2ma6Z21K0ycxzziN9Y/MY7Fs+kcg5Y6aPxQbUqIoEcd4RYNRGMBBa8x+dT70pwK1 P5kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H+ANCUg3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020aa79497000000b0050cfb4ff72dsi17896585pfk.52.2022.09.01.07.42.23; Thu, 01 Sep 2022 07:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H+ANCUg3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233671AbiIANti (ORCPT + 99 others); Thu, 1 Sep 2022 09:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiIANth (ORCPT ); Thu, 1 Sep 2022 09:49:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335C72A1 for ; Thu, 1 Sep 2022 06:49:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BC8E8B826E2 for ; Thu, 1 Sep 2022 13:49:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51EA4C43142 for ; Thu, 1 Sep 2022 13:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662040172; bh=rHXw5sVv5WMfWsxEPoXEF6n0ilTq5kDU1NXGKIkZMYI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=H+ANCUg3VI+BtD6d9jMWiBBX7j/T7aVCxWhO/u7TShBxut0FsI9iPoDOy8RPfwNwE x5CzL7kGZ6k+WFJ3rd/qcJTBvCfuYAyKaY/q4WRuRJs+dpFEvDsxH/MeW/p7mpE4++ +wYgSBAZ5a29LsnYzbRYJBsvjw7pJ076w0BAfYdBVjM2WpEDIzSVe0J9prenOveVGW zHTgZYciIyeEW57IshXjfbtmlvwo27ZHSqdAMjjvamEQM81otVeDFwgPJBS6Mjcm/9 oVXlBN/wXN6+PBPB6Wq6RrliLJjUusTBdQgAdiY3u0LKpqfiBHG3GDrsPXdybecuV0 TKTNDD/wDXLNA== Received: by mail-vk1-f176.google.com with SMTP id x66so8270917vkb.8 for ; Thu, 01 Sep 2022 06:49:32 -0700 (PDT) X-Gm-Message-State: ACgBeo2mSwm7J6cg9T6pNhIFCGphWKRaArPdrDpwOQvOsNI53RitiSYr VsHXk49Splqo5gRR7owjavi2F8x8j7PdEVPZQw== X-Received: by 2002:a1f:e9c3:0:b0:394:4cff:bde5 with SMTP id g186-20020a1fe9c3000000b003944cffbde5mr7140462vkh.26.1662040171183; Thu, 01 Sep 2022 06:49:31 -0700 (PDT) MIME-Version: 1.0 References: <20220316023356.120595-1-victor@allwinnertech.com> <9a425a51-9460-6c4d-e331-5cd5873f8a43@samsung.com> <6c14e174-cdb6-c1fc-58cc-d579111d2328@allwinnertech.com> In-Reply-To: From: Rob Herring Date: Thu, 1 Sep 2022 08:49:19 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: mmu: fix access to illegal address when using earlycon & memblock=debug To: Victor Hassan Cc: Marek Szyprowski , Russell King , Russell King , Linus Walleij , yanfei.xu@windriver.com, Ard Biesheuvel , Thomas Gleixner , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Arnd Bergmann , linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 1, 2022 at 8:21 AM Rob Herring wrote: > > On Thu, Sep 1, 2022 at 7:54 AM Victor Hassan wrote: > > > > > > > > On 2022/8/31 20:37, Victor Hassan wrote: > > > On 8/31/2022 7:52 PM, Marek Szyprowski wrote: > > >> Hi Victor, > > >> > > >> On 16.03.2022 03:33, Victor Hassan wrote: > > >>> earlycon uses fixmap to create a memory map, > > >>> So we need to close earlycon before closing fixmap, > > >>> otherwise printk will access illegal addresses. > > How? Due to recent changes in how printk and the consoles work or just > because create_mapping() can print? In the latter case, the only > variable input is the phys address. I think most if not all prints > cannot occur. Ah, I missed the memblock debug part on the subject... Rob