svn commit: r350316 - in head/sys: kern sys

2019-07-24 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 25 05:55:55 2019 New Revision: 350316 URL: https://svnweb.freebsd.org/changeset/base/350316 Log: Update the generated syscall files for copy_file_range(2) added by r350315. Modified: head/sys/kern/init_sysent.c head/sys/kern/syscalls.c

svn commit: r350315 - in head/sys: kern sys

2019-07-24 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 25 05:46:16 2019 New Revision: 350315 URL: https://svnweb.freebsd.org/changeset/base/350315 Log: Add kernel support for a Linux compatible copy_file_range(2) syscall. This patch adds support to the kernel for a Linux compatible copy_file_range(2) syscall

svn commit: r350314 - head/lib/libc/gen

2019-07-24 Thread Alan Somers
Author: asomers Date: Thu Jul 25 03:55:05 2019 New Revision: 350314 URL: https://svnweb.freebsd.org/changeset/base/350314 Log: special-case getvfsbyname(3) for fusefs(5) fusefs file systems may have a fsname subtype (set by mount_fusefs's "-o subtype" option) that gets appended to the

svn commit: r350313 - in head/sys: conf powerpc/aim powerpc/ps3 powerpc/pseries

2019-07-24 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 25 03:47:27 2019 New Revision: 350313 URL: https://svnweb.freebsd.org/changeset/base/350313 Log: powerpc/pmap64: Make moea64 statistics optional Summary: It turns out statistics accounting is very expensive in the pmap driver, and doesn't seem necessary

Re: svn commit: r350301 - head/lib/libsysdecode

2019-07-24 Thread Cy Schubert
In message <201907242106.x6ol6kam068...@repo.freebsd.org>, Ed Maste writes: > Author: emaste > Date: Wed Jul 24 21:06:19 2019 > New Revision: 350301 > URL: https://svnweb.freebsd.org/changeset/base/350301 > > Log: > libsysdecode: add explicit dependencies on recently changed headers > >

Re: svn commit: r349890 - head/contrib/telnet/telnet

2019-07-24 Thread Conrad Meyer
Hi Philip, Sorry I'm late to the party. Unless I am mistaken, most of these are *not* overflows or vulnerabilities of any sort. On Wed, Jul 10, 2019 at 10:42 AM Philip Paeps wrote: > > Author: philip > Date: Wed Jul 10 17:42:04 2019 > New Revision: 349890 > URL:

svn commit: r350312 - stable/12/stand/common

2019-07-24 Thread Simon J. Gerraty
Author: sjg Date: Thu Jul 25 00:07:10 2019 New Revision: 350312 URL: https://svnweb.freebsd.org/changeset/base/350312 Log: loader: ignore some variable settings if input unverified libsecureboot can tell us if the most recent file opened was verfied or not. If it's state is

svn commit: r350311 - head/sbin/nvmecontrol

2019-07-24 Thread Warner Losh
Author: imp Date: Wed Jul 24 23:08:49 2019 New Revision: 350311 URL: https://svnweb.freebsd.org/changeset/base/350311 Log: Fix the fix to the logic bug. Upon further testing, the bug is that we shadoow opt.vendor with vendor. We shouldn't. Delete the latter and use the former everywhere and

svn commit: r350310 - in head/sys: kern sys

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 23:04:59 2019 New Revision: 350310 URL: https://svnweb.freebsd.org/changeset/base/350310 Log: Fix the turnstile_lock() KPI. turnstile_{lock,unlock}() were added for use in epoch. turnstile_lock() returned NULL to indicate that the calling thread had lost a

svn commit: r350309 - head/sbin/nvmecontrol

2019-07-24 Thread Warner Losh
Author: imp Date: Wed Jul 24 23:04:26 2019 New Revision: 350309 URL: https://svnweb.freebsd.org/changeset/base/350309 Log: Fix several related coverity issues: Make sure to always free shortopts and lopts when returning. Fix minor logic bug to guard against NULLs properly. CID:

svn commit: r350308 - head

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 22:57:17 2019 New Revision: 350308 URL: https://svnweb.freebsd.org/changeset/base/350308 Log: Document r350307. Sponsored by: The FreeBSD Foundation Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r350307 - in head: . lib/libcasper/libcasper lib/libcasper/services lib/libcasper/services/cap_random share/mk sys/sys targets/pseudo/userland/lib

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 22:50:43 2019 New Revision: 350307 URL: https://svnweb.freebsd.org/changeset/base/350307 Log: Remove cap_random(3). Now that we have a way to obtain entropy in capability mode (getrandom(2)), libcap_random is obsolete. Remove it. Bump

Re: svn commit: r350135 - head/share/mk

2019-07-24 Thread Guido Falsi
On 25/07/19 00:14, Guido Falsi wrote: > On 19/07/19 17:11, Emmanuel Vadot wrote: >> Author: manu >> Date: Fri Jul 19 15:11:32 2019 >> New Revision: 350135 >> URL: https://svnweb.freebsd.org/changeset/base/350135 >> >> Log: >> bsd.confs.mk: Test the correct value for the destination package >>

Re: svn commit: r350135 - head/share/mk

2019-07-24 Thread Guido Falsi
On 19/07/19 17:11, Emmanuel Vadot wrote: > Author: manu > Date: Fri Jul 19 15:11:32 2019 > New Revision: 350135 > URL: https://svnweb.freebsd.org/changeset/base/350135 > > Log: > bsd.confs.mk: Test the correct value for the destination package > > Reviewed by:bapt, gjb >

svn commit: r350306 - head/sys/net

2019-07-24 Thread Eric Joyner
Author: erj Date: Wed Jul 24 21:43:41 2019 New Revision: 350306 URL: https://svnweb.freebsd.org/changeset/base/350306 Log: iflib: fix dangling device softc pointer Commit text by Jake: If a driver's IFDI_ATTACH_PRE function fails, the iflib_device_register function will free the ctx

svn commit: r350305 - stable/11/lib/libc/gen

2019-07-24 Thread Brooks Davis
Author: brooks Date: Wed Jul 24 21:40:34 2019 New Revision: 350305 URL: https://svnweb.freebsd.org/changeset/base/350305 Log: MFC r350102: Remove redundent decleration of __elf_phdr_match_addr(). Obtained from:CheriBSD Sponsored by: DARPA, AFRL Modified:

svn commit: r350304 - in stable/12/contrib/netbsd-tests/lib/libc: gen stdio sys

2019-07-24 Thread Brooks Davis
Author: brooks Date: Wed Jul 24 21:39:00 2019 New Revision: 350304 URL: https://svnweb.freebsd.org/changeset/base/350304 Log: MFC r350067: Add missing mode in open(2) calls with O_CREAT. When O_CREAT is specified, the third, variadic argument is required as the permission. If on is

svn commit: r350303 - head/sys/modules/i2c/controllers/ichiic

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 21:26:17 2019 New Revision: 350303 URL: https://svnweb.freebsd.org/changeset/base/350303 Log: enable ig4_acpi on aarch64 The already-listed APMC0D0F ID belongs to the Ampere eMAG aarch64 platform, but ACPI support was not even built on aarch64.

svn commit: r350302 - head

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 21:08:30 2019 New Revision: 350302 URL: https://svnweb.freebsd.org/changeset/base/350302 Log: cirrus.yml: use OVMF.fd from uefi-edk2-qemu-x86_64 package Sponsored by: The FreeBSD Foundation Modified: head/.cirrus.yml Modified: head/.cirrus.yml

svn commit: r350301 - head/lib/libsysdecode

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 21:06:19 2019 New Revision: 350301 URL: https://svnweb.freebsd.org/changeset/base/350301 Log: libsysdecode: add explicit dependencies on recently changed headers r349369 removed IP_MIN_MEMBERSHIPS and IPV6_MIN_MEMBERSHIPS, and r349893 removed

svn commit: r350300 - stable/12/contrib/amd/amd

2019-07-24 Thread Brooks Davis
Author: brooks Date: Wed Jul 24 20:17:39 2019 New Revision: 350300 URL: https://svnweb.freebsd.org/changeset/base/350300 Log: MFC r350049: Fix two mismatches between function declaration and definition. In both cases, function pointer arguments were inconsistently declared and the

svn commit: r350299 - stable/12/lib/libc/gen

2019-07-24 Thread Brooks Davis
Author: brooks Date: Wed Jul 24 19:57:11 2019 New Revision: 350299 URL: https://svnweb.freebsd.org/changeset/base/350299 Log: MFC r350102: Remove redundent decleration of __elf_phdr_match_addr(). Obtained from:CheriBSD Sponsored by: DARPA, AFRL Modified:

svn commit: r350298 - stable/12/share/man/man5

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 19:24:34 2019 New Revision: 350298 URL: https://svnweb.freebsd.org/changeset/base/350298 Log: src.conf.5: regenerate after r350297 (lld for i386 MFC) Modified: stable/12/share/man/man5/src.conf.5 Modified: stable/12/share/man/man5/src.conf.5

svn commit: r350297 - stable/12/share/mk

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 19:21:16 2019 New Revision: 350297 URL: https://svnweb.freebsd.org/changeset/base/350297 Log: MFC r343606: Enable lld as the system linker on i386 The migration to LLVM's lld linker has been in progress for quite some time - I opened an LLVM tracking bug

svn commit: r350296 - stable/12/contrib/tcp_wrappers

2019-07-24 Thread Brooks Davis
Author: brooks Date: Wed Jul 24 19:16:02 2019 New Revision: 350296 URL: https://svnweb.freebsd.org/changeset/base/350296 Log: MFC r350098, r350100-r350101 r350098: Use ANSI C function definitions and declerations. r350100: Use headers instead of manual declerations of standard

svn commit: r350295 - head/tests/sys/kern

2019-07-24 Thread Li-Wen Hsu
Author: lwhsu Date: Wed Jul 24 17:41:40 2019 New Revision: 350295 URL: https://svnweb.freebsd.org/changeset/base/350295 Log: Temporarily skip flakey test case sys.kern.ptrace_test.ptrace__follow_fork_parent_detached_unrelated_debugger PR: 239425 Sponsored by: The FreeBSD

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

2019-07-24 Thread Ed Maste
Author: emaste Date: Wed Jul 24 16:51:14 2019 New Revision: 350294 URL: https://svnweb.freebsd.org/changeset/base/350294 Log: pf: zero output buffer in pfioctl Avoid potential structure padding leak. Reported by: Vlad Tsyrklevich Reviewed by: kp MFC after:3 days Security:

svn commit: r350293 - head/sys/net

2019-07-24 Thread Kirill Ponomarev
Author: krion (ports committer) Date: Wed Jul 24 16:10:20 2019 New Revision: 350293 URL: https://svnweb.freebsd.org/changeset/base/350293 Log: Allow set MTU more than 1500 bytes. Submitted by: Alexandr Fedorov Approved by: jhb, rgrimes Sponsored by: ITGlobal.com Differential

svn commit: r350292 - head/sys/kern

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 15:18:05 2019 New Revision: 350292 URL: https://svnweb.freebsd.org/changeset/base/350292 Log: Remove a redundant offset computation in elf_load_section(). With r344705 the offset is always zero. Submitted by: Wuyang Chung Modified:

svn commit: r350291 - head/share/mk

2019-07-24 Thread Alan Somers
Author: asomers Date: Wed Jul 24 15:10:09 2019 New Revision: 350291 URL: https://svnweb.freebsd.org/changeset/base/350291 Log: Add c++14 and c++17 to COMPILER_FEATURES This will be used to gate the fusefs tests. It's a partial merge of r348281 from projects/fuse2. Reviewed by: kib,

Re: svn commit: r349802 - head/sys/fs/ext2fs

2019-07-24 Thread Ed Maste
On Sun, 7 Jul 2019 at 04:58, Fedor Uporov wrote: > > Author: fsu > Date: Sun Jul 7 08:58:02 2019 > New Revision: 349802 > URL: https://svnweb.freebsd.org/changeset/base/349802 > > Log: > Add additional check for 'blocks per group' and 'fragments per group' > superblock fields. Will you MFC

svn commit: r350290 - stable/12/cddl/contrib/opensolaris/lib/libctf/common

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 14:39:52 2019 New Revision: 350290 URL: https://svnweb.freebsd.org/changeset/base/350290 Log: MFC r350082: Reference stdint.h types in ctf.5. Modified: stable/12/cddl/contrib/opensolaris/lib/libctf/common/ctf.5 Directory Properties: stable/12/ (props

svn commit: r350289 - stable/12/usr.sbin/rtadvd

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 14:39:31 2019 New Revision: 350289 URL: https://svnweb.freebsd.org/changeset/base/350289 Log: MFC r350086: Remove obsolete compatibility code from rtadvd. Modified: stable/12/usr.sbin/rtadvd/rtadvd.c Directory Properties: stable/12/ (props changed)

svn commit: r350288 - stable/11/release/doc/share/xml

2019-07-24 Thread Glen Barber
Author: gjb Date: Wed Jul 24 14:15:31 2019 New Revision: 350288 URL: https://svnweb.freebsd.org/changeset/base/350288 Log: Document EN-19:13, SA-19:12-SA-19:17. Sponsored by: Rubicon Communications, LLC (Netgate) Modified: stable/11/release/doc/share/xml/errata.xml

svn commit: r350287 - in releng: 11.2 11.2/sys/conf 11.3 11.3/sys/conf 12.0 12.0/sys/conf

2019-07-24 Thread Gordon Tetlow
Wed Jul 24 12:58:21 2019(r350287) @@ -16,6 +16,28 @@ from older versions of FreeBSD, try WITHOUT_CLANG and the tip of head, and then rebuild without this option. The bootstrap process from older version of current across the gcc/clang cutover is a bit fragile. +20190724 p12

svn commit: r350286 - in releng: 11.2/sys/kern 11.3/sys/kern 12.0/sys/kern

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:57:49 2019 New Revision: 350286 URL: https://svnweb.freebsd.org/changeset/base/350286 Log: Fix file descriptor reference count leak. Approved by: so Security: FreeBSD-SA-19:17.fd Security: CVE-2019-5607 Modified:

svn commit: r350285 - in releng: 11.2/usr.sbin/bhyve 11.3/usr.sbin/bhyve 12.0/usr.sbin/bhyve

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:56:06 2019 New Revision: 350285 URL: https://svnweb.freebsd.org/changeset/base/350285 Log: Fix byhve out-of-bounds read in XHCI device. Approved by: so Security: FreeBSD-SA-19:16.bhyve Security: CVE-2019-5604 Modified:

svn commit: r350284 - in releng: 11.2/sys/kern 11.3/sys/kern 12.0/sys/kern

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:55:16 2019 New Revision: 350284 URL: https://svnweb.freebsd.org/changeset/base/350284 Log: Fix reference count overflow in mqueuefs. Approved by: so Security: FreeBSD-SA-19:15.mqueuefs Security: CVE-2019-5603 Modified:

svn commit: r350283 - in releng: 11.2/sys/compat/freebsd32 11.3/sys/compat/freebsd32

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:54:10 2019 New Revision: 350283 URL: https://svnweb.freebsd.org/changeset/base/350283 Log: Fix kernel memory disclosure in freebsd32_ioctl. Approved by: so Security: FreeBSD-SA-19:14.freebsd32 Security: CVE-2019-5605 Modified:

svn commit: r350282 - in releng: 11.2/sys/kern 11.3/sys/kern 12.0/sys/kern

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:53:06 2019 New Revision: 350282 URL: https://svnweb.freebsd.org/changeset/base/350282 Log: Fix pts write-after-free. Approved by: so Security: FreeBSD-SA-19:13.pts Security: CVE-2019-5606 Modified: releng/11.2/sys/kern/tty.c

svn commit: r350281 - in releng: 11.2/contrib/telnet/telnet 11.3/contrib/telnet/telnet 12.0/contrib/telnet/telnet

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:51:52 2019 New Revision: 350281 URL: https://svnweb.freebsd.org/changeset/base/350281 Log: Fix multiple telnet client vulnerabilities. Approved by: so Security: FreeBSD-SA-19:12.telnet Security: CVE-2019-0053 Modified:

svn commit: r350280 - in releng: 11.2/sys/x86/x86 11.3/sys/x86/x86 12.0/sys/x86/x86

2019-07-24 Thread Gordon Tetlow
Author: gordon Date: Wed Jul 24 12:50:46 2019 New Revision: 350280 URL: https://svnweb.freebsd.org/changeset/base/350280 Log: Fix panic from Intel CPU vulnerability mitigation. Approved by: so Security: FreeBSD-EN-19:13.mds Modified: releng/11.2/sys/x86/x86/cpu_machdep.c

svn commit: r350279 - stable/11/sys/compat/linux

2019-07-24 Thread Tijl Coosemans
Author: tijl Date: Wed Jul 24 12:48:51 2019 New Revision: 350279 URL: https://svnweb.freebsd.org/changeset/base/350279 Log: MFC r349880: Let linuxulator mprotect mask unsupported bits before calling kern_mprotect. After r349240 kern_mprotect returns EINVAL for unsupported bits in the

svn commit: r350278 - stable/12/sys/compat/linux

2019-07-24 Thread Tijl Coosemans
Author: tijl Date: Wed Jul 24 12:46:55 2019 New Revision: 350278 URL: https://svnweb.freebsd.org/changeset/base/350278 Log: MFC r349880: Let linuxulator mprotect mask unsupported bits before calling kern_mprotect. After r349240 kern_mprotect returns EINVAL for unsupported bits in the

svn commit: r350277 - stable/12/sys/riscv/riscv

2019-07-24 Thread Kristof Provost
Author: kp Date: Wed Jul 24 11:34:10 2019 New Revision: 350277 URL: https://svnweb.freebsd.org/changeset/base/350277 Log: MFC r350095: riscv: Return vm_paddr_t in pmap_early_vtophys() We can't use a u_int to compute the physical address in pmap_early_vtophys(). Our int is 32-bit,

svn commit: r350276 - stable/11/sys/riscv/riscv

2019-07-24 Thread Kristof Provost
Author: kp Date: Wed Jul 24 11:34:09 2019 New Revision: 350276 URL: https://svnweb.freebsd.org/changeset/base/350276 Log: MFC r350095: riscv: Return vm_paddr_t in pmap_early_vtophys() We can't use a u_int to compute the physical address in pmap_early_vtophys(). Our int is 32-bit,

svn commit: r350275 - head

2019-07-24 Thread Emmanuel Vadot
Author: manu Date: Wed Jul 24 08:00:00 2019 New Revision: 350275 URL: https://svnweb.freebsd.org/changeset/base/350275 Log: pkgbase: Add the sub stage-packages targets to TGTS This helps when you don't want to run the dependencies targets. Reviewed by: bapt Differential Revision:

svn commit: r350274 - head/share/man/man4

2019-07-24 Thread Kevin Lo
Author: kevlo Date: Wed Jul 24 07:07:46 2019 New Revision: 350274 URL: https://svnweb.freebsd.org/changeset/base/350274 Log: Don't use .Xr for things that have no man page. Modified: head/share/man/man4/cue.4 head/share/man/man4/kue.4 head/share/man/man4/rgephy.4 Modified:

svn commit: r350273 - stable/11/lib/libc/stdlib

2019-07-24 Thread Konstantin Belousov
Author: kib Date: Wed Jul 24 06:32:21 2019 New Revision: 350273 URL: https://svnweb.freebsd.org/changeset/base/350273 Log: MFC r347617 (by bcr), r350091: Add an example to bsearch.3. Modified: stable/11/lib/libc/stdlib/bsearch.3 Directory Properties: stable/11/ (props changed)

svn commit: r350272 - stable/12/lib/libc/stdlib

2019-07-24 Thread Konstantin Belousov
Author: kib Date: Wed Jul 24 06:29:19 2019 New Revision: 350272 URL: https://svnweb.freebsd.org/changeset/base/350272 Log: MFC r350091: bsearch.3: Improve the example Modified: stable/12/lib/libc/stdlib/bsearch.3 Directory Properties: stable/12/ (props changed) Modified: