svn commit: r351382 - head/sbin/newfs_msdos

2019-08-21 Thread Xin LI
Author: delphij Date: Thu Aug 22 06:14:06 2019 New Revision: 351382 URL: https://svnweb.freebsd.org/changeset/base/351382 Log: When creating a new FAT32 filesystem, use "unknown" (0x) for FSI_Nxt_Free instead of providing a wrong value. With this change, fsck_msdosfs would no long

svn commit: r351381 - head/sys/gdb

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 04:31:07 2019 New Revision: 351381 URL: https://svnweb.freebsd.org/changeset/base/351381 Log: Fix i386 build after r351368 Reported by: cy Submitted by: cy Modified: head/sys/gdb/gdb_main.c Modified: head/sys/gdb/gdb_main.c ===

svn commit: r351380 - head/sys/contrib/ipfilter/netinet

2019-08-21 Thread Cy Schubert
Author: cy Date: Thu Aug 22 03:33:10 2019 New Revision: 351380 URL: https://svnweb.freebsd.org/changeset/base/351380 Log: Specifying array sizes for fully initialized tables at compile time is redundant. MFC after:1 week Modified: head/sys/contrib/ipfilter/netinet/fil.c Modified:

svn commit: r351379 - head/usr.bin/w

2019-08-21 Thread Mike Karels
Author: karels Date: Thu Aug 22 03:28:31 2019 New Revision: 351379 URL: https://svnweb.freebsd.org/changeset/base/351379 Log: Change w(1) to compute FROM (host) field size dynamically It's nice to be able to display a full IPv6 host address if needed, but it's also nice to display more th

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

2019-08-21 Thread Warner Losh
Author: imp Date: Thu Aug 22 02:53:51 2019 New Revision: 351376 URL: https://svnweb.freebsd.org/changeset/base/351376 Log: Remove stray line that was duplicated. Noticed by: rpokala@ Modified: head/sys/dev/nvme/nvme.c Modified: head/sys/dev/nvme/nvme.c ==

svn commit: r351375 - head

2019-08-21 Thread Warner Losh
Author: imp Date: Thu Aug 22 02:53:46 2019 New Revision: 351375 URL: https://svnweb.freebsd.org/changeset/base/351375 Log: Document Intel RST support just added Modified: head/RELNOTES Modified: head/RELNOTES == ---

svn commit: r351374 - head

2019-08-21 Thread Rick Macklem
Author: rmacklem Date: Thu Aug 22 01:29:59 2019 New Revision: 351374 URL: https://svnweb.freebsd.org/changeset/base/351374 Log: Add a couple of lines noting that r351372 maps ENOTTY->EINVAL for other cases. Modified: head/RELNOTES Modified: head/RELNOTES =

svn commit: r351373 - head

2019-08-21 Thread Mark Johnston
Author: markj Date: Thu Aug 22 01:18:36 2019 New Revision: 351373 URL: https://svnweb.freebsd.org/changeset/base/351373 Log: Document r351361. Modified: head/RELNOTES Modified: head/RELNOTES == --- head/RELNOTES

svn commit: r351372 - head/sys/kern

2019-08-21 Thread Rick Macklem
Author: rmacklem Date: Thu Aug 22 01:15:06 2019 New Revision: 351372 URL: https://svnweb.freebsd.org/changeset/base/351372 Log: Map ENOTTY to EINVAL for lseek(SEEK_DATA/SEEK_HOLE). Without this patch, when an application performed lseek(SEEK_DATA/SEEK_HOLE) on a file in a file system that

svn commit: r351370 - head/sys/gdb

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 00:36:16 2019 New Revision: 351370 URL: https://svnweb.freebsd.org/changeset/base/351370 Log: gdb(4): Style No functional change. I was surprised to find that no sys/ header already defines the -1 EOF convention anywhere, so defined one locally. Modified

svn commit: r351369 - head/sys/amd64/include

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 00:35:17 2019 New Revision: 351369 URL: https://svnweb.freebsd.org/changeset/base/351369 Log: gdb(4):amd64: Bump MI GDB_BUFSZ for more efficient transfers A bigger buffer reduces the RTTs to transfer long messages and is otherwise relatively harmless, especial

svn commit: r351368 - head/sys/gdb

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 00:34:11 2019 New Revision: 351368 URL: https://svnweb.freebsd.org/changeset/base/351368 Log: gdb(4): Implement qXfer:threads:read This streams out an XML document over several GDB packets describing all threads in the system; their ids, name, and any loosely

svn commit: r351366 - head/sys/gdb

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 00:19:41 2019 New Revision: 351366 URL: https://svnweb.freebsd.org/changeset/base/351366 Log: gdb(4): Add basic 'qSupported' support This is where the host GDB tells us what features it supports, and we respond with the list we support. For now, just report P

svn commit: r351365 - head/sys/gdb

2019-08-21 Thread Conrad Meyer
Author: cem Date: Thu Aug 22 00:19:14 2019 New Revision: 351365 URL: https://svnweb.freebsd.org/changeset/base/351365 Log: gdb(4): Include thread in Target Halt Reason This saves a round trip of the gdb remote inferior attempting to find the thread id of the halted thread. Sponsored

svn commit: r351364 - in head/sys: crypto/blowfish crypto/chacha20 crypto/des opencrypto

2019-08-21 Thread John Baldwin
Author: jhb Date: Thu Aug 22 00:02:08 2019 New Revision: 351364 URL: https://svnweb.freebsd.org/changeset/base/351364 Log: Use 'const' for keys and IVs passed to software encryption algorithms. Specifically, use 'const' for the key passed to the 'setkey' method and 'const' for the 'iv' pa

svn commit: r351363 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:47:01 2019 New Revision: 351363 URL: https://svnweb.freebsd.org/changeset/base/351363 Log: Add hold events for lockmgr probes, missed in r351361. MFC with: r351361 Modified: head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c Modified: head/cddl/c

svn commit: r351361 - in head: cddl/contrib/opensolaris/cmd/lockstat share/man/man4 sys/kern sys/sys

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:43:58 2019 New Revision: 351361 URL: https://svnweb.freebsd.org/changeset/base/351361 Log: Add lockmgr(9) probes to the lockstat DTrace provider. They follow the conventions set by rw and sx lock probes. There is an additional lockstat:::lockmgr-disown p

svn commit: r351360 - head/sys/fs/nullfs

2019-08-21 Thread Mateusz Guzik
Author: mjg Date: Wed Aug 21 23:24:40 2019 New Revision: 351360 URL: https://svnweb.freebsd.org/changeset/base/351360 Log: nullfs: lock the vnode with LK_SHARED in null_vptocnp null_nodeget which follows almost always finds the target vnode in the hash, avoiding insmntque1 altogether. Sho

svn commit: r351359 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:13:00 2019 New Revision: 351359 URL: https://svnweb.freebsd.org/changeset/base/351359 Log: Fix inverted predicates for sx lock hold events in lockstat(1). This caused shared sx holds to be reported as exclusive, and vice versa. Reviewed by: mjg MF

svn commit: r351355 - in head/sys: conf dev/nvme modules/nvme

2019-08-21 Thread Warner Losh
Author: imp Date: Wed Aug 21 22:17:55 2019 New Revision: 351355 URL: https://svnweb.freebsd.org/changeset/base/351355 Log: Separate the pci attachment from the rest of nvme Nvme drives can be attached in a number of different ways. Separate out the PCI attachment so that we can have othe

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

2019-08-21 Thread Warner Losh
Author: imp Date: Wed Aug 21 22:18:07 2019 New Revision: 351357 URL: https://svnweb.freebsd.org/changeset/base/351357 Log: Document RST support in nvme(4) and ahci(4). Modified: head/share/man/man4/ahci.4 head/share/man/man4/nvme.4 Modified: head/share/man/man4/ahci.4 =

svn commit: r351356 - in head/sys: conf dev/ahci dev/nvme modules/nvme

2019-08-21 Thread Warner Losh
Author: imp Date: Wed Aug 21 22:18:01 2019 New Revision: 351356 URL: https://svnweb.freebsd.org/changeset/base/351356 Log: Create a AHCI attachment for nvme. Intel has created RST and many laptops from vendors like Lenovo and Asus. It's a mechanism for creating multiple boot devices unde

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Tijl Coosemans
On Wed, 21 Aug 2019 18:52:31 +0300 Konstantin Belousov wrote: > On Wed, Aug 21, 2019 at 02:49:08PM +0200, Tijl Coosemans wrote: >> On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric >> wrote: >>> Author: dim >>> Date: Tue Aug 20 17:39:32 2019 >>> New Revision: 351253 >>> URL: https://svnweb

svn commit: r351354 - head/sbin/ping

2019-08-21 Thread Alan Somers
Author: asomers Date: Wed Aug 21 21:05:15 2019 New Revision: 351354 URL: https://svnweb.freebsd.org/changeset/base/351354 Log: ping: add -H option for enabling reverse DNS lookup This is the reverse of the -n flag. Submitted by: Ján Sučan Sponsored by: Google LLC (Google Summer of C

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

2019-08-21 Thread Alexander Motin
Author: mav Date: Wed Aug 21 20:17:30 2019 New Revision: 351352 URL: https://svnweb.freebsd.org/changeset/base/351352 Log: Improve NVMe hot unplug handling. If device is unplugged from the system (CSTS register reads return 0x), it makes no sense to send any more recovery requests

svn commit: r351351 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 20:01:52 2019 New Revision: 351351 URL: https://svnweb.freebsd.org/changeset/base/351351 Log: Remove manual wire_count adjustments from the unmapped mbuf code. The original code came from a desire to minimize the number of updates to v_wire_count, which prio

svn commit: r351349 - head/lib/libthr/thread

2019-08-21 Thread Konstantin Belousov
Author: kib Date: Wed Aug 21 19:53:50 2019 New Revision: 351349 URL: https://svnweb.freebsd.org/changeset/base/351349 Log: Fix _pthread_cancel_enter() and _pthread_cancel_leave() jmptable entries. PR: 240022 Reported by: Andrew Gierth Sponsored by: The FreeBSD Foundation MFC after

svn commit: r351348 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 19:35:04 2019 New Revision: 351348 URL: https://svnweb.freebsd.org/changeset/base/351348 Log: Modify pipe_poll() to properly check for pending direct writes. With r349546, it is a responsibility of the writer to clear PIPE_DIRECTW after pinned data has been

svn commit: r351347 - head/usr.sbin/makefs/msdos

2019-08-21 Thread Ed Maste
Author: emaste Date: Wed Aug 21 19:09:40 2019 New Revision: 351347 URL: https://svnweb.freebsd.org/changeset/base/351347 Log: makefs: Verify that the BPB media descriptor and FAT ID match From r322982 in sys/fs/msdosfs. Modified: head/usr.sbin/makefs/msdos/msdosfs_fat.c Modified: head/u

svn commit: r351346 - in head: sys/fs/msdosfs usr.sbin/makefs usr.sbin/makefs/ffs usr.sbin/makefs/msdos

2019-08-21 Thread Ed Maste
Author: emaste Date: Wed Aug 21 19:07:13 2019 New Revision: 351346 URL: https://svnweb.freebsd.org/changeset/base/351346 Log: makefs: share denode.h between kernel msdosfs and makefs There is no need to duplicate this file when it can be trivially shared (just exposing sections previously

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Ian Lepore
On Wed, 2019-08-21 at 09:01 -0700, Marshall Clow wrote: > On Wed, Aug 21, 2019 at 6:20 AM Tijl Coosemans > wrote: > > > On Wed, 21 Aug 2019 15:07:56 +0200 Dimitry Andric > > wrote: > > > On 21 Aug 2019, at 14:49, Tijl Coosemans wrote: > > > > On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andri

svn commit: r351333 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:11:12 2019 New Revision: 351333 URL: https://svnweb.freebsd.org/changeset/base/351333 Log: Simplify vm_page_dequeue() and fix an assertion. - Add a vm_pagequeue_remove() function to physically remove a page from its queue and update the queue length.

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Marshall Clow
On Wed, Aug 21, 2019 at 6:20 AM Tijl Coosemans wrote: > On Wed, 21 Aug 2019 15:07:56 +0200 Dimitry Andric > wrote: > > On 21 Aug 2019, at 14:49, Tijl Coosemans wrote: > >> On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric > >> wrote: > >>> Author: dim > >>> Date: Tue Aug 20 17:39:32 2019 >

svn commit: r351332 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:01:17 2019 New Revision: 351332 URL: https://svnweb.freebsd.org/changeset/base/351332 Log: Unconditionally enable debug.vm_lowmem. It is useful for testing purposes to be able to drain UMA caches, so do not limit the sysctl to DIAGNOSTIC kernels. MFC

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Konstantin Belousov
On Wed, Aug 21, 2019 at 02:49:08PM +0200, Tijl Coosemans wrote: > On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric > wrote: > > Author: dim > > Date: Tue Aug 20 17:39:32 2019 > > New Revision: 351253 > > URL: https://svnweb.freebsd.org/changeset/base/351253 > > > > Log: > > Pull in r36886

svn commit: r351331 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 15:52:10 2019 New Revision: 351331 URL: https://svnweb.freebsd.org/changeset/base/351331 Log: Don't requeue active pages in vm_swapout_object_deactivate_pages(). As of r332974 the page daemon does not requeue pages during a scan of the active queue, so there

svn commit: r351330 - head/sbin/ping

2019-08-21 Thread Alan Somers
Author: asomers Date: Wed Aug 21 14:52:12 2019 New Revision: 351330 URL: https://svnweb.freebsd.org/changeset/base/351330 Log: ping: do reverse DNS lookup of the target address When printing replies, ping will now attempt a reverse DNS lookup of the target. That can be suppressed by usin

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Tijl Coosemans
On Wed, 21 Aug 2019 15:07:56 +0200 Dimitry Andric wrote: > On 21 Aug 2019, at 14:49, Tijl Coosemans wrote: >> On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric >> wrote: >>> Author: dim >>> Date: Tue Aug 20 17:39:32 2019 >>> New Revision: 351253 >>> URL: https://svnweb.freebsd.org/changes

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Dimitry Andric
On 21 Aug 2019, at 14:49, Tijl Coosemans wrote: > > On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric > wrote: >> Author: dim >> Date: Tue Aug 20 17:39:32 2019 >> New Revision: 351253 >> URL: https://svnweb.freebsd.org/changeset/base/351253 >> >> Log: >> Pull in r368867 from upstream libc

Re: svn commit: r351253 - in head/contrib/libc++: include src

2019-08-21 Thread Tijl Coosemans
On Tue, 20 Aug 2019 17:39:33 + (UTC) Dimitry Andric wrote: > Author: dim > Date: Tue Aug 20 17:39:32 2019 > New Revision: 351253 > URL: https://svnweb.freebsd.org/changeset/base/351253 > > Log: > Pull in r368867 from upstream libc++ trunk (by Marshall Clow): > > Rework recursive_time

svn commit: r351329 - head/usr.bin/gprof

2019-08-21 Thread Bjoern A. Zeeb
Author: bz Date: Wed Aug 21 10:54:52 2019 New Revision: 351329 URL: https://svnweb.freebsd.org/changeset/base/351329 Log: gprof: disable building of a.out components On arm64, riscv, and s390x disable building of aout components. This allows gprof to build on these architectures which nev

svn commit: r351328 - head/sys/netinet/tcp_stacks

2019-08-21 Thread Randall Stewart
Author: rrs Date: Wed Aug 21 10:45:28 2019 New Revision: 351328 URL: https://svnweb.freebsd.org/changeset/base/351328 Log: Fix an issue when TSO and Rack play together. Basically an retransmission of the initial SYN (with data) would cause us to strip the SYN and decrement/increase offset/le

svn commit: r351327 - head/sys/contrib/dev/ath/ath_hal/ar9300

2019-08-21 Thread Bjoern A. Zeeb
Author: bz Date: Wed Aug 21 10:42:31 2019 New Revision: 351327 URL: https://svnweb.freebsd.org/changeset/base/351327 Log: athhal: disable unused function (big endian only) Disable ar9300_swap_tx_desc() for the moment. It is an unused function only tried to compile on big endian systems.

svn commit: r351326 - head/sys/netgraph/bluetooth/drivers/ubt

2019-08-21 Thread Xin LI
Author: delphij Date: Wed Aug 21 08:15:30 2019 New Revision: 351326 URL: https://svnweb.freebsd.org/changeset/base/351326 Log: Use MTX_NEW instead of bzero(). Submitted by: cem Modified: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c Modified: head/sys/netgraph/bluetooth/drivers/ubt/n

svn commit: r351325 - head/sys/dev/sound/pci/hda

2019-08-21 Thread Xin LI
Author: delphij Date: Wed Aug 21 08:01:43 2019 New Revision: 351325 URL: https://svnweb.freebsd.org/changeset/base/351325 Log: Fix sound on headset jack for ThinkPad T51. Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c =

Re: svn commit: r351324 - head/sys/netgraph/bluetooth/drivers/ubt

2019-08-21 Thread Conrad Meyer
Hi Xin Li, On Wed, Aug 21, 2019 at 12:45 AM Xin LI wrote: > URL: https://svnweb.freebsd.org/changeset/base/351324 > > Log: > The 'mtx' is on stack and can contain garbages that would cause mtx_init > (and in turn lock_init) to think that the mutex was already initialized. > > --- head/sys/net

svn commit: r351324 - head/sys/netgraph/bluetooth/drivers/ubt

2019-08-21 Thread Xin LI
Author: delphij Date: Wed Aug 21 07:45:39 2019 New Revision: 351324 URL: https://svnweb.freebsd.org/changeset/base/351324 Log: Fix a panic in ubt_do_hci_request. The 'mtx' is on stack and can contain garbages that would cause mtx_init (and in turn lock_init) to think that the mutex was al