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=-8.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 9EB08C433F5 for ; Fri, 3 Sep 2021 09:45:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 87DC261074 for ; Fri, 3 Sep 2021 09:45:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348887AbhICJqK (ORCPT ); Fri, 3 Sep 2021 05:46:10 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23530 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348929AbhICJqH (ORCPT ); Fri, 3 Sep 2021 05:46:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630662307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/vGWzQqDyFpKhyOh2wIj+Kx4GVFTcdYuhnpoMJMGvEA=; b=HOaWSbxaoOijHJtzyyvY+jf0zlsY3B4I917IjTuiLRM2TgCzjyYxgRfYPaUAjmmYVxyN2t SHrxkmUMa68gsbF05Pu5Wev5/6y0Sav5qdsEMts0p5OAlztJYRrSajm5VAQYBQy8sRk4ss KSrJNiV8K3vbG9IrSrs5ylcwRgF43gY= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-238-h6sDA16PPVq-XQPtMRdu2g-1; Fri, 03 Sep 2021 05:45:06 -0400 X-MC-Unique: h6sDA16PPVq-XQPtMRdu2g-1 Received: by mail-wr1-f72.google.com with SMTP id r17-20020adfda510000b02901526f76d738so1400766wrl.0 for ; Fri, 03 Sep 2021 02:45:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=/vGWzQqDyFpKhyOh2wIj+Kx4GVFTcdYuhnpoMJMGvEA=; b=B+CSkh0MseckW9HyA9iU6CoB5my0aKX8fg5de5sBpKHpWtLSxci9t52PvLUTFgTYIO 50pSXytsQ64AmgG0uPhbivAIS7k1/xcLwPopUaogRj7wtTnwFZnLT4eMtvRVkEB0+FA8 aK/ljEAAnnoU4QlnFVLCsQ0FzXKpfndv2slxzu2u+CXafK00Afe/zYRnf6oXOodf5Vcd 1OEMQuqdhrUC5OpiX815+2+PBOdnqNFVyKSkAfvmJhwdNOgs1Qt74kmSrMQ6yaWIpzgv ohp/oMNMrivoKdbF3XFCGkLoBJO/fgZWO13ezGMWEoqFl4onX3V1Y5C8g7Gb10K85Fd0 7b4w== X-Gm-Message-State: AOAM532LNrfEdy+ZS7wsBG+DcSnMMusHutlzGWRdhN2NyQ6yX+tWbPnL 6fpWMA1byQ/gFj4eOhjw/j4DRSGu/ermi6KteEUaUggCCzaiz9QHf3PHQH0i3j0K1MbpXAO5wXW ftiuc6fygI3oFhTpUoxcF/IMl X-Received: by 2002:a5d:534c:: with SMTP id t12mr2933334wrv.219.1630662305220; Fri, 03 Sep 2021 02:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp4wZnhZMdzpuRGRjPbO89lNQeoyMiOxBHqBuOuGQAYy9XHQ2xW00EnKcwVfrZ6lqnhbC09Q== X-Received: by 2002:a5d:534c:: with SMTP id t12mr2933309wrv.219.1630662305062; Fri, 03 Sep 2021 02:45:05 -0700 (PDT) Received: from [192.168.3.132] (p4ff23e05.dip0.t-ipconnect.de. [79.242.62.5]) by smtp.gmail.com with ESMTPSA id v21sm4449203wra.92.2021.09.03.02.45.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Sep 2021 02:45:03 -0700 (PDT) Subject: Re: [PATCH v2 0/7] Remove in-tree usage of MAP_DENYWRITE To: linux-kernel@vger.kernel.org, Linus Torvalds Cc: Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Alexander Viro , Alexey Dobriyan , Steven Rostedt , Peter Zijlstra , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Kees Cook , "Eric W. Biederman" , Greg Ungerer , Geert Uytterhoeven , Mike Rapoport , Vlastimil Babka , Vincenzo Frascino , Chinwen Chang , Catalin Marinas , "Matthew Wilcox (Oracle)" , Huang Ying , Jann Horn , Feng Tang , Kevin Brodsky , Michael Ellerman , Shawn Anastasio , Steven Price , Nicholas Piggin , Christian Brauner , Jens Axboe , Gabriel Krisman Bertazi , Peter Xu , Suren Baghdasaryan , Shakeel Butt , Marco Elver , Daniel Jordan , Nicolas Viennot , Thomas Cedeno , Michal Hocko , Miklos Szeredi , Chengguang Xu , =?UTF-8?Q?Christian_K=c3=b6nig?= , Florian Weimer , David Laight , linux-unionfs@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org References: <20210816194840.42769-1-david@redhat.com> From: David Hildenbrand Organization: Red Hat Message-ID: <7c57a16b-8184-36a3-fcdc-5e751184827b@redhat.com> Date: Fri, 3 Sep 2021 11:45:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210816194840.42769-1-david@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.08.21 21:48, David Hildenbrand wrote: > This series removes all in-tree usage of MAP_DENYWRITE from the kernel > and removes VM_DENYWRITE. We stopped supporting MAP_DENYWRITE for > user space applications a while ago because of the chance for DoS. > The last renaming user is binfmt binary loading during exec and > legacy library loading via uselib(). > So, how do we want to continue with this? Pick it up for v5.15? Have it in -next for a while and eventually pick it up for v5.16? I think the "remove ETXTBSY completely" and "remove the sanity mapping check" thingies should be done on top. -- Thanks, David / dhildenb