Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6481144ybi; Wed, 31 Jul 2019 15:24:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVan7SJwCfu/4vifTO76+RuHgasGmckRMk55+Jt9Y+h+iWYR3i37OReMFHIclqFaWbBPOT X-Received: by 2002:a17:902:900a:: with SMTP id a10mr8445355plp.281.1564611843031; Wed, 31 Jul 2019 15:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564611843; cv=none; d=google.com; s=arc-20160816; b=Jg/0QGuzE6+cUfgJ5c24BJkPXDs5rdQFRiHIsyAp/MJMQoGbmW2aI/DVSjQoMMTgUg GtymxUZ9gu0KXCrmh3OpJfQajvL/UmWBeg/DW0groKhbT7gafkuCqBVNBP8ZfXe/T5Dh XYRxZiMgDTaSOuSkIS31tG9+P6eTwCRE2VyDVc3IX07Zg/3FSul7wyw5/WE08EFxGh/c eanbecYympVFuXrBGW2KCraR/oSCDhZ+e544wZqBGoMphZ5qzKVvKgH59NYaXMEXilxp MBwsdEJTbOYaS5fsHkEEh9Stg2ZTHfeL1/JwAWU7GehimqysNoHff75LXfWXQQipnhR0 ClwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=kwS6NVysKT0+c8CCpncR1xles8KnBQ/GENNp/Um2p3U=; b=ZeMmdsttkWSWv9g+Xp1YCpO+6MrJ7aIddVFT5H0myWlTP9aHCjZ+BoNrAzKGk5jrnJ b0XfNy60xYFkH5No22vDIjXFaCrgaoppVhHVUZzYfAh9PUcpe2cIn05yqiIoPUuyIZsr sxK7a2KOLSujfRj4uQhmlEDo0VdyQ7FpCzZFS4dhP29u18HyAlsvu4uTtFBv9UURlPB4 LNBIO4+Zez/HOmgAnDELycL9oPsSoKQzIMx4LqOYZH1zRxsv2TxImLrNXyPWrP5Co/5r JAB9rJi1dJoW6P3QGHkeiXnnLSAJJGUyVyjjZZXX3W7AffOXUlNYJRvJTMr5PM11wT2V Q8UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XHoVIJpg; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si27606615pgj.15.2019.07.31.15.23.48; Wed, 31 Jul 2019 15:24:03 -0700 (PDT) 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=@chromium.org header.s=google header.b=XHoVIJpg; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbfGaWWN (ORCPT + 99 others); Wed, 31 Jul 2019 18:22:13 -0400 Received: from mail-io1-f41.google.com ([209.85.166.41]:37176 "EHLO mail-io1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbfGaWWM (ORCPT ); Wed, 31 Jul 2019 18:22:12 -0400 Received: by mail-io1-f41.google.com with SMTP id q22so20073123iog.4 for ; Wed, 31 Jul 2019 15:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=kwS6NVysKT0+c8CCpncR1xles8KnBQ/GENNp/Um2p3U=; b=XHoVIJpgBmrTr7YDaTDqV7ybaQ4Y/rGwwGr1n5yIXaouZWwVSNCV4qXHjDxJsBQi5P 6A+bxjWBoQWC/7gX0MbRP3d0e3bIC4K1tq2Je5TQyKY1q1D7tvJ2A+SPPipmwVZrUkr3 vDW4cNqcRRDG2y3+44gCIEgJV5IITZAYvoghE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=kwS6NVysKT0+c8CCpncR1xles8KnBQ/GENNp/Um2p3U=; b=W4plR67u2P1de7/9rx1LvB7VRx0a+NXyJg6VKG1vsef80zwV3OBp9UVIQGagUdnSfy +UdjThOERO32pIsTGBYPnyaCJIC2/ud7TLQqCzGDsxaTgFQBzPmrBzj4AttdH06D0AFR 4QsA8pEoS/+luXLcyt3/NeiU0FaLhH/lljqHmBK8s6yABoBiVJXsE/vjyQ/jdly+vK+C if+qQImcQxyJsxSM+7gUNkzhBaOGNT51AeFyATdCP2b1Fqp9aMjJiY57gPhrKcWOjWue tuuoEAhSR19VWf/6puFKCht6aYOz5by39qFtTDeBTKRhGMZaySWnOAfrvGh5L3X2NS4L Autw== X-Gm-Message-State: APjAAAWem91z0YjwGxyRIhH0/2Pybf6I1niZ2bIyDVafpjDDfoQRNRzd qu3tPLD5aZSEgmROAi9hIZ/HACxKd6k= X-Received: by 2002:a05:6602:98:: with SMTP id h24mr52314088iob.49.1564611731520; Wed, 31 Jul 2019 15:22:11 -0700 (PDT) Received: from chromium.org ([2620:15c:183:200:b9c3:6ca9:e77c:7d59]) by smtp.gmail.com with ESMTPSA id l5sm125693259ioq.83.2019.07.31.15.22.11 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 15:22:11 -0700 (PDT) Date: Wed, 31 Jul 2019 16:22:09 -0600 From: Jack Rosenthal To: linux-kernel@vger.kernel.org Subject: Module compression & loadpin Message-ID: <20190731222209.GA101140@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Has anyone looked into what it may take to support both module compression and loadpin (ensures modules come from trusted filesystem)? From my understanding, this is not supported as kmod currently does the decompression of modules, and loadpin prefers fload_module as it can tell where the module came from. (https://crbug.com/777204) In a gist, I am thinking supporting this scenario would require the module decompression to happen on the kernel side. Wondering if anyone has looked into this before I go making a solution... Thanks, Jack