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

2024-09-11 Thread Luis Chamberlain
On Wed, Sep 11, 2024 at 11:28:02AM +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_sy

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

2024-09-10 Thread Chunhui Li
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 Fi