svn commit: r356049 - head/sys/kern

2019-12-23 Thread Conrad Meyer
Author: cem Date: Tue Dec 24 06:08:29 2019 New Revision: 356049 URL: https://svnweb.freebsd.org/changeset/base/356049 Log: kern_synch: Fix some UB It is UB to evaluate pointer comparisons when pointers do not point within the same object. Instead, convert the pointers to numbers and comp

svn commit: r356048 - head/lib/geom/part

2019-12-23 Thread Conrad Meyer
Author: cem Date: Tue Dec 24 01:47:08 2019 New Revision: 356048 URL: https://svnweb.freebsd.org/changeset/base/356048 Log: gpart(8): ms-basic-data is used for exFAT on GPT Be explicit about it; the first mention of exFAT is for the MBR type 'ntfs', and the reader must work back from there

svn commit: r356047 - head/sys/dev/oce

2019-12-23 Thread Mark Johnston
Author: markj Date: Mon Dec 23 23:43:50 2019 New Revision: 356047 URL: https://svnweb.freebsd.org/changeset/base/356047 Log: oce: Disallow the passthrough ioctl for unprivileged users. A missing check meant that unprivileged users could send passthrough commands to the device firmware.

svn commit: r356046 - head/sys/powerpc/powerpc

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 21:57:11 2019 New Revision: 356046 URL: https://svnweb.freebsd.org/changeset/base/356046 Log: powerpc: repeat of r356044 It would have been nice to not have these duplicated in every single sc_machdep. Modified: head/sys/powerpc/powerpc/sc_machdep.c Mod

svn commit: r356045 - head/sys/dev/terasic/mtl

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 21:46:48 2019 New Revision: 356045 URL: https://svnweb.freebsd.org/changeset/base/356045 Log: terasic_mtl: kill off final dummy keyboard driver The rest were removed in r355936, which speculated that the cause of this phenomenon was due to an inability to h

svn commit: r356044 - in head/sys: arm/arm mips/mips sparc64/sparc64

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 21:41:04 2019 New Revision: 356044 URL: https://svnweb.freebsd.org/changeset/base/356044 Log: sc: fix arm/mips/sparc64 MD bits r356043 missed a couple of references in machdep parts... arguably, these lines could probably be dropped as the softc is likely s

svn commit: r356043 - in head/sys: dev/syscons isa

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 21:32:07 2019 New Revision: 356043 URL: https://svnweb.freebsd.org/changeset/base/356043 Log: syscons: drop keyboard index from softc Analysis seems to reveal that sc->keyboard >= 0 implies sc->kbd != NULL and there's no such scenario where sc->kbd is set (

Re: svn commit: r355936 - in head/sys: arm/broadcom/bcm2835 arm/freescale/imx arm/ti/am335x arm/versatile powerpc/ofw

2019-12-23 Thread Kyle Evans
On Fri, Dec 20, 2019 at 10:22 AM Kyle Evans wrote: > > Author: kevans > Date: Fri Dec 20 16:22:14 2019 > New Revision: 355936 > URL: https://svnweb.freebsd.org/changeset/base/355936 > > Log: > Kill off dummy kbd drivers > > As far as I can tell, these are an artifact of times when linker sets

svn commit: r356042 - head/sys/cam

2019-12-23 Thread Alexander Motin
Author: mav Date: Mon Dec 23 20:41:55 2019 New Revision: 356042 URL: https://svnweb.freebsd.org/changeset/base/356042 Log: Make pass(4) handle misaligned buffers of MAXPHYS size. Since we are already using malloc()+copyin()/copyout() for smaller data blocks, and since new asynchronous API

svn commit: r356041 - head/usr.sbin/fstyp

2019-12-23 Thread Conrad Meyer
Author: cem Date: Mon Dec 23 20:23:02 2019 New Revision: 356041 URL: https://svnweb.freebsd.org/changeset/base/356041 Log: fstyp(8): Fix WITHOUT_ICONV build Reported by: olivier Modified: head/usr.sbin/fstyp/Makefile head/usr.sbin/fstyp/apfs.c head/usr.sbin/fstyp/exfat.c head/usr.

svn commit: r356040 - in stable: 11/sys/dev/vt 12/sys/dev/vt

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 20:19:23 2019 New Revision: 356040 URL: https://svnweb.freebsd.org/changeset/base/356040 Log: MFC r355935: vt: fix post-boot keyboard attachment With absolutely no keyboards attached and no kbdmux in kernel, we descend down this error path. 0 is a valid key

svn commit: r356040 - in stable: 11/sys/dev/vt 12/sys/dev/vt

2019-12-23 Thread Kyle Evans
Author: kevans Date: Mon Dec 23 20:19:23 2019 New Revision: 356040 URL: https://svnweb.freebsd.org/changeset/base/356040 Log: MFC r355935: vt: fix post-boot keyboard attachment With absolutely no keyboards attached and no kbdmux in kernel, we descend down this error path. 0 is a valid key

svn commit: r356039 - head/sys/sys

2019-12-23 Thread Konstantin Belousov
Author: kib Date: Mon Dec 23 20:18:05 2019 New Revision: 356039 URL: https://svnweb.freebsd.org/changeset/base/356039 Log: Fix undefined behavior: left-shifting into the sign bit. Reviewed by: dim, markj Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r356038 - head/sys/kern

2019-12-23 Thread Konstantin Belousov
Author: kib Date: Mon Dec 23 20:15:19 2019 New Revision: 356038 URL: https://svnweb.freebsd.org/changeset/base/356038 Log: Do not use waitable allocation of pbuf when creating cluster for write. Previously just ensuring that we do not sleep when clustering for md(4) vnode was enough. Now

svn commit: r356037 - stable/12/sys/net

2019-12-23 Thread Mark Johnston
Author: markj Date: Mon Dec 23 16:34:39 2019 New Revision: 356037 URL: https://svnweb.freebsd.org/changeset/base/356037 Log: MFC r355938: Fix a memory leak in if_delgroups() introduced in r334118. PR: 242712 Modified: stable/12/sys/net/if.c Directory Properties: stable/12/ (props

svn commit: r356036 - stable/11/sys/netpfil/ipfw

2019-12-23 Thread Andrey V. Elsukov
Author: ae Date: Mon Dec 23 10:06:32 2019 New Revision: 356036 URL: https://svnweb.freebsd.org/changeset/base/356036 Log: MFC r355712: Make TCP options parsing stricter. Rework tcpopts_parse() to be more strict. Use const pointer. Add length checks for specific TCP options. The ma

svn commit: r356035 - stable/12/sys/netpfil/ipfw

2019-12-23 Thread Andrey V. Elsukov
Author: ae Date: Mon Dec 23 10:02:55 2019 New Revision: 356035 URL: https://svnweb.freebsd.org/changeset/base/356035 Log: MFC r355712: Make TCP options parsing stricter. Rework tcpopts_parse() to be more strict. Use const pointer. Add length checks for specific TCP options. The ma

Re: svn commit: r343631 - in head: . sbin sbin/pfilctl share/man/man9 sys/contrib/ipfilter/netinet sys/net sys/netinet sys/netinet6 sys/netpfil/ipfw sys/netpfil/pf

2019-12-23 Thread Andrey V. Elsukov
On 21.12.2019 01:14, Gleb Smirnoff wrote: > A> > Another future feature is possiblity to create pfil heads, that provide > A> > not an mbuf pointer but just a memory pointer with length. That would > A> > allow filtering at very early stages of a packet lifecycle, e.g. when > A> > packet ha

Re: svn commit: r356031 - head/stand/i386/gptboot

2019-12-23 Thread Toomas Soome via svn-src-all
The only limit set by specification is: A minimum of 16,384 bytes of space must be reserved for the GPT Partition Entry Array. >From this size and array entry size we do get 128, but specification does not >limit the max number. rgds, toomas > On 23. Dec 2019, at 00:33, Ian Lepore wrote: > >