Received: by 10.223.185.111 with SMTP id b44csp643483wrg; Fri, 9 Mar 2018 10:53:41 -0800 (PST) X-Google-Smtp-Source: AG47ELv/RwOCQlkxxxTIGM8jLhkEt3z74/PEiKN9wqRyPfaBbZeQRy6vyMS8ExVcr+w1ziRPKbca X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr1786675pll.44.1520621621221; Fri, 09 Mar 2018 10:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520621621; cv=none; d=google.com; s=arc-20160816; b=jXHLDUcyXeFyzpBCNBd5lO51OnrvSh02XeeekrPGq75Aqyj9cjmL0tpwqnbkgAm4pB MhnK7WvfBIarvwSKrvXlBxVRI91fSDlmRho7BlJKG8f1IxuW3paFqNafO0rF2f4jXirG 1VsSMaKdgrSie68Tngtm+rrWKix9SZhb6Yx+DDqb+pnwUpPAhpFsopZUHw7i3UaTIUE/ ZM9hZx9UNXk1cYIToiwApupqH6Nxx7T57Ayig39y6bDUiBX0jObqFMRAfhneFS6V9x3p nD0SNT5+21FLX3Ys7kvWr1hNjh9H2MnPJK/mJ72lrJTxusbuOIUqAEy+EXt20Zj5A9nI pHiw== 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=yTNb085Bm14LtwbVQ8LfNOJKC6m7oZ0sd3OMQl9TNIk=; b=XNQq0DvmT8wWi3R3S8C19cha6vqV7ukSBGlGvmDzK6QkAM+6UfUjNrNXngWNetaP6k /wYyu6VyVltgka+OFztG7h0Wxp25hfMOlaM3/iTc2/ccvhttFkcKcTMf0pAlMi5P3wcn h+MScH5GpaK7tsW6DcUSGI9MR9aRAMxAukTIfcw5r8x8VwoznK54jxLtEtNHAW4kiUDn 7hqOcRpTR4FWauKf8zh5mFMRWYY0RDQxR8CWaQI0hpiU3HfnAl0Roe4uPtIb32Fa/p9L j6tBtN9dJSMP4sD+ziA/y1jq89kOBNvSR0jKvzpDr+izRmPC1EKj19J5Ck7UuZ1lYXoJ sA3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=dJfvpgog; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=TwJWlwvh; 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 31-v6si1276891plz.176.2018.03.09.10.53.26; Fri, 09 Mar 2018 10:53:41 -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=dJfvpgog; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=TwJWlwvh; 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 S932570AbeCISwO (ORCPT + 99 others); Fri, 9 Mar 2018 13:52:14 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:37802 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbeCISwJ (ORCPT ); Fri, 9 Mar 2018 13:52:09 -0500 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w29InLp9007430; Fri, 9 Mar 2018 10:51:37 -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=yTNb085Bm14LtwbVQ8LfNOJKC6m7oZ0sd3OMQl9TNIk=; b=dJfvpgogmEgGcMr0Qv9C2u/w7YvguSJFPqBOeZWb7X3W5s0glsPN7VqGmxuQIzgDKzlY 82aGqjApAEpzVox4274GJDvz/1dgJTPK/HwtDeRC5Q0Hf6rgIpWpUcIx69ukZYlDHDpo i1lnP9TdoyUlTLQOqS5Gto51VY1DjQUywyU= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2gkvsr8m62-8 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 09 Mar 2018 10:51:36 -0800 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.20) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 9 Mar 2018 10:50:59 -0800 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=yTNb085Bm14LtwbVQ8LfNOJKC6m7oZ0sd3OMQl9TNIk=; b=TwJWlwvha0XacvGTzfQSIdeaRyz1yt2nt9de8lIE6afaqjoTu8u1LLt0V1sOjsTZeTCD1ZlD4kuPjw2idIECORXzeldkJGoVj/KpG0Pvbcn/psO+Fxbg0PIzh4lfZL6cW6+jaYOa4wrS1S/OUF/Thh0C3prG6JMTuZEkc4tqNaQ= Received: from [IPv6:2620:10d:c082:1055:7184:6abc:4304:f18] (2620:10d:c090:200::6:ce34) by BYAPR15MB2503.namprd15.prod.outlook.com (2603:10b6:a02:8e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Fri, 9 Mar 2018 18:50:54 +0000 Subject: Re: [PATCH net-next] modules: allow modprobe load regular elf binaries To: Andy Lutomirski , Greg KH References: <87478c51-59a7-f6ac-1fb2-f3ca2dcf658b@fb.com> <6d2e31fa-d87b-fea6-c919-b7d066bb0385@fb.com> <20180309181527.GA15803@kroah.com> CC: Andy Lutomirski , Linus Torvalds , Kees Cook , Alexei Starovoitov , Djalal Harouni , Al Viro , "David S. Miller" , Daniel Borkmann , "Luis R. Rodriguez" , Network Development , LKML , kernel-team , Linux API From: Alexei Starovoitov Message-ID: <74e26cc0-9e72-f03b-5396-f3480921f234@fb.com> Date: Fri, 9 Mar 2018 10:50:49 -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="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:200::6:ce34] X-ClientProxiedBy: SN4PR0601CA0008.namprd06.prod.outlook.com (2603:10b6:803:2f::18) To BYAPR15MB2503.namprd15.prod.outlook.com (2603:10b6:a02:8e::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5cda09c-5285-40c0-91a3-08d585eeb14e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BYAPR15MB2503; X-Microsoft-Exchange-Diagnostics: 1;BYAPR15MB2503;3:x+Pmgi1nNtSU3bmZLe1YaZFs9tbdQL/e6B7VCzCfmIc7t7R3n/8as9eSLG/TpeEFYhtJrHC6Ezb0gqxhxXFOAkA5XC33Bj28NGnjKcjLPU0nogpcVcZMjhIjUkQgrUDXZQLBEU2tC4SiB/2Ws+wCInl12Uv0FpUlLC3VAQUW/QuTGMX21/7Ip38gdrBOXpmAGJyOLLHXe26T4JesH1X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SLsjlp0traU9GK3JfcToo/tlk/r3px1G4Mudb/YPmlLfbh3XlMbs1ttwriPFgBJya22q1FLqYWfF//2FzWRpkpYphZvJwXhgcr4SjNg5VOBiIw59MpXr3DSBUcyLweTazPNVnX+kb7+yM0RVTu;4:vMEixa0fiQ1aa87x+64goIse/Y0eR6buKF7us2Lv1xgnE2mRmqSuLNkvzRR6XsYQK1PGGLb4+5eGIBbOmyXZ9ahVlqBCcS/O5XcYqTKkKH4u2PnCzDl4DsxsnphkjUlT7nT9g4WrWm2bKjIFR5dND7UG7C+B/QA3yH+TPlm0fWSxGUiEuSZ0QNkWyWskeYBt+pYqgygj3K5LOxKEnv4aSygdCqNl7VgN2juxf2eJGugpd/SoLsDfwRpR12z44zsXXbUtKu6iLvaj117Fnxgjlg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(11241501184)(944501244)(52105095)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:BYAPR15MB2503;BCL:0;PCL:0;RULEID:;SRVR:BYAPR15MB2503; X-Forefront-PRVS: 0606BBEB39 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(396003)(39860400002)(366004)(346002)(189003)(199004)(105586002)(47776003)(36756003)(58126008)(2906002)(110136005)(31696002)(65826007)(230700001)(5660300001)(65956001)(53936002)(97736004)(93886005)(23746002)(65806001)(316002)(106356001)(31686004)(8676002)(478600001)(67846002)(4326008)(6486002)(64126003)(81166006)(39060400002)(2950100002)(50466002)(52396003)(6666003)(52116002)(54906003)(81156014)(86362001)(229853002)(1706002)(6116002)(561944003)(386003)(6246003)(8936002)(53546011)(25786009)(68736007)(7736002)(46003)(186003)(76176011)(305945005)(7416002)(16526019)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2503;H:[IPv6:2620:10d:c082:1055:7184:6abc:4304:f18];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: =?Windows-1252?Q?1;BYAPR15MB2503;23:6GAkusfbF9pOaR52TGj7P0Sb6eqnLIrgZHv9L?= =?Windows-1252?Q?5swErRJOokM4YEyjsXkRDU8ho0z+Evq4hbTWwlH4yxPjqNjyWdbree9T?= =?Windows-1252?Q?XywLgJeXW7jEw/T1COZqi3IjdotaCS5Ok+1OsTuuhNQykW32XLAXE/cm?= =?Windows-1252?Q?geSNcdxTVqDD3mElDrPAkVkeKWWhvf6EV/PNPKqPlthclGUTCbsUYpGm?= =?Windows-1252?Q?j2fhrTJe6vmAeQGBz2sCdUwlhj6HrAtkUz0VS4y4AdAaAVroiklSiT75?= =?Windows-1252?Q?KZc0PENvFOKeEORlMaxSIfnBBloZ3ivtb5FXK6z8nWmE5hOuJQfeoNMG?= =?Windows-1252?Q?cOie1/3p25g6mq6wlAslwwhd7uKXXbjMLhLHvKQpK9bcvQ2uT/RvS0E6?= =?Windows-1252?Q?yKsyfnjiexm29KihrH+th09jcepgm0ZTSZzaGgY8xeX6g3XV0/W1JF0t?= =?Windows-1252?Q?CZp/gJBPDf0pTFoZlxLE96P6nOVwmrkcsbM+AUBG9b3HFBI1/K41mI4a?= =?Windows-1252?Q?LwwtN3xZjIUX1Rv/1hs6cOe/bj798fWcA31+WGAJHpvM3eo/gxBBy1CL?= =?Windows-1252?Q?iiOZc243g57HWhLV1LV5rh5HZlFnKf7LVhV4h27adO4H5cYdtvoEVTLt?= =?Windows-1252?Q?2Wf81QLWja833A5WwO6uXQKeyWh1vSlAGMl3yKRF92CFBI/GsxTXKArC?= =?Windows-1252?Q?Vuzzi+3YnUR+oMtOJxQgAsP594YddddP/U0WTC/7duEYVMchGEp2gPik?= =?Windows-1252?Q?KwHDRGfCVifruHtojtmTrWsgzx2NUu6zj2jCS08kIkFe61mRDUmv72UR?= =?Windows-1252?Q?vOJQjUkuFsvQ+37YMaxsgZMDoi5ymukRFjNNuE+ZO3e5ExFWDk9gGhzV?= =?Windows-1252?Q?+ModrmBB1vnj+BpzXZPsDo4WYamT1bv8AOM+HddTAENGQNx3Jz5NNxsr?= =?Windows-1252?Q?o04pfeHb5E3Hd10SOFfsArE5hxtX77NJuTcZo9t0Dx86wLgNj88qU3MC?= =?Windows-1252?Q?Jw9nKMJP5+xdJWraNIVvX/PvYfgH/IlvtTTw0QLQh4SDX6I3zJFXHi91?= =?Windows-1252?Q?r+xwq7K+q7osA1tPWn6Iad0tpV3f0Tb4LC9RbG7zDIaJiS/nrAGS4Wv/?= =?Windows-1252?Q?qQurnyhfDlL+NrUiGUUJ2KcI51pdLavomNjYAuM83MUvDASBiZn+Z8qj?= =?Windows-1252?Q?nhKSQMvQ2iWRuV6w3w8bFLoBkjwVc4FJVJJFtl6pexRlqhUqcZGCsOFs?= =?Windows-1252?Q?btMlM+n7PTXeZrtRXixVFkAUBGmrUFAWm4j0IfQPwCGBrfI5IWBcW+Bz?= =?Windows-1252?Q?47E+ot/CMKk64+GXvzzSevLgY0lmh0O3CJNoga8+jTumYRPtPkdk+eHr?= =?Windows-1252?Q?zNo3Ene3KayOVRt1xZMPtmxjnTkbTd39z+pW1FZ4zUeV30WrsOkBJUhD?= =?Windows-1252?Q?2RIrkbaQTr4zyLY4w4uRoH8Kbfu0VbBJf85kUdh+dSoJvDh2YsO/tPNf?= =?Windows-1252?Q?tSBAtm+LYQKSKks5rPoiWEQ9Vir?= X-Microsoft-Antispam-Message-Info: xNANbu9kDLcEcbZs0uH6ZvE4NhUe9EOHNpI0691ZhDFeFNbgvnEnYjOGp2E34WpA18fKfdeJvugC45aoeLOJ+QcGSEste7cdjAveNbgivRDaVNbW29XphtHtnvxu+TDx0ZnP2s1gqFB8M+EqAB4l+ll0D8Ff8UnZwpXFChgSMq7ARomlBdzzSFpGEnl3F7yK X-Microsoft-Exchange-Diagnostics: 1;BYAPR15MB2503;6:WNu/j7qSv+jZwxOA53PtY3vxWNFYFbCDda5d0t9p/G6GpYZlA991GQ2lFxh6XGa772Js52ts3QwYccfn1fwg+oAsAvDrcekvKuCEWBPcx4Cl0bNefivIPFrG2xCk7gl4gsfRYtIivRFuT2AjmQ/5Ol7bKFiYACriOOFuP2OFs+saiZZn5DHIQegSDetoBexd5eQSyk3lyo19S/LADbUsQMPwCR8X0+QRM+xa/oxYnLAcql2K1h4/DKuMfnhtgs0Q8H4Wc4wpmZsKoq2dlUKf7oDOXOeqvo+h4LxMe+x36tyZoAE4VeprPQR0QFRSjFRIhw11rCvR5APWfKThrubQpKbU3Mh5zQNrDINGEIA5l58=;5:vBb6cjw79EB68OYLDBBnyzLcXPohjMhrePmaahFZDi1dBVLqKbsdjw9EGdvHHtJBphSXSIxv0YHR8H8PGsNam0KMzi/c8zKa32qEoyve6fXCbE21FqvTFK+3JDgHIMyo3ouhgTogrouj5x8FRTdvVVpyNKsZ2UlLu8cpOWG4kAE=;24:saPKMVFQlJuB3IIN5J1W83LXzQPsdAN0mjtFtg83LchYJCYzcuDzKVCFgXHYZQPnh+dFX+gV3ygEYFpaPGHvna0SeigxrQG/uy9duuh7sS8=;7:NZgrj2zI5JN9WQeb3sd3FaWSrKekWUJN+LSAYQ9EbLGPTm4h55DLwKM8np7JPp4TgyUZGdFYQCjnVJJkHFRL75Cq/CjhlSEiwhexdv6B6xVwClQUFuvXbdxMpPxEucnFd9Q3+z5ICBnVOz9rdOsnCKmK7ap779BNvc6O69ti2TQu91oiLtb4YWXXnR4FbBQ4kLmP9nIFK7ckDjGOfM4ITrf/PiYpChFgs1n2nI+yIGVwjWouuu4kwKCLsJpV3JZU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BYAPR15MB2503;20:yJWiHYCZraYZvbBeyMi6000sIXsdnPr1F9AsiNwOnM7/9lOnGll/FJDHJGDh+5jWeCx1lL1WWLU3zdFjxAA3d3Bbv/zGh5M791DDYz/c9fZ1rIHMiA4uhmEdJVuOEyB9kkMqdhEgvqttK+qq2dmlyQuy+5GgT7bY6EtAFkNDhMc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2018 18:50:54.6532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5cda09c-5285-40c0-91a3-08d585eeb14e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2503 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-09_10:,, 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 10:23 AM, Andy Lutomirski wrote: > > >> On Mar 9, 2018, at 10:15 AM, Greg KH wrote: >> > >> >> Oh, and for the record, I like Andy's proposal as well as dumping this >> into a kernel module "blob" with the exception that this now would take >> up unswapable memory, which isn't the nicest and is one big reason we >> removed the in-kernel-memory firmware blobs many years ago. >> > > 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?