linux-misc
linux-misc copied to clipboard
Some syscalls not visible
Hi, Andi.
I've spent a few hours in trying to port LTO patches to arm64 4.9 kernel for a fun weekend project.
I got everything to compile and link. The kernel loads and device drivers seem to be probing correctly. Unfortunately, doing LTO seems to hide(?) some syscalls.
Android fails to boot with the following error:
[ 2.164405] init: setegid(0) for /dev/block/sde16 device failed: Function not implemented
[ 2.164420] init: setegid(AID_ROOT) failed: Function not implemented
[ 2.164428] init: Reboot start, reason: reboot, rebootTarget: bootloader
[ 2.164614] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
Adding CFLAGS_sys.o = $(DISABLE_LTO)
doesn't seem to help.
Judging by some files opened and closed previous to that point, I assume other syscalls are find. Can you suggest me some pointers on where to look at?
Thanks.
System calls use aliases, perhaps there's some problem how you define aliases. This was one of the macros that changed.
Or maybe __visible missing somewhere.
In the current version weak call definitions are broken. This causes all kinds of problems.
I'm currently travelling, but will try to fix it later.
Older versions should be ok.
Bump :)