Re: Build 32 bit binaries on amd64

2012-08-20 Thread C. Bergström
On 08/21/12 09:32 AM, Dan McGregor wrote: Hi. I've been working on porting compiler-rt/clang's support for address sanitization (asan) to FreeBSD. So far I have it building and it appears to work properly, however the build system expects to be able to build 32 bit binaries on amd64. amd64 doe

Build 32 bit binaries on amd64

2012-08-20 Thread Dan McGregor
Hi. I've been working on porting compiler-rt/clang's support for address sanitization (asan) to FreeBSD. So far I have it building and it appears to work properly, however the build system expects to be able to build 32 bit binaries on amd64. amd64 doesn't include i386's machine/foo headers. Th

Re: FreeBSD 1.x Binaries Work Except under Chroot

2012-08-20 Thread Dan Plassche
On Thu, Aug 16, 2012 at 9:06 AM, Konstantin Belousov wrote: > Since you did not provided exact diff of your change, I cannot comment > on what goes wrong. Anyway, just merge the r239301 locally and use > sysctl kern.pid_max. Thanks, the kern.pid_max tunable works well on 8.2. The diff to /usr/s

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Bakul Shah
On Mon, 20 Aug 2012 13:05:51 MDT Warner Losh wrote: > > On Aug 20, 2012, at 10:48 AM, Wojciech Puchar wrote: > > >> #if defined(__i386__) || defined(__amd64__) > >> *dst =3D *src; > >> #else > >> bcopy(src, dst, ETHER_ADDR_LEN); > > #else > > short *tmp1=3D((*short)src),*tmp2=3D((*short)dst

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 1:17 PM, Wojciech Puchar wrote: >>> or use ++. >>> >>> i think it is always aligned to 2 bytes and this should produce usable code >>> on any CPU? should be 6 instructions on MIPS and PPC IMHO. >> >> We should tag it as __aligned(2) then, no? If so, then the compiler shoul

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Wojciech Puchar
or use ++. i think it is always aligned to 2 bytes and this should produce usable code on any CPU? should be 6 instructions on MIPS and PPC IMHO. We should tag it as __aligned(2) then, no? If so, then the compiler should generate the code you posted. should is the most important word in Your

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 10:48 AM, Wojciech Puchar wrote: >> #if defined(__i386__) || defined(__amd64__) >> *dst = *src; >> #else >> bcopy(src, dst, ETHER_ADDR_LEN); > #else > short *tmp1=((*short)src),*tmp2=((*short)dst); > *tmp2=*tmp1; *(tmp2+1)=*(tmp1+1); *(tmp2+2)=*(tmp1+2); > > or use ++. >

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Wojciech Puchar
#if defined(__i386__) || defined(__amd64__) *dst = *src; #else bcopy(src, dst, ETHER_ADDR_LEN); #else short *tmp1=((*short)src),*tmp2=((*short)dst); *tmp2=*tmp1; *(tmp2+1)=*(tmp1+1); *(tmp2+2)=*(tmp1+2); or use ++. i think it is always aligned to 2 bytes and this should produce usable co

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 8:46 AM, Mitya wrote: > Hi. > I found some overhead code in /src/sys/net/if_ethersubr.c and > /src/sys/netgraph/ng_ether.c > > It contains strings, like bcopy(src, dst, ETHER_ADDR_LEN); > When src and dst are "struct ether_addr*", and ETHER_ADDR_LEN equal 6. > This code call

Replace bcopy() to update ether_addr

2012-08-20 Thread Mitya
Hi. I found some overhead code in /src/sys/net/if_ethersubr.c and /src/sys/netgraph/ng_ether.c It contains strings, like bcopy(src, dst, ETHER_ADDR_LEN); When src and dst are "struct ether_addr*", and ETHER_ADDR_LEN equal 6. This code call every time, when we send Ethernet packet. On example, o

Re: Replacing BIND with unbound

2012-08-20 Thread Doug Barton
On 08/20/2012 02:19, Bjoern A. Zeeb wrote: > On Mon, 20 Aug 2012, Doug Barton wrote: > >> On 08/20/2012 01:55, Bjoern A. Zeeb wrote: >> >>> We will continue to reject this until there are more firm plans, >>> proper documentation on the security support side, which I cannot >>> remember Simon got

Re: Replacing BIND with unbound

2012-08-20 Thread Doug Barton
On 08/20/2012 02:16, Mark Blackman wrote: > > On 20 Aug 2012, at 10:12, Doug Barton wrote: > >> On 08/20/2012 01:55, Bjoern A. Zeeb wrote: >> >>> We will continue to reject this until there are more firm plans, >>> proper documentation on the security support side, which I cannot >>> remember Si

Re: Replacing BIND with unbound

2012-08-20 Thread Mark Blackman
On 20 Aug 2012, at 10:12, Doug Barton wrote: > On 08/20/2012 01:55, Bjoern A. Zeeb wrote: > >> We will continue to reject this until there are more firm plans, >> proper documentation on the security support side, which I cannot >> remember Simon got an answer for. > > I gave a clear answer. I

Re: Replacing BIND with unbound

2012-08-20 Thread Bjoern A. Zeeb
On Mon, 20 Aug 2012, Doug Barton wrote: On 08/20/2012 01:55, Bjoern A. Zeeb wrote: We will continue to reject this until there are more firm plans, proper documentation on the security support side, which I cannot remember Simon got an answer for. I gave a clear answer. If there are any piec

Re: Replacing BIND with unbound

2012-08-20 Thread Doug Barton
On 08/20/2012 01:55, Bjoern A. Zeeb wrote: > We will continue to reject this until there are more firm plans, > proper documentation on the security support side, which I cannot > remember Simon got an answer for. I gave a clear answer. If there are any pieces missing it's up to Simon to follow u

Re: Replacing BIND with unbound

2012-08-20 Thread Bjoern A. Zeeb
On Mon, 20 Aug 2012, Doug Barton wrote: On 08/06/2012 13:23, Vitaly Magerya wrote: Doug Barton wrote: On 07/07/2012 16:33, Garrett Wollman wrote: The utilities (specifically host(1) and dig(1)) are the only user-visible interfaces I care about. [...] ldns (a dependency of unbound) comes wi

Re: Replacing BIND with unbound

2012-08-20 Thread Doug Barton
On 08/06/2012 13:23, Vitaly Magerya wrote: > Doug Barton wrote: >> On 07/07/2012 16:33, Garrett Wollman wrote: >>> The utilities (specifically host(1) and dig(1)) are the only >>> user-visible interfaces I care about. > [...] >> ldns (a dependency of unbound) comes with drill, which is a dig-alike