Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-02 Thread Jessica Yu
+++ 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 e

[PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Qu Wenruo
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 b

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Prarit Bhargava
On 9/1/20 4:17 PM, Lucas De Marchi wrote: > On Tue, Sep 1, 2020 at 12:56 PM Prarit Bhargava wrote: >> >> >> >> On 9/1/20 2:50 PM, Lucas De Marchi wrote: >>> On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: When kernel module loading failed, user space only get one of the followi

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Lucas De Marchi
On Tue, Sep 1, 2020 at 12:56 PM Prarit Bhargava wrote: > > > > On 9/1/20 2:50 PM, Lucas De Marchi wrote: > > On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: > >> > >> When kernel module loading failed, user space only get one of the > >> following error messages: > >> - -ENOEXEC > >> This is t

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Prarit Bhargava
On 9/1/20 2:50 PM, Lucas De Marchi wrote: > On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: >> >> 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 f

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Lucas De Marchi
On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: > > 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_sectio

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Jessica Yu
+++ Qu Wenruo [31/08/20 16:37 +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 e

[PATCH] module: Add more error message for failed kernel module loading

2020-08-31 Thread Qu Wenruo
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

[PATCH] module: Add more error message for failed kernel module loading

2020-08-29 Thread Qu Wenruo
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