OpenBSD 5.9 errata 004

2016-05-01 Thread Stuart Henderson
A problem in m_dup_pkt() can result in kernel crashes with carp(4). Only 5.9 is affected. A patch is available: http://ftp.openbsd.org/pub/OpenBSD/patches/5.9/common/004_mbuf.patch.sig

armv7: ampintc fdt attachment draft

2016-05-01 Thread Patrick Wildt
Hi, based on the other changes this diff is a draft to make ampintc, the generic interrupt controller code, FDT aware. It basically only needs to see if the compatible string matches and then read out two rows of regs/addresses. Still, it needs to take care of the address- and size-cell sizes,

tcpdump: use /dev/bpf

2016-05-01 Thread Martin Natano
This is the first diff in a series to move base to /dev/bpf. I think tcpdump is a good starting point, because it is easy to test. Ok? natano Index: privsep_pcap.c === RCS file: /cvs/src/usr.sbin/tcpdump/privsep_pcap.c,v

Re: sdmmc scsi inquiry emulation

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 23:21:18 +0200 (CEST) > From: Mark Kettenis > > Diff below provides a bit more meaningful information in the SCSI > INQUIRY emulation. It decodes the JDEC manufacturer ID code and > provides the product string and revision number as read from the

Re: sdmmc scsi inquiry emulation

2016-05-01 Thread Todd C. Miller
On Sun, 01 May 2016 23:21:18 +0200, Mark Kettenis wrote: > Diff below provides a bit more meaningful information in the SCSI > INQUIRY emulation. It decodes the JDEC manufacturer ID code and > provides the product string and revision number as read from the card. Also looks good. OK millert@

Re: armv7: remove unused match function

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 21:31:41 +0200 > From: Patrick Wildt > > Hi, > > the armv7_match() function is unused as every platform implements its > own (e.g. imx_match(), exynos_match()). > > Ok to remove? sure

Re: print sdmmc features

2016-05-01 Thread Mark Kettenis
> > To helpdebugging sdmmc problems, it would be useful if we printed a > bit more information about the controller. The diff below does this, > and this is whatitlooks like on the APU2. > > sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16 > sdhc0: 63 MHz base clock >

Re: Speedup sdhc(4)

2016-05-01 Thread Mark Kettenis
> Date: Sat, 30 Apr 2016 13:31:21 +0200 (CEST) > From: Mark Kettenis > > > From: John Troy > > Date: Fri, 29 Apr 2016 11:56:24 -0400 > > > > On 4/28/16 2:30 PM, Mark Kettenis wrote: > > > So here are just the bits that add DMA support. Since Theo likes

Re: midiplay: Fix out-of-bounds memory access

2016-05-01 Thread Michael McConville
Vadim Zhukov wrote: > 2016-04-30 7:38 GMT+03:00 Jonathan Gray : > > On Wed, Apr 27, 2016 at 07:49:50PM -0700, Geoff Hill wrote: > >> Fix possible reads past the end of the buffer. > >> > >> Found by random fuzz testing (zzuf). Without the fix the fuzzer crashes > >> in several

print sdmmc features

2016-05-01 Thread Mark Kettenis
To helpdebugging sdmmc problems, it would be useful if we printed a bit more information about the controller. The diff below does this, and this is whatitlooks like on the APU2. sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16 sdhc0: 63 MHz base clock sdmmc0 at sdhc0:

armv7: remove unused match function

2016-05-01 Thread Patrick Wildt
Hi, the armv7_match() function is unused as every platform implements its own (e.g. imx_match(), exynos_match()). Ok to remove? Patrick diff --git sys/arch/armv7/armv7/armv7.c sys/arch/armv7/armv7/armv7.c index bf7735c..15cd592 100644 --- sys/arch/armv7/armv7/armv7.c +++

sdmmc scsi inquiry emulation

2016-05-01 Thread Mark Kettenis
Diff below provides a bit more meaningful information in the SCSI INQUIRY emulation. It decodes the JDEC manufacturer ID code and provides the product string and revision number as read from the card. For example: scsibus1 at sdmmc2: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0:

Re: print sdmmc features

2016-05-01 Thread Todd C. Miller
Looks good. OK millert@ - todd

SRV lookups in ypldap

2016-05-01 Thread Jonathan Matthew
ypldap currently can't do SRV lookups to locate the directory servers for a domain, which makes it slightly harder than it should be to connect it to an AD domain. The diff below lets you specify a directory service like this: directory "eait.uq.edu.au" srv { ... } which will make

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Patrick Wildt
Hi, I updated the diff with the feedback received. This basically adds a tree-like topology by making mainbus FDT aware and implementing a simplebus that can span the tree's roots into more branches. Next steps (and diffs) are implementing an FDT platform for armv7, similar to imx/omap/... and

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 13:27:29 +0200 > From: Patrick Wildt > > Hi, > > I updated the diff with the feedback received. This basically adds > a tree-like topology by making mainbus FDT aware and implementing > a simplebus that can span the tree's roots into more branches. >

Document inet4/prefix in hostname.if(5)

2016-05-01 Thread Gregor Best
Hi, /etc/hostname.if supports IPv4 addresses with a CIDR prefix length: inet 10.0.0.1/16 which is not documented in hostname.if(5). The attached patch fixes that. I'm not sure whether describing '/prefixlen' before 'netmask' is a good idea, but it matches the order things have to be

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Patrick Wildt
On Sun, May 01, 2016 at 05:32:53PM +0200, Vincent Gross wrote: > On Sun, 1 May 2016 13:27:29 +0200 > Patrick Wildt wrote: > > > Hi, > > > > I updated the diff with the feedback received. This basically adds > > a tree-like topology by making mainbus FDT aware and

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Vincent Gross
On Sun, 1 May 2016 13:27:29 +0200 Patrick Wildt wrote: > Hi, > > I updated the diff with the feedback received. This basically adds > a tree-like topology by making mainbus FDT aware and implementing > a simplebus that can span the tree's roots into more branches. > > Next

Re: sdmmc bus width support

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 22:45:44 +1000 > From: Jonathan Gray > > On Sun, May 01, 2016 at 01:50:59PM +0200, Mark Kettenis wrote: > > > Date: Sun, 1 May 2016 13:40:31 +1000 > > > From: Jonathan Gray > > > > > > On Sat, Apr 30, 2016 at 09:50:15PM +0200, Mark

Re: sdmmc bus width support

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 13:40:31 +1000 > From: Jonathan Gray > > On Sat, Apr 30, 2016 at 09:50:15PM +0200, Mark Kettenis wrote: > > The diff below adds support for changing the bus width to the sdmmc > > subsystem and the sdhc(4) controller. By default controllers and card > >

Re: midiplay: Fix out-of-bounds memory access

2016-05-01 Thread Vadim Zhukov
2016-04-30 7:38 GMT+03:00 Jonathan Gray : > On Wed, Apr 27, 2016 at 07:49:50PM -0700, Geoff Hill wrote: >> Fix possible reads past the end of the buffer. >> >> Found by random fuzz testing (zzuf). Without the fix the fuzzer crashes >> in several seconds; with the patch, the fuzzer

Re: sdmmc bus width support

2016-05-01 Thread Jonathan Gray
On Sun, May 01, 2016 at 01:50:59PM +0200, Mark Kettenis wrote: > > Date: Sun, 1 May 2016 13:40:31 +1000 > > From: Jonathan Gray > > > > On Sat, Apr 30, 2016 at 09:50:15PM +0200, Mark Kettenis wrote: > > > The diff below adds support for changing the bus width to the sdmmc > > >

Re: sdmmc scsi inquiry emulation

2016-05-01 Thread Jonathan Gray
On Sun, May 01, 2016 at 11:21:18PM +0200, Mark Kettenis wrote: > Diff below provides a bit more meaningful information in the SCSI > INQUIRY emulation. It decodes the JDEC manufacturer ID code and > provides the product string and revision number as read from the card. > > For example: > >