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. Re: ethercons updated for -CURRENT  (Willem Jan Withagen)
   2. Re: STI, HLT in acpi_cpu_idle_c1 (Scott Long)
   3. Re: ethercons updated for -CURRENT  (Danny Braniss)
   4. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Martin Blapp)
   5. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Martin Blapp)
   6. Re: getserv* and nsswitch (Cyrille Lefevre)
   7. Re: getserv* and nsswitch (Cyrille Lefevre)
   8. Re: getserv* and nsswitch (Cyrille Lefevre)
   9. Re: panic: m_copym, length > size of mbuf chain (Robert Watson)
  10. Re: quick interactivity? question regarding -current
      (Brian Fundakowski Feldman)
  11. Problems with i82077, NE72065 or clone floppy drive
      controllers	(Was: i need my floppy disk drive.) (Sarunas V.)
  12. Re: getserv* and nsswitch (Cyrille Lefevre)
  13. Re: Problems with i82077, NE72065 or clone floppy drive
      controllers	(Was: i need my floppy disk drive.) (Michael Nottebrock)
  14. Re: panic: m_copym, length > size of mbuf chain (Daniel Lang)
  15. Re: quick interactivity? question regarding -current (Markie)
  16. top m mode reads zeros (Kim Culhan)
  17. Re: bsdtar fails on xorg-libraries (X11R6.7.0-src3.tar.gz)
      (Tim Kientzle)
  18. Re: ethercons updated for -CURRENT (Doug White)
  19. Re: nfs-server twice as fast written to as read from (Doug White)
  20. Re: quick interactivity? question regarding -current
      (Brian Fundakowski Feldman)
  21. Re: Problems with i82077, NE72065 or clone floppy drive
      controllers	(Was: i need my floppy disk drive.) (Sarunas V.)
  22. Re: nfs-server twice as fast written to as read from
      (Claus Guttesen)
  23. Re: quick interactivity? question regarding -current (Markie)
  24. A quick one (well, two actually) (lycanthrope)
  25. current now thinks my xe0 is fdc1 ! (Claude Buisson)
  26. Re: A quick one (well, two actually) (Kent Stewart)
  27. Re: A quick one (well, two actually) (lycanthrope)
  28. Re: panic: m_copym, length > size of mbuf chain (Don Lewis)
  29. more on serial console problems (Bjoern A. Zeeb)
  30. is_sk locking in sk_attach (Bjoern A. Zeeb)
  31. Re: top m mode reads zeros (Kris Kennaway)
  32. Re: panic: m_copym, length > size of mbuf chain (Don Lewis)
  33. 5.2.1 p9 --> 5.2 current 20040709 upgrade ATA_IDENTIFY no
      interrupt (jhandvil)
  34. 5.2.1 p9 --> 5.2 current 20040708 upgrade ATA_IDENTIFY no
      interrupt (jhandvil)


----------------------------------------------------------------------

Message: 1
Date: Sat, 10 Jul 2004 13:56:42 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: ethercons updated for -CURRENT 
To: "Daniel O'Connor" <doconnor@gsoft.com.au>,	"Danny Braniss"
	<danny@cs.huji.ac.il>
Cc: freebsd-current@freebsd.org
Message-ID: <02a601c46674$fc4e0eb0$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

> > On Sat, 10 Jul 2004 16:40, Danny Braniss wrote:
> > > The upshot off all this is, if the SOL works, then we can kiss KVM away,

> > > and as Robert said, just power and ethernet and you are set.
> >
> > You could probably use fwcons (I've only used it a little to test) but I
think
> > once it's enabled the target doesn't have to be cooperative for it to work

> > (although then you need to run firewire to your boxes as well as ethernet)

> >
>
> serial/firewire are ok for one computer, but when you have several, then
> this does not scale (imaging a cabinet with 30 1U boxes :-).
>
> appart from that, ethernet (once you overcome some basic security issues)
> is great to get the console.

If you can afford a rack with 30 1U servers you could also spend money on KVM

technology over IP...
They range from fairly basic, just keyboard and VGA
as far as Hires screen, mouse, keyboard and reset.

I think I saw some on a trade show as low as 150 Euro,
ethernet in/out so you don't need many extra ports, just loop all KVM together
..
Problem is I lost the bag with all the leaflets..... :(

--WjW


------------------------------

Message: 2
Date: Sat, 10 Jul 2004 06:11:24 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <40EFDCEC.6080307@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

John Baldwin wrote:
> On Thursday 08 July 2004 08:41 pm, Gerrit Nagelhout wrote:
> 
>>John Baldwin wrote:
>>
>>>I think it does handle the interrupt, but that the EOI is
>>>somehow lost or
>>>ignored,or that somehow we don't send an EOI in some edge case.
>>
>>I switched the 2 CPUs on the system, and the problem did not
>>track the CPU, so it is unlikely to be a hardware problem.
>>I've been looking through the interrupt code, and one thing
>>seems very suspicious, and I am hoping that someone can shed
>>some light on it ... ie whether it's legal or not.
>>In apic_vector.s, some of the interrupt handlers (hardclock,
>>cpuast, and a few others) call doreti.  Under certain conditions,
>>this can call ast().  The ast function can call PROC_LOCK,
>>which is a sleep mutex.
>>What would happen in this case?  How could the interrupt
>>possibly block?  At this point, the interrupt handler has
>>already called eoi, but not iret.  Would the processor except
>>other interrupts, or get stuck?
>>Thanks,
> 
> 
> Once the EOI is sent to the APIC, the processor will except other interrupts
  
> However, most of the interrupt code also runs with interrupts disabled.  The
 
> exception is in ast(), meaning that another interrupt can come in and nest 

> during an ast(), but ast() is not called during nested returns, so it won't 

> nest infinitely.  iret doesn't do any sort of EOI magic, all it does is popf
 
> followed by ret.  The popf usually enables interrupts when it restores the 

> interrupt flag's state.  It might still be a hardware problem in the chipset
, 
> esp. since it always happens on a logical CPU.  The fact that no other boxes
 
> in the field besides the two identical boxes you have have demonstrated this
 
> problem makes me very suspicious with respect to the hardware.
> 

Well, the real question is what happens in when the interrupt context
has to contest on the proc lock in ast().  What goes to sleep, and how
it wake up?  Does the interrupt context have a real process/thread 
associated with it, or does it pretend to be curthread, or what?  Since
the whole point of ithreads was to allow sleep locks in interrupt 
handlers, isn't this a major violation?

Scott

------------------------------

Message: 3
Date: Sat, 10 Jul 2004 15:34:46 +0300
From: Danny Braniss <danny@cs.huji.ac.il>
Subject: Re: ethercons updated for -CURRENT 
To: "Willem Jan Withagen" <wjw@withagen.nl>
Cc: freebsd-current@freebsd.org
Message-ID: <20040710123453.0C23A43D45@mx1.FreeBSD.org>
Content-Type: text/plain; charset=us-ascii

> > > On Sat, 10 Jul 2004 16:40, Danny Braniss wrote:
> > > > The upshot off all this is, if the SOL works, then we can kiss KVM awa
y,
> > > > and as Robert said, just power and ethernet and you are set.
> > >
> > > You could probably use fwcons (I've only used it a little to test) but I

> think
> > > once it's enabled the target doesn't have to be cooperative for it to wo
rk
> > > (although then you need to run firewire to your boxes as well as etherne
t)
> > >
> >
> > serial/firewire are ok for one computer, but when you have several, then
> > this does not scale (imaging a cabinet with 30 1U boxes :-).
> >
> > appart from that, ethernet (once you overcome some basic security issues)

> > is great to get the console.
> 
> If you can afford a rack with 30 1U servers you could also spend money on KV
M
> technology over IP...

you are still left with allot of cables (keyboard+mouse+vga)

> They range from fairly basic, just keyboard and VGA
> as far as Hires screen, mouse, keyboard and reset.

seen it, tested it, expensive and the software does not run under FreeBSD

> 
> I think I saw some on a trade show as low as 150 Euro,
> ethernet in/out so you don't need many extra ports, just loop all KVM togeth
er.

> Problem is I lost the bag with all the leaflets..... :(
shame on you :-)

the fact is that there is hardware on these server class motherboards
that do/should do this SOL.

btw, the Intel/IBM BladeServers can give you the console via VNC, but
that's no fun - and very slow.

danny



------------------------------

Message: 4
Date: Sat, 10 Jul 2004 15:17:45 +0200 (CEST)
From: Martin Blapp <mb@imp.ch>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Robert Watson <rwatson@freebsd.org>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040710151637.Y56824@cvs.imp.ch>
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hi,

> I'm seeing the same effect here on a 2 CPU IBM server running without HTT. T
he
> server is completly locked. We have running mimedefang on it and clamd, afte
r
> 2-3 hours running, suddenly the processlist grows and grows and the box is n
ot
> accessibe anymore.
>
> > By disabling the "#define PREEMPTION" entry in param.h with SCHED_4BSD,
> > I'm able to complete the benchmark several times in a row without apparent

> > problems. However, I'll leave it running for a few more hours and see if I

> > didn't just "get lucky".  I'll then try SCHED_ULE w/o PREEMPTION.

Tried that. PREEMPTION seems to to be the culprit. It must be something else.

I just got another lock with "#define PREEMPTION" removed !

Martin

------------------------------

Message: 5
Date: Sat, 10 Jul 2004 15:21:17 +0200 (CEST)
From: Martin Blapp <mb@imp.ch>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Robert Watson <rwatson@freebsd.org>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040710152058.E56824@cvs.imp.ch>
Content-Type: TEXT/PLAIN; charset=US-ASCII


> Tried that. PREEMPTION seems to to be the culprit. It must be something else
..
                               ^^^ not to be :-)

------------------------------

Message: 6
Date: Sat, 10 Jul 2004 15:36:59 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: getserv* and nsswitch
To: <bushman@rsu.ru>, <freebsd-current@freebsd.org>
Message-ID: <094301c46682$fa576670$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

"Michael Bushkov" <bushman@rsu.ru> wrote:
> Good day!
> I'm currently implementing getserv* functionality in lookupd. lookupd
> works as the nss plugin - nss_lookupd.so. But there is no nsdipsatch
> interface in getserv* functions.
> 
> i can implement it and make a patch.
> Is it ok?


Hi,

I'm currently rewritting your stuff to make it style(9) compliant.
this help me, also, to check the code and IMHO, there are too many
unchecked syscall (malloc, read, send) return values to incorpore
lookupd as is. whenever possible, I'll send you back my work.

Cyrille Lefevre.
-- 
mailto:clefevre-lists@9online.fr

------------------------------

Message: 7
Date: Sat, 10 Jul 2004 15:37:11 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: getserv* and nsswitch
To: <bushman@rsu.ru>, <freebsd-current@freebsd.org>
Message-ID: <094401c46683$014a1e00$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

"Michael Bushkov" <bushman@rsu.ru> wrote:
> Good day!
> I'm currently implementing getserv* functionality in lookupd. lookupd
> works as the nss plugin - nss_lookupd.so. But there is no nsdipsatch
> interface in getserv* functions.
> 
> i can implement it and make a patch.
> Is it ok?


Hi,

I'm currently rewritting your stuff to make it style(9) compliant.
this help me, also, to check the code and IMHO, there are too many
unchecked syscall (malloc, read, send) return values to incorpore
lookupd as is. whenever possible, I'll send you back my work.

Cyrille Lefevre.
-- 
mailto:clefevre-lists@9online.fr

------------------------------

Message: 8
Date: Sat, 10 Jul 2004 15:39:56 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: getserv* and nsswitch
To: <bushman@rsu.ru>, <freebsd-current@freebsd.org>
Message-ID: <000b01c46683$8f4550d0$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

"Michael Bushkov" <bushman@rsu.ru> wrote:
> Good day!
> I'm currently implementing getserv* functionality in lookupd. lookupd
> works as the nss plugin - nss_lookupd.so. But there is no nsdipsatch
> interface in getserv* functions.
> 
> i can implement it and make a patch.
> Is it ok?


Hi,

I'm currently rewritting your stuff to make it style(9) compliant.
this help me, also, to check the code and IMHO, there are too many
unchecked syscall (malloc, read, send) return values to incorpore
lookupd as is. whenever possible, I'll send you back my work.

Cyrille Lefevre.
-- 
mailto:clefevre-lists@9online.fr

------------------------------

Message: 9
Date: Sat, 10 Jul 2004 10:27:23 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: m_copym, length > size of mbuf chain
To: Daniel Lang <dl@leo.org>
Cc: ps@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040710092144.19581J-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Sat, 10 Jul 2004, Daniel Lang wrote:

> So I come back to the issue. As I already wrote, I guess I can rule out
> hardware problems now. I did a very thorough test with the Dell
> diagnosis utilities which showed no problems. 

Thanks!

> Also, after John's patch I did not see any WITNESS related problems (so
> far) again. But I had the m_copy panic again (see subject). This time I
> did file a PR and did some more detailed gdb analysis. It is all
> documented at:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/68889
> 
> I am puzzled, because the stack frame on entering m_copym has 0x0 as
> first argument (m), however in the previous frame when m_copy() is
> called, the struct mbuf* argument is valid. 
> 
> Ok, I just realized that there is a difference m_copy()  and m_copym() 
> are apparently different functions. Is this a makro/#define discrepancy
> it seems that that m_copym() is the function which is called in this
> line of code. 
> 
> Ah, I found it: 
> 
> sys/mbuf.h:#define m_copy(m, o, l) m_copym((m), (o), (l), M_DONTWAIT) 
> 
> so, the puzzle remains, since the arguments passed are kept, except that
> M_DONTWAIT flag is added.
> 
> Is this a trashed stack? 

Possibly, but notice that the m_copym() function modifies its copy of 'm'
in the stack as part of its work -- it uses 'm' to iterate the mbuf chain
passed in in order to move to the necessary starting offset for the copy.
Note that the requested offset ('off0') is 737, and the requested 'len' is
at least 1222, so the loop starting at line 369 will walk until it either
gets far enough or the "offset > size" assertion triggers:

        while (off > 0) {
                KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain"));

                if (off < m->m_len)
                        break;
                off -= m->m_len;
                m = m->m_next;
        }

Since that assertion didn't trigger, we can assume m_copym() successfully
walked at least 'off0' (737) bytes.  The problem appears to be that it ran
out of mbufs in which to find data to copy, as it hit the end of the chain
(m == NULL):

        while (len > 0) {
                if (m == NULL) {
                        KASSERT(len == M_COPYALL,
                            ("m_copym, length > size of mbuf chain"));
                        break;
                }

So the initial conclusion is that the caller requested that more data be
copied from the chain than is actually present in the chain.  This
suggests a bug in socket buffer management or the TCP code.  It's
interesting to note that the socket buffer believes it contains less than
the requested length -- 'so_snd.sb_mbcnt' is 1536, which is arguably less
than 737 + 1222 (although we don't know, I think, if it's iterated or not
and therefore decreased the value of 'len').  Could you print the value of
'top' in the m_copym() stack?  That will tell us if it's on the first mbuf
or not.

It sounds like the socket buffer state may be inconsistent with the TCP
PCB state, or that the expectations in tcp_offset() are wrong.  I've CC'd
Paul because he's had his hands in the new SACK code that was merged, and
it has its hands in that bit of the output code.  Here are some things you
might want to try:

(1) Try running with TCP SACK disabled.  Set the
    'net.inet.tcp.sack.enable' sysctl to 0 to try this.

(2) Try adding some assertions just before the copy to m_copy() in
    tcp_output().  I'd suggest something like the following:

Index: tcp_output.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/tcp_output.c,v
retrieving revision 1.95
diff -u -r1.95 tcp_output.c
--- tcp_output.c	23 Jun 2004 21:04:37 -0000	1.95
+++ tcp_output.c	10 Jul 2004 14:12:29 -0000
@@ -740,6 +740,15 @@
 #endif
 		m->m_data += max_linkhdr;
 		m->m_len = hdrlen;
+		if (off + len > so->so_snd.sb_cc) {
+			printf("tcp_output: not enough data to copy\n");
+			printf("off=%d\n", off);
+			printf("len=%ld\n", len);
+			printf("so->so_snd.sb_cc=%d\n", so->so_snd.sb_cc);
+			printf("m_length(so->so_snd.sb_mb, NULL) == %d\n",
+			    m_length(so->so_snd.sb_mb, NULL));
+			panic("Down she goes...");
+		}
 		if (len <= MHLEN - hdrlen - max_linkhdr) {
 			m_copydata(so->so_snd.sb_mb, off, (int) len,
 			    mtod(m, caddr_t) + hdrlen);

    These printfs are oriented at making sure the socket buffer state is
    consistent, and don't attempt to dump the TCP state used to construct
    'len' or 'off'.  If the buffer is consistent (i.e., sb_cc ==
    m_length()), then the next logical thing to do is figure out how
    (len + off) became greater than the available buffer space.  If you
    look up a bit higher in tcp_output(), you'll see the values being set,
    trimmed, etc, based on various values in the tcpcb.

(3) If the socket buffer is inconsistent -- i.e., the length of the buffer
    in the socket buffer meta-data doesn't match the actual length of the
    mbufs in the buffer -- try compiling in "options SOCKBUF_DEBUG", which
    turns on additional socket buffer diagnostics. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



------------------------------

Message: 10
Date: Sat, 10 Jul 2004 10:36:58 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: quick interactivity? question regarding -current
To: Markie <mark.cullen@dsl.pipex.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040710143658.GH1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Sat, Jul 10, 2004 at 01:44:51AM +0100, Markie wrote:
> Hello,
> 
> I updated my 'do-it-all' home server box from 5.2.1-R to -CURRENT the other

> day, as suggested by someone a month ago because I was having panics along
> the lines of "kmem_malloc(4096): kmem_map too small". Now, I can't
> immediately tell if this upgrade has solved my problem as the first one
> appeared after 50 days of uptime (ish) and the one that happened the other
> day (same panic) occured after only around 20 days, this is when I decided
> to go for the installkernel/world.

Did you try seeing where all the memory went?  I reimplemented KVM support
in vmstat -m for -CURRENT, so it should be more useful for that if you get
a core dump (admittedly, a rare thing ...).

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 11
Date: Sat, 10 Jul 2004 16:32:46 +0100
From: "Sarunas V." <vsarunas@eircom.net>
Subject: Problems with i82077, NE72065 or clone floppy drive
	controllers	(Was: i need my floppy disk drive.)
To: freebsd-current@freebsd.org
Message-ID: <20040710153246.GA746@laserbeam.sv.org>
Content-Type: text/plain; charset=us-ascii

On 15:13, Fri 09 Jul 04, h wrote:
[snip]

> basically i can't mount my floppy drive. with ACPI on my kernel couldn't eve
n 
> detect the floppy controller. ever since i removed acpi now my kernel sees 

> the controller:
> 
> # dmesg|grep fd
> fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
> 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
> 
> but the fd0 or fdc0 isn't in /dev, there's only a fd/ dir:
> 
> ls /dev/f*
> 0       1       2

I have the same floppy drive. On current(yesterday's), when
booting with ACPI, I get the following message:

fdc0: I/O to control range incorrect

But when booting without ACPI, I get:

fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x
3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0

So I can mount it with no problem.

This problem exists definitely from 5.2 release, maybe earlier.

Full dmesg with ACPI enabled is at:
http://homepage.eircom.net/~sarunas/dmesg/dmesg_with_acpi

Verbose dmesg with ACPI enabled: 
http://homepage.eircom.net/~sarunas/dmesg/dmesg_with_acpi_verbose

dmesg with no ACPI:
http://homepage.eircom.net/~sarunas/dmesg/dmesg_no_acpi

Verbose dmesg with no ACPI:
http://homepage.eircom.net/~sarunas/dmesg/dmesg_no_acpi_verbose

[snip]

Kind Regards,
-- 
Sarunas Vancevicius  (vsarunas AT eircom DOT NET)

------------------------------

Message: 12
Date: Sat, 10 Jul 2004 17:55:09 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: getserv* and nsswitch
To: <bushman@rsu.ru>, <freebsd-current@freebsd.org>
Message-ID: <000e01c46696$47468cf0$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

"Michael Bushkov" <bushman@rsu.ru> wrote:
> Good day!
> I'm currently implementing getserv* functionality in lookupd. lookupd
> works as the nss plugin - nss_lookupd.so. But there is no nsdipsatch
> interface in getserv* functions.
> 
> i can implement it and make a patch.
> Is it ok?


Hi,

I'm currently rewritting your stuff to make it style(9) compliant.
this help me, also, to check the code and IMHO, there are too many
unchecked syscall (malloc, read, send) return values to incorpore
lookupd as is. whenever possible, I'll send you back my work.

Cyrille Lefevre.
-- 
mailto:clefevre-lists@9online.fr

------------------------------

Message: 13
Date: Sat, 10 Jul 2004 18:14:20 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: Problems with i82077, NE72065 or clone floppy drive
	controllers	(Was: i need my floppy disk drive.)
To: freebsd-current@FreeBSD.org
Cc: "Sarunas V." <vsarunas@eircom.net>
Message-ID: <200407101814.24174.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"

On Saturday 10 July 2004 17:32, Sarunas V. wrote:
> On 15:13, Fri 09 Jul 04, h wrote:
> [snip]
>
> > basically i can't mount my floppy drive. with ACPI on my kernel couldn't
> > even detect the floppy controller. ever since i removed acpi now my
> > kernel sees the controller:
> >
> > # dmesg|grep fd
> > fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port
> > 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
> > fdc0: FIFO enabled, 8 bytes threshold
> >
> > but the fd0 or fdc0 isn't in /dev, there's only a fd/ dir:
> >
> > ls /dev/f*
> > 0       1       2
>
> I have the same floppy drive. On current(yesterday's), when
> booting with ACPI, I get the following message:
>
> fdc0: I/O to control range incorrect

Have you tried debug.acpi.disabled="sysresource" in loader.conf?

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- 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/20040710/
bea7c25f/attachment-0001.bin

------------------------------

Message: 14
Date: Sat, 10 Jul 2004 18:38:25 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: panic: m_copym, length > size of mbuf chain
To: Robert Watson <rwatson@freebsd.org>
Cc: ps@freebsd.org
Message-ID: <20040710163825.GA61926@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=iso-8859-15

Hi Robert,

Robert Watson wrote on Sat, Jul 10, 2004 at 10:27:23AM -0400:
[..]
> > Is this a trashed stack? 
> 
> Possibly, but notice that the m_copym() function modifies its copy of 'm'
> in the stack as part of its work -- it uses 'm' to iterate the mbuf chain
> passed in in order to move to the necessary starting offset for the copy.

Ah well. I thought the value of the parameters, which is displayed
in the stack trace is the value on function call. But of course
it's the value at this moment. Sorry for the confusion.

> Note that the requested offset ('off0') is 737, and the requested 'len' is
> at least 1222, so the loop starting at line 369 will walk until it either
> gets far enough or the "offset > size" assertion triggers:
> 
>         while (off > 0) {
>                 KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain"))
;
>                 if (off < m->m_len)
>                         break;
>                 off -= m->m_len;
>                 m = m->m_next;
>         }
> 
> Since that assertion didn't trigger, we can assume m_copym() successfully
> walked at least 'off0' (737) bytes.  The problem appears to be that it ran
> out of mbufs in which to find data to copy, as it hit the end of the chain
> (m == NULL):
> 
>         while (len > 0) {
>                 if (m == NULL) {
>                         KASSERT(len == M_COPYALL,
>                             ("m_copym, length > size of mbuf chain"));
>                         break;
>                 }
> 
> So the initial conclusion is that the caller requested that more data be
> copied from the chain than is actually present in the chain.  This
> suggests a bug in socket buffer management or the TCP code.  It's

I understand.

> interesting to note that the socket buffer believes it contains less than
> the requested length -- 'so_snd.sb_mbcnt' is 1536, which is arguably less
> than 737 + 1222 (although we don't know, I think, if it's iterated or not
> and therefore decreased the value of 'len').  Could you print the value of
> 'top' in the m_copym() stack?  That will tell us if it's on the first mbuf
> or not.

(kgdb) p *top
$2 = {m_hdr = {mh_next = 0xca90c300, mh_nextpkt = 0x0,
    mh_data = 0xc3cbea18 "220- -------\r\n220- \r\n220-      Please check:\r\n
220-        http://www.leo.org/neues/maintenance_en.html\r\n220-      first, i
f you experience any problems.\r\n220- \r\n\n\r\n220- \r\n", mh_len = 161,
    mh_flags = 0, mh_type = 1}, M_dat = {MH = {MH_pkthdr = {
        rcvif = 0x2d303232, len = 757935392, header = 0x2d2d2d2d,
        csum_flags = 842140173, csum_data = 220212528, tags = {
          slh_first = 0x3032320a}}, MH_dat = {MH_ext = {ext_buf = 0x2020202d--
-Can't read userspace from dump, or kernel process---

Hmmm, this looks a bit like this one:

(kgdb) p *so->so_snd.sb_mb->m_hdr.mh_next->m_hdr.mh_next->m_hdr.mh_next->m_hdr
mh_next
$7 = {m_hdr = {mh_next = 0xca423300, mh_nextpkt = 0x0,
    mh_data = 0xca617630 "220- -------\r\n220- \r\n220-      Please check:\r\n
220-        http://www.leo.org/neues/maintenance_en.html\r\n220-      first, i
f you experience any problems.\r\n220- \r\n卅^�}T�=�q\216�\222�apZ�\r2.�\030�\
"��#t\016\001�\025�\t", mh_len = 161, mh_flags = 2, mh_type = 1}, M_dat = {MH 
= {
      MH_pkthdr = {rcvif = 0x0, len = 14, header = 0x2d2d2d2d, csum_flags = 0,

        csum_data = 16, tags = {slh_first = 0x0}}, MH_dat = {MH_ext = {
          ext_buf = 0x2d303232---Can't read userspace from dump, or kernel pro
cess---


But not exactly? Hmm, I guess there are a lot of mbufs with similar
content, if there are many clients connecting. Hm. Would there be
a simple way to find it, if it would be useful at all....

> It sounds like the socket buffer state may be inconsistent with the TCP
> PCB state, or that the expectations in tcp_offset() are wrong.  I've CC'd
> Paul because he's had his hands in the new SACK code that was merged, and
> it has its hands in that bit of the output code.  Here are some things you
> might want to try:
> 
> (1) Try running with TCP SACK disabled.  Set the
>     'net.inet.tcp.sack.enable' sysctl to 0 to try this.

Ok, set in /boot/loader.conf


> (2) Try adding some assertions just before the copy to m_copy() in
>     tcp_output().  I'd suggest something like the following:
> 

[ patch ]

Ok, added, thanks.

>     These printfs are oriented at making sure the socket buffer state is
>     consistent, and don't attempt to dump the TCP state used to construct
>     'len' or 'off'.  If the buffer is consistent (i.e., sb_cc ==
>     m_length()), then the next logical thing to do is figure out how
>     (len + off) became greater than the available buffer space.  If you
>     look up a bit higher in tcp_output(), you'll see the values being set,
>     trimmed, etc, based on various values in the tcpcb.

Ok, so I run with this assertion and wait if this new one is
triggered or again the m_copym() one.

> (3) If the socket buffer is inconsistent -- i.e., the length of the buffer
>     in the socket buffer meta-data doesn't match the actual length of the
>     mbufs in the buffer -- try compiling in "options SOCKBUF_DEBUG", which
>     turns on additional socket buffer diagnostics. 

Ok will do. Many thanks.

Best regards,
 Daniel
-- 
IRCnet: Mr-Spock              - Truth lies in the eye of the beholder - 
 Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

------------------------------

Message: 15
Date: Sat, 10 Jul 2004 17:48:35 +0100
From: "Markie" <mark.cullen@dsl.pipex.com>
Subject: Re: quick interactivity? question regarding -current
To: "Brian Fundakowski Feldman" <green@freebsd.org>,
	<freebsd-current@freebsd.org>
Message-ID: <001201c4669d$bfa13bd0$f800000a@laptop>
Content-Type: text/plain;	charset="iso-8859-1"

----- Original Message -----
From: "Brian Fundakowski Feldman" <green@freebsd.org>
To: "Markie" <mark.cullen@dsl.pipex.com>
Cc: <freebsd-current@freebsd.org>
Sent: Saturday, July 10, 2004 3:36 PM
Subject: Re: quick interactivity? question regarding -current


| On Sat, Jul 10, 2004 at 01:44:51AM +0100, Markie wrote:
| > Hello,
| >
| > I updated my 'do-it-all' home server box from 5.2.1-R to -CURRENT the
other
| > day, as suggested by someone a month ago because I was having panics
along
| > the lines of "kmem_malloc(4096): kmem_map too small". Now, I can't
| > immediately tell if this upgrade has solved my problem as the first one
| > appeared after 50 days of uptime (ish) and the one that happened the
other
| > day (same panic) occured after only around 20 days, this is when I
decided
| > to go for the installkernel/world.
|
| Did you try seeing where all the memory went?  I reimplemented KVM
support
| in vmstat -m for -CURRENT, so it should be more useful for that if you
get
| a core dump (admittedly, a rare thing ...).

I didn't know about vmstat -m until the other day, I read something about
`vmstat -m | grep cred` should be really low, under 100k or something
(which mine is)

I have no idea what KVM is in terms of kernel stuff :-) What should I be
looking for, just any entry with a high mem usage? Should I setup a cron
job to dump the results to a file each day so incase I do still get the
panic i'll be able to look at the results atleast from the day before,
maybe that would help me determine what was up if it's due to a memory
leak? At the moment the most memory seems to be in 'routetbl' - 6456k in
the HighUse and 1793k MemUse. All the rest are pretty much below 100k.

Thanks!
Markie

|
| --
| Brian Fundakowski Feldman                           \'[
FreeBSD ]''''''''''\
|   <> green@FreeBSD.org                               \  The Power to
Serve! \
|  Opinions expressed are my own.
\,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 16
Date: Sat, 10 Jul 2004 11:01:15 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: top m mode reads zeros
To: freebsd-current@FreeBSD.org
Message-ID: <20040710180115.44848.qmail@web50710.mail.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

The recent modifications to top producing
the io numbers with the m command don't appear
to working correctly here.

Attached is a snapshot of a top display taken
while a make world is in progress.

Any thoughts on this?

-kim



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-------------- next part --------------
last pid:  4749;  load averages:  1.02,  1.08,  0.92    up 0+00:32:25  13:46:5
7
41 processes:  2 running, 39 sleeping
CPU states: 90.7% user,  0.0% nice,  8.7% system,  0.6% interrupt,  0.0% idle

Mem: 40M Active, 557M Inact, 124M Wired, 2168K Cache, 112M Buf, 277M Free
Swap: 8000M Total, 8000M Free

  PID USERNAME   READ  WRITE  FAULT  TOTAL PERCENT COMMAND
  229 root          0      0      0      0   0.00% adjkerntz
 4748 root          0      0      0      0   0.00% cc1
 4747 root          0      0      0      0   0.00% cc
 4746 root          0      0      0      0   0.00% make
 4276 root          0      0      0      0   0.00% sh
 4275 root          0      0      0      0   0.00% make
 3520 root          0      0      0      0   0.00% top
  573 root          0      0      0      0   0.00% sh
  572 root          0      0      0      0   0.00% make
  569 root          0      0      0      0   0.00% sh
62458 root          0      0      0      0   0.00% make
62457 root          0      0      0      0   0.00% sh
14060 root          0      0      0      0   0.00% getty
  737 root          0      0      0      0   0.00% make
  735 root          0      0      0      0   0.00% sh
  673 root          0      0      0      0   0.00% make

------------------------------

Message: 17
Date: Sat, 10 Jul 2004 11:13:41 -0700
From: Tim Kientzle <kientzle@freebsd.org>
Subject: Re: bsdtar fails on xorg-libraries (X11R6.7.0-src3.tar.gz)
To: noackjr@alumni.rice.edu
Cc: current@freebsd.org
Message-ID: <40F031D5.9030605@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Jon Noack wrote:
> When attempting to reinstall xorg-libraries with -CURRENT from today 
> (using WITH_BSDTAR), I ran across a problem extracting 
> X11R6.7.0-src3.tar.gz ....  the issue is most likely with the "fourth comple
te
> rewrite of the dir-creation code":
> http://lists.freebsd.org/pipermail/cvs-src/2004-July/026963.html

Yep, there was a mistake in there.
This should be fixed now. Try it and let me know.

Cheers,

Tim


------------------------------

Message: 18
Date: Sat, 10 Jul 2004 12:25:39 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: ethercons updated for -CURRENT
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: Robert Watson <rwatson@FreeBSD.org>
Message-ID: <20040710122321.J66667@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sat, 10 Jul 2004, Bjoern A. Zeeb wrote:

> I have been told there is a tool 'IPMItool' that is most likely
> this one: http://ipmitool.sourceforge.net/
>
> It might be a bit linuxoid but I haven't checked the code yet.

This is Sun's little CLI program that they hand out for managing the V20z.
It should be portable.  I've been trying to implement it all myself mainly
for education value. I already have most of IPMI1.5 implemented in a set
of Python modules.

RMCP+ hurts to read though... started on it last night... the crypto
protocol is ... bizarre.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 19
Date: Sat, 10 Jul 2004 12:26:57 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: nfs-server twice as fast written to as read from
To: Claus Guttesen<cguttesen@yahoo.dk>
Cc: current@freebsd.org
Message-ID: <20040710122632.M66667@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sat, 10 Jul 2004, [iso-8859-1] Claus Guttesen wrote:

> > What were your mount options on the client? What
> > kind of client(s)?
>
> mount_nfs -T -3 -r 32768 -w 32768 ulla:/home/claus nfs

ok that looks reasonable. What does iostat look like if you run it on both
ends while doing the test?

It sounds like one machine's disk is just plain slower than the other's.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 20
Date: Sat, 10 Jul 2004 15:28:42 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: quick interactivity? question regarding -current
To: Markie <mark.cullen@dsl.pipex.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040710192842.GK1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Sat, Jul 10, 2004 at 05:48:35PM +0100, Markie wrote:
> ----- Original Message -----
> From: "Brian Fundakowski Feldman" <green@freebsd.org>
> To: "Markie" <mark.cullen@dsl.pipex.com>
> Cc: <freebsd-current@freebsd.org>
> Sent: Saturday, July 10, 2004 3:36 PM
> Subject: Re: quick interactivity? question regarding -current
> 
> 
> | On Sat, Jul 10, 2004 at 01:44:51AM +0100, Markie wrote:
> | > Hello,
> | >
> | > I updated my 'do-it-all' home server box from 5.2.1-R to -CURRENT the
> other
> | > day, as suggested by someone a month ago because I was having panics
> along
> | > the lines of "kmem_malloc(4096): kmem_map too small". Now, I can't
> | > immediately tell if this upgrade has solved my problem as the first one

> | > appeared after 50 days of uptime (ish) and the one that happened the
> other
> | > day (same panic) occured after only around 20 days, this is when I
> decided
> | > to go for the installkernel/world.
> |
> | Did you try seeing where all the memory went?  I reimplemented KVM
> support
> | in vmstat -m for -CURRENT, so it should be more useful for that if you
> get
> | a core dump (admittedly, a rare thing ...).
> 
> I didn't know about vmstat -m until the other day, I read something about
> `vmstat -m | grep cred` should be really low, under 100k or something
> (which mine is)
> 
> I have no idea what KVM is in terms of kernel stuff :-) What should I be
> looking for, just any entry with a high mem usage? Should I setup a cron
> job to dump the results to a file each day so incase I do still get the
> panic i'll be able to look at the results atleast from the day before,
> maybe that would help me determine what was up if it's due to a memory
> leak? At the moment the most memory seems to be in 'routetbl' - 6456k in
> the HighUse and 1793k MemUse. All the rest are pretty much below 100k.

That's an excellent plan.  I would suggest doing it more like hourly, and
logging to separate files each time -- the individual file unit is not the
most resilient to a kernel panic, but a directory of separate files will
probably stand no chance of being wiped out.  If you used one file, it
could be truncated, put in lost+found, or maybe just lost, although I
haven't specifically had any files that were not "recently created" lost
during crashes.

If you're doing it live, please do vmstat -z also (vmstat -mz works); it
should be easy to see where the problem is using both of those over time,
but only if it's a gradual leak (which most I've seen are).

Thanks!

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 21
Date: Sat, 10 Jul 2004 20:42:04 +0100
From: "Sarunas V." <vsarunas@eircom.net>
Subject: Re: Problems with i82077, NE72065 or clone floppy drive
	controllers	(Was: i need my floppy disk drive.)
To: freebsd-current@freebsd.org
Message-ID: <20040710194204.GA1303@laserbeam.sv.org>
Content-Type: text/plain; charset=us-ascii

On 18:14, Sat 10 Jul 04, Michael Nottebrock wrote:
[snip]
> > I have the same floppy drive. On current(yesterday's), when
> > booting with ACPI, I get the following message:
> >
> > fdc0: I/O to control range incorrect
> 
> Have you tried debug.acpi.disabled="sysresource" in loader.conf?

I tried it now, and the floppy works fine. 

Thanks,
-- 
Sarunas Vancevicius  (vsarunas AT eircom DOT NET)

------------------------------

Message: 22
Date: Sat, 10 Jul 2004 22:02:00 +0200 (CEST)
From: Claus Guttesen<cguttesen@yahoo.dk>
Subject: Re: nfs-server twice as fast written to as read from
To: Doug White <dwhite@gumbysoft.com>
Cc: current@freebsd.org
Message-ID: <20040710200200.55712.qmail@web14102.mail.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

> > mount_nfs -T -3 -r 32768 -w 32768 ulla:/home/claus
nfs

> It sounds like one machine's disk is just plain
> slower than the other's.

You're probably right, copying from the nfs-server (a
PIII Compaq DL-380 with SCSI-disks) to the clients
(two dual PIII with an IDE-disk each) takes longer due
to the slower IDE-disk, while writing to the
nfs-server is faster with the SCSI-disk.

Well, SCSI is _not_ bad on a server ;-)

BTW, setting read- and write-size to 16384 on the
client gave me the "not responding - alive again"
tune.

regards
Claus


Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter o
g virusscan

------------------------------

Message: 23
Date: Sat, 10 Jul 2004 21:34:15 +0100
From: "Markie" <mark.cullen@dsl.pipex.com>
Subject: Re: quick interactivity? question regarding -current
To: "Brian Fundakowski Feldman" <green@freebsd.org>,
	<freebsd-current@freebsd.org>
Message-ID: <005101c466bd$454972b0$f800000a@laptop>
Content-Type: text/plain;	charset="iso-8859-1"


----- Original Message -----
From: "Brian Fundakowski Feldman" <green@freebsd.org>
To: "Markie" <mark.cullen@dsl.pipex.com>
Cc: <freebsd-current@freebsd.org>
Sent: Saturday, July 10, 2004 8:28 PM
Subject: Re: quick interactivity? question regarding -current


| On Sat, Jul 10, 2004 at 05:48:35PM +0100, Markie wrote:
| > ----- Original Message -----
| > From: "Brian Fundakowski Feldman" <green@freebsd.org>
| > To: "Markie" <mark.cullen@dsl.pipex.com>
| > Cc: <freebsd-current@freebsd.org>
| > Sent: Saturday, July 10, 2004 3:36 PM
| > Subject: Re: quick interactivity? question regarding -current
| >
| >
| > | On Sat, Jul 10, 2004 at 01:44:51AM +0100, Markie wrote:
| > | > Hello,
| > | >
| > | > I updated my 'do-it-all' home server box from 5.2.1-R to -CURRENT the

| > other
| > | > day, as suggested by someone a month ago because I was having panics
| > along
| > | > the lines of "kmem_malloc(4096): kmem_map too small". Now, I can't
| > | > immediately tell if this upgrade has solved my problem as the first on
e
| > | > appeared after 50 days of uptime (ish) and the one that happened the
| > other
| > | > day (same panic) occured after only around 20 days, this is when I
| > decided
| > | > to go for the installkernel/world.
| > |
| > | Did you try seeing where all the memory went?  I reimplemented KVM
| > support
| > | in vmstat -m for -CURRENT, so it should be more useful for that if you
| > get
| > | a core dump (admittedly, a rare thing ...).
| >
| > I didn't know about vmstat -m until the other day, I read something about

| > `vmstat -m | grep cred` should be really low, under 100k or something
| > (which mine is)
| >
| > I have no idea what KVM is in terms of kernel stuff :-) What should I be
| > looking for, just any entry with a high mem usage? Should I setup a cron
| > job to dump the results to a file each day so incase I do still get the
| > panic i'll be able to look at the results atleast from the day before,
| > maybe that would help me determine what was up if it's due to a memory
| > leak? At the moment the most memory seems to be in 'routetbl' - 6456k in
| > the HighUse and 1793k MemUse. All the rest are pretty much below 100k.
|
| That's an excellent plan.  I would suggest doing it more like hourly, and

:-D I'll go set that up for hourly then, just incase it does still panic with

CURRENT.

| logging to separate files each time -- the individual file unit is not the
| most resilient to a kernel panic, but a directory of separate files will
| probably stand no chance of being wiped out.  If you used one file, it
| could be truncated, put in lost+found, or maybe just lost, although I
| haven't specifically had any files that were not "recently created" lost
| during crashes.

Well, my plan was to do it so it'd save the output to, say, vmstat.10.07.04. S
o
it'd be a seperate file for each day, but hourly probably is alot better anywa
y!
Also I did find that when I first started messing about with -CURRENT (not lon
g
before 5.1 I think) when I crashed due to the (nasty) nvidia module I ended up

with alot of data loss until I turned off write caching. I read that some hard

disks lie about when the data is written out and this isn't a softupdate issue
,
is this right?

|
| If you're doing it live, please do vmstat -z also (vmstat -mz works); it
| should be easy to see where the problem is using both of those over time,
| but only if it's a gradual leak (which most I've seen are).

How do you mean 'live'? I will use -mz anyway, just wondering what you meant :
-)
Oh and say it does panic again, should I send the list all of these logs from

say the past... say... week in a tar or what? I could also compile a debug
kernel and start using that if it still does it, if it'd help any?

|
| Thanks!

Thank _you_ :-)

|
| --
| Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\

|   <> green@FreeBSD.org                               \  The Power to Serve! 
\
|  Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,
,\
| _______________________________________________
| 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"


------------------------------

Message: 24
Date: Sat, 10 Jul 2004 22:50:06 +0200
From: "lycanthrope" <lycanthrope@post.htnet.hr>
Subject: A quick one (well, two actually)
To: <freebsd-current@freebsd.org>
Message-ID: <005101c466bf$7b50dc20$1205a8c0@jkhahhytncost7>
Content-Type: text/plain;	charset="iso-8859-1"

hello
a quick question:
I cvsuped to current, did all that makeworld etc, and everything works perfect
ly :)
now,i want to add some options to kernel. There is no need to do all the "worl
d" proccess again,right? (I did no cvsuping since then). It is ok to just  "ma
ke buildkernel" and installkernel, right? 
I'm pretty sure that is OK, since (correct me if I'm wrong,please) "world" pro
cess is needed when upgrading,right?

for the second question. every time I go upgrading my BSD system, entire "worl
d" process is needed,no matter maybe a day passed since last cvsup-if I cvsup 
to newer, world is needed,right?

thanks!

------------------------------

Message: 25
Date: Sat, 10 Jul 2004 23:05:09 +0200
From: Claude Buisson <cbuisson@nerim.net>
Subject: current now thinks my xe0 is fdc1 !
To: current@freebsd.org
Message-ID: <40F05A05.5040904@nerim.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

My Xircom PCMCIA card, properly recognized as:

xe0: <Xircom CreditCard 10/100> at port 0x100-0x10f irq 11 function 0 
config 1 on pccard1
xe0: [GIANT-LOCKED]
xe0: Xircom CreditCard 10/100, version 0x45/0x04, 100Mbps capable
xe0: Ethernet address: 00:80:c7:7a:d2:73

with a kernel/world dated July 03, is now mistaken for a:

fdc1: <Y-E Data PCMCIA floppy> at port 0x100-0x10f irq 11 function 0
config 1 on pccard1

with a kernel dated July 10 (no network=>world not updated).

On an old Compaq Armada 3500, no ACPI.

the string "Y-E Data PCMCIA floppy" cannot be found in 
/etc/defaults/pccard.conf, but seems to come from:

/sys/dev/fdc/fdc_pccard.c (created 07/07)

Claude Buisson

------------------------------

Message: 26
Date: Sat, 10 Jul 2004 14:13:25 -0700
From: Kent Stewart <kstewart@owt.com>
Subject: Re: A quick one (well, two actually)
To: freebsd-current@freebsd.org
Cc: lycanthrope <lycanthrope@post.htnet.hr>
Message-ID: <200407101413.25703.kstewart@owt.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Saturday 10 July 2004 01:50 pm, lycanthrope wrote:
> hello
> a quick question:
> I cvsuped to current, did all that makeworld etc, and everything
> works perfectly :) now,i want to add some options to kernel. There is
> no need to do all the "world" proccess again,right? (I did no
> cvsuping since then). It is ok to just  "make buildkernel" and
> installkernel, right? I'm pretty sure that is OK, since (correct me
> if I'm wrong,please) "world" process is needed when upgrading,right?

It can also be dangerous to your system. There is an order that you are 
supposed to go trough that you can see in /usr/src/UPDATING. You start 
out doing a buildworld, build[install]kernel, reboot into single user 
mode and do the installworld and mergemaster. The process is more 
involved than that. 

If the old kernel and the new userland are incompatable, you may have a 
system that no longer will run in the mixed environment.

If all you do is "make world", you haven't built a new kernel to go 
along with the world. You install the kernel and test it with the boot 
to single user mode to give it a little test before you install the 
world. If the new kernel panics, you can boot the old kernel and 
continue just fine until they fix the problem.

If you haven't cvsuped and change a kernel parameter, you don't need to 
do anything with the userland (world). You only have to build the new 
kernel and install it. Once you reboot, you are using the new kernel.

>
> for the second question. every time I go upgrading my BSD system,
> entire "world" process is needed,no matter maybe a day passed since
> last cvsup-if I cvsup to newer, world is needed,right?
>

The safe way is to rebuild everything. Do you know enough to tell that a 
change doesn't affect the userland (world) and the kernel. If you 
don't, then you rebuild everything, everytime you cvsup src-all.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

------------------------------

Message: 27
Date: Sat, 10 Jul 2004 23:19:17 +0200
From: "lycanthrope" <lycanthrope@post.htnet.hr>
Subject: Re: A quick one (well, two actually)
To: "Nils Holland" <nils@wundi.net>
Cc: freebsd-current@freebsd.org
Message-ID: <006301c466c3$8f08a1e0$1205a8c0@jkhahhytncost7>
Content-Type: text/plain;	charset="iso-8859-1"


----- Original Message -----
From: "Nils Holland" <nils@wundi.net>
To: "lycanthrope" <lycanthrope@post.htnet.hr>
Cc: <freebsd-current@freebsd.org>
Sent: Saturday, July 10, 2004 11:14 PM
Subject: Re: A quick one (well, two actually)


> On Saturday 10 July 2004 22:50, lycanthrope wrote:
> > hello
> > a quick question:
> > I cvsuped to current, did all that makeworld etc, and everything works
> > perfectly :) now,i want to add some options to kernel. There is no need
to
> > do all the "world" proccess again,right? (I did no cvsuping since then).
It
> > is ok to just  "make buildkernel" and installkernel, right? I'm pretty
sure
> > that is OK, since (correct me if I'm wrong,please) "world" process is
> > needed when upgrading,right?
>
> Yeah, you probably wat to make a copy of the GENERIC kernel configuration
file
> and name it something like MYKERNEL. Then add the options you want to add
in
> there, and do a "make buildkernel kernconf=MYKERNEL" and, of course, "make
> installkernel KERNCONF=mykernel". Theoretically you could just as well
mess
> around in GENERIC, but I think that's not a wise thing to do.
>
> > for the second question. every time I go upgrading my BSD system, entire
> > "world" process is needed,no matter maybe a day passed since last
cvsup-if
> > I cvsup to newer, world is needed,right?
>
> Needed ... well, not really. You may get away with just building world or
the
> kernel, but it's generally a good idea to keep world and the kernel in
sync.
>
> As a side note, I guess this question would have been more suitable for
> questions@. ;-)
>
> Greetings,
> Nils


thank you, and thanks to Kent. You both confirmed what I thought it was, so
off I go to customizing my kernel a bit more :)
thanks again


------------------------------

Message: 28
Date: Sat, 10 Jul 2004 15:25:48 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: panic: m_copym, length > size of mbuf chain
To: dl@leo.org
Cc: rwatson@FreeBSD.org
Message-ID: <200407102225.i6AMPmhw015583@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On 10 Jul, Daniel Lang wrote:
> Hi Robert,
> 
> Robert Watson wrote on Wed, Jul 07, 2004 at 12:24:59PM -0400:
> [..]
>> Just to try ruling out possibilities -- have you run an extensive set of
>> hardware diagnostics?  Most server class hardware ships with a decent
>> diagnostics disk, and I'm sure we can find some for you in the event your
>> hardware didn't come with some.  While it's quite possibly a software
>> problem, tracking hardware problems using software symptoms constitutes
>> undesirable pain and so it wouldn't hurt to give that a spin.  I remember
>> seing your earlier e-mails about running with WITNESS increasing the
>> chances of pain -- this could be a bug in WITNESS as you suggest, or it
>> could be that WITNESS increases the opportunities for a variety of locking

>> related races by increasing the cost of lock/unlock operations.
> [..]
> 
> So I come back to the issue. As I already wrote, I guess I can
> rule out hardware problems now. I did a very thorough test with
> the Dell diagnosis utilities which showed no problems.
> 
> Also, after John's patch I did not see any WITNESS related
> problems (so far) again. But I had the m_copy panic again
> (see subject). This time I did file a PR and did some more detailed
> gdb analysis. It is all documented at:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/68889
> 
> I am puzzled, because the stack frame on entering m_copym has
> 0x0 as first argument (m), however in the previous frame
> when m_copy() is called, the struct mbuf* argument is valid.

m_copym() overwrites its first and third arguments as it walks the mbuf
chain.

struct mbuf *
m_copym(struct mbuf *m, int off0, int len, int wait)
{
[snip]
	while (off > 0) {
		KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain"));
		if (off < m->m_len)
			break;
		off -= m->m_len;
		m = m->m_next;
	}
[snip]
	while (len > 0) {
		if (m == NULL) {
			KASSERT(len == M_COPYALL, 
			    ("m_copym, length > size of mbuf chain"));
			break;
		}
[snip]
		if (len != M_COPYALL)
			len -= n->m_len;
		off = 0;
		m = m->m_next;
		np = &n->m_next;
	}


The interesting bits would seem to be in stack frame 11, tcp_output().
Check the arguments being passed to m_copym():

#10 0xc0551805 in m_copym (m=0x0, off0=737, len=1222, wait=1)
    at /usr/src/sys/kern/uipc_mbuf.c:380

We don't know the original value of len that was passed to m_copym(),
because it could have been decremented if m_copym() iterated a few times
before it paniced, but it was at least 1222.  If we add that to off0,
then the length of original mbuf chain passed to m_copym() should have
been at least 1959.

Now take look at the call to m_copy():

#11 0xc059ed5a in tcp_output (tp=0xc3f50000)
    at /usr/src/sys/netinet/tcp_output.c:748
748                             m->m_next = m_copy(so->so_snd.sb_mb, off, (int
) len);

It would be interesting to see the value of len in stack frame 11, so
that we know the original value passed to m_copym().

Also the contents of *so is interesting.

(kgdb) p *so
[snip]
    sb_cc = 975, sb_hiwat = 33580, sb_mbcnt = 1536, sb_mbmax = 262144,

I'm not sure if sb_cc or sb_mbcnt is the important member, but I think
it is sb_cc.  I think this means that the mbuf chain contains 975 bytes
of data but tcp_output() is telling m_copy() to copy (at least) 1222
bytes of data starting at offset 737.

It looks to me like tcp_output() is passing a bogus len value to
m_copy().



------------------------------

Message: 29
Date: Sat, 10 Jul 2004 22:27:23 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: more on serial console problems
To: FreeBSD current mailing list <current@freebsd.org>
Message-ID:
	<Pine.BSF.4.53.0407102220030.12756@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

rebuilt my amd64 and (apart from some loader buildword/install problems)
I got the following serial console results using loader:

* default boot to screen is fine
* boot -s to screen is fine
* boot -h gives kernel message but nothing after "mounting root from"
  when rc.d startup scripts are running
* boot -h -s give kernel boot messages but "../bin/sh " for single
  user mode is printed neither to console nor to screen
* echo "-h" > /boot.config : loader and kernel boot messages go to
  console but again no rc.d startup script messages

in any case my getty on ttyd0 is working fine of course.


This at least is somewhat better than my latest pxeboot results but
still is not perfect; something not so good is going on.

This is with sources from pre-KDB commits.

Anyone any ideas how to get the rc.d script messages to console too ?

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT

------------------------------

Message: 30
Date: Sat, 10 Jul 2004 22:34:28 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: is_sk locking in sk_attach
To: FreeBSD current mailing list <current@freebsd.org>
Message-ID:
	<Pine.BSF.4.53.0407102229190.12756@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

there had been some discussion lately about if_sk and attach locking.
compiled if_sk as module on amd64 and kldloading started a race with
follwoing output:

--- very short part of console log ---
[some hundred more of the following lines]
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
malloc(M_WAITOK) of "64", forcing M_NOWAIT with the following non-sleepable lo
cks held:
exclusive sleep mutex skc0 (network driver) r = 0 (0xffffff003000b670) locked 
@ /u1/src/HEAD/src/sys/pci/if_sk.c:1335
Stack backtrace:
witness_warn() at witness_warn+0x1a7
uma_zalloc_arg() at uma_zalloc_arg+0x4c
malloc() at malloc+0x9f
scope6_ifattach() at scope6_ifattach+0x20
in6_domifattach() at in6_domifattach+0x91
if_attachdomain1() at if_attachdomain1+0xb9
if_attach() at if_attach+0x465
ether_ifattach() at ether_ifattach+0x27
sk_attach() at sk_attach+0x334
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
(null)() at 0
[some hundred more of these lines]
--- end ---



I solved this problem without further investigation of possible
bad impacts with this patch:


Index: if_sk.c
===================================================================
RCS file: /u2/src/CVS/prefixes/src/sys/pci/if_sk.c,v
retrieving revision 1.83
diff -u -p -r1.83 if_sk.c
--- if_sk.c	28 Jun 2004 20:07:03 -0000	1.83
+++ if_sk.c	10 Jul 2004 21:44:53 -0000
@@ -1332,7 +1332,9 @@ sk_attach(dev)
 	error = 0;
 	sc_if = device_get_softc(dev);
 	sc = device_get_softc(device_get_parent(dev));
+#if 0
 	SK_LOCK(sc);
+#endif
 	port = *(int *)device_get_ivars(dev);
 	free(device_get_ivars(dev), M_DEVBUF);
 	device_set_ivars(dev, NULL);
@@ -1472,7 +1474,9 @@ sk_attach(dev)
 	}

 fail:
+#if 0
 	SK_UNLOCK(sc);
+#endif
 	if (error) {
 		/* Access should be ok even though lock has been dropped */
 		sc->sk_if[port] = NULL;
--- end ---


can someone with some more knowledge about this driver and
general locking of if_* please review this. TIA.

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT

------------------------------

Message: 31
Date: Sat, 10 Jul 2004 16:10:56 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: top m mode reads zeros
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040710231056.GA22859@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"

On Sat, Jul 10, 2004 at 11:01:15AM -0700, Kim Culhan wrote:
> The recent modifications to top producing
> the io numbers with the m command don't appear
> to working correctly here.
> 
> Attached is a snapshot of a top display taken
> while a make world is in progress.
> 
> Any thoughts on this?

I saw this when my kernel was out of sync with the world.
Double-check this on your system.

Kris
-------------- 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/20040710/
8db0b0bc/attachment-0001.bin

------------------------------

Message: 32
Date: Sat, 10 Jul 2004 16:24:47 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: panic: m_copym, length > size of mbuf chain
To: rwatson@FreeBSD.org
Cc: ps@FreeBSD.org
Message-ID: <200407102324.i6ANOlEs015698@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On 10 Jul, Robert Watson wrote:
> 
> On Sat, 10 Jul 2004, Daniel Lang wrote:
> 
>> So I come back to the issue. As I already wrote, I guess I can rule out
>> hardware problems now. I did a very thorough test with the Dell
>> diagnosis utilities which showed no problems. 
> 
> Thanks!
> 
>> Also, after John's patch I did not see any WITNESS related problems (so
>> far) again. But I had the m_copy panic again (see subject). This time I
>> did file a PR and did some more detailed gdb analysis. It is all
>> documented at:
>> 
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/68889
>> 
>> I am puzzled, because the stack frame on entering m_copym has 0x0 as
>> first argument (m), however in the previous frame when m_copy() is
>> called, the struct mbuf* argument is valid. 
>> 
>> Ok, I just realized that there is a difference m_copy()  and m_copym() 
>> are apparently different functions. Is this a makro/#define discrepancy
>> it seems that that m_copym() is the function which is called in this
>> line of code. 
>> 
>> Ah, I found it: 
>> 
>> sys/mbuf.h:#define m_copy(m, o, l) m_copym((m), (o), (l), M_DONTWAIT) 
>> 
>> so, the puzzle remains, since the arguments passed are kept, except that
>> M_DONTWAIT flag is added.
>> 
>> Is this a trashed stack? 
> 
> Possibly, but notice that the m_copym() function modifies its copy of 'm'
> in the stack as part of its work -- it uses 'm' to iterate the mbuf chain
> passed in in order to move to the necessary starting offset for the copy.
> Note that the requested offset ('off0') is 737, and the requested 'len' is
> at least 1222, so the loop starting at line 369 will walk until it either
> gets far enough or the "offset > size" assertion triggers:
> 
>         while (off > 0) {
>                 KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain"))
;
>                 if (off < m->m_len)
>                         break;
>                 off -= m->m_len;
>                 m = m->m_next;
>         }
> 
> Since that assertion didn't trigger, we can assume m_copym() successfully
> walked at least 'off0' (737) bytes.  The problem appears to be that it ran
> out of mbufs in which to find data to copy, as it hit the end of the chain
> (m == NULL):
> 
>         while (len > 0) {
>                 if (m == NULL) {
>                         KASSERT(len == M_COPYALL,
>                             ("m_copym, length > size of mbuf chain"));
>                         break;
>                 }
> 
> So the initial conclusion is that the caller requested that more data be
> copied from the chain than is actually present in the chain.  This
> suggests a bug in socket buffer management or the TCP code.  It's
> interesting to note that the socket buffer believes it contains less than
> the requested length -- 'so_snd.sb_mbcnt' is 1536, which is arguably less
> than 737 + 1222 (although we don't know, I think, if it's iterated or not
> and therefore decreased the value of 'len').  Could you print the value of
> 'top' in the m_copym() stack?  That will tell us if it's on the first mbuf
> or not.
> 
> It sounds like the socket buffer state may be inconsistent with the TCP
> PCB state, or that the expectations in tcp_offset() are wrong.  I've CC'd
> Paul because he's had his hands in the new SACK code that was merged, and
> it has its hands in that bit of the output code.  Here are some things you
> might want to try:
> 
> (1) Try running with TCP SACK disabled.  Set the
>     'net.inet.tcp.sack.enable' sysctl to 0 to try this.
> 
> (2) Try adding some assertions just before the copy to m_copy() in
>     tcp_output().  I'd suggest something like the following:

I'm very suspicious of the SACK code.  In the non-SACK case, len gets
set here:

	if (!sack_rxmit)
		len = ((long)ulmin(so->so_snd.sb_cc, sendwin) - off);

but when the system panics len+off > sb_cc.

It would be interesting to look at *tp and *p in the tcp_output stack
frame.

If I had to guess, I'd say that either tp->snd_recover-tp->snd_una or
p->end-tp->snd_una is greater than so->so_snd.sb_cc.


------------------------------

Message: 33
Date: Sat, 10 Jul 2004 23:16:52 -0400
From: jhandvil <jhandvil@tampabay.rr.com>
Subject: 5.2.1 p9 --> 5.2 current 20040709 upgrade ATA_IDENTIFY no
	interrupt
To: freebsd-current@freebsd.org
Message-ID: <200407102316.52182.jhandvil@tampabay.rr.com>
Content-Type: text/plain;  charset="us-ascii"

Just upgraded from 5.2.1 p9 to 5.2-current (20040709).  While test booting the
 
new kernel, I received the following error.  Unfortunately, I was unable to 
save the dmesg.  Here is the error copied by hand, please excuse typo's:

ata0-master: FAILURE - ATA_IDENTIFY no interrupt
ata0-master: FAILURE - ATA_IDENTIFY no interrupt
Mounting root from ufs:/dev/ad0s1a
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

System info -

AMD Athlon 1.33 266MHZ DDR (133MHZ FSB).  1024MB ram DDR PC2100
IDE HD as Master 0, Sony DVD+/- RW as Master 1 (disabled -- see below)
NVIDIA GeForce 3 AGP
Sound Blaster live
VIA 8233 UDMA100 controller
ad0: 152627MB <ST3160023A> [310101/16/63] at ata0-master UDMA100

Let me know if there is any additional information needed.

Cursory google search and scan of UPDATING found only two encounters with this
 
problem, both of which used a DVD RW drive.  Thinking this might be the 
culprit, I disabled (read unplugged) my Sony DVD+/-RW drive and rebooted to 
no avail.  I attempted to boot w/ disabled ACPI, but I get the same message.

For now I have failed over to the 5.2.1 kernel which works with the -current 

world.  I am interested in testing the new KSE and the changes to the boem gc 

library.  Any suggestions for bootstrapping the -current kernel?

Thanks,
Justin


------------------------------

Message: 34
Date: Thu, 8 Jul 2004 20:32:10 -0400
From: jhandvil <jhandvil@tampabay.rr.com>
Subject: 5.2.1 p9 --> 5.2 current 20040708 upgrade ATA_IDENTIFY no
	interrupt
To: freebsd-current@freebsd.org
Message-ID: <200407082032.10210.jhandvil@tampabay.rr.com>
Content-Type: text/plain;  charset="us-ascii"

Just upgraded from 5.2.1 p9 to 5.2-current.  Received the following error 
during boot (copied by hand, please excuse typo's):

ata0-master: FAILURE - ATA_IDENTIFY no interrupt
ata0-master: FAILURE - ATA_IDENTIFY no interrupt
Mounting root from ufs:/dev/ad0s1a
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

System info -

AMD Athlon 1.33 266MHZ DDR (133MHZ FSB).  1024MB ram DDR PC2100
IDE HD as Master 0, Sony DVD+/- RW as Master 1 (disabled -- see below)
NVIDIA GeForce 3 AGP
Sound Blaster LIVE
(from 5.2.1 p9 kernel dmesg)
atapci0: <VIA 8233 UDMA100 controller> port 0xff00-0xff0f at device 17.1 on 
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
ad0: 152627MB <ST3160023A> [310101/16/63] at ata0-master UDMA100


Cursory google search and scan of UPDATING found only two encounters with this
 
problem, both of which used a DVD RW drive.  Thinking this might be the 
culprit, I disabled (read unplugged) my Sony DVD+/-RW drive and rebooted to 
no avail.  I attempted to boot w/ disabled ACPI, but I get the same message.

For now I have failed over to the 5.2.1 kernel which appears to work in some 

broken manner with the -current world (enough to run X).  Any suggestions for 

bootstrapping the -current kernel?

Thanks,
Justin


------------------------------

_______________________________________________
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 68, Issue 18
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]