Subject: Re: installing suse_base on current i386 sets time to 1970
To: None <fm@fmachado.com>
From: Murray Armfield <murray.armfield@arconsulting.com.au>
List: current-users
Date: 11/27/2002 09:31:44
Hi fmac,
=09The kernel already has these commented out.
# Compatibility options
#options COMPAT_NOMID # compatibility with 386BSD, BSDI, NetBSD=
0.8,
#options COMPAT_09 # NetBSD 0.9,
#options COMPAT_10 # NetBSD 1.0,
#options COMPAT_11 # NetBSD 1.1,
#options COMPAT_12 # NetBSD 1.2,
#options COMPAT_13 # NetBSD 1.3,
#options COMPAT_14 # NetBSD 1.4,
#options COMPAT_15 # NetBSD 1.5,
#options COMPAT_43 # and 4.3BSD
#options COMPAT_386BSD_MBRPART # recognize old partition ID
#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommend=
ed.
options COMPAT_SVR4 # binary compatibility with SVR4
#options COMPAT_IBCS2 # binary compatibility with SCO and ISC
options COMPAT_LINUX # binary compatibility with Linux
options COMPAT_FREEBSD # binary compatibility with FreeBSD
#options COMPAT_MACH # binary compatibility with Mach binaries
#options COMPAT_DARWIN # binary compatibility with Darwin binari=
es
#options EXEC_MACHO # exec MACH-O binaries
#options COMPAT_PECOFF # kernel support to run Win32 apps
- Murray
On Tue, 26 Nov 2002 06:47 am, you wrote:
> Hi Murray,
>
> Maybe this message will help you.
>
> -fmac
>
> =3D BOM =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
> Date: Tue, 22 Oct 2002 16:27:56 +0200 (CEST)
> From: Jaromir Dolecek <jdolecek@netbsd.org>
> To: Feico Dillema <feico@pasta.cs.uit.no>
> Cc: port-i386@netbsd.org, tech-kern@netbsd.org
> Subject: Re: Disturbing behaviour on 1.6 without linux emulation
>
> Remove COMPAT_11 and COMPAT_12 from your kernel. The unrecognized ELF
> binaries are run as 'native' ones when these are in kernel (which they
> are by default). The linux ldconfig probably uses some syscall which
> happens to have same number as our settimeofday(2), and gets confused
> by the return value.
>
> Feico Dillema wrote:
> > Hi,
> >
> > Just by accident discovered something weird on a NetBSD 1.6 i386 mach=
ine.
> >
> > # date
> > Tue Oct 22 15:48:05 CEST 2002
> > # /usr/pkg/emul/linux/sbin/ldconfig
> > ^C
> > # date
> > Thu Jan 1 01:00:02 CET 1970
> >
> > This machine runs a kernel without linux emulation, and running the
> > linux ldconfig binary makes it go in an endless loop. The suprising
> > thing is that it also resets the date (only when executed as root).
> > This is reproducible.
> >
> > I wonder whether this indicates a kernel bug (security?) that may hav=
e
> > corrupted other kernel memory also. (securelevel is at 1 on this
> > machine). Would do you think?
> >
> > Feico.