From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BF30C433EF for ; Mon, 20 Sep 2021 18:54:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4DDE360EE4 for ; Mon, 20 Sep 2021 18:54:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347612AbhITS4J (ORCPT ); Mon, 20 Sep 2021 14:56:09 -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-Google-Smtp-Source: ABdhPJybR6N3U9WMW2cuE+TpvrIh2UZNl4YM1p+MlmtT3J1aFk/vnh+3IzRCGMqSBwkk5gktGNysKCQGbjYyhLubSuo= 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