Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B34AC4332F for ; Wed, 22 Dec 2021 02:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238686AbhLVCbY (ORCPT ); Tue, 21 Dec 2021 21:31:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhLVCbX (ORCPT ); Tue, 21 Dec 2021 21:31:23 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB393C061574 for ; Tue, 21 Dec 2021 18:31:22 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id t23so1734407oiw.3 for ; Tue, 21 Dec 2021 18:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WVVTT3vmCo0q+zp9wFYRPgJeYzCdgYYZVxCTfsBXpCo=; b=mKsAMnpFxty/J3lsRPATdg9Gs0N+0Z+X2GBXtJSBuv5AtGMYxzkOAILiIvTERYbCez pR66vqnBgCquTFG1zBdeZTNQrJjVAlqtkBYUOlLsXnmuyBJCfirNpdTy92WUoJBD5pwZ OAUp1QhNYTo2E81BaaQoSagyvrf50+EhZawqS9QylSDjPy+3tMpH2nOKqN8MXOBHAlHe 2s2RzTamSMr/f51jBQh1gq6V7D/3JOGYJD4b7Gh4zgqqO11mO+a22GJEDNG+NyZZLhBO 9anAtrucLwlGE5/9E4rUVk5l0lgrIfMJN+hqeBRIJnYCogm4uY5D2faHxEWOaEv5M9kp AiBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WVVTT3vmCo0q+zp9wFYRPgJeYzCdgYYZVxCTfsBXpCo=; b=DHav9J0IF2OPC8J/1dE8EXda6UFYnIxUAY6oWHsnHrtEGAltXbxvcZL6KzyoLDPk1g FujC1LeUJL3b+/q67EAdsQ0n8BSnDqRVEAKjP2VvDRoiY5Kphb1At5fexn/WHNEeZKVC MYZ7Fu2R9/ED0SqR0Hkf2l/ZiCqfRiGhNE+ARoOHT7WpM1VHOUM4rDVuy4gPVc2xDbst JIlhAu2B0Auen5jKeuxqhywyaP/BH+oEDDh+TYJwTTIo+EMxYIYY9aMCU+yKxBKGgwj9 Cm7bbfCwLyOoVoCbXb56CxaH6mMGUbUJUBYk+WBVoF1/KFy1gUag3Szz4SQEh4Vw+A6Z UKEg== X-Gm-Message-State: AOAM532lgH7Ct7SWc/pKioxADHIjHHPuVqL06XRpNTsiBYxv16TIPRKu O/pohvfxo7tL45a3wZMgtMQ9umtdgDDagL8of2agwQ== X-Google-Smtp-Source: ABdhPJyQw6pAlcKRGCxrInfNKU8CpUScnbM1HMPt/NrRC5sZMLlmMoxRq9pY61m6usNkXlYoPEcqNzn8/ggSyYEYD0U= X-Received: by 2002:aca:5a87:: with SMTP id o129mr754536oib.114.1640140281901; Tue, 21 Dec 2021 18:31:21 -0800 (PST) MIME-Version: 1.0 References: <20211218085843.212497-1-cuigaosheng1@huawei.com> In-Reply-To: From: Linus Walleij Date: Wed, 22 Dec 2021 03:31:10 +0100 Message-ID: Subject: Re: [PATCH -next 0/3] replace open coded VA->PA calculation To: Arnd Bergmann Cc: cuigaosheng , Russell King - ARM Linux , Krzysztof Kozlowski , Andrew Lunn , Gregory CLEMENT , Sebastian Hesselbarth , Viresh Kumar , Shiraz Hashim , SoC Team , Ard Biesheuvel , Linux ARM , "moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES" , Linux Kernel Mailing List , gongruiqi1@huawei.com, wangweiyang2@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 21, 2021 at 10:16 AM Arnd Bergmann wrote: > I think for CPUs that can use LPAE, we want to eventually move to the 4G:4G > memory model, which in turn depends on having the kernel in vmalloc space, as > implemented by Linus Walleij in > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/log/?h=kernel-in-vmalloc-v5.14-rc1 Yeah I'm still working on this series. The 4/4 split works pretty well, but it breaks KASan and I was in the process of fixing that when I left for parental leave. The reason it breaks would be related to KASan not expecting executable code in the vmalloc area, and since the shadowing algorithm is a simple pointer offset, and since we go to lengths to chisel shadow memory out of lowmem at a fixed offset from TEXT_OFFSET, we have a problem. The patch "KASAN horror" shows what I am trying to do to fix it, it's "just" some hard work missing. Yours, Linus Walleij