[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200902094019.GA7287@linux-8ccs>
Date: Wed, 2 Sep 2020 11:40:19 +0200
From: Jessica Yu <jeyu@...nel.org>
To: Qu Wenruo <wqu@...e.com>
Cc: linux-kernel@...r.kernel.org, jeyu@...e.de,
Lucas De Marchi <lucas.demarchi@...el.com>
Subject: Re: [PATCH] module: Add more error message for failed kernel module
loading
+++ Qu Wenruo [02/09/20 14:46 +0800]:
>When kernel module loading failed, user space only get one of the
>following error messages:
>
>- ENOEXEC
> This is the most confusing one. From corrupted ELF header to bad
> WRITE|EXEC flags check introduced by in module_enforce_rwx_sections()
> all returns this error number.
>
>- EPERM
> This is for blacklisted modules. But mod doesn't do extra explain
> on this error either.
>
>- ENOMEM
> The only error which needs no explain.
>
>This means, if a user got "Exec format error" from modprobe, it provides
>no meaningful way for the user to debug, and will take extra time
>communicating to get extra info.
>
>So this patch will add extra error messages for -ENOEXEC and -EPERM
>errors, allowing user to do better debugging and reporting.
>
>Signed-off-by: Qu Wenruo <wqu@...e.com>
>Reviewed-by: Lucas De Marchi <lucas.demarchi@...el.com>
Applied, thanks.
Jessica
Powered by blists - more mailing lists