svn commit: r337282 - head/contrib/llvm/tools/lld/ELF/Arch

2018-08-03 Thread Alan Cox
Author: alc Date: Sat Aug 4 02:30:51 2018 New Revision: 337282 URL: https://svnweb.freebsd.org/changeset/base/337282 Log: Set the default image base on arm64 and i386 to a superpage-aligned address. Reviewed by: emaste, markj Discussed with: dim Differential Revision:

svn commit: r337281 - head/sys/net

2018-08-03 Thread Patrick Kelsey
Author: pkelsey Date: Sat Aug 4 01:45:17 2018 New Revision: 337281 URL: https://svnweb.freebsd.org/changeset/base/337281 Log: Mark the send queue ready so ALTQ is available. Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c

svn commit: r337280 - stable/11/sys/cam

2018-08-03 Thread Alexander Motin
Author: mav Date: Sat Aug 4 00:34:15 2018 New Revision: 337280 URL: https://svnweb.freebsd.org/changeset/base/337280 Log: MFC r336590: Stop further SCSI recovery attempts after one has failed. We've got a set of probably damaged hard disks, reporting 0x04,0x02 ("Logical unit not

Re: svn commit: r336892 - head/sys/arm/arm

2018-08-03 Thread John Baldwin
On 7/30/18 2:50 AM, Andrew Turner wrote: > Author: andrew > Date: Mon Jul 30 09:50:26 2018 > New Revision: 336892 > URL: https://svnweb.freebsd.org/changeset/base/336892 > > Log: > Require ARMv5 for arm. All current kernels are for ARMv5 or later, and it > will allow us to clean out old ARMv4

svn commit: r337279 - in head/sys: netinet sys

2018-08-03 Thread Gleb Smirnoff
Author: glebius Date: Sat Aug 4 00:03:21 2018 New Revision: 337279 URL: https://svnweb.freebsd.org/changeset/base/337279 Log: Now that after r335979 the kernel addresses in API structures are fixed size, there is no reason left for the unions. Discussed with: brooks Modified:

Re: svn commit: r336221 - head/sys/net

2018-08-03 Thread Gleb Smirnoff
Kristof, On Thu, Jul 12, 2018 at 04:35:35PM +, Kristof Provost wrote: K> Author: kp K> Date: Thu Jul 12 16:35:35 2018 K> New Revision: 336221 K> URL: https://svnweb.freebsd.org/changeset/base/336221 K> K> Log: K> pf: Increate default state table size K> K> The typical system now has

svn commit: r337278 - head/sys/netgraph

2018-08-03 Thread Gleb Smirnoff
Author: glebius Date: Fri Aug 3 22:55:58 2018 New Revision: 337278 URL: https://svnweb.freebsd.org/changeset/base/337278 Log: Use if_tunnel_check_nesting() for ng_iface(4). Modified: head/sys/netgraph/ng_iface.c head/sys/netgraph/ng_iface.h Modified: head/sys/netgraph/ng_iface.c

Re: svn commit: r335979 - in head: . lib/libkvm sys/kern sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat

2018-08-03 Thread Gleb Smirnoff
Hi Brooks, On Thu, Jul 05, 2018 at 01:13:49PM +, Brooks Davis wrote: B> Author: brooks B> Date: Thu Jul 5 13:13:48 2018 B> New Revision: 335979 B> URL: https://svnweb.freebsd.org/changeset/base/335979 B> B> Log: B> Make struct xinpcb and friends word-size independent. B> B> Replace

Re: svn commit: r336047 - in head/sys: amd64/include i386/include sys

2018-08-03 Thread Gleb Smirnoff
Hi Konstantin, On Fri, Jul 06, 2018 at 07:50:44PM +, Konstantin Belousov wrote: K> Author: kib K> Date: Fri Jul 6 19:50:44 2018 K> New Revision: 336047 K> URL: https://svnweb.freebsd.org/changeset/base/336047 K> K> Log: K> Expand x86 struct pcpus to UMA_PCPU_ALLOC_SIZE AKA PAGE_SIZE. K>

svn commit: r337277 - head/sys/arm/conf

2018-08-03 Thread Emmanuel Vadot
Author: manu Date: Fri Aug 3 22:15:58 2018 New Revision: 337277 URL: https://svnweb.freebsd.org/changeset/base/337277 Log: arm: Remove ALLWINNER_UP kernel config This was needed when we GENERIC couldn't boot on UP system. Deleted: head/sys/arm/conf/ALLWINNER_UP

svn commit: r337276 - head/sys/modules/dtb/rpi

2018-08-03 Thread Emmanuel Vadot
Author: manu Date: Fri Aug 3 22:06:15 2018 New Revision: 337276 URL: https://svnweb.freebsd.org/changeset/base/337276 Log: dtb: rpi: Only compile and copy the DTSO The DTB is now loaded via the firmware, passed to u-boot then to loader.efi Only compile and copy the dts overlays.

svn commit: r337275 - head/sys/modules/dtb/am335x

2018-08-03 Thread Emmanuel Vadot
Author: manu Date: Fri Aug 3 22:04:00 2018 New Revision: 337275 URL: https://svnweb.freebsd.org/changeset/base/337275 Log: dtb: am335x: Remove links and add more dts The links were to cope with the switch to upstream dts. We don't need them anymore. While here add the rest of the

svn commit: r337274 - stable/11/release/arm

2018-08-03 Thread Emmanuel Vadot
Author: manu Date: Fri Aug 3 21:59:01 2018 New Revision: 337274 URL: https://svnweb.freebsd.org/changeset/base/337274 Log: MFC r336997: release: Restore copy of boot.scr for some board This is not a problem for 12-CURRENT as EFI boot works but it doesn't for 11. While here some

svn commit: r337273 - head/sys/dev/nvme

2018-08-03 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 3 20:04:06 2018 New Revision: 337273 URL: https://svnweb.freebsd.org/changeset/base/337273 Log: nvme(4): Add bus_dmamap_sync() at the end of the request path Summary: Some architectures, in this case powerpc64, need explicit synchronization barriers vs

Re: svn commit: r336905 - head/tests/sys/kqueue/libkqueue

2018-08-03 Thread David A. Bright
On 07/30/2018 09:21 AM, David Bright wrote: > Author: dab > Date: Mon Jul 30 14:21:49 2018 > New Revision: 336905 > URL: https://svnweb.freebsd.org/changeset/base/336905 > > Log: > Correct possible misleading error message in kqtest. > > ian@ pointed out that in the test_abstime() function

Re: svn commit: r336802 - head/tests/sys/kqueue/libkqueue

2018-08-03 Thread David A. Bright
On 07/27/2018 09:53 PM, David Bright wrote: > Author: dab > Date: Sat Jul 28 02:53:36 2018 > New Revision: 336802 > URL: https://svnweb.freebsd.org/changeset/base/336802 > > Log: > Fix compilation error on some arches after r336761 & r336781. > > Another cast for printing an intmax_t was

svn commit: r337272 - head/sys/dev/filemon

2018-08-03 Thread Bryan Drewery
Author: bdrewery Date: Fri Aug 3 19:24:04 2018 New Revision: 337272 URL: https://svnweb.freebsd.org/changeset/base/337272 Log: Fix some filemon path logging issues. - Properly handle snprintf return value for truncation and avoid overflowing the later write with the bogus length. -

svn commit: r337271 - head/stand/i386/libi386

2018-08-03 Thread Cy Schubert
Author: cy Date: Fri Aug 3 19:11:00 2018 New Revision: 337271 URL: https://svnweb.freebsd.org/changeset/base/337271 Log: Some drives report a geometry that is inconsisetent with the total number of sectors reported through the BIOS. Cylinders * heads * sectors may not necessarily be equal

svn commit: r337270 - in head: . lib/libclang_rt

2018-08-03 Thread John Baldwin
Author: jhb Date: Fri Aug 3 18:52:51 2018 New Revision: 337270 URL: https://svnweb.freebsd.org/changeset/base/337270 Log: Install the 32-bit compat sanitizer libraries. The lib32 build was already building the i386 version of the clang sanitizers (libclang_rt) but they were not being

svn commit: r337269 - in head: sys/dev/pci usr.sbin/pciconf

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 18:35:20 2018 New Revision: 337269 URL: https://svnweb.freebsd.org/changeset/base/337269 Log: Require write access when mmapping BAR. This actually makes the rights requirements for accessing PCI config space and BARs using /dev/pci same. Since unchanged

svn commit: r337268 - head/usr.sbin/pciconf

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 18:30:02 2018 New Revision: 337268 URL: https://svnweb.freebsd.org/changeset/base/337268 Log: Fix word-size dumping. Sponsored by: The FreeBSD Foundation MFC after:12 days Modified: head/usr.sbin/pciconf/pciconf.c Modified:

svn commit: r337267 - stable/11/sys/i386/i386

2018-08-03 Thread Mark Johnston
Author: markj Date: Fri Aug 3 17:14:52 2018 New Revision: 337267 URL: https://svnweb.freebsd.org/changeset/base/337267 Log: Fix a mismerge in r337262. This is a direct commit to stable/11. Modified: stable/11/sys/i386/i386/pmap.c Modified: stable/11/sys/i386/i386/pmap.c

svn commit: r337266 - head/sys/riscv/riscv

2018-08-03 Thread Ruslan Bukin
Author: br Date: Fri Aug 3 16:44:56 2018 New Revision: 337266 URL: https://svnweb.freebsd.org/changeset/base/337266 Log: Return ENAMETOOLONG if the latest copied character is not null terminator. Sponsored by: DARPA, AFRL Modified: head/sys/riscv/riscv/copyinout.S Modified:

svn commit: r337265 - head/sys/vm

2018-08-03 Thread Mark Johnston
Author: markj Date: Fri Aug 3 16:35:37 2018 New Revision: 337265 URL: https://svnweb.freebsd.org/changeset/base/337265 Log: Add the required page accounting to kmem_bootstrap_free(). Reviewed by: alc, kib MFC after:3 days Sponsored by: The FreeBSD Foundation Differential

svn commit: r337264 - head/lib/libc/sys

2018-08-03 Thread Ruslan Bukin
Author: br Date: Fri Aug 3 16:05:03 2018 New Revision: 337264 URL: https://svnweb.freebsd.org/changeset/base/337264 Log: MAXLOGNAME changed to 33 in r243023. Update man pages. Sponsored by: DARPA, AFRL Modified: head/lib/libc/sys/getlogin.2 head/lib/libc/sys/getloginclass.2

svn commit: r337263 - stable/11/sys/amd64/conf

2018-08-03 Thread Mark Johnston
Author: markj Date: Fri Aug 3 15:43:37 2018 New Revision: 337263 URL: https://svnweb.freebsd.org/changeset/base/337263 Log: MFC r337015: COMPAT_LINUX32 has not depended on COMPAT_43 in some time. Modified: stable/11/sys/amd64/conf/NOTES Directory Properties: stable/11/ (props changed)

svn commit: r337262 - in stable/11/sys: amd64/amd64 i386/i386 kern vm

2018-08-03 Thread Mark Johnston
Author: markj Date: Fri Aug 3 15:42:39 2018 New Revision: 337262 URL: https://svnweb.freebsd.org/changeset/base/337262 Log: MFC r336505, r336764 Have preload_delete_name() free pages backing preloaded data. Modified: stable/11/sys/amd64/amd64/machdep.c stable/11/sys/amd64/amd64/pmap.c

svn commit: r337261 - head/sys/amd64/amd64

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 15:35:29 2018 New Revision: 337261 URL: https://svnweb.freebsd.org/changeset/base/337261 Log: Fix typo in copyinstr_smap, resulting in mis-handling of too long strings. Reported and tested by: pho PR: 230286 Sponsored by: The FreeBSD Foundation

svn commit: r337259 - stable/10/sys/security/audit

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:47:47 2018 New Revision: 337259 URL: https://svnweb.freebsd.org/changeset/base/337259 Log: MFC r336319: auditon(2): fix A_SETPOLICY with 64-bit values A_SETPOLICY is supposed to work with either 64 or 32-bit values, but due to a typo the 64-bit

svn commit: r337258 - stable/10/sys/kern

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:45:53 2018 New Revision: 337258 URL: https://svnweb.freebsd.org/changeset/base/337258 Log: MFC r336205: Don't acquire evclass_lock with a spinlock held When the "pc" audit class is enabled and auditd is running, witness will panic during thread

svn commit: r337257 - stable/10/contrib/openbsm/bin/auditd

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:37:23 2018 New Revision: 337257 URL: https://svnweb.freebsd.org/changeset/base/337257 Log: MFC r335899: auditd(8): register signal handlers interrutibly auditd_wait_for_events() relies on read(2) being interrupted by signals, but it registers

svn commit: r337256 - in stable/10: contrib/openbsm/bin/praudit etc/mtree usr.sbin/praudit usr.sbin/praudit/tests

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:36:29 2018 New Revision: 337256 URL: https://svnweb.freebsd.org/changeset/base/337256 Log: MFC r335287, r335290 r335287: praudit(1): return 0 on success Cherry pick https://github.com/openbsm/openbsm/commit/ed83bb3 Submitted by: aniketp

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

2018-08-03 Thread Andriy Gapon
Author: avg Date: Fri Aug 3 14:27:28 2018 New Revision: 337255 URL: https://svnweb.freebsd.org/changeset/base/337255 Log: safer wait-free iteration of shared interrupt handlers The code that iterates a list of interrupt handlers for a (shared) interrupt, whether in the ISR context or in

svn commit: r337254 - stable/10/lib/libutil

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:25:15 2018 New Revision: 337254 URL: https://svnweb.freebsd.org/changeset/base/337254 Log: MFC r334547: pty.3: Add a HISTORY section These functions were first added in 4.3 BSD-Reno, according to http://unix.superglobalmegacorp.com/ and the CSRG

svn commit: r337253 - stable/10/share/man/man4

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:23:51 2018 New Revision: 337253 URL: https://svnweb.freebsd.org/changeset/base/337253 Log: MFC r334394: auditpipe(4): fix some ioctl arguments in the man page Fix the argument types for the AUDITPIPE_[GS]ET_PRESELECT_(NA)?FLAGS ioctls. Also, fix

svn commit: r337252 - stable/10/contrib/openbsm/libbsm

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:23:01 2018 New Revision: 337252 URL: https://svnweb.freebsd.org/changeset/base/337252 Log: MFC r334390: au_read_rec(3): correct return value in man page Submitted by: aniketp Reviewed by: csjp (earlier version) Sponsored by: Google, Inc. (GSoC

svn commit: r337251 - stable/10/sys/security/audit

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:22:16 2018 New Revision: 337251 URL: https://svnweb.freebsd.org/changeset/base/337251 Log: MFC r334296: Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...) Due to an oversight in r195280, auditon(A_SETCLASS, ...) would cause a tailq

svn commit: r337250 - in stable/10/libexec/tftpd: . tests

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:19:56 2018 New Revision: 337250 URL: https://svnweb.freebsd.org/changeset/base/337250 Log: MFC r330720: tftpd: reject unknown opcodes If tftpd receives a command with an unknown opcode, it simply exits 1. It doesn't send an ERROR packet, and the

svn commit: r337249 - in stable/10/libexec/tftpd: . tests

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:19:09 2018 New Revision: 337249 URL: https://svnweb.freebsd.org/changeset/base/337249 Log: MFC r330719: tftpd: Abort on an WRQ access violation On a WRQ (write request) tftpd checks whether the client has access permission for the file in

svn commit: r337248 - in stable/10/libexec/tftpd: . tests

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:18:02 2018 New Revision: 337248 URL: https://svnweb.freebsd.org/changeset/base/337248 Log: MFC r330718: tftpd: Verify world-writability for WRQ when using relative paths tftpd(8) says that files may only be written if they already exist and are

svn commit: r337247 - in stable/10: libexec/tftpd libexec/tftpd/tests usr.bin/tftp

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:17:11 2018 New Revision: 337247 URL: https://svnweb.freebsd.org/changeset/base/337247 Log: MFC r330710: tftpd: Flush files as soon as they are fully received On an RRQ, tftpd doesn't exit as soon as it's finished receiving a file. Instead, it

svn commit: r337246 - in stable/10: etc/mtree libexec/tftpd libexec/tftpd/tests

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:13:15 2018 New Revision: 337246 URL: https://svnweb.freebsd.org/changeset/base/337246 Log: MFC r330696, r330709, r330742, r331358 r330696: Add some functional tests for tftpd(8) tftpd(8) is difficult to test in isolation due to its relationship

svn commit: r337245 - in stable/10/sys: amd64/amd64 i386/i386 i386/isa

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 14:12:37 2018 New Revision: 337245 URL: https://svnweb.freebsd.org/changeset/base/337245 Log: MFC r336683: Extend ranges of the critical sections to ensure that context switch code never sees FPU pcb flags not consistent with the hardware state. Modified:

svn commit: r337244 - in stable/10: contrib/netbsd-tests/lib/libc/sys lib/libc/sys

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:08:39 2018 New Revision: 337244 URL: https://svnweb.freebsd.org/changeset/base/337244 Log: MFC r328266: mlock(2): correct documentation for error conditions. The man page is years out of date regarding errors. Our implementation _does_ allow

svn commit: r337243 - stable/11/sys/security/audit

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:06:08 2018 New Revision: 337243 URL: https://svnweb.freebsd.org/changeset/base/337243 Log: MFC r336319: auditon(2): fix A_SETPOLICY with 64-bit values A_SETPOLICY is supposed to work with either 64 or 32-bit values, but due to a typo the 64-bit

svn commit: r337242 - stable/11/sys/kern

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:05:22 2018 New Revision: 337242 URL: https://svnweb.freebsd.org/changeset/base/337242 Log: MFC r336205: Don't acquire evclass_lock with a spinlock held When the "pc" audit class is enabled and auditd is running, witness will panic during thread

svn commit: r337241 - stable/11/contrib/openbsm/bin/auditd

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:03:50 2018 New Revision: 337241 URL: https://svnweb.freebsd.org/changeset/base/337241 Log: MFC r335899: auditd(8): register signal handlers interrutibly auditd_wait_for_events() relies on read(2) being interrupted by signals, but it registers

svn commit: r337239 - in stable/11: sys/kern tests/sys/aio

2018-08-03 Thread Alan Somers
Author: asomers Date: Fri Aug 3 14:01:32 2018 New Revision: 337239 URL: https://svnweb.freebsd.org/changeset/base/337239 Log: MFC r332631: lio_listio: return EAGAIN instead of EIO when out of resources This behavior is already documented by the man page, and suggested by POSIX.

svn commit: r337238 - head/contrib/netbsd-tests/lib/libc/sys

2018-08-03 Thread Ruslan Bukin
Author: br Date: Fri Aug 3 12:47:54 2018 New Revision: 337238 URL: https://svnweb.freebsd.org/changeset/base/337238 Log: Replace __riscv__ with __riscv. __riscv__ is not pre-defined anymore by latest version of GNU compiler. Sponsored by: DARPA, AFRL Modified:

svn commit: r337237 - head/tests/sys/geom/class/nop

2018-08-03 Thread Ruslan Bukin
Author: br Date: Fri Aug 3 12:16:02 2018 New Revision: 337237 URL: https://svnweb.freebsd.org/changeset/base/337237 Log: Increase timeout for nop_test:stripesize. It takes 49s to complete this test in QEMU/RISC-V. Sponsored by: DARPA, AFRL Modified:

svn commit: r337236 - head/share/man/man9

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 12:14:29 2018 New Revision: 337236 URL: https://svnweb.freebsd.org/changeset/base/337236 Log: Some updates to vm_map(9). Remove min_offset, max_offset. Mention the busy flag. Prodded by: https://reviews.freebsd.org/D16105. Sponsored by: The FreeBSD

svn commit: r337235 - in stable/11/sys: amd64/amd64 x86/x86

2018-08-03 Thread Konstantin Belousov
Author: kib Date: Fri Aug 3 11:36:37 2018 New Revision: 337235 URL: https://svnweb.freebsd.org/changeset/base/337235 Log: MFC r336763: Add workarounds for several Ryzen erratas, on amd64. Modified: stable/11/sys/amd64/amd64/initcpu.c stable/11/sys/x86/x86/cpu_machdep.c Directory

svn commit: r337234 - head/libexec/getty

2018-08-03 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Aug 3 10:59:05 2018 New Revision: 337234 URL: https://svnweb.freebsd.org/changeset/base/337234 Log: Remove pointless comment. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/libexec/getty/ttys.5 Modified: head/libexec/getty/ttys.5

svn commit: r337233 - head/libexec/getty

2018-08-03 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Aug 3 10:58:13 2018 New Revision: 337233 URL: https://svnweb.freebsd.org/changeset/base/337233 Log: .Xr pam_securetty(8) from ttys(5), to hint the users as to what actually enforces the 'secure' tty flag. MFC after:2 weeks Sponsored by: DARPA, AFRL

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

2018-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 3 09:02:57 2018 New Revision: 337232 URL: https://svnweb.freebsd.org/changeset/base/337232 Log: Implement ktime_add_ms() and ktime_before() in the LinuxKPI. Submitted by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies

Re: svn commit: r337231 - head/stand/efi/loader

2018-08-03 Thread Toomas Soome via svn-src-all
> On 3 Aug 2018, at 11:32, Warner Losh wrote: > > Any reason why efipart_inithandles() should even return an error in this > case? Seems to cause us nothing but trouble so we have to filter some, but > not all errors which strikes me as a bad design. We should only return errors > for real

Re: svn commit: r337231 - head/stand/efi/loader

2018-08-03 Thread Warner Losh
Any reason why efipart_inithandles() should even return an error in this case? Seems to cause us nothing but trouble so we have to filter some, but not all errors which strikes me as a bad design. We should only return errors for real errors, like not having enough memory for the arrays we need.

svn commit: r337231 - head/stand/efi/loader

2018-08-03 Thread Toomas Soome
Author: tsoome Date: Fri Aug 3 07:59:29 2018 New Revision: 337231 URL: https://svnweb.freebsd.org/changeset/base/337231 Log: loader.efi: clean up misleading noise from missing block devices If there are no block devices, there is no need to printout error (ENOENT). In case of