Received: by 10.223.185.111 with SMTP id b44csp955744wrg; Fri, 9 Mar 2018 17:45:58 -0800 (PST) X-Google-Smtp-Source: AG47ELsbJ9ZiaQQc88uYtCfZf1rAMsKCQu/rHTrU9S8Wu66OZ2JWsy70zQO84eb7/D2aWonXzA0Q X-Received: by 2002:a17:902:4025:: with SMTP id b34-v6mr491555pld.359.1520646358361; Fri, 09 Mar 2018 17:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520646358; cv=none; d=google.com; s=arc-20160816; b=iw8os6WGz1U3M17y5QzJzcUC2WrFjSS7fYoQlhFSt7jalC3D2Z7nPvGhyoYh+SqS5W MK22kzLFxR50ENeK9+MTvgpHBNBAbMci4hB5eY+WFuSNu8dwyC+brWzbsmEueAR5FTRs wkjcoe++aOlkOQkySJS2u4I4JFbqNVoZ5FT3kzTQrYTpl6sEloVeK4R5IHFl1qAygeYk XUK5Ssr1PiOC/gh56tSYKNNGW8lKKRXRmv62O1LDfgOeC+pelKj/ukh9cvPrI/OvqO4K Ot8WcWrZCFczj3TClvoq0DBl0iYp27XlefpqxBBnXTQjTWUURZJwC0nyelKRCAa64j/+ EnIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-signature:arc-authentication-results; bh=A2lQKeOLqZx14TQVoKSq8J8IddrQwsTk4Tn14ljD2Cs=; b=OW91Qd6La8Z3XYc3kvIcnqHXusUAgkjDrTdK+KgWWM0hAP/z3sL846Aw8qp/G0jlGP shr0E2P99M7wUynVRPClHjZX5J1OR295zdpEASgbcy+9OW79AyvpNk7c4TOo4TFYjL46 eAWwPSYKhrbLy3eXqNrgtX1eG5JrnmlKN5LWMk45B4VD/gx5Qyoz1gbFM2tQqDf1jOat 5jFkgAsWwtykeJ4ZSVbfk1z4QhO+ckE/eLO9mMIgqsSVBp9UNJzLB5/95Gw2xqoL/r1s u4ORpTDsblwlSfT7Y1hVuJi+ePCf+W4J3J5lhVOUCboWl/sMZz+6Mn6jcj1PMZuMvLo9 3IMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ffp8mI81; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cNS0FV8G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si1876450pfg.297.2018.03.09.17.45.31; Fri, 09 Mar 2018 17:45:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ffp8mI81; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cNS0FV8G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbeCJBn7 (ORCPT + 99 others); Fri, 9 Mar 2018 20:43:59 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:41770 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbeCJBnz (ORCPT ); Fri, 9 Mar 2018 20:43:55 -0500 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2A1dZDS002575; Fri, 9 Mar 2018 17:43:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=A2lQKeOLqZx14TQVoKSq8J8IddrQwsTk4Tn14ljD2Cs=; b=ffp8mI811o3nfmubCVgcyVPt1EwxzxUvhDF3fDe3nv4lIYZn0bzJ2vXyvYv063iarmv/ Mjz16bhyQ240fbhTnEGfahGqAX7mBsvpTvT6qLRXCMaT8Fu27MaBHQuRUO9tvXd5xl8x z8qhoftwP83YzX576hZqCFKsMrOyeqh6bIo= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2gm3vj0baf-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 09 Mar 2018 17:43:26 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.26) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 9 Mar 2018 20:43:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=A2lQKeOLqZx14TQVoKSq8J8IddrQwsTk4Tn14ljD2Cs=; b=cNS0FV8GsWCXEXjAe0r6fmzWO+UcSJf04Mh2RbJTyU1pXHr4vFgAefkfzYWDJdFhGIXmPqD2CDUCmXlCj9FLzqfnsybLekPUvNyPle7l1W4+lKMx0kY+UcS/I/92Gg5X3KxgC/X6m38WUe7Uwuvtxap2mlCf+5jDRKTC/N1DveY= Received: from [IPv6:2620:10d:c081:1131::12d1] (2620:10d:c090:180::1:7688) by DM6PR15MB2508.namprd15.prod.outlook.com (2603:10b6:5:8f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Sat, 10 Mar 2018 01:43:18 +0000 Subject: Re: [PATCH net-next] modules: allow modprobe load regular elf binaries To: Andy Lutomirski , David Miller References: <20180309181527.GA15803@kroah.com> <74e26cc0-9e72-f03b-5396-f3480921f234@fb.com> <20180309.135550.385837861865623769.davem@davemloft.net> CC: Greg KH , Linus Torvalds , Kees Cook , Alexei Starovoitov , Djalal Harouni , Al Viro , Daniel Borkmann , "Luis R. Rodriguez" , Network Development , LKML , kernel-team , Linux API From: Alexei Starovoitov Message-ID: <64a80f5e-25db-5413-ab50-fb122bc22d8c@fb.com> Date: Fri, 9 Mar 2018 17:43:12 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:180::1:7688] X-ClientProxiedBy: BN6PR06CA0014.namprd06.prod.outlook.com (2603:10b6:404:10b::24) To DM6PR15MB2508.namprd15.prod.outlook.com (2603:10b6:5:8f::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f1756220-db66-44d2-4e43-08d586284e3c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM6PR15MB2508; X-Microsoft-Exchange-Diagnostics: 1;DM6PR15MB2508;3:BQFuuROWVh2hI10rjghZYzfMCH411mV61bury3MX+R+VfDIPMn5V9hzsEdGuU/o1sjoKd7BPwe6D+tm2qop5MVWkqY95Wz2g6ual3WYhp/CcOCR/j2K8D7kDL//9GDAavZOOa0ELxijmByxaTG7K/Qwfu/DPyctdgamwvXwKkjUj4mEC4B138S1gyMdJFsjdkidp77bubfSLimDJpH/JVUh7/eK32y7oGhAQoMwPTCvSdylmH5+2pAukzjklAp/7;25:5frsRTjgqWmKMJ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8SvNL2ecIbC9jvYdyGkBq/BG5CJWynCVEur4xCuUhsvA4dHvjq5DmayxXoh;4:o31MLUym2koTKSuzca0Ps3rMVd9wQX2n5U+8xrY9SZithpHPcxrXgvngIwyUIfDvQgjRF/k5mlNZcdqTPAdYnGaS25LjLTf7Y5GcEXKhuNMaFw/tJTB1MVz4pEET7vnr4wvufO6pXlfURE5WS1iUhy73VOAYDSNXiXYGlqivkdOCyijXodk6mVYPXMqy3oz9M2mL2WjMTXm4KofMOzbFlmzrvgWjQPejNzDKtVnVBnLDOFVjmfQlQ5jeGKa/7ZPQk3wiFP1IfNCApZSr2ESoTFaIs3I9PFZ1CV7EbpBGQPFykUlgdVldpicxlN04Nm2b X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231220)(11241501184)(944501244)(52105095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:DM6PR15MB2508;BCL:0;PCL:0;RULEID:;SRVR:DM6PR15MB2508; X-Forefront-PRVS: 06070568C5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(366004)(39860400002)(376002)(346002)(39380400002)(189003)(199004)(2906002)(76176011)(50466002)(65806001)(5660300001)(52116002)(186003)(16526019)(64126003)(65956001)(305945005)(68736007)(31696002)(47776003)(7736002)(23676004)(2486003)(36756003)(6116002)(52146003)(7416002)(53546011)(106356001)(59450400001)(229853002)(67846002)(52396003)(93886005)(386003)(1706002)(58126008)(8676002)(97736004)(54906003)(4326008)(65826007)(25786009)(6246003)(110136005)(31686004)(39060400002)(81156014)(2950100002)(8936002)(86362001)(53936002)(316002)(6666003)(105586002)(230700001)(478600001)(6486002)(81166006)(46003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR15MB2508;H:[IPv6:2620:10d:c081:1131::12d1];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTZQUjE1TUIyNTA4OzIzOmIreWdTUW9SZVM4VDk0RUEyeXB5TlVxVW5s?= =?utf-8?B?ckNoeGVtNitqNWxOTVMzaHNWMGJTOUFzTHpJUUhqK0dpMkh3SGNDdmo3NG9X?= =?utf-8?B?YUhhTkcvYWlZZTFCNU9ZbEJ1RDRCZ2I4a3VVaUtValFvVzRoSEFNZUFyZGpJ?= =?utf-8?B?NW9FelJLbTR2SHlRQ0kxVU5aa1F1eThPZC81UEk2OVdIcXB4R1FQaWZPV1Jh?= =?utf-8?B?MGZyYnhxUng5N1RpQVMreG4xbnhYQ2VhZ2ZzY2ViNlhNUzRoYXF3WjU3VmxF?= =?utf-8?B?akRhMndRblNXOHE5WFpuY2RIUXJKRUFiczZEZi9wTmk0RUdrcWV5a052MTJO?= =?utf-8?B?aTIxcVVBcW1OTHpscFlvdXlDdnNDOUt3N3dGNUY1akNLempCYkJuSGNxQ3Vl?= =?utf-8?B?Tk9MNHBuSkpaVmoxc3R0T1RpR0tCdWJkQ3AzZEhsNjBxUk90L2Fya3hOYnlj?= =?utf-8?B?Q1Z0MmY0MEc1bC92M2pXU0VEb3FRWDdCTDg4cnNDMTN4SDVrYm5aTGV3QU9Y?= =?utf-8?B?ZHN4Tkd4VTFlY3Q2M2FrZUE3MkE0TjRVcWI2VzJ3R3JhN1dtcytmVjdEMVBP?= =?utf-8?B?Wmk3YmlqQ3JDRUZxTVlKT0Y2K0k4cGtoaVRvYmNTOWlWa3dvLy82MWV3aUZt?= =?utf-8?B?Yk9teGZvVDVxbDVNbFdWbEh1WVlqdnk0UzVHQXRZNVpIOVA4QS91clY3WnBa?= =?utf-8?B?QUkwa0Y1cG42eEtLNitQaE9m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JHuMHEuV5afjOWR1OvmeDZmCQozdTl4tZiG3Pw9EpwdM4RgtW1ssu9pLjeOp6zKLGidZQivkTLrVX1wjGaBZOQiHwsyWcv9z/mOLHaQw=;24:qfRNHjuePM/Er74Gqri2Uv/v3Ip8tbO7y6P2/hVpci3WU37FM7lLiaJcFMVrfnXGqg5lbz6yyldAY9gvx2/fcrWhhIp4QD0hETnbVt0eW9Y=;7:G8LUQ0sb6Jv6UPiBQGae6jg8NLJnIyD72oxy5p+8hA1F9C8qLANjnvJLmJN+ST+VnYHGHsWVl+jcW6eZPMQz4bUK5Y2onarLB83HxdVxArnvEUHtm531c5nwoR2LzRjMYw84W14DMc+8WT1UibSvFKZaJnj+Rf+oZx8Wpbe4Cs4/kTaoXExBI8DFYnkNexhKgVjMINwhJhZaIElV5xuzmPYbCUXEO4a6HnJDP1zoHx1iz6pamv64VIafYM1NgBzz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM6PR15MB2508;20:Q8BwjZzPQNfR2Y8zo++L8BL/lqMAriwhtbI9WVFDccJIrh15qEe/qgX2smSn+x9e9Iy2jAz5pDVHJYJ9OARdSjrcjo5LJPkdf8PgQOxuVJuSfav7AbKCVhb/iiCy8yyrDKoOyAiopoH70eimTRv8q8SYAzwN/xcJTOZRGWEg9Dk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2018 01:43:18.8744 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1756220-db66-44d2-4e43-08d586284e3c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR15MB2508 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-09_11:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/9/18 11:37 AM, Andy Lutomirski wrote: > On Fri, Mar 9, 2018 at 6:55 PM, David Miller wrote: >> From: Alexei Starovoitov >> Date: Fri, 9 Mar 2018 10:50:49 -0800 >> >>> On 3/9/18 10:23 AM, Andy Lutomirski wrote: >>>> It might not be totally crazy to back it by tmpfs. >>> >>> interesting. how do you propose to do it? >>> Something like: >>> - create /umh_module_tempxxx dir >>> - mount tmpfs there >>> - copy elf into it and exec it? >> >> I think the idea is that it's an internal tmpfs mount that only >> the kernel has access too. > > That's what I was imagining. There's precedent. For example, there's > a very short piece of code that does it in > drivers/gpu/drm/i915/i915_gemfs.c. I can do "monkey see monkey do" approach which will look like: type = get_fs_type("tmpfs"); fs = kern_mount(type); /* for each request_umh("foo") */ file = shmem_file_setup_with_mnt(fs, "umh_foo"); do { pagecache_write_begin(file,...); memcpy() pagecache_write_end(); } while (umh_elf_size); do_execve_file(file); fput(file); while keeping fs mounted forever? is there better way?