Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp596460pxb; Wed, 15 Sep 2021 08:52:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ0uPGhOUrISK/lVI2/UMiqLeRjiedRBbAvmppUQzPGmoIx2y2JxYPdbzeyA/00TDjagdN X-Received: by 2002:a5d:9c53:: with SMTP id 19mr580727iof.192.1631721165414; Wed, 15 Sep 2021 08:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631721165; cv=none; d=google.com; s=arc-20160816; b=Yw3zoVkymsbh3IwrA6q1d/U1YKhOc/5JsAoA1UpXq39z0LQwQmIjotYTezYLc2whzP gJRjhNuf70RHxamEX1AL1KEJkCnHNq88JvEexHaahy4WxFEtw+R8CiKjLhAXZSU6rkem dblu63kVQkybpbG+ca+kuC0To/zUwDUh6FDljPCwWm8PuOgw6aRcv0uWiJ6uFoNYvth6 VFrYqMCAi4I80baJyX8dyWod5Du6INDZAoUzEAXgYBktmCb6uJZZDVuiFqVqjGquWpFx Ri/9gROc0vaoOxm5m6hLaSheYVCRnTPj7AJQLh9GH/FByGrcGv98vrMHsNj5gFb9FOMG eWmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:dkim-signature:date; bh=p6kvwDo2CNzEb3gbLACm1Xe++OMnlnjagT/XqzSYwNc=; b=EciBIEwZHvj9yL+X4yd+TgWczKM1EmTK98jchWi16LbD0veaHCcgzGhauu5i2OdIHi amMwzrHFDuNi0QIp/6YZb0LlGRoe8r/PLJ/1Ei+UfA8kjDipKhEYsVM/lIhVnf2/Y/pk e7q0e641FlWy5DBq9ml6gfML7EfR5LTqzIgk1sdwpfn08eH8wbcqpVtEqtclBEA19DXr mL0J2FJ/HV51SqqVoLa3j5bzbwrwXChDjhFRtPkzluw701VdU0box8Vlux+HQIWFHRiP NVgEHxJLKfndNQ7nBGDn7pyR5EIn/Psh3unFvt3Qaq//I/b9FarBkncSkgHn1TbyLgyr r+rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@t-8ch.de header.s=mail header.b=BFnFQLX7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si294037ilu.99.2021.09.15.08.52.33; Wed, 15 Sep 2021 08:52:45 -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=fail header.i=@t-8ch.de header.s=mail header.b=BFnFQLX7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238630AbhIOPvY (ORCPT + 99 others); Wed, 15 Sep 2021 11:51:24 -0400 Received: from todd.t-8ch.de ([159.69.126.157]:40871 "EHLO todd.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238338AbhIOPu6 (ORCPT ); Wed, 15 Sep 2021 11:50:58 -0400 Date: Wed, 15 Sep 2021 17:49:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=t-8ch.de; s=mail; t=1631720975; bh=p6kvwDo2CNzEb3gbLACm1Xe++OMnlnjagT/XqzSYwNc=; h=Date:From:To:Subject:From; b=BFnFQLX7KzxwmnmKMQ8hqsvLGLdmbT6zaREmpOVekyWRHFsKg6x3OV4O5jXVZPSgt RaYgDddkYBgBRKSGx6j+uuunRxcjmgLX6J5I1G5UiQ2Vs1J6njys0g3i9LJE9J8v1F z5GrPWQqrCQDgvkLGXI7U1k9cIdzi+2bcnIsU2/c= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain , Jessica Yu Subject: [RFC] Expose request_module via syscall Message-ID: <705fde50-37a6-49ed-b9c2-c9107cd88189@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I would like to propose a new syscall that exposes the functionality of request_module() to userspace. Propsed signature: request_module(char *module_name, char **args, int flags); Where args and flags have to be NULL and 0 for the time being. Rationale: We are using nested, privileged containers which are loading kernel modules. Currently we have to always pass around the contents of /lib/modules from the root namespace which contains the modules. (Also the containers need to have userspace components for moduleloading installed) The syscall would remove the need for this bookkeeping work. If this has a chance of getting accepted I would be happy to provide an implementation. Thanks, Thomas