Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354129pxb; Mon, 20 Sep 2021 19:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx85pUQB0ZqUaxXXGuIU7bBhEWIy3qHRQ9uzImAaxGhvE/xg1JyN330397lKZ08s7+iqFdG X-Received: by 2002:a17:906:950f:: with SMTP id u15mr32893794ejx.131.1632192793618; Mon, 20 Sep 2021 19:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192793; cv=none; d=google.com; s=arc-20160816; b=FGVlufRrlhpB7CHBma6bgUzXz/JC+yYqy+e5zvsqZckk6APVUSRfsCIXsqaeiynKeQ qKFHcoe5ljlS1Jfi1ab8k1OLtwzXsBCcKJu4VYYeES53EcJS/I/nNXO/6lFCzd6TtzoI IJo6NkJfhNOq1dHxizHyLkXBN0lHRuidlXA3jyetRE3lhv8L28p+k8ouPp9ZrU5fljuF mzgv0ulobfv2TTHvg4uPXy0BExUIiPdO4zO8+yUx+0SZHy2NXiHZDZ405amxibSZh+SJ xjYWPgAkEVxGZnIGRr3q4lwVRDXVXYoDKYzklEWpDKz5WQ9X6YxWo797CMMD4JhaDZlV K5wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VYIR8NN0YStFpIG7kHbi5veOd0Jfiu0bHvSB2sT7buM=; b=PEYpIKyvyCkIuQvBqfcA50ts3lMcWvilpXMS/SdRuujrgR9HuS/FLHbJyYV41E/gzo cRq1BSZD15IK2BtBUA0IZyp5CV3w4TJamFyg1hUpBmUnS4hQ995J/pffeWZoOz6xC9ns E+yJe4Lw+dlUf4j2FTONEL5nYfPzVlKvfdNaFO2mj8rMMnBfiOcQ1//ATpw0JCsteQIw OxwGBLarMsSnNWZZwn41lJaz47ZM1cS4zkGz9nF9PDZ6zoNQiMayPL1VXurwAFfqoJiT bdZhYiHXeCiSqhZkf4NjujaqrHyEqKsHWnjBnBsPlGOwGg/68flmF5JRSDGEOXsj5oin mBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AGrJqMWL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si18774679ejv.669.2021.09.20.19.52.49; Mon, 20 Sep 2021 19:53:13 -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=@kernel.org header.s=k20201202 header.b=AGrJqMWL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387178AbhITS4H (ORCPT + 99 others); Mon, 20 Sep 2021 14:56:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:38252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353914AbhITSwy (ORCPT ); Mon, 20 Sep 2021 14:52:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50CA1611C2 for ; Mon, 20 Sep 2021 18:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632163023; bh=vQjBnhTwHmPMbbhl5uyt9zJIV9R7eGnAmOsYenFvtsk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AGrJqMWLy5D8MwbrPjvH57/frMZS8S7h+L//qAV4bKFU+HlX8arcdT2Ob9ihnD8d2 xeoCik8ycGNmI+WAlLIMnk4UP/i8ZX2K4bXfLFOY9xvc7belpMuLi+LplsX0af9QXh fi3HP54KCv36+hF/zA1NWiTlRgoHkgVSkGB5vfQSM/vJdBWnP2y43Z12j3DQjSHDWh Pg2xpmi6uJHtCWRteGH62j/5mJA3PYQNZyfYqYdhbFF6RYh6f0c11cxQbIenKAO9zT FrPQnqv4SezdW+iRpIg4NIXW0MEXCNMqXx80fJnEPY4W0qnZ349pBapAiS1DHTAKdJ nQVijGdTYNzpg== Received: by mail-ed1-f50.google.com with SMTP id v5so63785501edc.2 for ; Mon, 20 Sep 2021 11:37:03 -0700 (PDT) X-Gm-Message-State: AOAM531zCqYWeX5yI+JUoW8pnCnN6hdGa+LCBq0T08H5Qb11G+IBPu0K j6rIwxx5FoquY9H1jAiXxElZiq3BEEwn647zIOv7Rw== X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr30711354ejr.435.1632163021669; Mon, 20 Sep 2021 11:37:01 -0700 (PDT) MIME-Version: 1.0 References: <705fde50-37a6-49ed-b9c2-c9107cd88189@t-8ch.de> <20210916092719.v4pkhhugdiq7ytcp@wittgenstein> <2ebf1a9d-77d5-472b-a99a-b141654725da@www.fastmail.com> <6eff0e8a-4965-437d-9273-1d9d73892e1a@t-8ch.de> <8cbf0703-5734-4e92-a6cc-12de69094f95@t-8ch.de> In-Reply-To: From: Andy Lutomirski Date: Mon, 20 Sep 2021 11:36:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] Expose request_module via syscall To: Luis Chamberlain Cc: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Andy Lutomirski , Christian Brauner , Linux API , Linux Kernel Mailing List , Jessica Yu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 11:16 AM Luis Chamberlain wrote= : > > On Mon, Sep 20, 2021 at 04:51:19PM +0200, Thomas Wei=C3=9Fschuh wrote: > > > Do you mean it literally invokes /sbin/modprobe? If so, hooking this > > > at /sbin/modprobe and calling out to the container manager seems like > > > a decent solution. > > > > Yes it does. Thanks for the idea, I'll see how this works out. > > Would documentation guiding you in that way have helped? If so > I welcome a patch that does just that. If someone wants to make this classy, we should probably have the container counterpart of a standardized paravirt interface. There should be a way for a container to, in a runtime-agnostic way, issue requests to its manager, and requesting a module by (name, Linux kernel version for which that name makes sense) seems like an excellent use of such an interface. --Andy > > Luis