Thread (5 messages) 5 messages, 3 authors, 2024-09-07

Re: [PATCH v3 1/1] module: abort module loading when sysfs setup suffer errors

flat view

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2024-09-06 23:26:07
Also in: linux-arm-kernel, linux-mediatek, lkml

On Fri, Sep 06, 2024 at 07:57:48PM +0800, Chunhui Li wrote:
When insmod a kernel module, if fails in add_notes_attrs or
add_sysfs_attrs such as memory allocation fail, mod_sysfs_setup
will still return success, but we can't access user interface
on android device.

Patch for make mod_sysfs_setup can check the error of
add_notes_attrs and add_sysfs_attrs

Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/oe-kbuild-all/202409010016.3XIFSmRA-lkp@intel.com/ (local)
Signed-off-by: Xion Wang <redacted>
Signed-off-by: Chunhui Li <redacted>
Please add a Fixes: tag.

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help