[PATCH v3] module: Add log info for verifying module signature

2024-06-28 Thread Yusong Gao
nly log in user-space, add log info for fatal errors in module_sig_check(). Signed-off-by: Yusong Gao --- V3: Clarify the message type and the error code meaning. V2: Change print level from notice to debug. --- kernel/module/signing.c | 27 +++ 1 file changed, 27 insertions(

[PATCH v2] module: Add log information for loading module failures

2024-06-19 Thread Yusong Gao
nly log in user-space, add log info for fatal errors in module_sig_check(). Signed-off-by: Yusong Gao --- V2: Change print level from notice to debug. --- kernel/module/signing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module/signing.c b/kernel/module/signing.c index a2ff4242e

Re: [PATCH] module: Add log information for loading module failures

2024-06-19 Thread Yusong Gao
On 6/19/24 02:54, Luis Chamberlain wrote: On Fri, Jun 14, 2024 at 09:25:19AM +, Yusong Gao wrote: Add log information in kernel-space when loading module failures. Try to load the unsigned module and the module with bad signature when set 1 to /sys/module/module/parameters/sig_enforce

[PATCH] module: Add log information for loading module failures

2024-06-14 Thread Yusong Gao
nly log in user-space, add log info for fatal errors in module_sig_check(). Signed-off-by: Yusong Gao --- kernel/module/signing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module/signing.c b/kernel/module/signing.c index a2ff4242e623..6a6493c8f7e4 100644 --- a/kernel/module