linux-misc icon indicating copy to clipboard operation
linux-misc copied to clipboard

Some syscalls not visible

Open arter97 opened this issue 5 years ago • 4 comments

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.

arter97 avatar Mar 09 '19 18:03 arter97

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.

andikleen avatar Mar 10 '19 20:03 andikleen

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.

andikleen avatar May 03 '19 16:05 andikleen

Bump :)

arter97 avatar May 26 '19 20:05 arter97