itimer/ntpdate 64-bit patch
The appended patch adds syscall wrappters to fix interval timers on wide kernels. This fixes ntpdate, the silent scp status bar, and maybe (untested) FTP. Unfortunately 'init' started failing intermittently. Sometimes when I boot into init state 1 it works.
The symptom is an infinite loop type 15 fault in init which is really in ld.so.1. The last function called is _dl_important_hwcaps. The interupt instruction doesn't match any in ld.so.1 near the apparent fault location so that's a mystery.
If I boot with init=/sbin/sash that works and if I exec /sbin/init from there it works too.
I can't see any obvious connection between a couple of syscall wrappers and this problem -- maybe someone else will...
-P
Index: arch/parisc/kernel/syscall.S
===================================================================
RCS file: /var/cvs/linux/arch/parisc/kernel/syscall.S,v retrieving revision 1.73
parisc/kernel/syscall.S +2 -2
@@ -465,8 +465,8 @@ ENTRY_SAME(syslog) /* even though manpage says struct timeval contains longs, ours has * time_t and suseconds_t -- both of which are safe wide/narrow */ - ENTRY_SAME(setitimer) - ENTRY_SAME(getitimer) /* 105 */ + ENTRY_DIFF(setitimer) + ENTRY_DIFF(getitimer) /* 105 */ ENTRY_SAME(capget) ENTRY_SAME(capset) ENTRY_DIFF(pread)
Index: arch/parisc/kernel/sys_parisc32.c
===================================================================
RCS file: /var/cvs/linux/arch/parisc/kernel/sys_parisc32.c,v retrieving revision 1.25
parisc/kernel/sys_parisc32.c +60 -2
80 lines not on this page · raw message
On Helge's suggestion I stopped freeing bootmem, and the problem no longer manifests. No more time to work on it. I won't commit the syscall wrapper patch for now.
-P
Quoted 4 lines · Paul Bame
On Helge's suggestion I stopped freeing bootmem, and the problem no longer manifests. No more time to work on it. I won't commit the syscall wrapper patch for now.
I tried zero-ing bootmem instead of freeing it, in the hope that I'd get a more useful crash if it tried to execute code there, but it didn't fail. But then, I didn't try freeing bootmem with the itimer wrapper, so maybe my box doesn't have the problem anyway.
Richard