Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1107700pxb; Tue, 17 Aug 2021 04:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydAlYyNDqvXU9S4xAp2H5cw5HuO26MI1KS7+/9zvFCUNyIMB25epr9I46NzClZH2dvomRx X-Received: by 2002:a17:906:a0ce:: with SMTP id bh14mr3244521ejb.434.1629198468749; Tue, 17 Aug 2021 04:07:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629198468; cv=pass; d=google.com; s=arc-20160816; b=fLQFmfpWUBcZPpSIOLF1rf1l74yZIbfLXgcvOIH2LtWyTWMfzeqVjXlZmwTraVaZNr oHBemjaKa4TqE4iHrmouD8qyuFRGAo4uViZ6Kpmm4KAAQ+iWC3nqB+bGVFWDInhg2iay grDceeTdr/X2wC/pG6edN4IQ9WCFE4/EcFKaEsDkOVi7HaE3PjqjSIfYKG54yLEXrMw7 S0PJxahTDfU+J524mCnpy3JG0gGwBy8jepS9oVNGShFd3Y1D70Ap7GNudMPoSRe1AdOQ g8p9+ydxD4xYnRB70WxR0F4uo0tgbE4C/KcbITXbeggumF5UusWu6vXBvftU96LMSdAD 5bsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=5DZr5bHdaCjQcs0FIrwXy5nB9FnSjr8ZMgpaKdcNu5s=; b=RBXpGIEUvJ5B7Rxyj629uoL96peigHzycJ8BV/4UXUMrkXNk/tpA9as3EUUROClsWr wKgToDru12V3geqDqFkeIXg9XGBkpKqeIlsntR48De9WF6buNQCsTOLG4tDhVBRIAxDI 96HFEcnoag65EoZ5kC8wMVw6uOsBBo/m1u9DYZt75B8F8dlqyHD5DqyDf3Xy/sDRuybJ km1zng9pRSRqVCyQD2CrBcvGF4EnWSSjRqK4w/HypGYv2pPlm46UCS57IfrEW4J+ij8S bKULQGW+HQ8jsM/qx5je0RUqoHy1F7pwkdQBwi9OAvRaPEkgOovrJECB6kNY0j1d/RjU 5JKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=DKfYafA9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si1824792edw.520.2021.08.17.04.07.21; Tue, 17 Aug 2021 04:07:48 -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=@amd.com header.s=selector1 header.b=DKfYafA9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236277AbhHQLCH (ORCPT + 99 others); Tue, 17 Aug 2021 07:02:07 -0400 Received: from mail-co1nam11on2077.outbound.protection.outlook.com ([40.107.220.77]:50657 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236704AbhHQLCD (ORCPT ); Tue, 17 Aug 2021 07:02:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TEGFGht/4Oe+sjWgbUh1nZ9ckHeccps989epLX7BkyeRqb4MYxCnAckOgkASxf9nLWhM6SsBYI0H5AJNWb09Ur/AtC5GY+xFywwF6i7mjjHIfFXTaO93MbIMIH9sZcGAAIXhMcHxPyU1+vlTGpbcuRen9IPRHkoRhv1+8NQuCXKMc99k3wt7fky8ZSEs529hiq4pitQwL3502QS4wdlZLgZooyyOkIXxYuaSedMIN+AAjPp3W+meN1nBDvYboAIWtrUQGCzB0dR16DcgGtIXufV/xmHDS1tjOdmin2e7pJ4m50xBRo9GJJTjIv0EFItY/J0w0nvb9D8wWJrQsSlOAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5DZr5bHdaCjQcs0FIrwXy5nB9FnSjr8ZMgpaKdcNu5s=; b=VsyRpe3NymNzES+zEiLabKvi8eW1fOf8xPtoGAX7K3z30LD9HLPTIXv3CDGnzKAi70RR1RstkMy7FVnUVnTUXRoRvGXEFXbfsZ2dKY2DihgZEKXfQWR5eRkbtIkhhVQYXkwcwlA4mDCcsOya554YvtBwrJllA48DVo79jd0RZ1QCy39diTx+NnfOJoaN66N+2zjl38HUVAGWCmAa+cIpzeppkYpoSVLn8rFsyvdTbIyAaYwUsqu5wRMXsLmgJtHALBSxAUQugTOdUrjxMTj9EXSA9x+JpT85n2N1RHpZrqLvbAdGSzv7iTNDmWmq/ZU5IJQy6hqW5nYScra0+c6WOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5DZr5bHdaCjQcs0FIrwXy5nB9FnSjr8ZMgpaKdcNu5s=; b=DKfYafA94NPUVQJN4xgveTJwxYo6C6bqYJFXN071fIrV/sc1m0aLLKbbAjJOUTSnIFJUAA+HzPE1gS2tUwMNjuk1aRIB5DcjahU7XtRWyB7T+7gko7lIfadViVojD8ZdUIMcTpqj5L0nVmBQRGTXqQT2RJFmUkErZSHnqZf30SY= Authentication-Results: kvack.org; dkim=none (message not signed) header.d=none;kvack.org; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by BL0PR12MB2483.namprd12.prod.outlook.com (2603:10b6:207:4c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14; Tue, 17 Aug 2021 11:01:26 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::dce2:96e5:aba2:66fe]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::dce2:96e5:aba2:66fe%6]) with mapi id 15.20.4415.024; Tue, 17 Aug 2021 11:01:26 +0000 Subject: Re: [PATCH v2 0/7] Remove in-tree usage of MAP_DENYWRITE To: David Hildenbrand , linux-kernel@vger.kernel.org Cc: Linus Torvalds , 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 , 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: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <6e64c3ea-b9c9-decb-36fa-fad713414833@amd.com> Date: Tue, 17 Aug 2021 13:01:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210816194840.42769-1-david@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ClientProxiedBy: FR0P281CA0007.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::12) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:5ed8:be6b:d062:84f3] (2a02:908:1252:fb60:5ed8:be6b:d062:84f3) by FR0P281CA0007.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.9 via Frontend Transport; Tue, 17 Aug 2021 11:01:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd259ed7-e3f1-40c3-b648-08d9616e5bcc X-MS-TrafficTypeDiagnostic: BL0PR12MB2483: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pFGeXhge8AgHqKGwahujYplowvXDD/mb6Nx2F1jBNYEQewrwkD59TXhQcOEY7lnHP1dcv0+0g7DZ+/j0i70rW6xc723gDOSLWxBEYUs48fphs+s2zjlCmUYEUjDdrSL4eqpjUmcQurO2DwXlQIgtzZ9iGJZtOxg8rjHOfRl2gUIP7SnUXoO84VIaRiusQ1WAJdhLDoJBU638DcaL5QCc8tPPW6/2nI7V0z5SqCj0E6I6XivloZimgqJeOHafyqDz3dqY62qEIMROCMGIYibHHRB1tW3tIIKDB1thqciIjUM72h3BY7YfbVjFZNRqpDXtkGo9M/qnVS2+iuTcNyLIESqfPqbNZDLxCHAiZhH4mtE1lnMjDnw5tTmkVYnMYBPK1fcPuWSHq9ufWXPkYtaax6qGKI/HqTWbF/EgtqtrEzW3UnxZAfZtoUdSBWmFUe2A2eow4k9GE/imdwaWQNFYK/AZlqVGSyZblCWwYz8x2Bqln9gUw0sTF/6hGcpULvuHMBR516QdWRASmSq0Dh9YFiwWSOhiEIFwHR0OdTN3yXOXJUA+ID6JQAY6H9p//8tXMwk+E/53NqXPnxnFBu15+Yc7XxtvRx9GeeUTEoEPSltZZFcUKgrr3pO0fgDECW74Z8rcE9ZpifZmh15PaTWVpr/yR30V/lu6Ay+0nX2zBm4AlSWrRYjeyETEO54u/ruhwmF9A8GO6aY+eFB6giSOiY96/RGsHl0aKFW4I/1puIyjkT34eNKWHFbv8bKRPFyUJOHgqaRtz8gQWAQuBNXr/kNo/RZ0ES/08jo0TaxKF8vpu7Li6j5qedY+/fs8O6Uuo1y9gwf8F/yd/bbgJ7ep9MnhUnuaqwUF2PNEM0grwvU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(66574015)(54906003)(7416002)(7406005)(7366002)(2906002)(66556008)(66476007)(2616005)(508600001)(86362001)(5660300002)(316002)(83380400001)(4326008)(966005)(36756003)(66946007)(31696002)(8936002)(6666004)(6486002)(38100700002)(186003)(31686004)(8676002)(45980500001)(43740500002);DIR:OUT;S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UHYxSWp1S0NSNWczMDlmTjdVWUZGdEVQM1Iw?= =?utf-8?B?YjFIRTQxbWpTaVlIdXJ4WjFyaFpWVFFBRHN6cGlhV296ZnpvR3N2TnplY3FY?= =?utf-8?B?NmtBS3V5UkN5N25hSTNMMlZwcDB5YzVOczQxbVRUczlaWWc1V0NYRUs0RVVL?= =?utf-8?Q?0RL4G4Tn/ilaS?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd259ed7-e3f1-40c3-b648-08d9616e5bcc X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2021 11:01:26.7833 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /SAQ76fh03rHHvJts8JqUrv40OkLCuF8rN+y72lPFB9n/BQVBHvRFi7DEP5HE3Nb X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2483 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 16.08.21 um 21:48 schrieb David Hildenbrand: > 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(). > > With this change, MAP_DENYWRITE is effectively ignored throughout the > kernel. Although the net change is small (well, we actually add code and > comments), I think the cleanup in mmap() is quite nice. > > There are some (minor) user-visible changes with this series: > 1. We no longer deny write access to shared libaries loaded via legacy > uselib(); this behavior matches modern user space e.g., via dlopen(). > 2. We no longer deny write access to the elf interpreter after exec > completed, treating it just like shared libraries (which it often is). > 3. We always deny write access to the file linked via /proc/pid/exe: > sys_prctl(PR_SET_MM_MAP/EXE_FILE) will fail if write access to the file > cannot be denied, and write access to the file will remain denied > until the link is effectivel gone (exec, termination, > sys_prctl(PR_SET_MM_MAP/EXE_FILE)) -- just as if exec'ing the file. > > There is a related problem [2] with overlayfs, that should at least partly > be tackled by this series. I don't quite understand the interaction of > overlayfs and deny_write_access()/allow_write_access() at exec time: > > If we end up denying write access to the wrong file and not to the > realfile, that would be fundamentally broken. We would have to reroute > our deny_write_access()/ allow_write_access() calls for the exec file to > the realfile -- but I leave figuring out the details to overlayfs guys, as > that would be a related but different issue. > > There was a lengthy discussion in [3] whether to remove deny_write_access() > completely; however, if we decide to go that way, it would ideally be done > on top, because it could be that some applications even rely on the current > behavior. > > v1 -> v2: > - "kernel/fork: factor out replacing the current MM exe_file" > -- Call the function "replace_mm_exe_file()" instead > -- Add some doc, similar to set_mm_exe_file() > -- Update patch subject/description > - "kernel/fork: always deny write access to current MM exe_file" > -- Introduce dup_mm_exe_file() > -- Make set_mm_exe_file() return an error to make the code easier to > grasp. > -- Improve comments > - Added ACKs > - Mention "sys_prctl(PR_SET_MM_MAP/EXE_FILE)" everywhere instead of > only "sys_prctl(PR_SET_MM_EXE_FILE)". > > RFC -> v1: > - "binfmt: remove in-tree usage of MAP_DENYWRITE" > -- Add a note that this should fix part of a problem with overlayfs This is unfortunately way beyond my understanding of the fs layer to actually review this. But from the ten mile high view it looks like a really nice cleanup to me and makes my live in the DRM subsystem much easier. Feel free to add a Acked-by: Christian König to the series. Thanks, Christian. > > [1] https://lore.kernel.org/r/20210423131640.20080-1-david@redhat.com/ > [2] https://lore.kernel.org/r/YNHXzBgzRrZu1MrD@miu.piliscsaba.redhat.com/ > [3] https://lkml.kernel.org/r/20210812084348.6521-1-david@redhat.com > > Cc: Linus Torvalds > Cc: Andrew Morton > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: "H. Peter Anvin" > Cc: Alexander Viro > Cc: Alexey Dobriyan > Cc: Steven Rostedt > Cc: Peter Zijlstra > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Petr Mladek > Cc: Sergey Senozhatsky > Cc: Andy Shevchenko > Cc: Rasmus Villemoes > Cc: Kees Cook > Cc: "Eric W. Biederman" > Cc: Greg Ungerer > Cc: Geert Uytterhoeven > Cc: Mike Rapoport > Cc: Vlastimil Babka > Cc: Vincenzo Frascino > Cc: Chinwen Chang > Cc: Catalin Marinas > Cc: "Matthew Wilcox (Oracle)" > Cc: Huang Ying > Cc: Jann Horn > Cc: Feng Tang > Cc: Kevin Brodsky > Cc: Michael Ellerman > Cc: Shawn Anastasio > Cc: Steven Price > Cc: Nicholas Piggin > Cc: Christian Brauner > Cc: Jens Axboe > Cc: Gabriel Krisman Bertazi > Cc: Peter Xu > Cc: Suren Baghdasaryan > Cc: Shakeel Butt > Cc: Marco Elver > Cc: Daniel Jordan > Cc: Nicolas Viennot > Cc: Thomas Cedeno > Cc: Michal Hocko > Cc: Miklos Szeredi > Cc: Chengguang Xu > Cc: "Christian König" > Cc: Florian Weimer > Cc: Al Viro > Cc: David Laight > Cc: linux-unionfs@vger.kernel.org > Cc: linux-api@vger.kernel.org > Cc: x86@kernel.org > Cc: linux-fsdevel@vger.kernel.org > Cc: linux-mm@kvack.org > > David Hildenbrand (7): > binfmt: don't use MAP_DENYWRITE when loading shared libraries via > uselib() > kernel/fork: factor out replacing the current MM exe_file > kernel/fork: always deny write access to current MM exe_file > binfmt: remove in-tree usage of MAP_DENYWRITE > mm: remove VM_DENYWRITE > mm: ignore MAP_DENYWRITE in ksys_mmap_pgoff() > fs: update documentation of get_write_access() and friends > > arch/x86/ia32/ia32_aout.c | 8 ++- > fs/binfmt_aout.c | 7 ++- > fs/binfmt_elf.c | 6 +-- > fs/binfmt_elf_fdpic.c | 2 +- > fs/exec.c | 4 +- > fs/proc/task_mmu.c | 1 - > include/linux/fs.h | 19 ++++--- > include/linux/mm.h | 4 +- > include/linux/mman.h | 4 +- > include/trace/events/mmflags.h | 1 - > kernel/events/core.c | 2 - > kernel/fork.c | 95 ++++++++++++++++++++++++++++++---- > kernel/sys.c | 33 +----------- > lib/test_printf.c | 5 +- > mm/mmap.c | 29 ++--------- > mm/nommu.c | 2 - > 16 files changed, 119 insertions(+), 103 deletions(-) > > > base-commit: 7c60610d476766e128cc4284bb6349732cbd6606