[Toybox] toybox: modprobe patch

xiewen xiewen202 at 163.com
Mon Jul 30 02:56:53 PDT 2018


hi Guys:


     I find a bug in modprobe.c:
     In the following case, modprobe will fail:
     First ins_mod a.ko, then ins_mod b.ko, b.ko depends on a.ko,b.ko will insmod failed.
     Because syscall will return to EPERM, but finit_module and init_module actually return EEXIST,
     and EEXIST is stored in errno.


    Finally, I found that rm_mod uses errno as the return value, so I think ins_mod should also use errno as the return value.


--


------------------------------------

thanks with best regards!

email:wen.xie at archermind.com;xiewen202 at 163.com

phone:15850502564

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20180730/36fe088c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Modify-the-return-value-of-ins_mod-function-to-avoid.patch
Type: application/octet-stream
Size: 1295 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20180730/36fe088c/attachment-0002.obj>


More information about the Toybox mailing list