From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: Re: [PATCH net-next] modules: allow modprobe load regular elf binaries Date: Sat, 10 Mar 2018 15:16:52 +0000 Message-ID: <20180310151652.GV4449@wotan.suse.de> References: <20180309.135724.452219538059491199.davem@davemloft.net> <81b7599d-aab7-6cb6-7843-64510c8f6260@fb.com> <20180310140843.GP4449@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180310140843.GP4449@wotan.suse.de> Sender: linux-kernel-owner@vger.kernel.org To: Alexei Starovoitov , Jessica Yu , Linus Torvalds Cc: Mimi Zohar , Djalal Harouni , David Miller , Andy Lutomirski , Kees Cook , Alexei Starovoitov , Al Viro , Daniel Borkmann , Greg Kroah-Hartman , Network Development , Linux Kernel Mailing List , kernel-team , Linux API , "Luis R. Rodriguez" List-Id: linux-api@vger.kernel.org On Sat, Mar 10, 2018 at 02:08:43PM +0000, Luis R. Rodriguez wrote: > The alternative to this would be a simple equivalent of try_then_request_module() > for UMH modules: try_umhm_then_request_umh_module() or whatever. So just as I > argued earlier over UMH limitations, this is not the end of the world for umh > modules, and it doesn't mean you can't get *properly* add umh modules upstream, > it would *just mean* we'd be perpetuating today's (IMHO) horrible and loose > semantics. I was about to suggest that perhaps a try_umhm_then_request_umh_module() or whatever should not be a macro -- but instead an actual routine, and we don't export say the simple form to avoid non-deterministic uses of it from the start... but the thing is *it'd have to be a macro* given that the *check* for the module *has to be loose*, just as try_then_request_module()... *Ugh* gross. Another reason for me to want an actual deterministic clean proper solution from the start. Luis