Re: svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-07 Thread Andrew Turner
> On 7 Jan 2018, at 22:38, Ed Schouten wrote: > > Author: ed > Date: Sun Jan 7 22:38:45 2018 > New Revision: 327684 > URL: https://svnweb.freebsd.org/changeset/base/327684 > > Log: > Use mallocarray(9) in CloudABI kernel code where possible. > > Submitted by:pfg@ > > Modified: > h

svn commit: r327685 - head/tests/sys/geom/class/eli

2018-01-07 Thread Alan Somers
Author: asomers Date: Mon Jan 8 00:10:45 2018 New Revision: 327685 URL: https://svnweb.freebsd.org/changeset/base/327685 Log: geli: optimize tests Reduce the geli tests' runtime by about a third: * In integrity_test:copy, use a file-backed md(4) device instead of a malloc'd one.

svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-07 Thread Ed Schouten
Author: ed Date: Sun Jan 7 22:38:45 2018 New Revision: 327684 URL: https://svnweb.freebsd.org/changeset/base/327684 Log: Use mallocarray(9) in CloudABI kernel code where possible. Submitted by: pfg@ Modified: head/sys/compat/cloudabi32/cloudabi32_sock.c head/sys/compat/cloudabi64/clou

svn commit: r327683 - in head: . tests/sys/geom/class/eli

2018-01-07 Thread Alan Somers
(r327683) @@ -38,6 +38,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20180107: Convert remaining geli(8) tests to ATF +OLD_FILES+=tests/sys/geom/class/eli/nokey_test.sh +OLD_FILES+=tests/sys/geom/class/eli/readonly_test.sh # 20180106: Convert most geli(8) tests to ATF OLD_FILES+=tests/sys

svn commit: r327682 - head/tests/sys/geom/class/eli

2018-01-07 Thread Alan Somers
Author: asomers Date: Sun Jan 7 21:57:52 2018 New Revision: 327682 URL: https://svnweb.freebsd.org/changeset/base/327682 Log: Fix typo from r327666 MFC after:13 days X-MFC-With: 327666 Modified: head/tests/sys/geom/class/eli/init_test.sh Modified: head/tests/sys/geom/class/eli/

svn commit: r327681 - head/sys/modules/gpio/gpiobus

2018-01-07 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 7 20:28:17 2018 New Revision: 327681 URL: https://svnweb.freebsd.org/changeset/base/327681 Log: Add missing file to gpiobus module ofw_gpiobus.c is needed when FDT is used. MFC after:2 weeks Modified: head/sys/modules/gpio/gpiobus/Makefile Modifi

Re: svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Rodney W. Grimes
> On 7 Jan 2018, at 19:37, Rodney W. Grimes wrote: > >> On 7 Jan 2018, at 19:02, Rodney W. Grimes wrote: > Author: kp > Date: Sun Jan 7 13:39:12 2018 > New Revision: 327676 > URL: https://svnweb.freebsd.org/changeset/base/327676 > > Log: > linuxkpi: Implement k

Re: svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Kristof Provost
On 7 Jan 2018, at 19:37, Rodney W. Grimes wrote: On 7 Jan 2018, at 19:02, Rodney W. Grimes wrote: Author: kp Date: Sun Jan 7 13:39:12 2018 New Revision: 327676 URL: https://svnweb.freebsd.org/changeset/base/327676 Log: linuxkpi: Implement kcalloc() based on mallocarray() This means we now

Re: svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Rodney W. Grimes
> On 7 Jan 2018, at 19:02, Rodney W. Grimes wrote: > >> Author: kp > >> Date: Sun Jan 7 13:39:12 2018 > >> New Revision: 327676 > >> URL: https://svnweb.freebsd.org/changeset/base/327676 > >> > >> Log: > >> linuxkpi: Implement kcalloc() based on mallocarray() > >> > >> This means we now get in

Re: svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Kristof Provost
On 7 Jan 2018, at 19:02, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: kp Date: Sun Jan 7 13:39:12 2018 New Revision: 327676 URL: https://svnweb.freebsd.org/changeset/base/327676 Log: linuxkpi: Implement kcalloc() based on mallocarray() This means we now get

svn commit: r327679 - head/sys/kern

2018-01-07 Thread Ian Lepore
Author: ian Date: Sun Jan 7 18:07:22 2018 New Revision: 327679 URL: https://svnweb.freebsd.org/changeset/base/327679 Log: Use EVENTHANDLER_DIRECT_INVOKE for [un]mount events, for better performance. Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c

svn commit: r327678 - head/sys/kern

2018-01-07 Thread Ian Lepore
Author: ian Date: Sun Jan 7 18:06:30 2018 New Revision: 327678 URL: https://svnweb.freebsd.org/changeset/base/327678 Log: Use EVENTHANDLER_DIRECT_INVOKE() for device events, for better performance. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c ===

Re: svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: kp > Date: Sun Jan 7 13:39:12 2018 > New Revision: 327676 > URL: https://svnweb.freebsd.org/changeset/base/327676 > > Log: > linuxkpi: Implement kcalloc() based on mallocarray() > > This means we now get integer overflow protection, wh

Re: svn commit: r327674 - in head: share/man/man9 sys/kern sys/sys

2018-01-07 Thread Kristof Provost
On 7 Jan 2018, at 18:55, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: kp Date: Sun Jan 7 13:21:01 2018 New Revision: 327674 URL: https://svnweb.freebsd.org/changeset/base/327674 Log: Introduce mallocarray() in the kernel Similar to calloc() the mallocarr

Re: svn commit: r327674 - in head: share/man/man9 sys/kern sys/sys

2018-01-07 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: kp > Date: Sun Jan 7 13:21:01 2018 > New Revision: 327674 > URL: https://svnweb.freebsd.org/changeset/base/327674 > > Log: > Introduce mallocarray() in the kernel > > Similar to calloc() the mallocarray() function checks for integer >

Re: svn commit: r327675 - head/sys/netpfil/pf

2018-01-07 Thread Kristof Provost
On 7 Jan 2018, at 15:44, Konstantin Belousov wrote: On Sun, Jan 07, 2018 at 01:35:15PM +, Kristof Provost wrote: Author: kp Date: Sun Jan 7 13:35:15 2018 New Revision: 327675 URL: https://svnweb.freebsd.org/changeset/base/327675 Log: pf: Avoid integer overflow issues by using mallocarray

Re: svn commit: r327675 - head/sys/netpfil/pf

2018-01-07 Thread Konstantin Belousov
On Sun, Jan 07, 2018 at 01:35:15PM +, Kristof Provost wrote: > Author: kp > Date: Sun Jan 7 13:35:15 2018 > New Revision: 327675 > URL: https://svnweb.freebsd.org/changeset/base/327675 > > Log: > pf: Avoid integer overflow issues by using mallocarray() iso. malloc() > > pfioctl() handl

svn commit: r327677 - head/sys/contrib/vchiq/interface/compat

2018-01-07 Thread Kristof Provost
Author: kp Date: Sun Jan 7 13:41:06 2018 New Revision: 327677 URL: https://svnweb.freebsd.org/changeset/base/327677 Log: vchiq: Use mallocarray() to provide kcalloc() This means we now also provide integer overflow protection, like the Linux kcalloc(). Modified: head/sys/contrib/vchiq

svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux

2018-01-07 Thread Kristof Provost
Author: kp Date: Sun Jan 7 13:39:12 2018 New Revision: 327676 URL: https://svnweb.freebsd.org/changeset/base/327676 Log: linuxkpi: Implement kcalloc() based on mallocarray() This means we now get integer overflow protection, which Linux code might expect as it is also provided by kcalloc

svn commit: r327675 - head/sys/netpfil/pf

2018-01-07 Thread Kristof Provost
Author: kp Date: Sun Jan 7 13:35:15 2018 New Revision: 327675 URL: https://svnweb.freebsd.org/changeset/base/327675 Log: pf: Avoid integer overflow issues by using mallocarray() iso. malloc() pfioctl() handles several ioctl that takes variable length input, these include: - DIOCRADDTAB

svn commit: r327674 - in head: share/man/man9 sys/kern sys/sys

2018-01-07 Thread Kristof Provost
Author: kp Date: Sun Jan 7 13:21:01 2018 New Revision: 327674 URL: https://svnweb.freebsd.org/changeset/base/327674 Log: Introduce mallocarray() in the kernel Similar to calloc() the mallocarray() function checks for integer overflows before allocating memory. It does not zero memory,

Re: svn commit: r327665 - head/sys/dev/extres/syscon

2018-01-07 Thread Emmanuel Vadot
On 2018-01-07 03:19, Kyle Evans wrote: Author: kevans Date: Sun Jan 7 02:19:54 2018 New Revision: 327665 URL: https://svnweb.freebsd.org/changeset/base/327665 Log: Fix bogus pass for syscon_generic introduced in r327621 ian@ pointed out that BUS_PASS_DEFAULT + $anything is bogus, given th