Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. HostRaid support on FreeBSD (Eric Veraart)
2. [current tinderbox] failure on i386/pc98 (FreeBSD Tinderbox)
3. [current tinderbox] failure on ia64/ia64 (FreeBSD Tinderbox)
4. Re: calcru: negative time ... followed by freeze (Bruce Evans)
5. [current tinderbox] failure on powerpc/powerpc (FreeBSD Tinderbox)
6. Re: -current error (Dmitry Morozovsky)
7. Re: calcru: negative time ... followed by freeze (Bruce Evans)
8. [current tinderbox] failure on i386/i386 (FreeBSD Tinderbox)
9. Re: startup error for pflogd (Max Laier)
10. new motherboard - fsck_ufs died with signal 8 (Gordon Bergling)
11. Re: startup error for pflogd (Michael Reifenberger)
12. Re: new motherboard - fsck_ufs died with signal 8
(Gordon Bergling)
13. Re: startup error for pflogd (Remko Lodder)
14. Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode (Andreas Braukmann)
15. CURRENT does not build (annotate.texi) (Axel S.Gruner)
16. Re: startup error for pflogd (Martin P. Hellwig)
17. Re: CURRENT does not build (annotate.texi) (Marcel Moolenaar)
18. Re: startup error for pflogd (David O'Brien)
19. Re: kldload random.ko panics -CURRENT (David O'Brien)
20. Re: startup error for pflogd (Charles Swiger)
21. Re: -current error (David O'Brien)
22. Re: startup error for pflogd (Roman Neuhauser)
23. Re: calcru: negative time ... followed by freeze (Don Lewis)
24. Re: GEOM panic in today's -current (Steve Kargl)
25. [HEADSUP] retire TIOCDCDTIMESTAMP (Poul-Henning Kamp)
26. Re: new motherboard - fsck_ufs died with signal 8
(Gordon Bergling)
27. Re: new motherboard - fsck_ufs died with signal 8
(Dag-Erling Sm?rgrav)
28. Re: read vs. mmap (or io vs. page faults) (Matthew Dillon)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Jun 2004 14:00:13 +0200
From: Eric Veraart <eric@monkey-online.net>
Subject: HostRaid support on FreeBSD
To: freebsd-current@freebsd.org
Cc: freebsd-scsi@freebsd.org
Message-ID:
<5.2.1.1.0.20040621135534.068fef40@server01.chassis00.xsnetworks.net>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Hello,
I was browsing through the mailinglist and was wondering on what the status
was on HostRaid support on FreeBSD. Certainly since the new Intel Pentium 4
Entry Server Board SE7210TP1-E supports HostRaid and we're planning to use
those boards. The SCSI version of the board has an Adaptec AIC-7901 chip
and the SATA version has a 6300esb chip. I can find Linux drivers, but
development for FreeBSD seems to be lying still.
So who is working on it, or who doesn't have the time/resources to do this?
Greetings,
Eric
------------------------------
Message: 2
Date: Mon, 21 Jun 2004 08:28:18 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/pc98
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<i386@freebsd.org>
Message-ID: <20040621122818.D8B787306D@freebsd-current.sentex.ca>
TB --- 2004-06-21 11:03:32 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-21 11:03:32 - starting CURRENT tinderbox run for i386/pc98
TB --- 2004-06-21 11:03:32 - checking out the source tree
TB --- 2004-06-21 11:03:32 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98
TB --- 2004-06-21 11:03:33 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-21 11:08:34 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-21 11:08:34 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src
TB --- 2004-06-21 11:08:34 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
ln -sf /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../c
ontrib/binutils/ld/gen-doc.texi configdoc.texi
makeinfo --no-validate -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutil
s/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/i386/pc98/src
/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CURREN
T/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bfd/doc
-I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contr
ib/binutils/binutils -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/
doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/i386/pc98/src/gnu/us
r.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CURRENT/i386/p
c98/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline/doc --no-spli
t -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc -I /tinderbox/C
URRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils /ti
nderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/bin
utils/ld/ld.texinfo -o ld.info
gzip -cn ld.info > ld.info.gz
makeinfo --no-validate -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutil
s/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/i386/pc98/src
/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CURREN
T/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bfd/doc
-I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contr
ib/binutils/binutils -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/
doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/i386/pc98/src/gnu/us
r.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CURRENT/i386/p
c98/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline/doc --no-spli
t -I /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc -I /tinderbox/C
URRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils /ti
nderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../contrib/bin
utils/gas/doc/gasp.texi -o gasp.info
gzip -cn gasp.info > gasp.info.gz
ln -sf /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/doc/../../../../c
ontrib/gdb/gdb/doc/all-cfg.texi gdb-cfg.texi
echo "@set GDBVN `sed q /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils/
doc/../../../../contrib/gdb/gdb/version.in`" > GDBvn.texi
make: don't know how to make annotate.texi. Stop
*** Error code 2
Stop in /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin/binutils.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/pc98/src/gnu/usr.bin.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/pc98/src/gnu.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/pc98/src.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/pc98/src.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/pc98/src.
TB --- 2004-06-21 12:28:18 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 12:28:18 - ERROR: failed to build world
TB --- 2004-06-21 12:28:18 - tinderbox aborted
------------------------------
Message: 3
Date: Mon, 21 Jun 2004 08:51:57 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on ia64/ia64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<ia64@freebsd.org>
Message-ID: <20040621125157.83FA87306D@freebsd-current.sentex.ca>
TB --- 2004-06-21 12:28:19 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-21 12:28:19 - starting CURRENT tinderbox run for ia64/ia64
TB --- 2004-06-21 12:28:19 - checking out the source tree
TB --- 2004-06-21 12:28:19 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64
TB --- 2004-06-21 12:28:19 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-21 12:32:55 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-21 12:32:55 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-06-21 12:32:55 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
cc -fpic -DPIC -O2 -pipe -I/tinderbox/CURRENT/ia64/ia64/src/kerberos5/lib/lib
asn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/ia64/ia64/src/kerbe
ros5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tind
erbox/CURRENT/ia64/ia64/src/kerberos5/lib/libasn1/../../include -DINET6 -c as
n1_Ticket.c -o asn1_Ticket.So
cc -fpic -DPIC -O2 -pipe -I/tinderbox/CURRENT/ia64/ia64/src/kerberos5/lib/lib
asn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/ia64/ia64/src/kerbe
ros5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tind
erbox/CURRENT/ia64/ia64/src/kerberos5/lib/libasn1/../../include -DINET6 -c as
n1_TicketFlags.c -o asn1_TicketFlags.So
cc -fpic -DPIC -O2 -pipe -I/tinderbox/CURRENT/ia64/ia64/src/kerberos5/lib/lib
asn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/ia64/ia64/src/kerbe
ros5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tind
erbox/CURRENT/ia64/ia64/src/kerberos5/lib/libasn1/../../include -DINET6 -c as
n1_TransitedEncoding.c -o asn1_TransitedEncoding.So
cc -fpic -DPIC -O2 -pipe -I/tinderbox/CURRENT/ia64/ia64/src/kerberos5/lib/lib
asn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/ia64/ia64/src/kerbe
ros5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tind
erbox/CURRENT/ia64/ia64/src/kerberos5/lib/libasn1/../../include -DINET6 -c as
n1_UNSIGNED.c -o asn1_UNSIGNED.So
building shared library libasn1.so.7
cc: Internal error: Bus error (program ld)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src/kerberos5/lib/libasn1.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
TB --- 2004-06-21 12:51:57 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 12:51:57 - ERROR: failed to build world
TB --- 2004-06-21 12:51:57 - tinderbox aborted
------------------------------
Message: 4
Date: Mon, 21 Jun 2004 22:52:18 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: calcru: negative time ... followed by freeze
To: Don Lewis <truckman@FreeBSD.org>
Cc: threads@FreeBSD.org
Message-ID: <20040621220455.T9194@gamplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, Don Lewis wrote:
> On 21 Jun, Don Lewis wrote:
> > On 21 Jun, Bruce Evans wrote:
> >> Ah, here is a likely cause of the bug in -current:
> >>
> >> % if (p == curthread->td_proc) {
> >> % /*
> >> % * Adjust for the current time slice. This is actually fairly
> >> % * important since the error here is on the order of a time
> >> % * quantum, which is much greater than the sampling error.
> >> % * XXXKSE use a different test due to threads on other
> >> % * processors also being 'current'.
> >> % */
> >> % binuptime(&bt);
> >> % bintime_sub(&bt, PCPU_PTR(switchtime));
> >> % bintime_add(&bt, &p->p_runtime);
> >> % } else
> >> % bt = p->p_runtime;
> >>
> >> The XXXKSE comment is correct that this might be broken. If the (p
> >> ...
>
> It looks like another way to trigger this in the SMP case would be to
> have two threads of the same process running at the same time, and for
> the second thread to call calcru() to have been running for a shorter
> period of time than when the first thread called calcru().
I think my test for the problem case covers this. It's necessary to
add the runtime for the current slice for all threads in the process,
but the above adds it for at most one thread. I set a flag to indicate
that there is a problem if any running thread in the process can't be
handled:
%%%
rt = p->p_runtime;
problemcase = 0;
FOREACH_THREAD_IN_PROC(p, td) {
/*
* Adjust for the current time slice. This is actually fairly
* important since the error here is on the order of a time
* quantum, which is much greater than the sampling error.
*/
if (td == curthread) {
binuptime(&bt);
bintime_sub(&bt, PCPU_PTR(switchtime));
bintime_add(&rt, &bt);
} else {
/*
* This case should add the current time less the
* switch time as above, but the switch time is
* inaccessible. So we might end up with rt too
* small and then the monotonicity check might detect
* the problem. Just set a flag to avoid warning
* about this known problem.
*/
problemcase = 1;
}
}
%%%
Oops, this is missing the critical TD_IS_RUNNING(td) condition for setting
problemcase.
> In the SMP cases, it probably makes sense to just silently to do
> if (tu < ptu)
> tu = ptu
> because of the complications of attempting to do an accurate
> calculation.
I'm tempted to do that because the debugging code is so ugly, but the
diagnostic has been useful for finding bugs that weren't all there when
it was written, so I'd prefer not to remove it.
> > There must be some !SMP trigger for this as well. I just checked and I
> > was able to trigger this on my Pentium-M laptop as well by leaning on
> > the ^T key while I was logged on via ssh and running 'portupgrade -aP'.
> >
> > Jun 21 00:41:31 hairball kernel: calcru: negative time of 23169 usec for p
id 44653 (sh)
> > Jun 21 00:41:32 hairball kernel: calcru: negative time of 21990 usec for p
id 44665 (sh)
> >
> > I didn't use ^T on my Athlon box. I might have had top running, though.
> >
> > It's interesting that this bug only seems to get triggered on /bin/sh.
> > Maybe it is fork()/exit()/wait() related?
>
> It looks like the bug is in the exit code. I tweaked the printf() in
> calcru() to print out p_state, p_flag, and p_sflag in addition to the
> other info. In all cases, the processes that trigger the printf were
> zombies, and show up as [running] in ttyinfo() on a uniprocessor box.
There is a PR about this (#52490). The oops in my test fixes it for bogus
reasons. I'm currently adding similar printfs to help figure out what is
going wrong.
> Jun 21 03:17:03 hairball kernel: calcru: negative time of 179 usec for
> pid 4543 (sh) p_state=0x2 p_flag=0x2002 p_sflag=0x1
>
> load: 0.71 cmd: sh 4543 [running] 0.00u 0.00s 3% 0k
>
> p_runtime only gets updated in mi_switch(), and it appears that it never
> gets updated after the calcru() call in exit1().
That explains the problem. The calcru() values sets up to date (final)
values for the components of ptu. When we look at the process after it
has become a zombie, we use only p_runtime since the process is not
running, but p_runtime is stale.
> It also looks like a bug that a zombie remains in the [running] state
> and thus looks interesting to ttyinfo().
I think it isn't really running. ttyinfo() should pick it if it is the
only process the terminal. ttyinfo() does pick it for the zombie in the
test program in the PR, and reports that it is running, but ps reports
it correctly as a zomble.
Bruce
------------------------------
Message: 5
Date: Mon, 21 Jun 2004 09:01:53 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on powerpc/powerpc
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<powerpc@freebsd.org>
Message-ID: <20040621130153.976097306D@freebsd-current.sentex.ca>
TB --- 2004-06-21 12:51:57 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-21 12:51:57 - starting CURRENT tinderbox run for powerpc/powerp
c
TB --- 2004-06-21 12:51:57 - checking out the source tree
TB --- 2004-06-21 12:51:57 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerp
c
TB --- 2004-06-21 12:51:57 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-21 12:56:00 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-21 12:56:00 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerp
c/src
TB --- 2004-06-21 12:56:00 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
[...]
sed -e 's,!!TRAD_HEADER!!,,g' /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.b
in/binutils/libbfd/config.h.fbsd > config.h
echo '#define BFD_VERSION 215000000' > bfdver.h
echo '#define BFD_VERSION_DATE 20040517' >> bfdver.h
echo '#define BFD_VERSION_STRING "2.15 [FreeBSD] 2004-05-23"' >> bfdver.h
rm -f .depend
mkdep -f .depend -a -I. -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bi
n/binutils/libbfd/powerpc -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin
/binutils/libbfd -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils
/libbfd/../libbfd/powerpc -I/tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tin
derbox/CURRENT/powerpc/powerpc/src/i386/tinderbox/CURRENT/powerpc/powerpc/src/
gnu/usr.bin/binutils/libbfd/../libbfd -I/tinderbox/CURRENT/powerpc/powerpc/src
/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/include -DDEFAULT_VE
CTOR=bfd_elf32_powerpc_vec -D_GNU_SOURCE -I/tinderbox/CURRENT/powerpc/powerpc/
src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd -DSELECT_ARCH
ITECTURES=" &bfd_powerpc_arch" -DHAVE_bfd_elf32_powerpc_vec -DHAVE_bfd_elf32_p
owerpcle_vec -DHAVE_ppcboot_vec -DSELECT_VECS=" &bfd_elf32_powerpc_vec ,&bfd_e
lf32_powerpcle_vec ,&ppcboot_vec" -I/home/tinderbox/sandbox/CURRENT/powerpc/po
werpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/sr
c/i386/legacy/usr/include /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/
binutils/libbfd/../../../../contrib/binutils/bfd/cpu-powerpc.c /tinderbox/CURR
ENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binuti
ls/bfd/cpu-rs6000.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutil
s/libbfd/../../../../contrib/binutils/bfd/elf32.c /tinderbox/CURRENT/powerpc/p
owerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-
gen.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/elf32-ppc.c /tinderbox/CURRENT/powerpc/powerpc/src
/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.c /tinde
rbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contr
ib/binutils/bfd/ppcboot.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/b
inutils/libbfd/../../../../contrib/binutils/bfd/archive.c /tinderbox/CURRENT/p
owerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../.
./../contrib/binutils/bfd/archive64.c /tinderbox/CURRENT/powerpc/powerpc/src/
gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/archures.c /tinde
rbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contr
ib/binutils/bfd/bfd.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binut
ils/libbfd/../../../../contrib/binutils/bfd/bfdwin.c /tinderbox/CURRENT/powerp
c/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/bin
ary.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/cache.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu
/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/coffgen.c /tinderbox
/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/b
inutils/bfd/corefile.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binu
tils/libbfd/../../../../contrib/binutils/bfd/elf.c /tinderbox/CURRENT/powerpc/
powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../co
ntrib/binutils/bfd/elf-eh-frame.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/
usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf-strtab.c /tinderb
ox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
/binutils/bfd/format.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binu
tils/libbfd/../../../../contrib/binutils/bfd/hash.c /tinderbox/CURRENT/powerpc
/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/ihex
.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../..
/../contrib/binutils/bfd/init.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr
.bin/binutils/libbfd/../../../../contrib/binutils/bfd/libbfd.c /tinderbox/CURR
ENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binuti
ls/bfd/linker.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/li
bbfd/../../../../contrib/binutils/bfd/merge.c /tinderbox/CURRENT/powerpc/power
pc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
/binutils/bfd/opncls.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/bin
utils/libbfd/../../../../contrib/binutils/bfd/reloc.c /tinderbox/CURRENT/power
pc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/se
ction.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../
./../../contrib/binutils/bfd/srec.c /tinderbox/CURRENT/powerpc/powerpc/src/gn
u/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/stab-syms.c /tinder
box/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contri
b/binutils/bfd/stabs.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binu
tils/libbfd/../../../../contrib/binutils/bfd/syms.c /tinderbox/CURRENT/powerpc
/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/targ
ets.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/tekhex.c /tinderbox/CURRENT/powerpc/powerpc/src/gn
u/usr.bin/binutils/libbfd/../../../../contrib/binutils
/bfd/dwarf1.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/lib
bfd/../../../../contrib/binutils/bfd/dwarf2.c /tinderbox/CURRENT/powerpc/power
pc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/bfdio.c /t
inderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../c
ontrib/binutils/bfd/simple.c
/tinderbox/CURRENT/powerpc/powerpc/src/contrib/binutils/bfd/elf32-ppc.c:34:23:
elf32-ppc.h: No such file or directory
mkdep: compile failed
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
TB --- 2004-06-21 13:01:53 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 13:01:53 - ERROR: failed to build world
TB --- 2004-06-21 13:01:53 - tinderbox aborted
------------------------------
Message: 6
Date: Mon, 21 Jun 2004 17:37:08 +0400 (MSD)
From: Dmitry Morozovsky <marck@rinet.ru>
Subject: Re: -current error
To: freebsd-current@freebsd.org
Cc: Damian Gerow <dgerow@afflictions.org>
Message-ID: <20040621173425.S61678@woozle.rinet.ru>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi there,
I used to overcome build error by recovering from Attic two files:
contrib/gdb/gdb/doc/annotate.texi
contrib/gdb/gdb/mi/gdbmi.texinfo
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
------------------------------
Message: 7
Date: Mon, 21 Jun 2004 23:38:06 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: calcru: negative time ... followed by freeze
To: Don Lewis <truckman@FreeBSD.org>
Cc: threads@FreeBSD.org
Message-ID: <20040621232654.S873@gamplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, Bruce Evans wrote:
> On Mon, 21 Jun 2004, Don Lewis wrote:
> > It looks like the bug is in the exit code. I tweaked the printf() in
> > calcru() to print out p_state, p_flag, and p_sflag in addition to the
> > other info. In all cases, the processes that trigger the printf were
> > zombies, and show up as [running] in ttyinfo() on a uniprocessor box.
>
> There is a PR about this (#52490). The oops in my test fixes it for bogus
> reasons. I'm currently adding similar printfs to help figure out what is
> going wrong.
>
> > Jun 21 03:17:03 hairball kernel: calcru: negative time of 179 usec for
> > pid 4543 (sh) p_state=0x2 p_flag=0x2002 p_sflag=0x1
> >
> > load: 0.71 cmd: sh 4543 [running] 0.00u 0.00s 3% 0k
> >
> > p_runtime only gets updated in mi_switch(), and it appears that it never
> > gets updated after the calcru() call in exit1().
>
> That explains the problem. The calcru() values sets up to date (final)
> values for the components of ptu. When we look at the process after it
> has become a zombie, we use only p_runtime since the process is not
> running, but p_runtime is stale.
I happened to have fixed this already without really noticing. (My kernel
doesn't call calcru() in exit1() or in wait1(); it accumulates p_runtime
and tick counts (instead of those values converted to timevals by calcru())
in the child stats, so it has to get the final p_runtime right.)
%%%
Index: kern_exit.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_exit.c,v
retrieving revision 1.236
diff -u -2 -r1.236 kern_exit.c
--- kern_exit.c 18 Jun 2004 11:13:49 -0000 1.236
+++ kern_exit.c 21 Jun 2004 13:04:31 -0000
@@ -104,4 +104,5 @@
exit1(struct thread *td, int rv)
{
+ struct bintime new_switchtime;
struct proc *p, *nq, *q;
struct tty *tp;
@@ -518,8 +519,14 @@
mtx_lock_spin(&sched_lock);
critical_exit();
- cnt.v_swtch++;
- binuptime(PCPU_PTR(switchtime));
+
+ /* Do the same timestamp bookkeeping that mi_switch() would do. */
+ binuptime(&new_switchtime);
+ bintime_add(&p->p_runtime, &new_switchtime);
+ bintime_sub(&p->p_runtime, PCPU_PTR(switchtime));
+ PCPU_SET(switchtime, new_switchtime);
PCPU_SET(switchticks, ticks);
+ cnt.v_swtch++;
+
/*
* Allow the scheduler to adjust the priority of the
%%%
I will commit this soon.
Workaround for the main problem:
%%%
Index: kern_resource.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_resource.c,v
retrieving revision 1.139
diff -u -2 -r1.139 kern_resource.c
--- kern_resource.c 16 Jun 2004 00:26:29 -0000 1.139
+++ kern_resource.c 21 Jun 2004 12:55:24 -0000
@@ -702,8 +702,10 @@
struct timeval *ip;
{
- struct bintime bt;
+ struct bintime bt, rt;
struct timeval tv;
+ struct thread *td;
/* {user, system, interrupt, total} {ticks, usec}; previous tu: */
u_int64_t ut, uu, st, su, it, iu, tt, tu, ptu;
+ int problemcase;
mtx_assert(&sched_lock, MA_OWNED);
@@ -719,22 +721,40 @@
tt = 1;
}
- if (p == curthread->td_proc) {
+ rt = p->p_runtime;
+ problemcase = 0;
+ FOREACH_THREAD_IN_PROC(p, td) {
/*
* Adjust for the current time slice. This is actually fairly
* important since the error here is on the order of a time
* quantum, which is much greater than the sampling error.
- * XXXKSE use a different test due to threads on other
- * processors also being 'current'.
*/
- binuptime(&bt);
- bintime_sub(&bt, PCPU_PTR(switchtime));
- bintime_add(&bt, &p->p_runtime);
- } else
- bt = p->p_runtime;
- bintime2timeval(&bt, &tv);
+ if (td == curthread) {
+ binuptime(&bt);
+ bintime_sub(&bt, PCPU_PTR(switchtime));
+ bintime_add(&rt, &bt);
+ } else if (TD_IS_RUNNING(td)) {
+ /*
+ * This case should add the current time less the
+ * switch time as above, but the switch time is
+ * inaccessible. So we might end up with rt too
+ * small and then the monotonicity check might detect
+ * the problem. Just set a flag to avoid warning
+ * about this known problem.
+ */
+ problemcase = 1;
+ }
+ }
+ bintime2timeval(&rt, &tv);
tu = (u_int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
ptu = p->p_uu + p->p_su + p->p_iu;
- if (tu < ptu || (int64_t)tu < 0) {
- printf("calcru: negative time of %jd usec for pid %d (%s)\n",
+ if (tu < ptu) {
+ if (!problemcase)
+ printf(
+"calcru: runtime went backwards from %ju usec to %ju usec for pid %d (%s)\n",
+ (uintmax_t)ptu, (uintmax_t)tu, p->p_pid, p->p_comm);
+ tu = ptu;
+ }
+ if ((int64_t)tu < 0) {
+ printf("calcru: negative runtime of %jd usec for pid %d (%s)\n",
(intmax_t)tu, p->p_pid, p->p_comm);
tu = ptu;
%%%
Bruce
------------------------------
Message: 8
Date: Mon, 21 Jun 2004 10:11:18 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/i386
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<i386@freebsd.org>
Message-ID: <20040621141118.DEBF47306D@freebsd-current.sentex.ca>
TB --- 2004-06-20 10:00:59 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-20 10:00:59 - starting CURRENT tinderbox run for i386/i386
TB --- 2004-06-20 10:00:59 - checking out the source tree
TB --- 2004-06-20 10:00:59 - cd /home/tinderbox/sandbox/CURRENT/i386/i386
TB --- 2004-06-20 10:00:59 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-20 10:04:07 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-20 10:04:07 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src
TB --- 2004-06-20 10:04:07 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
TB --- 2004-06-20 10:58:15 - building generic kernel (COPTFLAGS=-O2 -pipe)
TB --- 2004-06-20 10:58:15 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src
TB --- 2004-06-20 10:58:15 - /usr/bin/make buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Sun Jun 20 10:58:15 GMT 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for GENERIC completed on Sun Jun 20 11:14:17 GMT 2004
TB --- 2004-06-20 11:14:17 - generating LINT kernel config
TB --- 2004-06-20 11:14:17 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src/
sys/i386/conf
TB --- 2004-06-20 11:14:17 - /usr/bin/make -B LINT
TB --- 2004-06-20 11:14:17 - building LINT kernel (COPTFLAGS=-O2 -pipe)
TB --- 2004-06-20 11:14:17 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src
TB --- 2004-06-20 11:14:17 - /usr/bin/make buildkernel KERNCONF=LINT
>>> Kernel build for LINT started on Sun Jun 20 11:14:17 GMT 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
cc -O2 -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -include /tinderbox/CURR
ENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/LINT/opt_global.h -I. -I
@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -I/tinderbo
x/CURRENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/LINT -mno-align-lo
ng-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -W
inline -Wcast-qual -fformat-extensions -std=c99 -c /tinderbox/CURRENT/i386/i3
86/src/sys/dev/sound/pci/als4000.c
ld -d -warn-common -r -d -o snd_als4000.kld als4000.o
touch /tinderbox/CURRENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/LIN
T/modules/tinderbox/CURRENT/i386/i386/src/sys/modules/sound/driver/als4000/exp
ort_syms
awk -f /tinderbox/CURRENT/i386/i386/src/sys/modules/sound/driver/als4000/../..
/../../conf/kmod_syms.awk snd_als4000.kld /tinderbox/CURRENT/i386/i386/obj/ti
nderbox/CURRENT/i386/i386/src/sys/LINT/modules/tinderbox/CURRENT/i386/i386/src
/sys/modules/sound/driver/als4000/export_syms | xargs -J% objcopy % snd_als40
00.kld
ld -Bshareable -d -warn-common -o snd_als4000.ko snd_als4000.kld
objcopy --strip-debug snd_als4000.ko
===> sound/driver/ad1816
cc -O2 -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -include /tinderbox/CURR
ENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/LINT/opt_global.h -I. -I
@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -I/tinderbo
x/CURRENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/LINT -mno-align-lo
ng-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -W
inline -Wcast-qual -fformat-extensions -std=c99 -c /tinderbox/CURRENT/i386/i3
86/src/sys/dev/sound/isa/ad1816.c
*** Signal 15
Stop in /tinderbox/CURRENT/i386/i386/src/sys/modules/sound/driver/ad1816.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src/sys/modules/sound/driver.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src/sys/modules/sound.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src/sys/modules.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/obj/tinderbox/CURRENT/i386/i386/src/sys/L
INT.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src.
TB --- 2004-06-21 14:11:18 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 14:11:18 - ERROR: failed to build lint kernel
TB --- 2004-06-21 14:11:18 - tinderbox aborted
------------------------------
Message: 9
Date: Mon, 21 Jun 2004 16:39:10 +0200
From: Max Laier <max@love2party.net>
Subject: Re: startup error for pflogd
To: freebsd-current@freebsd.org
Cc: Michael Reifenberger <mike@Reifenberger.com>
Message-ID: <200406211639.22243.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"
On Monday 21 June 2004 10:57, Michael Reifenberger wrote:
> Hi,
> as it seems is pflogd requiring an user "_pflogd" to work which is not
> installed by default under FreeBSD.
Oh, I knew I forgot something :-\
> As it seems is OpenBSD aggressivly using "_<service>" users.
> Is this something we should follow?
I'll try to explain the reasoning behind this. If there are a zillion
processes all owned by nobody:nogroup and an attacker manages to obtain
control over one of them, the rest might be easy/easier prey. The evildoer
will have better chances to obtain critical resources and maybe root in the
end.
This might seem like OpenBSD/paranoia, but my opinion on it is: It's done so
why not port it over? It also helps to keep the diff down (which means less
work).
If there is no resistance against "yet another user", I will add _pflogd.
On a related note: OpenBSD also introduced an ioctl to lock a bpf-descriptor,
thus making it less valueable for a possible attacker. This is a sane thing
for longrunning processes such as IDS or pflog and I am wondering if we
should port it. It's a simple enough thing and I will post diffs on -net
later.
--
Best regards, | mlaier@freebsd.org
Max Laier | ICQ #67774661
http://pf4freebsd.love2party.net/ | mlaier@EFnet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
aa16541b/attachment-0001.bin
------------------------------
Message: 10
Date: Mon, 21 Jun 2004 16:55:38 +0200
From: Gordon Bergling <gbergling@0xfce3.net>
Subject: new motherboard - fsck_ufs died with signal 8
To: current@freebsd.org
Message-ID: <20040621145538.GA968@nemesis.md.0xfce3.net>
Content-Type: text/plain; charset="us-ascii"
Hi folks,
today I am getting my hands on a new motherboard. I upgraded my system
from VIA KT133A based Motherboard (Athlon 1GHz) to a KT266A based one
with an Athlon XP 1600+ (DDR Ram). It seems that the hardware is working probe
rly.
If I try to boot my FreeBSD installation the kernel boots up and after
init was started I am gettings signal 8 at the following processes.
(fsck_ufs, ...). I tried to boot without ACPI but it doesn't change
anything.
FreeBSD will only boot with "FreeBSD Safe-Mode" choosen from the start
menu.
Can anyone tell me what "FreeBSD Safe-Mode" means?
My kernel-config is only a little bit different from GENERIC.
Should I change something in my kernel config?
Should I "make world" again?
best regards,
Gordon
--
Gordon Bergling <GBergling@0xfce3.net> http://www.0xFCE3.net/
PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0
RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
98e2c949/attachment-0001.bin
------------------------------
Message: 11
Date: Mon, 21 Jun 2004 17:03:06 +0200 (CEST)
From: Michael Reifenberger <mike@Reifenberger.com>
Subject: Re: startup error for pflogd
To: Max Laier <max@love2party.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040621170130.E9602@fw.reifenberger.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Mon, 21 Jun 2004, Max Laier wrote:
..
> I'll try to explain the reasoning behind this. If there are a zillion
> processes all owned by nobody:nogroup and an attacker manages to obtain
> control over one of them, the rest might be easy/easier prey. The evildoer
> will have better chances to obtain critical resources and maybe root in the
> end.
>
> This might seem like OpenBSD/paranoia, but my opinion on it is: It's done so
> why not port it over? It also helps to keep the diff down (which means less
> work).
>
Wouldn't it make sense to add all _<service> users at once then?
Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
------------------------------
Message: 12
Date: Mon, 21 Jun 2004 17:10:37 +0200
From: Gordon Bergling <gbergling@0xfce3.net>
Subject: Re: new motherboard - fsck_ufs died with signal 8
To: freebsd-current@freebsd.org
Message-ID: <20040621151037.GA1416@nemesis.md.0xfce3.net>
Content-Type: text/plain; charset="us-ascii"
Hi folks,
today I am getting my hands on a new motherboard. I upgraded my system
from VIA KT133A based Motherboard (Athlon 1GHz) to a KT266A based one
with an Athlon XP 1600+ (DDR Ram). It seems that the hardware is working probe
rly.
If I try to boot my FreeBSD installation the kernel boots up and after
init was started I am gettings signal 8 at the following processes.
(fsck_ufs, ...). I tried to boot without ACPI but it doesn't change
anything.
FreeBSD will only boot with "FreeBSD Safe-Mode" choosen from the start
menu.
Can anyone tell me what "FreeBSD Safe-Mode" means?
My kernel-config is only a little bit different from GENERIC.
Should I change something in my kernel config?
Should I "make world" again?
best regards,
Gordon
--
Gordon Bergling <GBergling@0xfce3.net> http://www.0xFCE3.net/
PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0
RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
ab682b8b/attachment-0001.bin
------------------------------
Message: 13
Date: Mon, 21 Jun 2004 17:12:24 +0200
From: Remko Lodder <remko@elvandar.org>
Subject: Re: startup error for pflogd
To: Max Laier <max@love2party.net>
Cc: Michael Reifenberger <mike@Reifenberger.com>
Message-ID: <40D6FAD8.2010704@elvandar.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Max and the rest,
Max Laier wrote:
> On Monday 21 June 2004 10:57, Michael Reifenberger wrote:
>
>>Hi,
>>as it seems is pflogd requiring an user "_pflogd" to work which is not
>>installed by default under FreeBSD.
>
>
> Oh, I knew I forgot something :-\
We are all just human ;)
>
>
>>As it seems is OpenBSD aggressivly using "_<service>" users.
>>Is this something we should follow?
>
>
> I'll try to explain the reasoning behind this. If there are a zillion
> processes all owned by nobody:nogroup and an attacker manages to obtain
> control over one of them, the rest might be easy/easier prey. The evildoer
> will have better chances to obtain critical resources and maybe root in the
> end.
>
> This might seem like OpenBSD/paranoia, but my opinion on it is: It's done so
> why not port it over? It also helps to keep the diff down (which means less
> work).
I am a YES voter for this one, the less risk with each daemonized
process, which turns their privileges over to a lesser privileged user (
startup as root , switching to _pflogd in this case ) is something i
really prefer. Prevents potential damage to systems when someone does
something very evil :)
>
> If there is no resistance against "yet another user", I will add _pflogd.
Again, you have my go :)
>
> On a related note: OpenBSD also introduced an ioctl to lock a bpf-descriptor
,
> thus making it less valueable for a possible attacker. This is a sane thing
> for longrunning processes such as IDS or pflog and I am wondering if we
> should port it. It's a simple enough thing and I will post diffs on -net
> later.
>
We ( well Actually i think that _we_ can be concluded here ;) ) want to
secure FreeBSD as much as possible, while we don't totally freakout like
OpenBSD does sometimes (sorry, don't mean to hit some feet now), we can
adopt some changes in their system to ours, to make accessible devices (
applications behind ports ( named? ) but also handlers that have traffic
passing by ( pflogd ) ) less risky to run ...
--
Kind regards,
Remko Lodder |remko@elvandar.org
Reporter DSINet |remko@dsinet.org
Projectleader Mostly-Harmless |remko@mostly-harmless.nl
------------------------------
Message: 14
Date: Mon, 21 Jun 2004 17:58:20 +0200
From: Andreas Braukmann <braukmann@tse-online.de>
Subject: Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode
To: Bill Paul <wpaul@FreeBSD.ORG>
Cc: freebsd-current@freebsd.org
Message-ID: <2147483647.1087840700@[192.168.222.11]>
Content-Type: text/plain; charset=us-ascii; format=flowed
--On Samstag, 19. Juni 2004 21:31 Uhr +0200 <braukmann@tse-online.de> wrote:
> On 06/18/04 17:32:04 +0000 Bill Paul wrote:
>>> On 06/18/04 01:51:17 +0000 Bill Paul wrote:
>>> > Please try the code located at:
>>> >
>>> > http://www.freebsd.org/~wpaul/re
[...]
>
> The original driver v 1.24 with the (deactivated) old diagnostic
> code works quite ok (despite of teh misleading / missing ifconfig
> output for the media). The patched driver from your driver doesn't
> work anymore; all attempts to send or receive packets fail.
>
> Currently I can't tell you anything about the concrete link state
> of the interface. The box and the (unmanaged) switch are 36 km away
> from here.
ok. The NIC-LED as well as the switch LED were claiming "link up".
-Andreas
------------------------------
Message: 15
Date: Mon, 21 Jun 2004 18:09:10 +0200
From: Axel S.Gruner <liste@encephalon.de>
Subject: CURRENT does not build (annotate.texi)
To: current@freebsd.org
Message-ID: <54B7520E-C39D-11D8-A4AE-000A95AB00F4@encephalon.de>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi,
i got some problems building CURRENT maybe someone can tell me what the
problem is:
echo "@set VERSION "2.15 [FreeBSD] 2004-05-23"" > ldver.texi
ln
-sf
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld/gen-
doc.texi
configdoc.texi
makeinfo --no-validate
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/gas/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bfd/doc
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/binutils
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline/doc
--no-split -I /usr/src/gnu/usr.bin/binutils/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld/
ld.texinfo
-o ld.info
gzip -cn ld.info > ld.info.gz
makeinfo --no-validate
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/gas/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bfd/doc
-I
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/binutils
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline/doc
--no-split -I /usr/src/gnu/usr.bin/binutils/doc
-I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/gas/doc/
gasp.texi
-o gasp.info
gzip -cn gasp.info > gasp.info.gz
ln
-sf
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc/all-
cfg.texi
gdb-cfg.texi
echo "@set GDBVN `sed
q
/usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/
version.in`"
> GDBvn.texi
make: don't know how to make annotate.texi. Stop
*** Error code 2
Stop in /usr/src/gnu/usr.bin/binutils.
*** Error code 1
Stop in /usr/src/gnu/usr.bin.
*** Error code 1
Stop in /usr/src/gnu.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
Thanks in advance,
asg
------------------------------
Message: 16
Date: Mon, 21 Jun 2004 18:32:25 +0200
From: "Martin P. Hellwig" <mhellwig@xs4all.nl>
Subject: Re: startup error for pflogd
Cc: Max Laier <max@love2party.net>
Message-ID: <40D70D99.6050505@xs4all.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Michael Reifenberger wrote:
> On Mon, 21 Jun 2004, Max Laier wrote:
> ...
>
>> I'll try to explain the reasoning behind this. If there are a zillion
>> processes all owned by nobody:nogroup and an attacker manages to obtain
>> control over one of them, the rest might be easy/easier prey. The
>> evildoer
>> will have better chances to obtain critical resources and maybe root
>> in the
>> end.
>>
>> This might seem like OpenBSD/paranoia, but my opinion on it is: It's
>> done so
>> why not port it over? It also helps to keep the diff down (which
>> means less
>> work).
>>
>
> Wouldn't it make sense to add all _<service> users at once then?
>
Yes voter for this one , from my limited user perspective this seems
the logical thing to do.
--
mph
$ /usr/local/etc/rc.d/bikeshed.sh
$ Usage, mix UNIX with: {politics|religion|both(=GNU/Linux)}
------------------------------
Message: 17
Date: Mon, 21 Jun 2004 09:46:08 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: CURRENT does not build (annotate.texi)
To: "Axel S.Gruner" <liste@encephalon.de>
Cc: current@freebsd.org
Message-ID: <20040621164608.GA83677@ns1.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 06:09:10PM +0200, Axel S.Gruner wrote:
> Hi,
>
> i got some problems building CURRENT maybe someone can tell me what the
> problem is:
*snip*
> /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc/all-
> cfg.texi
> gdb-cfg.texi
> echo "@set GDBVN `sed
> q
> /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/
> version.in`"
> >GDBvn.texi
> make: don't know how to make annotate.texi. Stop
> *** Error code 2
The problem is that the binutils Makefile in doc/ is not in sync with
gdb. I'm waiting for David to exclude gdb in that Makefile.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 18
Date: Mon, 21 Jun 2004 09:46:57 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: startup error for pflogd
To: Max Laier <max@love2party.net>
Cc: Michael Reifenberger <mike@Reifenberger.com>
Message-ID: <20040621164657.GA2544@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 04:39:10PM +0200, Max Laier wrote:
> This might seem like OpenBSD/paranoia, but my opinion on it is: It's done so
> why not port it over? It also helps to keep the diff down (which means less
> work).
>
> If there is no resistance against "yet another user", I will add _pflogd.
I would prefer just 'pflogd' until it is discussed if we want to follow
the _<service> way.
--
-- David (obrien@FreeBSD.org)
------------------------------
Message: 19
Date: Mon, 21 Jun 2004 09:54:53 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: kldload random.ko panics -CURRENT
To: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>,
freebsd-current@freebsd.org
Message-ID: <20040621165453.GB2544@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 11:16:54AM +0200, Roman Neuhauser wrote:
> # avatar@mmlab.cse.yzu.edu.tw / 2004-06-21 00:01:04 +0800:
> > Apparently, loading the module random.ko in -CURRENT always panics the
> > kernel unless the random device was not compiled in the kernel.
>
> ...
>
> > I'm wondering about why this module loading panicked instead of
> > bailing out with something like "kldload: can't load random: File
> > exists?"
Because it isn't well written.
> When I asked about the same thing not so long ago, the answer was
> "don't do it":
> http://marc.theaimsgroup.com/?l=freebsd-hackers&m=108113056524926&w=2
Yes it is a very well know problem with devrandom. No, other drivers
don't panic when loaded and also statically compiled into the kernel.
--
-- David (obrien@FreeBSD.org)
------------------------------
Message: 20
Date: Mon, 21 Jun 2004 13:02:27 -0400
From: Charles Swiger <cswiger@mac.com>
Subject: Re: startup error for pflogd
Cc: freebsd-current@freebsd.org
Message-ID: <C6033B70-C3A4-11D8-BF1C-003065ABFD92@mac.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Jun 21, 2004, at 10:39 AM, Max Laier wrote:
> On Monday 21 June 2004 10:57, Michael Reifenberger wrote:
>> As it seems is OpenBSD aggressivly using "_<service>" users.
>> Is this something we should follow?
>
> I'll try to explain the reasoning behind this. If there are a zillion
> processes all owned by nobody:nogroup and an attacker manages to obtain
> control over one of them, the rest might be easy/easier prey. The
> evildoer
> will have better chances to obtain critical resources and maybe root
> in the
> end.
Certainly it's a good idea to run different services under seperate
users where possible, for exactly the reasons you describe: it helps
reduce the window of vulnerability if one service is compromised.
However, please note that no processes should be running as nobody, nor
should any files be owned by nobody. 'nobody' exists so that NFS can
map unknown and/or untrusted remote root users to a safe UID which is
not used anywhere else in the system. Using 'nobody' for other
purposes can be risky.
--
-Chuck
------------------------------
Message: 21
Date: Mon, 21 Jun 2004 10:03:28 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: -current error
To: current@freebsd.org, Ceri Davies <ceri@submonkey.net>, "Liam J.
Foy" <liamfoy@sepulcrum.org>, kris@obsecurity.org
Message-ID: <20040621170328.GC2544@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 07:49:57AM -0400, Damian Gerow wrote:
> Thus spake Ceri Davies (ceri@submonkey.net) [20/06/04 17:39]:
> : I've reproduced it, but there's no error in the 23 screens of scrollback
> : I have available. I have to hit the sack now; will have another go
> : tomorrow.
>
> FWIW, I saw the exact same thing (an odd error in zlib/libz somewhere).
> Dropping the '-j4' has resulted in a build error in binutils:
..
> gzip -cn gasp.info > gasp.info.gz
> ln -sf /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc/all
-cfg.texi gdb-cfg.texi
> echo "@set GDBVN `sed q /usr/src/gnu/usr.bin/binutils/doc/../../../../contri
b/gdb/gdb/version.in`" > GDBvn.texi
> make: don't know how to make annotate.texi. Stop
> *** Error code 2
> Stop in /usr/src/gnu/usr.bin/binutils.
And that is where the REAL error is.
And why you need to rerun your 'make [build]world' before reporting build
problems. I'll go fix this.
--
-- David (obrien@FreeBSD.org)
------------------------------
Message: 22
Date: Mon, 21 Jun 2004 21:06:48 +0200
From: Roman Neuhauser <neuhauser@chello.cz>
Subject: Re: startup error for pflogd
To: freebsd-current@freebsd.org
Cc: Max Laier <max@love2party.net>
Message-ID: <20040621190648.GA4459@isis.wad.cz>
Content-Type: text/plain; charset=us-ascii
# obrien@freebsd.org / 2004-06-21 09:46:57 -0700:
> On Mon, Jun 21, 2004 at 04:39:10PM +0200, Max Laier wrote:
> > This might seem like OpenBSD/paranoia, but my opinion on it is: It's done
so
> > why not port it over? It also helps to keep the diff down (which means les
s
> > work).
> >
> > If there is no resistance against "yet another user", I will add _pflogd.
>
> I would prefer just 'pflogd' until it is discussed if we want to follow
> the _<service> way.
I'd prefer the underscored kind. I remember a post on ports@ from
a guy called Cyrus complaining about the mail/cyrus* ports stealing
his login. This kind of problems can be avoided, plus there's the
benefit of easier recognition of "system" processes (daemons) from
user ones in e. g. top(1).
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
------------------------------
Message: 23
Date: Mon, 21 Jun 2004 12:07:42 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: calcru: negative time ... followed by freeze
To: bde@zeta.org.au
Cc: threads@FreeBSD.org
Message-ID: <200406211907.i5LJ7gRm049126@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii
On 21 Jun, Bruce Evans wrote:
> On Mon, 21 Jun 2004, Don Lewis wrote:
>> It also looks like a bug that a zombie remains in the [running] state
>> and thus looks interesting to ttyinfo().
>
> I think it isn't really running. ttyinfo() should pick it if it is the
> only process the terminal. ttyinfo() does pick it for the zombie in the
> test program in the PR, and reports that it is running, but ps reports
> it correctly as a zomble.
ttyinfo() prints "[running]" if TD_IS_RUNNING(td) is true. I think the
problem is that thread_exit() doesn't set td_state to TDS_INACTIVE if
the process only has one thread.
------------------------------
Message: 24
Date: Mon, 21 Jun 2004 12:24:40 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: Re: GEOM panic in today's -current
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: freebsd-current@freebsd.org
Message-ID: <20040621192440.GA87287@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii
On Sun, Jun 20, 2004 at 11:50:01PM +0200, Willem Jan Withagen wrote:
> > db> call doadump
> > Dumping 511 MB
> >
> > Dump failed. Partition too small.
> >
> > The dump partition is 1 GB in size, but it is attached
> > to the ATA controller. The panic occurs during the
> > the probing of the acd0. See dmesg from previous
> > kernel below.
>
> This could be that you forgot to define the dumpdevice...
>
No, dumpdev has been set since I installed FreeBSD. In the
past, I have successfully recorded crash dumps.
--
Steve
------------------------------
Message: 25
Date: Mon, 21 Jun 2004 21:32:35 +0200
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject: [HEADSUP] retire TIOCDCDTIMESTAMP
To: current@freebsd.org
Message-ID: <23206.1087846355@critter.freebsd.dk>
This patch retires the TIOCDCDTIMESTAMP ioctl.
The RFC 2783 PPS-API has been standardized to do everything
TIOCDCDTIMESTAMP did and quite a bit more.
(see src/tools/test/ppsapi for how to use the PPS-API).
Poul-Henning
Index: dev/cy/cy.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/cy/cy.c,v
retrieving revision 1.153
diff -u -r1.153 cy.c
--- dev/cy/cy.c 17 Jun 2004 17:16:43 -0000 1.153
+++ dev/cy/cy.c 21 Jun 2004 19:24:00 -0000
@@ -299,9 +299,7 @@
struct termios lt_out;
bool_t do_timestamp;
- bool_t do_dcd_timestamp;
struct timeval timestamp;
- struct timeval dcd_timestamp;
u_long bytes_in; /* statistics */
u_long bytes_out;
@@ -1283,11 +1281,6 @@
++com->mdm;
modem_status = cd_inb(iobase, CD1400_MSVR2, cy_align);
if (modem_status != com->last_modem_status) {
- if (com->do_dcd_timestamp
- && !(com->last_modem_status & MSR_DCD)
- && modem_status & MSR_DCD)
- microtime(&com->dcd_timestamp);
-
/*
* Schedule high level to handle DCD changes. Note
* that we don't use the delta bits anywhere. Some
@@ -1669,10 +1662,6 @@
com->do_timestamp = TRUE;
*(struct timeval *)data = com->timestamp;
break;
- case TIOCDCDTIMESTAMP:
- com->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = com->dcd_timestamp;
- break;
default:
splx(s);
return (ENOTTY);
Index: dev/digi/digi.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/digi/digi.h,v
retrieving revision 1.15
diff -u -r1.15 digi.h
--- dev/digi/digi.h 16 Jun 2004 09:46:42 -0000 1.15
+++ dev/digi/digi.h 21 Jun 2004 19:24:06 -0000
@@ -107,10 +107,6 @@
struct termios lt_in; /* should be in struct tty */
struct termios lt_out;
- u_int do_timestamp;
- u_int do_dcd_timestamp;
- struct timeval dcd_timestamp;
-
u_long bytes_in, bytes_out;
u_int delta_error_counts[CE_NTYPES];
u_long error_counts;
Index: dev/sio/sio.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sio/sio.c,v
retrieving revision 1.438
diff -u -r1.438 sio.c
--- dev/sio/sio.c 16 Jun 2004 09:46:56 -0000 1.438
+++ dev/sio/sio.c 21 Jun 2004 19:24:17 -0000
@@ -251,9 +251,7 @@
struct termios lt_out;
bool_t do_timestamp;
- bool_t do_dcd_timestamp;
struct timeval timestamp;
- struct timeval dcd_timestamp;
struct pps_state pps;
int pps_bit;
#ifdef ALT_BREAK_TO_DEBUGGER
@@ -1409,7 +1407,6 @@
com->poll = FALSE;
com->poll_output = FALSE;
com->do_timestamp = FALSE;
- com->do_dcd_timestamp = FALSE;
com->pps.ppsparam.mode = 0;
sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK);
tp = com->tp;
@@ -1870,11 +1867,6 @@
/* modem status change? (always check before doing output) */
modem_status = inb(com->modem_status_port);
if (modem_status != com->last_modem_status) {
- if (com->do_dcd_timestamp
- && !(com->last_modem_status & MSR_DCD)
- && modem_status & MSR_DCD)
- microtime(&com->dcd_timestamp);
-
/*
* Schedule high level to handle DCD changes. Note
* that we don't use the delta bits anywhere. Some
@@ -2096,10 +2088,6 @@
com->do_timestamp = TRUE;
*(struct timeval *)data = com->timestamp;
break;
- case TIOCDCDTIMESTAMP:
- com->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = com->dcd_timestamp;
- break;
default:
splx(s);
error = pps_ioctl(cmd, data, &com->pps);
Index: pc98/pc98/sio.c
===================================================================
RCS file: /home/ncvs/src/sys/pc98/pc98/sio.c,v
retrieving revision 1.216
diff -u -r1.216 sio.c
--- pc98/pc98/sio.c 16 Jun 2004 09:47:19 -0000 1.216
+++ pc98/pc98/sio.c 21 Jun 2004 19:24:29 -0000
@@ -331,9 +331,7 @@
struct termios lt_out;
bool_t do_timestamp;
- bool_t do_dcd_timestamp;
struct timeval timestamp;
- struct timeval dcd_timestamp;
struct pps_state pps;
int pps_bit;
#ifdef ALT_BREAK_TO_DEBUGGER
@@ -2129,7 +2127,6 @@
com->poll = FALSE;
com->poll_output = FALSE;
com->do_timestamp = FALSE;
- com->do_dcd_timestamp = FALSE;
com->pps.ppsparam.mode = 0;
#ifdef PC98
if (IS_8251(com->pc98_if_type))
@@ -2763,11 +2760,6 @@
#endif
modem_status = inb(com->modem_status_port);
if (modem_status != com->last_modem_status) {
- if (com->do_dcd_timestamp
- && !(com->last_modem_status & MSR_DCD)
- && modem_status & MSR_DCD)
- microtime(&com->dcd_timestamp);
-
/*
* Schedule high level to handle DCD changes. Note
* that we don't use the delta bits anywhere. Some
@@ -3071,10 +3063,6 @@
com->do_timestamp = TRUE;
*(struct timeval *)data = com->timestamp;
break;
- case TIOCDCDTIMESTAMP:
- com->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = com->dcd_timestamp;
- break;
default:
splx(s);
error = pps_ioctl(cmd, data, &com->pps);
@@ -3129,10 +3117,6 @@
com->do_timestamp = TRUE;
*(struct timeval *)data = com->timestamp;
break;
- case TIOCDCDTIMESTAMP:
- com->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = com->dcd_timestamp;
- break;
default:
splx(s);
error = pps_ioctl(cmd, data, &com->pps);
Index: sys/ttycom.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/ttycom.h,v
retrieving revision 1.20
diff -u -r1.20 ttycom.h
--- sys/ttycom.h 10 May 2004 02:24:56 -0000 1.20
+++ sys/ttycom.h 21 Jun 2004 19:25:35 -0000
@@ -131,9 +131,7 @@
/* 90-70 ppp; many conflicts */
#define TIOCTIMESTAMP _IOR('t', 89, struct timeval) /* enable/get timestamp
* of last input event */
-#define TIOCDCDTIMESTAMP _IOR('t', 88, struct timeval) /* enable/get timestam
p
- * of last DCd rise */
- /* 88 slip; conflicts */
+ /* 88 slip, ppp; conflicts */
#define TIOCSDRAINWAIT _IOW('t', 87, int) /* set ttywait timeout */
#define TIOCGDRAINWAIT _IOR('t', 86, int) /* get ttywait timeout */
/* 84-80 slip */
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 26
Date: Mon, 21 Jun 2004 21:32:59 +0200
From: Gordon Bergling <gbergling@0xfce3.net>
Subject: Re: new motherboard - fsck_ufs died with signal 8
To: Gordon Bergling <gbergling@0xfce3.net>
Cc: current@freebsd.org
Message-ID: <20040621193259.GA673@nemesis.md.0xfce3.net>
Content-Type: text/plain; charset="us-ascii"
Hi,
On Mon Jun 21, 2004 at 04:55PM +0200, Gordon Bergling wrote:
> today I am getting my hands on a new motherboard. I upgraded my system
> from VIA KT133A based Motherboard (Athlon 1GHz) to a KT266A based one
> with an Athlon XP 1600+ (DDR Ram). It seems that the hardware is working pro
berly.
>
> If I try to boot my FreeBSD installation the kernel boots up and after
> init was started I am gettings signal 8 at the following processes.
> (fsck_ufs, ...). I tried to boot without ACPI but it doesn't change
> anything.
>
> FreeBSD will only boot with "FreeBSD Safe-Mode" choosen from the start
> menu.
>
> Can anyone tell me what "FreeBSD Safe-Mode" means?
>
> My kernel-config is only a little bit different from GENERIC.
> Should I change something in my kernel config?
> Should I "make world" again?
It tried many times to get in complete build for an GENERIC based kernel
config, but I didn't get _one_ successfully build. Every build breaks on
a different position of the build process. Mostly asm-erros or gcc core
dumps. The strange thing is that the build of GENERIC runs successful.
This system seemed to be stable, but after an hour or two I had two
different panics.
The first one was:
| stray irq7
| stray irq7
| stray irq7
| stray irq7
| stray irq 7's: not logging anymore
| TPTE at 0xbfc203d4 IS ZERO @ VA 080f5000
| panic: bad pte
| cpuid = 0;
| syncing disks, buffers remaining...
| kernel trap 12 with interrupts disabled
| Fatal trap 12: page fault while in kernel mode
| cpuid = 0; apic id = 00
| fault virtual address = 0x24
| fault code = supervisor read, page not present
| instruction pointer = 0x8:0xc0566ade
| stack pointer = 0x10:0xcdafec44
| frame pointer = 0x10:0xcdafec64
| code segment = base 0x0, limit 0xfffff, type 0x1b
| = DPL 0, pres 1, def32 1, gran 1
| processor eflags = resume, IOPL = 0
| current process = 28 (swi8:tty:sio clock)
| trap number = 12
The second was:
| panic: ufs_dirbad: bad dir
| cpuid = 0;
These panics are copied from /var/log/messages.
I had run memtest about 20 times and it didn't find any errors, so I
think the RAM should be okay.
Has anyone hints?
If I can provide more information please let me know...
best regards,
Gordon
--
Gordon Bergling <GBergling@0xfce3.net> http://www.0xFCE3.net/
PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0
RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
d713454c/attachment-0001.bin
------------------------------
Message: 27
Date: Mon, 21 Jun 2004 21:49:37 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: new motherboard - fsck_ufs died with signal 8
To: Gordon Bergling <gbergling@0xfce3.net>
Cc: current@freebsd.org
Message-ID: <xzplligofn2.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
Gordon Bergling <gbergling@0xfce3.net> writes:
> FreeBSD will only boot with "FreeBSD Safe-Mode" choosen from the start
> menu.
>
> Can anyone tell me what "FreeBSD Safe-Mode" means?
No ACPI, no APIC, no ATA/ATAPI DMA, no ATA write cacheing:
dup bootsafekey @ = if
s" arch-i386" environment? if
s" acpi_load" unsetenv
s" 1" s" hint.acpi.0.disabled" setenv
s" 1" s" loader.acpi_disabled_by_user" setenv
s" 1" s" hint.apic.0.disabled" setenv
then
s" 0" s" hw.ata.ata_dma" setenv
s" 0" s" hw.ata.atapi_dma" setenv
s" 0" s" hw.ata.wc" setenv
s" 0" s" hw.eisa_slots" setenv
0 boot
then
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 28
Date: Mon, 21 Jun 2004 12:52:32 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: read vs. mmap (or io vs. page faults)
To: Mikhail Teterin <mi+kde@aldan.algebra.com>
Cc: questions@freebsd.org
Message-ID: <200406211952.i5LJqWSl035702@apollo.backplane.com>
:
:= pre-faulting is best done by a worker thread or child process, or it
:= will just slow you down..
:
:Read is also used for large files sometimes, and never tries to prefetch
:the whole file at once. Why can't the same smarts/heuristics be employed
:by the page-fault handling code -- especially, if we are so proud of our
:unified caching?
Both read and mmap have a read-ahead heuristic. The heuristic works.
In fact, the mmap heuristic is so smart it can read-behind as well as
read-ahead if it detects a backwards scan. The heuristic does not try
to read megabytes and megabytes ahead, however... that might speed up
this particular application a little, but it would destroy performance
for many other types of applications, especially in a loaded environment.
:If anything mmap/madvise provide the kernel with _more_ information than
:read -- kernel just does not use it, it seems.
:
:According to my tests (`fgrep string /huge/file' vs. `fgrep --mmap
:string /huge/file') the total CPU time is much less with mmap. But
:sometimes the total "wall clock" time is longer with itj because the CPU
:is underutilized, when using the mmap method.
Well now hold a second... the best you can do here is compare relative
differences between mmap and read. All of these machines are different,
with different cpus and different configurations. For example, a
duel-P2 is going to be horrendously bad doing SMP things because the P2's
locked bus cycle instruction overhead is horrendous. That is going to
seriously skew the results. There are major architectural differences
between these cpus... cache size, memory bandwidth, MP operations
overhead, not to mention raw megaherz. Disk transfer rate and the
disk bus interface and driver will also make a big difference here,
as well as the contents of the file you are fgrep'ing.
If you really want to compare operating systems, you have to run the
OS's and the tests on the same hardware.
: 4.8-stable on Pentium2-400MHz
: mmap: 21.507u 11.472s 1:27.53 37.6% 62+276k 99+0io 44736pf+0w
: read: 10.619u 23.814s 1:17.67 44.3% 62+274k 11255+0io 0pf+0w
mmap 12% slower then read. 12% isn't much.
: recent -current on dual P2 Xeon-450MHz (mmap WINS -- SMP?)
: mmap: 12.482u 12.872s 2:28.70 17.0% 74+298k 23+0io 46522pf+0w
: read: 7.255u 16.366s 3:27.07 11.4% 70+283k 44437+0io 7pf+0w
mmap 39% faster. That's a significant difference.
It kinda smells funny, actually... are you sure that you compiled
your FreeBSD-5 system with Witness turned off?
: recent -current on a Centrino-laptop P4-1GHz (NO win at all)
: mmap: 4.197u 3.920s 2:07.57 6.3% 65+284k 63+0io 45568pf+0w
: read: 3.965u 4.265s 1:50.26 7.4% 67+291k 13131+0io 17pf+0w
mmap 15% slower.
: Linux 2.4.20-30.9bigmem dual P4-3GHz (with a different file)
: mmap: 2.280u 4.800s 1:13.39 9.6% 0+0k 0+0io 512434pf+0w
: read: 1.630u 2.820s 0:08.89 50.0% 0+0k 0+0io 396pf+0w
mmap 821% slower on Linux? With a different file? So these numbers
can't be compared to anything else (over and above the fact that this
machine is three times faster then any of the others).
It kinda looks like either you wrote the linux numbers down wrong,
or linux's mmap is much, much worse then FreeBSD's. I'm not sure why
you are complaining about FreeBSD. If I were to assume 1:08.89 instead
of 1:13.39 the difference would be 6.5%, which is narrower then 15%
but not by all that much... a few seconds is nothing to quibble over.
:The attached md5-computing program is more CPU consuming than fgrep. It
:wins with mmap even on the "sceptical" Centrino-laptop -- presumably,
:because MD5_Update is not interrupted as much and remains in the
:instruction cache:
:
: read: 22.024u 8.418s 1:28.44 34.4% 5+166k 10498+0io 4pf+0w
: mmap: 21.428u 3.086s 1:23.88 29.2% 5+170k 40+0io 19649pf+0w
read is 6% faster then mmap here.
:Once mmap-handling is improved, all sorts of whole-file operations
:(bzip2, gzip, md5, sha1) can be made faster...
:
: -mi
Well, your numbers don't really say that. It looks like you might
eeek out a 10-15% improvement, and while this is faster it really isn't
all that much faster. It certainly isn't something to write home about,
and certainly not significant enough to warrent major codework.
Though I personally have major issues with FreeBSD-5's performance
in general, I don't really see that anything stands out in these tests
except perhaps for FreeBSD-5's horrible MP performance with read() vs
mmap() on the duel P2 (but I suspect that might be due to some other
issue such as perhaps Witness being turned on).
If you really want to get comparative results you have to run all of
these tests on the same hardware with the same file. In fact, I would
run them over a suite of file sizes since a lot of this is going depend
on the buffer cache's KVA mappings. I would still expect linux to beat
out FreeBSD-5 fairly handily, but the FreeBSD-4 vs Linux numbers would
likely be a whole lot closer.
-Matt
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 66, Issue 3
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[34m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m