Re: 7.1-STABLE crash

2009-06-02 Thread Mikolaj Golub
On Tue, 02 Jun 2009 13:41:40 +0400 Asmodean Dark wrote: AD> # kgdb kernel.debug vmcore.0 AD> GNU gdb 6.1.1 [FreeBSD] AD> Copyright 2004 Free Software Foundation, Inc. AD> GDB is free software, covered by the GNU General Public License, and you are AD> welcome to change it and/or distribute

Re: FYI Lighttpd 1.4.23 /kernel (trailing '/' on regular file symlink) vulnerability

2009-06-02 Thread Eygene Ryabinkin
Tue, Jun 02, 2009 at 01:28:34PM +0200, Dag-Erling Sm??rgrav wrote: > Eygene Ryabinkin writes: > > For the current code state, check "*cp == '\0'" seems to be redundant: > > [...] By the way, comment before the test "if (rdonly)' seems to be > > slightly misleading [...] > > OK, I see that. I've

Re: close-on-exec alternatives (was: Why kernel kills processes that run out of memory instead of just failing memory allocation system calls?)

2009-06-02 Thread Joerg Sonnenberger
On Tue, Jun 02, 2009 at 08:58:50PM +0200, Bernd Walter wrote: > It is still very interesting, because I currently have a similar problem > and wasn't aware of getdtablesize(); Note that many (other) systems provide a much simpler and efficient function for the above, closefrom(3). Joerg _

close-on-exec alternatives (was: Why kernel kills processes that run out of memory instead of just failing memory allocation system calls?)

2009-06-02 Thread Bernd Walter
On Fri, May 29, 2009 at 12:31:37PM -0700, Alfred Perlstein wrote: > * Dag-Erling Sm??rgrav [090529 02:49] wrote: > > Alfred Perlstein writes: > > > Dag-Erling Sm??rgrav writes: > > > > Usually, what you see is closer to this: > > > > > > > > if ((pid = fork()) == 0) { > > > > for (int f

Re: REgarding TOS support in Kernel

2009-06-02 Thread Wojciech Puchar
forward.cc:978: error: 'SOL_IP' was not declared in this scope forward.cc:978: error: 'IP_RECVTOS' was not declared in this scope forward.cc:982: error: 'IP_PKTOPTIONS' was not declared in this scope *** Error code 1    I have wrote to writer of zph and he suggest me to look for freebsd equival

REgarding TOS support in Kernel

2009-06-02 Thread john decot
Hi,   I am intermediate user of freebsd. While building squid with zph support, I got error regarding TOS as follows: forward.cc: In member function 'void FwdState::dispatch()': forward.cc:978: error: 'SOL_IP' was not declared in this scope forward.cc:978: error: 'IP_RECVTOS' was not declar

Re: Synchronize cache failed.

2009-06-02 Thread Wojciech Puchar
You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, or PROTO_BBB fixed this - now works properly without errors. Can you also try UMASS_PROTO_DEFAULT? /usr/src/sys/modules/umass/../../dev/usb/umass.c:607: error: 'UMASS_PROTO_DEFAULT' undeclared here (not in a function) i have FreeBSD

Re: Synchronize cache failed.

2009-06-02 Thread Daniel Eischen
On Tue, 2 Jun 2009, Wojciech Puchar wrote: before getting reboot. Try disabling hal (comment out hald_enable in /etc/rc.conf). If you need hal for X, try booting without X and hal/dbus. You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, or PROTO_BBB fixed this - now works properly witho

NFS exports atomic and on-the-fly atomic updates

2009-06-02 Thread Andrey Simonenko
sec sys -mapall 2:5 (default) 4. Specifying exports(5) files mountd /etc/exports /etc/local.exports /usr/local/nfs-export/ Files /etc/exports and /etc/local.exports must be present. The nfs-export directory can be absent, if it present or will be present, then all regular files from it are re

Re: Synchronize cache failed.

2009-06-02 Thread Wojciech Puchar
before getting reboot. Try disabling hal (comment out hald_enable in /etc/rc.conf). If you need hal for X, try booting without X and hal/dbus. You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, or PROTO_BBB fixed this - now works properly without errors. THANK YOU! how to sent device qu

Re: Synchronize cache failed.

2009-06-02 Thread Wojciech Puchar
able to see a message that my camera is unknown device, for maybe 1 second before getting reboot. Try disabling hal (comment out hald_enable in /etc/rc.conf). If you need hal for X, try booting without X and hal/dbus. i don't use hal. You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, o

Re: Synchronize cache failed.

2009-06-02 Thread Daniel Eischen
On Tue, 2 Jun 2009, Wojciech Puchar wrote: i bought new digital camera+"8GB" flash card, and when i plug it into USB port, it's detected properly umass0: on uhub1 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 7646MB (15659008

RE: Request for opinions - gvinum or ccd?

2009-06-02 Thread Wojciech Puchar
this." No you don't you just make sure you scrub the pools regularly once a week for instance. AGAIN example - i had one drive failed, got it out but recovered all data as for everything copies was set to more than one. Or most data, but those with copies=1 wasn't critical for me. then i ad

Synchronize cache failed.

2009-06-02 Thread Wojciech Puchar
i bought new digital camera+"8GB" flash card, and when i plug it into USB port, it's detected properly umass0: on uhub1 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 7646MB (15659008 512 byte sectors: 255H 63S/T 974C) i can do

Re: Monitoring throughput of PCIe lanes

2009-06-02 Thread Larry Rosenman
On Tue, 2 Jun 2009, Dan Nelson wrote: In the last episode (Jun 01), Julian Elischer said: Jason Chambers wrote: I'm wondering if there is currently a way to monitor the throughput of a PCIe lane or group of lanes associated with a device ? I've done a little exploring of the source and man pa

Re: FYI Lighttpd 1.4.23 /kernel (trailing '/' on regular file symlink) vulnerability

2009-06-02 Thread Dag-Erling Smørgrav
Bruce Evans writes: > This comment could do with some rewording to emphasize inheritance of the > flag and to improve the grammar of the comment. Suggestions? For reference, here's the entire comment: /* * Replace multiple slashes by a single slash and trailing slashes

Re: FYI Lighttpd 1.4.23 /kernel (trailing '/' on regular file symlink) vulnerability

2009-06-02 Thread Dag-Erling Smørgrav
Eygene Ryabinkin writes: > For the current code state, check "*cp == '\0'" seems to be redundant: > [...] By the way, comment before the test "if (rdonly)' seems to be > slightly misleading [...] OK, I see that. I've removed the check and rewritten the comment. What about this "temporary asser

RE: Request for opinions - gvinum or ccd?

2009-06-02 Thread krad
" You need to write a program that will just rewrite all files to make this." No you don't you just make sure you scrub the pools regularly once a week for instance. This way you will hopefully see small block error way before you have a full drive failure. At the end of the day if the data is

Re: FYI Lighttpd 1.4.23 /kernel (trailing '/' on regular file symlink) vulnerability

2009-06-02 Thread Eygene Ryabinkin
Dag-Erling, good day. Fri, May 29, 2009 at 06:58:08PM +0200, Dag-Erling Sm??rgrav wrote: > Index: sys/kern/vfs_lookup.c > === > --- sys/kern/vfs_lookup.c (revision 193028) > +++ sys/kern/vfs_lookup.c (working copy) > @@ -454,7

Re: 7.1-STABLE crash

2009-06-02 Thread Mikolaj Golub
On Tue, 02 Jun 2009 10:36:32 +0400 Asmodean Dark wrote: >>> Do you really need a such outdated version of mpd while mpd5 is available >>> in ports? > Yes, we need mpd3 because there are many our custom patches for it (some > RADIUS functions, bugfixes etc). > >>> Do you have some automatic block