* [PATCH -next] RISC-V: Request newstat syscalls
@ 2018-09-05 14:36 Guenter Roeck
2018-09-05 19:03 ` Christoph Hellwig
2018-09-05 20:46 ` Arnd Bergmann
0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2018-09-05 14:36 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: Albert Ou, linux-riscv, linux-kernel, Geert Uytterhoeven,
Guenter Roeck, Arnd Bergmann
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.
Fixes: 82b355d161c9 ("y2038: Remove newstat family from default syscall set")
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
I would suggest to merge this patch with the offending patch.
arch/riscv/include/asm/unistd.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/unistd.h
index 0caea01d5cca..eff7aa9aa163 100644
--- a/arch/riscv/include/asm/unistd.h
+++ b/arch/riscv/include/asm/unistd.h
@@ -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>
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] RISC-V: Request newstat syscalls
2018-09-05 14:36 [PATCH -next] RISC-V: Request newstat syscalls Guenter Roeck
@ 2018-09-05 19:03 ` Christoph Hellwig
2018-09-05 20:46 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-09-05 19:03 UTC (permalink / raw)
To: Guenter Roeck
Cc: Palmer Dabbelt, Albert Ou, Arnd Bergmann, linux-kernel,
Geert Uytterhoeven, linux-riscv
On Wed, Sep 05, 2018 at 07:36:06AM -0700, Guenter Roeck wrote:
> Fixes: 82b355d161c9 ("y2038: Remove newstat family from default syscall set")
> Cc: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> I would suggest to merge this patch with the offending patch.
Yes, that would be helpful.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] RISC-V: Request newstat syscalls
2018-09-05 14:36 [PATCH -next] RISC-V: Request newstat syscalls Guenter Roeck
2018-09-05 19:03 ` Christoph Hellwig
@ 2018-09-05 20:46 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2018-09-05 20:46 UTC (permalink / raw)
To: Guenter Roeck
Cc: Palmer Dabbelt, aou, linux-riscv, Linux Kernel Mailing List,
Geert Uytterhoeven
On Wed, Sep 5, 2018 at 4:36 PM Guenter Roeck <linux@roeck-us.net> wrote:
>
> 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.
>
> Fixes: 82b355d161c9 ("y2038: Remove newstat family from default syscall set")
> Cc: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-05 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 14:36 [PATCH -next] RISC-V: Request newstat syscalls Guenter Roeck
2018-09-05 19:03 ` Christoph Hellwig
2018-09-05 20:46 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).