Subject: Re: installing suse_base on current i386 sets time to 1970
To: None <current-users@netbsd.org>
From: None <fm-nospam@fmachado.com>
List: current-users
Date: 11/25/2002 17:47:11
Hi Murray,

Maybe this message will help you.

-fmac

= BOM =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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 machine.
>
> # 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 have
> corrupted other kernel memory also. (securelevel is at 1 on this
> machine). Would do you think?
>
> Feico.
>
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-
= EOM =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


On Mon, 25 Nov 2002 12:53:44 +1100, Murray Armfield <murray> escreveu :

> De: Murray Armfield <murray>
> Data: Mon, 25 Nov 2002 12:53:44 +1100
> Para: current-users@netbsd.org
> Assunto: installing suse_base on current i386 sets time to 1970
>
> Hi Folks,
>     I have recently rebuilt my i386 current machine as of last nights sources.
> When I go to install suse_base from pkgsrc, the install phase never completes
> and my system time changes to 1970. One time I corrected the time and the
> whole machine hung. All other times system has been stable, but install never
> completes.
>
>     The install hangs on the line...
>
>          ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
>
> I'm wondering if anyone else is seeing this and if its related to the recent
> changes in compat/linux.
>
> Take care,
>     Murray Armfield