Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp316479pxb; Fri, 3 Sep 2021 02:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjXK9XAgI8Ja0JZHhWABNS+A+oQi3AkwlIzTk+7xYrpcZZUUFuvtOnk7PdDy+qGs6z2NNC X-Received: by 2002:a17:906:265a:: with SMTP id i26mr3279914ejc.522.1630662535142; Fri, 03 Sep 2021 02:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630662535; cv=none; d=google.com; s=arc-20160816; b=LaKnwwSEMrPl5HNvzz0EHuC3pjBHXCZDiSMs2BDUt9kgp+pWEB4LcNaRR6C2SZL9bd zkDw4g1h5f+t8v7hm3AFcKut+OsY71KZvPIYjbv+pR2rMMGJSkNIrTom74gJO3haovaJ ahM0Y68KuS6VNACX+ZwuLFfjHuXpXeQGtkn7vp8p/ep/+yLNQzSFDX1WP4P8fqcSzl/v JxEQXNo79x9TZB0D9T6RlQhVO/J646R6k83dpRhPvHwCOTZwINBabP+aBQ8s8xdkQpcP ZeGCsRpkuBHiRk86Yy87cz0nqcyCClocGzVOGicJOds5mW/QjE6xYoIlPPAlNTNcDLqZ xvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=/vGWzQqDyFpKhyOh2wIj+Kx4GVFTcdYuhnpoMJMGvEA=; b=K04NMp7Efn0gh5rWw3dWphrI0qIia/A70Uy8TNV+micHkEiYItihOzDWRNKbc1OqRR FW42ykdGs6BuEPhCyzz/eWoXWFFMrCZGfri33a+Mjvff8HoH5QjcYHCQfHHBd1QlC0tx dxXfVZS0BWRj+3GUOb9qTHPTsPX9TTTyYrbOHcrziX1E64KRAyuPF97PNFJ6d9BMTUQS gXCEOq2uOYucHOIQUkYMyzY0tAMXWT62VRsAcc/bh9t8Ghvi/Nj6Gh1vf7HgI9n6ozur goFDCULjTwJCEnr9+N1HLThWU+zEtWEXdKPCgXy4HdpsNpAhYzpken2Qf+/ejT4Li08L ncHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOaWSbxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au25si5539535ejc.642.2021.09.03.02.48.26; Fri, 03 Sep 2021 02:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOaWSbxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348822AbhICJqJ (ORCPT + 99 others); Fri, 3 Sep 2021 05:46:09 -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-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