cd /tmp
touch usbcore
chmod 0 usbcore
modinfo usbcore
I wonder why it tries to open("usbcore") at all. If nothing else, it should open usbcore.ko, but even if "usbcore" makes sense, it should fall back to the one in the standard directory (/lib/modules..).
Ah, I can reproduce this:
cd /tmp
touch usbcore
chmod 0 usbcore
modinfo usbcore
I wonder why it tries to open("usbcore") at all. If nothing else, it should open usbcore.ko, but even if "usbcore" makes sense, it should fall back to the one in the standard directory (/lib/modules..).