rcs: uninitialized pointer leads to segfault

2014-11-22 Thread Tobias Stoeckmann
Hi, as jsg@ pointed out, rcs will segfault reliably when using malloc.conf with 'J' (the pointer in question is filled with d0's). The pointer rp_delta is checked at the end of rcsparse_delta. If it's non-NULL, it will be included into a linked list; line 1181 of rcsparse.c. This RCS file

openssl.pc empty

2014-11-22 Thread Stuart Henderson
Twice in recent builds I've had an empty openssl.pc file installed ... sthen@i386-2[~] ls -l /usr/lib/pkgconfig/openssl.pc -r--r--r-- 1 root bin 0 Nov 21 16:11 /usr/lib/pkgconfig/openssl.pc I am building on one system, then on two other systems I'm NFS mounting /usr/obj from the first one,

Re: rcs: uninitialized pointer leads to segfault

2014-11-22 Thread Tobias Stoeckmann
On Sat, Nov 22, 2014 at 11:45:02AM +0100, Tobias Stoeckmann wrote: as jsg@ pointed out, rcs will segfault reliably when using malloc.conf with 'J' (the pointer in question is filled with d0's). As Theo suggested, xcalloc will take care of this pointer and other struct entries which are not

Proper way to implement platform specific quirk

2014-11-22 Thread Edwin Amsler
Hey there, This e-mail is about design and custom arch-specific code. I’m trying to author a patch from Bitrig to enable proper support for AHCI in the SUNXI ARMv7 port. There’s a bit of a quirk in how SUNXI handles DMA from what I understand of the patch. I think it may only affect the A10,

Make every interface with a watchdog register it's own timeout

2014-11-22 Thread Mike Belopuhov
Hi, This removes the system wide if_slowtimo timeout and lets every interface with a valid if_watchdog method register it's own. The rational is to get rid of the ifnet loop in the softclock context to avoid further complications with concurrent access to the ifnet list. This might also save

Re: Make every interface with a watchdog register it's own timeout

2014-11-22 Thread Mike Belopuhov
On Sun, Nov 23, 2014 at 02:10 +0100, Mike Belopuhov wrote: Hi, This removes the system wide if_slowtimo timeout and lets every interface with a valid if_watchdog method register it's own. The rational is to get rid of the ifnet loop in the softclock context to avoid further complications

Re: Make every interface with a watchdog register it's own timeout

2014-11-22 Thread Theo de Raadt
Now that I think of it, perhaps I should have called it if_slowtimo like the function. Any preference? Yes perhaps, because watchdog has connotation in our kernel tree.

Re: Proper way to implement platform specific quirk

2014-11-22 Thread Jonathan Gray
On Sat, Nov 22, 2014 at 02:06:48PM -0600, Edwin Amsler wrote: Hey there, This e-mail is about design and custom arch-specific code. I?m trying to author a patch from Bitrig to enable proper support for AHCI in the SUNXI ARMv7 port. There?s a bit of a quirk in how SUNXI handles DMA from

Re: rcs: uninitialized pointer leads to segfault

2014-11-22 Thread Jonathan Gray
On Sat, Nov 22, 2014 at 04:38:10PM +0100, Tobias Stoeckmann wrote: On Sat, Nov 22, 2014 at 11:45:02AM +0100, Tobias Stoeckmann wrote: as jsg@ pointed out, rcs will segfault reliably when using malloc.conf with 'J' (the pointer in question is filled with d0's). As Theo suggested, xcalloc

Re: rcs: uninitialized pointer leads to segfault

2014-11-22 Thread Jonathan Gray
On Sun, Nov 23, 2014 at 02:30:27PM +1100, Jonathan Gray wrote: On Sat, Nov 22, 2014 at 04:38:10PM +0100, Tobias Stoeckmann wrote: On Sat, Nov 22, 2014 at 11:45:02AM +0100, Tobias Stoeckmann wrote: as jsg@ pointed out, rcs will segfault reliably when using malloc.conf with 'J' (the