From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 995F4C43463 for ; Sat, 19 Sep 2020 19:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B2D32158C for ; Sat, 19 Sep 2020 19:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600542802; bh=QMbBSSWB+rPWNJ7EMIocj0WPzEM7MxHjK6NIAgERVjA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=pSPG0tc1RyI2bL1Dyt7Jc6ltN+RS4qROTok1YTcNFq6AlbBPWPRMDsBDvhgp5AvdW PDemO5PsYpCSlWGFNUBK8OGrpfvBRwEcrUlxCHyGBooWgjCJ8p3Zy6pM9YwtW6lrlI 6zBRUHnhZ3bDk2FHV6JOBBDh5pJxiRtB2X/H0drM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726609AbgISTNV (ORCPT ); Sat, 19 Sep 2020 15:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbgISTNV (ORCPT ); Sat, 19 Sep 2020 15:13:21 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C4AC0613CF for ; Sat, 19 Sep 2020 12:13:20 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id x69so9752265lff.3 for ; Sat, 19 Sep 2020 12:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=10sVGN8u2TwfCpnAq/jp4iLrESxL2PzGGvVZbBHI37U=; b=SNvzyY/D28nrQ/9in1B6Dzi002SQEpeIWQ8e1hzmI9hVRDCDcHjzeJE8AlbYJKjj8B G7NnpY7h0luEeygyoDxqLDk2AWGbQCdyloo3Y9XIxWLvxZdXjZ/NeK2kaD/mL0YWoior T+0jhpZUK76WT2Sz7na41qAPiBNog2OUpnoIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=10sVGN8u2TwfCpnAq/jp4iLrESxL2PzGGvVZbBHI37U=; b=LbAhWNyv8y4AQYKPMnppBQUWfBuISbf2IfwOpEHfb062Tadq44AqhkTOlhc4X3olAE 2aXajRV2IcBe2Z/lfwhutnZk3CRvBD2l3VFh3H13dtzjQk2hKraqlXEsHB+D9xWzO34h cWIdfVN29EMbhLt/O/mHEkekSolS9jrC5Phk2+13jsYlaAd/4yTmE+lYynY4L3MBHwHd ntm+95F30PmSfePnzNXKMZyPagjI5AVL99/rpjYPV3296XWyBTTo7qNxAczj+VfoFZbL i7hLHea7shuovyAZ94/plDuBwEgRTt24WL8LozmM8/9XGPYtJd8tli9RhbEJN33jVV7K 25mA== X-Gm-Message-State: AOAM531Ik8y9qAyvL91uI1lLJ0myFRy0egz2FnwYjYET+A8f6znCMU32 D1m3gvac7WGJCdfErKaZs2f3P3mtzpzxhQ== X-Google-Smtp-Source: ABdhPJxfgEqZ5JSF4LKdIt3y0EA5nOmWtrfMRTLHzkanbvnlgVEmHkUxs+4r3WDfGF5WTkU27Llu4w== X-Received: by 2002:ac2:43ce:: with SMTP id u14mr12402296lfl.508.1600542798647; Sat, 19 Sep 2020 12:13:18 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id m10sm1420773lfo.184.2020.09.19.12.13.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Sep 2020 12:13:18 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id m5so9744068lfp.7 for ; Sat, 19 Sep 2020 12:13:17 -0700 (PDT) X-Received: by 2002:a19:8907:: with SMTP id l7mr12464193lfd.105.1600542797553; Sat, 19 Sep 2020 12:13:17 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <20200919173906.GQ32101@casper.infradead.org> In-Reply-To: <20200919173906.GQ32101@casper.infradead.org> From: Linus Torvalds Date: Sat, 19 Sep 2020 12:13:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Matthew Wilcox Cc: Thomas Gleixner , LKML , linux-arch , Paul McKenney , "the arch/x86 maintainers" , Sebastian Andrzej Siewior , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Andrew Morton , Linux-MM , Russell King , Linux ARM , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx , dri-devel , Ard Biesheuvel , Herbert Xu , Vineet Gupta , "open list:SYNOPSYS ARC ARCHITECTURE" , Arnd Bergmann , Guo Ren , linux-csky@vger.kernel.org, Michal Simek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Nick Hu , Greentime Hu , Vincent Chen , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , "David S. Miller" , linux-sparc Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 19, 2020 at 10:39 AM Matthew Wilcox wrote: > > My concern with that is people might use kmap() and then pass the address > to a different task. So we need to audit the current users of kmap() > and convert any that do that into using vmap() instead. Ahh. Yes, I guess they might do that. It sounds strange, but not entirely crazy - I could imagine some "PIO thread" that does IO to a page that has been set up by somebody else using kmap(). Or similar. Linus