Bjoern A. Zeeb | 26 May 19:13

NFS panic

Hey,

SVN as of a few days ago.  On reboot.  Do not have a core or further debugging information.
The machine was running of a nfs root.

May 26 17:10:06 panic: mtx_lock() of destroyed mutex @ /zoo/bz/HEAD.svn/sys/kern/uipc_socket.c:1025
cpuid = 5
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
panic() at panic+0x1d8
_mtx_lock_flags() at _mtx_lock_flags+0x13f
sosend_dgram() at sosend_dgram+0xbb
sosend() at sosend+0x82
clnt_dg_call() at clnt_dg_call+0xb81
clnt_call_private() at clnt_call_private+0xe8
nlm4_unlock_4() at nlm4_unlock_4+0x45
nlm_clearlock() at nlm_clearlock+0x294
nlm_advlock_internal() at nlm_advlock_internal+0x64f
nlm_advlock() at nlm_advlock+0x2a
nfs_advlock() at nfs_advlock+0x130
VOP_ADVLOCK_APV() at VOP_ADVLOCK_APV+0xb7
vn_closefile() at vn_closefile+0xea
_fdrop() at _fdrop+0x23
closef() at closef+0x5c
fdfree() at fdfree+0x1b4
exit1() at exit1+0x319
sigexit() at sigexit+0x8f
cursig() at cursig
ast() at ast+0x1b9
(Continue reading)

Matthias Apitz | 26 May 16:22
Picon

10-CURRENT r235646 && open-vm-tools-8.6.0-425873


Hi,

The port ports/emulators/open-vm-tools does not compile in 10-CURRENT:

# make install clean
...
make VM_UNAME=10.0-CURRENT MV=mv RM=rm
OVT_SOURCE_DIR=/usr/ports/emulators/open-vm-tools/work/open-vm-tools-8.6.0-425873
MODULEBUILDDIR=/usr/ports/emulators/open-vm-tools/work/open-vm-tools-8.6.0-425873/modules/freebsd
 -C "/usr/ports/emulators/open-vm-tools/work/open-vm-tools-8.6.0-425873/modules/freebsd/vmxnet"
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
x86 -> /usr/src/sys/x86/include
:> opt_bdg.h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/u
sr/ports/emulators/open-vm-tools/work/open-vm-tools-8.6.0-425873/lib/include
-I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-8.6.0-425873/modules/shared/vmxnet
-I. -I@ -I@/contrib/altq -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fno-common
-mno-align-long-strings -mp
referred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -ffreestanding
-fstack-
protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls
-Wnested-e
xterns -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast
(Continue reading)

Eygene Ryabinkin | 26 May 12:34
Picon
Favicon

[CFT][CFR] Resurrect handling of VersionAddendum in OpenSSH

Good day.

I had created patches for OpenSSH to resurrect handling of
VersionAddendum and, additionally, enable/disable advertisements
for HPN feature in sshd version banner.  des@, bz@ and brooks@
are aware of this patch, Bjoern even reviewed the first version
of the patch, but the second one isn't yet reviewed.

Can anyone who uses SSH test this patch and report their findings
to the respective PR.  Also, code reviews are welcome too.

Thanks!

PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=163843

Patches:
 * 8-STABLE,
   http://codelabs.ru/fbsd/patches/openssh/OpenSSH-fix-VersionAddendum-handling-8-STABLE.diff
 * 9-STABLE,
   http://codelabs.ru/fbsd/patches/openssh/OpenSSH-fix-VersionAddendum-handling-9-STABLE.diff
 * 10-CURRENT,
   http://codelabs.ru/fbsd/patches/openssh/OpenSSH-fix-VersionAddendum-handling.diff

Instructions:
{{{
cd /usr/src
fetch -o ssh-addendum.diff http://codelabs.ru/fbsd/patches/openssh/OpenSSH-fix-VersionAddendum-handling.diff
patch -p1 < ssh-addendum.diff
cd secure/lib/libssh
make && make install
(Continue reading)

Bjoern A. Zeeb | 25 May 18:55
Picon
Favicon

Please test: IPv6 offload support in HEAD + patch for stable/9

Hey,

last night I pushed in the essential offloading support changes for IPv6
along with quite a bit of other "noise" into HEAD.  There is more locking
improvements etc. to come once I have looped things back to my working tree
and Michael Tuexen will improve SCTP/v6 on loopback as well soonish.

This is a call for testing.  The in-tree cxgb(4) and ixgbe(4) drivers
have been updated to make use of the new features (TSO6/LRO6), and more
drivers will follow (I already have cxgbe done, talking about mxge, ..)
but others  should also see improvements for at least upper layer protocol
checksum calculations and I'd love people to test with as many drivers as
possible, as I plan to merge it for the upcoming 9.1-RELEASE cycle and
wouldn't want to ship broken IPv6 in a few months;-)

Here's the patch that should just apply to stable/9 matching what I put into
HEAD (+ an earlier cxgb change) (untested):

http://people.freebsd.org/~bz/20120525-01-ipv6-offload-mfc9.diff

If you need a patch for a specific release please drop me a private email
and I'll try to publish one (8.2 and up only though most likely).

Please test and report to me or net@.

Thanks
/bz

PS: we now also disallow LRO automatically if forwarding is turned on, just
in case you wonder; a change that should have been done years ago;-)
(Continue reading)

Niclas Zeising | 25 May 13:30
Picon
Favicon

FreeBSD as virtualbox guest not working

Hi!
Sometime quite recent a change to FreeBSD CURRENT makes it almost 
impossible to run it as a virtualbox guest, at least under Windows.  If 
I roll back the vbox machine to a (unfortunately quite old, from 
January) CURRENT everything seems to be working.
The issue is that the virtual machine runs very very slow, and makes the 
host almost impossible to work with, especially during compiles and 
other activities involving the CPU and the disk.  I have also 
experienced that the host machine crashes, but that might be unrelated.
Is anyone else experiencing this, or am I doing something very wrong?
Let me know if I need to provide more information or if I can help in 
some other way.
Best Regards!
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe <at> freebsd.org"

Adrian Chadd | 25 May 09:38
Picon
Favicon

9-stable regression: 'cbb0: Warning: Bus reset timeout'

Hi all,

I've just upgraded to 9-stable and I'm seeing the following error on
my Lenovo Thinkpad T60.

'cbb0: Warning: Bus reset timeout'

This is a very recent bug. I was running 9-stable from about 3 weeks
ago (before BSDCan 2012) and cardbus was working fine.

Would anyone have any culprit commits for me to try reverting?

Having cardbus work on these lenovo thinkpads is very important to me
and ath(4) development. :)

Thanks,

adrian
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe <at> freebsd.org"

Sevan / Venture37 | 24 May 19:13
Picon
Gravatar

Kernel builds failing with lots of "failed to retrieve array bounds" errors

Hi
I'm unable to build the generic kernel, seeing lots of "failed to 
retrieve array bounds" errors (129 to be exact) starting with ERROR: 
scsi_all.c: die 43574: failed to retrieve array bounds & stoping at
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs 
-fdiagnostics-show-option  -Wno-error-tautological-compare 
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I. 
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone 
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/ata/ata-card.c
ctfconvert -L VERSION -g aic_pccard.o
ctfconvert -L VERSION -g ata-card.o
ctfconvert -L VERSION -g intel_dp.o
ERROR: intel_dp.c: die 24561: failed to retrieve array bounds
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs 
-fdiagnostics-show-option  -Wno-error-tautological-compare 
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I. 
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone 
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/cs/if_cs_pccard.c
(Continue reading)

O. Hartmann | 24 May 18:53
Picon
Picon
Favicon

usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Error.cpp:15:10: fatal error: 'llvm/TableGen/Error.h' file not found, #include "llvm/TableGen/Error.h"

Trying to build buildworld on FreeBSD 10-CURRENT/amd64 with CLANG today
ends up in the following error:

===> lib/clang/libllvmtablegen (obj,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmtablegen created for
/usr/src/lib/clang/libllvmtablegen
rm -f .depend
CC='clang' mkdep -f .depend -a
-I/usr/obj/usr/src/tmp/legacy/usr/include
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Error.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Main.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Record.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/TableGenAction.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/TableGenBackend.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/TGLexer.cpp
/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/TGParser.cpp

/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Error.cpp:15:10:
fatal error: 'llvm/TableGen/Error.h' file not found
#include "llvm/TableGen/Error.h"
         ^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /usr/src/lib/clang/libllvmtablegen.
*** [bootstrap-tools] Error code 1

Stop in /usr/src.
*** [_bootstrap-tools] Error code 1
(Continue reading)

John Baldwin | 24 May 18:25
Picon
Favicon

Re: ACPI 'driver bug: Unable to set devclass'

On Thursday, May 24, 2012 2:15:26 am Andriy Gapon wrote:
> 
> Now that you committed the acpi_cpu fix I'd like to do the easy part -
> protection from the problem in the future.
> Does the following look OK?
> 
> Index: sys/kern/subr_bus.c
> ===================================================================
> --- sys/kern/subr_bus.c	(revision 235884)
> +++ sys/kern/subr_bus.c	(working copy)
> @@ -1810,6 +1810,8 @@
> 
>  	PDEBUG(("%s at %s with order %u as unit %d",
>  	    name, DEVICENAME(dev), order, unit));
> +	KASSERT(name != NULL || unit == -1,
> +	    ("child device with wildcard name and specific unit number"));
> 
>  	child = make_device(dev, name, unit);
>  	if (child == NULL)

Yes, please do!

--

-- 
John Baldwin
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe <at> freebsd.org"

(Continue reading)

Maryse LEVAVASSEUR | 24 May 14:24

[PATCH] IPv6 rtadvd: little optimization

Hi,

Since upgrading to FreeBSD 8.3, I noticed that after rtadvd starts, it 
does not respond to router solicitations during a quite long time.

I have made a patch which speeds up rtadvd's start by making fewer calls 
to if_indextoname. Moreover, it will react properly in case 
if_indextoname fails.

Would anyone object to this patch ?

===
Index: if.c
===================================================================
--- if.c        (revision 235474)
+++ if.c        (working copy)
@@ -472,11 +472,18 @@ update_ifinfo(struct ifilist_head_t *ifi_head, int
                             ifindex != ifm->ifm_index)
                                 continue;

+                       /* ifname */
+                       if (if_indextoname(ifm->ifm_index, ifname) == 
NULL) {
+                               syslog(LOG_WARNING,
+                                   "<%s> ifname not found (idx=%d)",
+                                   __func__, ifm->ifm_index);
+                               continue;
+                       }
+
                         /* lookup an entry with the same ifindex */
(Continue reading)

Willem Jan Withagen | 24 May 09:49
Picon

Daily, weekly, security scripts....

[I looked for a better list to drop this on, but other that freebsd-rc
nothing seems close.]

Hi,

I nagged about the verbosity of the periodic scripts.
But did not give any example.

Well I just ran into a perfect example:
--
Checking setuid files and devices:

Checking for uids of 0:
root 0

Checking for passwordless accounts:

Checking login.conf permissions:

Checking for ports with mismatched checksums:

xx.xx.nl kernel log messages:
+++ /tmp/security.X5WEmRe8	2012-05-24 03:38:58.028927236 +0200

xx.xx.nl login failures:

xx.xx.nl refused connections:

Checking for a current audit database:

(Continue reading)


Gmane