RISC-V: Request newstat syscalls
PATCH 1/1 RISC-V: Request newstat syscalls
Since commit 82b355d161c9 ("y2038: Remove newstat family from default syscall set"), riscv images fail to boot with the following error.
/sbin/init: error while loading shared libraries: libc.so.6:
cannot stat shared object: Error 38
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
Explicitly request newstat syscalls to fix the problem.
---
I would suggest to merge this patch with the offending patch.
arch/riscv/include/asm/unistd.h | 1 + 1 file changed, 1 insertion(+)
arch/riscv/include/asm/unistd.h +1 -0
@@ -16,6 +16,7 @@* be included multiple times. See uapi/asm/syscalls.h for more info. */ +#define __ARCH_WANT_NEW_STAT#define __ARCH_WANT_SYS_CLONE#include <uapi/asm/unistd.h> #include <uapi/asm/syscalls.h>
Signature · 1 line
2.7.4
Quoted 5 lines · Guenter Roeck
Fixes 82b355d161c9 ("y2038: Remove newstat family from default syscall set")Cc Arnd Bergmann <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
I would suggest to merge this patch with the offending patch.
Yes, that would be helpful.
Quoted 8 lines · Guenter Roeck
Since commit
82b355d161c9("y2038: Remove newstat family from default syscall set"), riscv images fail to boot with the following error.
/sbin/init: error while loading shared libraries: libc.so.6:
cannot stat shared object: Error 38Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
Quoted 7 lines
Explicitly request newstat syscalls to fix the problem.
Fixes 82b355d161c9 ("y2038: Remove newstat family from default syscall set")Cc Arnd Bergmann <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
I would suggest to merge this patch with the offending patch.
Looks good, thanks for the fix!
Sorry about taking too long to respond to your original bug report. I applied the patch on top of the rest of the series and pushed it out to my public tree for tomorrow's linux-next.
Arnd