svn commit: r315531 - head/sys/dev/ath

2017-03-18 Thread Adrian Chadd
Author: adrian Date: Sun Mar 19 05:00:14 2017 New Revision: 315531 URL: https://svnweb.freebsd.org/changeset/base/315531 Log: [ath] prepare for "correct" group (bcast/mcast) address frame handling and software/hardware queue TID mapping. When I initially did this 11n TX work in days of

Re: svn commit: r315498 - head/sys/compat/linux

2017-03-18 Thread Bruce Evans
On Sat, 18 Mar 2017, Dmitry Chagin wrote: Log: Check for negative nanoseconds. Linux do that in timespec_valid(). This uses the unsigned hack to further obfuscate the code. No check is necessary on any supported arch, since there are no representability problems and FreeBSD checks for

svn commit: r315530 - head/sys/arm/freescale/imx

2017-03-18 Thread Ian Lepore
Author: ian Date: Sun Mar 19 04:03:39 2017 New Revision: 315530 URL: https://svnweb.freebsd.org/changeset/base/315530 Log: Remove unreferenced global function imx_gpt_get_timerfreq() and do some cleanups enabled by that: - The only thing left in imx_gptvar.h was the softc, which IMO

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

2017-03-18 Thread Kristof Provost
Author: kp Date: Sun Mar 19 03:06:09 2017 New Revision: 315529 URL: https://svnweb.freebsd.org/changeset/base/315529 Log: pf: Fix rule evaluation after inet6 route-to In pf_route6() we re-run the ruleset with PF_FWD if the packet goes out of a different interface. pf_test6() needs to

Re: svn commit: r315522 - in head: contrib/binutils/ld/emulparams sys/conf

2017-03-18 Thread Bruce Evans
On Sun, 19 Mar 2017, Ed Maste wrote: Log: use INT3 instead of NOP for x86 binary padding We should never end up executing the inter-function padding, so we are better off faulting than silently carrying on to whatever function happens to be next. Note that LLD will soon do this by

svn commit: r315528 - in head/share/man: man5 man9

2017-03-18 Thread Benjamin Kaduk
Author: bjk (doc committer) Date: Sun Mar 19 01:24:18 2017 New Revision: 315528 URL: https://svnweb.freebsd.org/changeset/base/315528 Log: Tidy up mdoc formatting for "etc.)" at end of line man(1) has some logic to use two spaces after a full stop, which is useful for spotting sentence

svn commit: r315527 - in head/sys: compat/freebsd32 kern sys

2017-03-18 Thread Eric van Gyzen
Author: vangyzen Date: Sun Mar 19 00:54:24 2017 New Revision: 315527 URL: https://svnweb.freebsd.org/changeset/base/315527 Log: Regenerate syscall files for r315526 Sponsored by: Dell EMC Modified: head/sys/compat/freebsd32/freebsd32_proto.h

svn commit: r315526 - in head: contrib/netbsd-tests/lib/libc/sys include lib/libc/include lib/libc/sys lib/libc/tests/sys lib/libthr/thread share/man/man3 sys/compat/freebsd32 sys/kern sys/sys

2017-03-18 Thread Eric van Gyzen
Author: vangyzen Date: Sun Mar 19 00:51:12 2017 New Revision: 315526 URL: https://svnweb.freebsd.org/changeset/base/315526 Log: Add clock_nanosleep() Add a clock_nanosleep() syscall, as specified by POSIX. Make nanosleep() a wrapper around it. Attach the clock_nanosleep test from

svn commit: r315525 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sun Mar 19 00:36:29 2017 New Revision: 315525 URL: https://svnweb.freebsd.org/changeset/base/315525 Log: Improve decoding of last arguments to ioctl() and sendto(). Decode the last argument to ioctl() as a pointer rather than an int. Eventually this could use 'int' for

svn commit: r315524 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sun Mar 19 00:31:21 2017 New Revision: 315524 URL: https://svnweb.freebsd.org/changeset/base/315524 Log: Decode arguments to madvise(). Modified: head/usr.bin/truss/syscall.h head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscall.h

Re: svn commit: r315522 - in head: contrib/binutils/ld/emulparams sys/conf

2017-03-18 Thread Ed Maste
On 18 March 2017 at 20:25, Ian Lepore wrote: > > I have always wondered why the arm ldscript pads with 0x90. I don't > know if I feel any better now, knowing that it's because that's an x86 > nop instruction. :) Heh! We used to pad the amd64, i386, and arm64 EFI loaders with

svn commit: r315523 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sun Mar 19 00:27:07 2017 New Revision: 315523 URL: https://svnweb.freebsd.org/changeset/base/315523 Log: Add a Sizet type for 'size_t' values and use it instead of Int. Various size_t arguments were previously decoded as Int values instead which would have truncated

Re: svn commit: r315522 - in head: contrib/binutils/ld/emulparams sys/conf

2017-03-18 Thread Ian Lepore
On Sun, 2017-03-19 at 00:22 +, Ed Maste wrote: > Author: emaste > Date: Sun Mar 19 00:22:13 2017 > New Revision: 315522 > URL: https://svnweb.freebsd.org/changeset/base/315522 > > Log: >   use INT3 instead of NOP for x86 binary padding >    >   We should never end up executing the

svn commit: r315522 - in head: contrib/binutils/ld/emulparams sys/conf

2017-03-18 Thread Ed Maste
Author: emaste Date: Sun Mar 19 00:22:13 2017 New Revision: 315522 URL: https://svnweb.freebsd.org/changeset/base/315522 Log: use INT3 instead of NOP for x86 binary padding We should never end up executing the inter-function padding, so we are better off faulting than silently carrying

svn commit: r315518 - head/sys/kern

2017-03-18 Thread Alan Cox
Author: alc Date: Sat Mar 18 23:37:00 2017 New Revision: 315518 URL: https://svnweb.freebsd.org/changeset/base/315518 Log: Avoid unnecessary calls to vm_map_protect() in elf_load_section(). Typically, when elf_load_section() unconditionally passed VM_PROT_ALL to elf_map_insert(), it was

svn commit: r315516 - head/sys/netpfil/ipfw

2017-03-18 Thread Don Lewis
Author: truckman Date: Sat Mar 18 23:00:13 2017 New Revision: 315516 URL: https://svnweb.freebsd.org/changeset/base/315516 Log: Change several constants used by the PIE algorithm from unsigned to signed. - PIE_MAX_PROB is compared to variable of int64_t and the type promotion rules

svn commit: r315511 - head/bin/sh

2017-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 18 20:41:07 2017 New Revision: 315511 URL: https://svnweb.freebsd.org/changeset/base/315511 Log: sh: Remove unused function declaration for arith_lex_reset(). Reported by: Robert Elz Modified: head/bin/sh/arith.h Modified: head/bin/sh/arith.h

svn commit: r315510 - in head/sys: compat/freebsd32 compat/linux kern

2017-03-18 Thread Eric van Gyzen
Author: vangyzen Date: Sat Mar 18 20:16:23 2017 New Revision: 315510 URL: https://svnweb.freebsd.org/changeset/base/315510 Log: nanosleep: plug a kernel memory disclosure nanosleep() updates rmtp on EINVAL. In that case, kern_nanosleep() has not updated rmt, so sys_nanosleep() updates

svn commit: r315509 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 19:59:21 2017 New Revision: 315509 URL: https://svnweb.freebsd.org/changeset/base/315509 Log: Decode arguments passed to kldsym() and kldunloadf(). This does not currently decode the kld_sym_lookup structure passed to kldsym(). Modified:

svn commit: r315508 - head/sys/arm/freescale/imx

2017-03-18 Thread Ian Lepore
Author: ian Date: Sat Mar 18 19:54:58 2017 New Revision: 315508 URL: https://svnweb.freebsd.org/changeset/base/315508 Log: Remove hardcoded bootverbose=1; imx53 systems boot using loader(8) and users can set verbose if they want to. Modified: head/sys/arm/freescale/imx/imx53_machdep.c

svn commit: r315507 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 19:27:16 2017 New Revision: 315507 URL: https://svnweb.freebsd.org/changeset/base/315507 Log: Reorganize RQSTYPE_NOTIFY handling for chips <= 23xx. There were two copies of the code: one in generic code was half-broken, and another in platform code was never

svn commit: r315506 - head/sys/compat/linsysfs

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:38:12 2017 New Revision: 315506 URL: https://svnweb.freebsd.org/changeset/base/315506 Log: Glibc get_nprocs() and get_nprocs_conf() uses the sysfs cpu infrastructure to get number of processors. Implement /sys/devices/system/cpu/. MFC after:1 month

svn commit: r315505 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:34:29 2017 New Revision: 315505 URL: https://svnweb.freebsd.org/changeset/base/315505 Log: Implement getrandom() syscall. Note. GRND_RANDOM option is not supported for now. MFC after:1 month Modified: head/sys/amd64/linux/linux_dummy.c

svn commit: r315504 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 18:31:45 2017 New Revision: 315504 URL: https://svnweb.freebsd.org/changeset/base/315504 Log: Decode arguments passed to getfsstat(). Note that this does not yet decode the statfs structures returned by getfsstat(). Modified: head/usr.bin/truss/syscall.h

svn commit: r315503 - head/sys/compat/linux

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:31:04 2017 New Revision: 315503 URL: https://svnweb.freebsd.org/changeset/base/315503 Log: As noted by Roel Bouwman Linux allows a large buffer size than the struct ucred size. Fix this. PR: 102956 Reported by: Roel Bouwman MFC after:

svn commit: r315502 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 18:26:56 2017 New Revision: 315502 URL: https://svnweb.freebsd.org/changeset/base/315502 Log: Decode flock() operation. Modified: head/usr.bin/truss/syscall.h head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscall.h

svn commit: r315501 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:23:30 2017 New Revision: 315501 URL: https://svnweb.freebsd.org/changeset/base/315501 Log: To reduce code duplication move socket defines to the MI path. MFC after:1 week Modified: head/sys/amd64/linux/linux.h head/sys/amd64/linux32/linux.h

svn commit: r315500 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 18:21:41 2017 New Revision: 315500 URL: https://svnweb.freebsd.org/changeset/base/315500 Log: Decode file flags passed to *chflags*(). While here, decode arguments passed to fchflags() and chflagsat(). Modified: head/usr.bin/truss/syscall.h

svn commit: r315499 - head/sys/compat/linux

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:19:31 2017 New Revision: 315499 URL: https://svnweb.freebsd.org/changeset/base/315499 Log: Remove superflous break statment. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c

svn commit: r315498 - head/sys/compat/linux

2017-03-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 18 18:14:17 2017 New Revision: 315498 URL: https://svnweb.freebsd.org/changeset/base/315498 Log: Check for negative nanoseconds. Linux do that in timespec_valid(). Reported by: vangyzen@ MFC after:1 week Modified: head/sys/compat/linux/linux_time.c

svn commit: r315497 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 18:12:09 2017 New Revision: 315497 URL: https://svnweb.freebsd.org/changeset/base/315497 Log: Decode arguments passed to posix_fadvise(). Modified: head/usr.bin/truss/syscall.h head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscall.h

svn commit: r315496 - head/usr.bin/truss

2017-03-18 Thread John Baldwin
Author: jhb Date: Sat Mar 18 18:10:02 2017 New Revision: 315496 URL: https://svnweb.freebsd.org/changeset/base/315496 Log: Decode the arguments passed to cap_fcntls_get() and cap_fcntls_limit(). Modified: head/usr.bin/truss/syscall.h head/usr.bin/truss/syscalls.c Modified:

svn commit: r315490 - head/sys/arm/freescale/imx

2017-03-18 Thread Ian Lepore
Author: ian Date: Sat Mar 18 17:50:49 2017 New Revision: 315490 URL: https://svnweb.freebsd.org/changeset/base/315490 Log: Make the imx5 clocks driver work with vendor-supplied dts (which does not supply the addresses for the DPLL register blocks) by hard-coding the addresses in the driver

svn commit: r315489 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 17:01:11 2017 New Revision: 315489 URL: https://svnweb.freebsd.org/changeset/base/315489 Log: Move RQSTYPE_ABTS_RCVD parsing into generic code. MFC after:2 weeks Modified: head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_target.c Modified:

svn commit: r315488 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 16:09:36 2017 New Revision: 315488 URL: https://svnweb.freebsd.org/changeset/base/315488 Log: Extend nt_lun to full 8 byte. MFC after:2 weeks Modified: head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_target.c head/sys/dev/isp/isp_target.h

svn commit: r315487 - head/bin/sh

2017-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 18 16:09:30 2017 New Revision: 315487 URL: https://svnweb.freebsd.org/changeset/base/315487 Log: sh: Remove unused return value of subevalvar_misc(). Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c

svn commit: r315485 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 15:42:22 2017 New Revision: 315485 URL: https://svnweb.freebsd.org/changeset/base/315485 Log: Remove dead remnants of SPI target. MFC after:2 weeks Modified: head/sys/dev/isp/isp.c head/sys/dev/isp/isp_library.c head/sys/dev/isp/isp_library.h

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

2017-03-18 Thread Eric Badger
Author: badger Date: Sat Mar 18 15:25:51 2017 New Revision: 315484 URL: https://svnweb.freebsd.org/changeset/base/315484 Log: ptrace_test: eliminate assumption about thread scheduling A couple of the ptrace tests make assumptions about which thread in a multithreaded process will run

svn commit: r315482 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 13:42:08 2017 New Revision: 315482 URL: https://svnweb.freebsd.org/changeset/base/315482 Log: Use isp_target_put_entry() in places where it can be. This unifies the code and removes some duplication. MFC after:2 weeks Modified:

svn commit: r315480 - in head/sys: dev/syscons dev/vt kern teken

2017-03-18 Thread Bruce Evans
Author: bde Date: Sat Mar 18 11:13:54 2017 New Revision: 315480 URL: https://svnweb.freebsd.org/changeset/base/315480 Log: Fix bright colors for syscons, and make them work for the first time for vt. Restore syscons' rendering of background (bg) brightness as foreground (fg) blinking and

svn commit: r315478 - head/sys/dev/isp

2017-03-18 Thread Alexander Motin
Author: mav Date: Sat Mar 18 10:34:29 2017 New Revision: 315478 URL: https://svnweb.freebsd.org/changeset/base/315478 Log: Do some notify acks cleanup. ISPASYNC_TARGET_NOTIFY_ACK makes no sense without argument. MFC after:2 weeks Modified: head/sys/dev/isp/isp_freebsd.c

svn commit: r315477 - head/sys/ddb

2017-03-18 Thread Bruce Evans
Author: bde Date: Sat Mar 18 07:01:18 2017 New Revision: 315477 URL: https://svnweb.freebsd.org/changeset/base/315477 Log: Fix right shifts on arches with db_expr_t larger than u_int (LP64 arches in practice). db_expr_t is a signed type, but right shifts are fudged to evaluate them in