svn commit: r349288 - head/sys/ddb

2019-06-21 Thread Ryan Libby
Author: rlibby Date: Sat Jun 22 05:35:23 2019 New Revision: 349288 URL: https://svnweb.freebsd.org/changeset/base/349288 Log: ddb show proc typo Modified: head/sys/ddb/db_ps.c Modified: head/sys/ddb/db_ps.c == ---

svn commit: r349287 - head/sys/cam/scsi

2019-06-21 Thread Alexander Motin
Author: mav Date: Sat Jun 22 03:50:43 2019 New Revision: 349287 URL: https://svnweb.freebsd.org/changeset/base/349287 Log: Remove ancient SCSI-2/3 mentioning. MFC after:2 weeks Modified: head/sys/cam/scsi/scsi_enc.c head/sys/cam/scsi/scsi_enc_internal.h Modified:

svn commit: r349286 - in head: sbin/swapon share/man/man5

2019-06-21 Thread Doug Moore
Author: dougm Date: Sat Jun 22 03:16:01 2019 New Revision: 349286 URL: https://svnweb.freebsd.org/changeset/base/349286 Log: Modify swapon(8) to invoke BIO_DELETE to trim swap devices, either if '-E' appears on the swapon command line, or if "trimonce" appears as an fstab option.

svn commit: r349285 - head/sys/dev/virtio/scsi

2019-06-21 Thread Eric van Gyzen
Author: vangyzen Date: Sat Jun 22 01:20:45 2019 New Revision: 349285 URL: https://svnweb.freebsd.org/changeset/base/349285 Log: VirtIO SCSI: validate seg_max on attach Until r349278, bhyve presented a seg_max to the guest that was too large. Detect this case and clamp it to the

svn commit: r349284 - head/sys/cam/scsi

2019-06-21 Thread Alexander Motin
Author: mav Date: Sat Jun 22 01:06:41 2019 New Revision: 349284 URL: https://svnweb.freebsd.org/changeset/base/349284 Log: Make ELEMENT INDEX validation more strict. SES specifications tell: "The Additional Element Status descriptors shall be in the same order as the status elements in

Re: svn commit: r349256 - head/libexec/rc/rc.d

2019-06-21 Thread Rodney W. Grimes
> On 21 Jun, Xin LI wrote: > > > But ultimately, I think the real design question here that needs to be > > solved would probably be "Why are piling up multiple layers of workarounds > > around motd? Does it even need to be located in /etc?" The contents is > > meant to be updated every time

svn commit: r349283 - head/sys/cam

2019-06-21 Thread Scott Long
Author: scottl Date: Fri Jun 21 23:40:26 2019 New Revision: 349283 URL: https://svnweb.freebsd.org/changeset/base/349283 Log: Refactor xpt_getattr() to make it more readable. No outwardly visible functional changes, though code flow was modified a bit internally to lessen the need for goto

svn commit: r349281 - head/sys/cam/scsi

2019-06-21 Thread Alexander Motin
Author: mav Date: Fri Jun 21 23:29:16 2019 New Revision: 349281 URL: https://svnweb.freebsd.org/changeset/base/349281 Log: Fix individual_element_index when some type has 0 elements. When some type has 0 elements, saved_individual_element_index was set to -1 on second type bump, since

svn commit: r349280 - head/sys/sys

2019-06-21 Thread Alan Somers
Author: asomers Date: Fri Jun 21 21:50:14 2019 New Revision: 349280 URL: https://svnweb.freebsd.org/changeset/base/349280 Log: Reduce namespace pollution from r349233 Define __daddr_t in _types.h and use it in filio.h Reported by: ian, bde Reviewed by: ian, imp, cem MFC after:

Re: svn commit: r349256 - head/libexec/rc/rc.d

2019-06-21 Thread Don Lewis
On 21 Jun, Xin LI wrote: > But ultimately, I think the real design question here that needs to be > solved would probably be "Why are piling up multiple layers of workarounds > around motd? Does it even need to be located in /etc?" The contents is > meant to be updated every time when there is a

Re: svn commit: r349243 - head/sys/cam

2019-06-21 Thread Alexander Motin
On 21.06.2019 16:02, Scott Long wrote: > Hi Alexander, > > Thanks for the explanation, sorry I didn’t realize sooner that it’s > not used as a copyout buffer anymore. FWIW, that code is really > hard to read on an 80 column window, would you be ok if it was > refactored for better readability?

Re: svn commit: r349243 - head/sys/cam

2019-06-21 Thread Scott Long
Hi Alexander, Thanks for the explanation, sorry I didn’t realize sooner that it’s not used as a copyout buffer anymore. FWIW, that code is really hard to read on an 80 column window, would you be ok if it was refactored for better readability? Thanks, Scott > On Jun 20, 2019, at 6:04 PM,

Re: svn commit: r349256 - head/libexec/rc/rc.d

2019-06-21 Thread Enji Cooper
> On Jun 21, 2019, at 12:32, Xin LI wrote: > > >> On Thu, Jun 20, 2019 at 7:38 PM Conrad Meyer wrote: >> Author: cem >> Date: Fri Jun 21 02:37:54 2019 >> New Revision: 349256 >> URL: https://svnweb.freebsd.org/changeset/base/349256 >> >> Log: >> rc.d/motd: Update motd more robustly >> >>

Re: svn commit: r349256 - head/libexec/rc/rc.d

2019-06-21 Thread Xin LI
On Thu, Jun 20, 2019 at 7:38 PM Conrad Meyer wrote: > Author: cem > Date: Fri Jun 21 02:37:54 2019 > New Revision: 349256 > URL: https://svnweb.freebsd.org/changeset/base/349256 > > Log: > rc.d/motd: Update motd more robustly > > Use appropriate fsyncs to persist the rewritten /etc/motd

svn commit: r349278 - head/usr.sbin/bhyve

2019-06-21 Thread Eric van Gyzen
Author: vangyzen Date: Fri Jun 21 18:57:33 2019 New Revision: 349278 URL: https://svnweb.freebsd.org/changeset/base/349278 Log: bhyve: Fix vtscsi maximum segment config The seg_max value reported to the guest should be two less than the host's maximum, in order to leave room for the

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

2019-06-21 Thread Johannes Lundberg
Author: johalun Date: Fri Jun 21 18:48:07 2019 New Revision: 349277 URL: https://svnweb.freebsd.org/changeset/base/349277 Log: LinuxKPI: Additions to rcu list. - Add rcu list functions. - Make rcu hlist's foreach macro use rcu calls instead of the non-rcu macro. - Bump FreeBSD version

svn commit: r349276 - head/sys/compat/linuxkpi/common/include/asm

2019-06-21 Thread Johannes Lundberg
Author: johalun Date: Fri Jun 21 16:43:16 2019 New Revision: 349276 URL: https://svnweb.freebsd.org/changeset/base/349276 Log: LinuxKPI: Add atomic_long_sub macro. Reviewed by: imp (mentor), hps Approved by: imp (mentor), hps MFC after:1 week Differential Revision:

svn commit: r349275 - svnadmin/conf

2019-06-21 Thread Warner Losh
Author: imp Date: Fri Jun 21 16:02:26 2019 New Revision: 349275 URL: https://svnweb.freebsd.org/changeset/base/349275 Log: I forgot to add Johannes Lundberg to mentors when I added him to the access file. Fix that. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

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

2019-06-21 Thread Ian Lepore
Author: ian Date: Fri Jun 21 15:44:58 2019 New Revision: 349273 URL: https://svnweb.freebsd.org/changeset/base/349273 Log: Add pwm to the armv7 GENERIC kernel, it's now used by TI and Allwinner. Modified: head/sys/arm/conf/GENERIC Modified: head/sys/arm/conf/GENERIC

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

2019-06-21 Thread Ian Lepore
Author: ian Date: Fri Jun 21 15:12:17 2019 New Revision: 349272 URL: https://svnweb.freebsd.org/changeset/base/349272 Log: Do some general cleanup and light wordsmithing. Sort methods alphabetically. Wrap long lines. Start sentences on a new line. Remove contractions (not because it's

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

2019-06-21 Thread Ian Lepore
Author: ian Date: Fri Jun 21 14:46:43 2019 New Revision: 349271 URL: https://svnweb.freebsd.org/changeset/base/349271 Log: Catch up with recent changes in pwmbus(9). The pwm(9) and pwmbus(9) interfaces were unified into pwmbus(9), and the PWMBUS_CHANNEL_MAX method was renamed

svn commit: r349270 - head/sys/arm/ti/am335x

2019-06-21 Thread Ian Lepore
Author: ian Date: Fri Jun 21 14:24:33 2019 New Revision: 349270 URL: https://svnweb.freebsd.org/changeset/base/349270 Log: Add support for the PWM(9) API. This allows configuring the pwm output using pwm(9), but also maintains the historical sysctl config interface for compatiblity with

Re: svn commit: r346976 - head/usr.sbin/mountd

2019-06-21 Thread Harry Schmalzbauer
Am 30.04.2019 um 23:38 schrieb Alexander Motin: Author: mav Date: Tue Apr 30 21:38:38 2019 New Revision: 346976 URL: https://svnweb.freebsd.org/changeset/base/346976 Log: Respect quotes and escapes when splitting exports fields. Without this r293305 was still unable to handle names

svn commit: r349269 - head/sys/arm/ti/am335x

2019-06-21 Thread Ian Lepore
Author: ian Date: Fri Jun 21 14:01:02 2019 New Revision: 349269 URL: https://svnweb.freebsd.org/changeset/base/349269 Log: Some mundane tweaks and cleanups to help de-clutter the diffs of some upcoming functional changes. Add an ofw_compat_data table for probing compat strings, and use

Re: svn commit: r348882 - head/sys/dev/sdhci

2019-06-21 Thread Luiz Otavio O Souza
On Fri, 14 Jun 2019 at 05:25, Bjoern A. Zeeb wrote: > > On 10 Jun 2019, at 21:50, Luiz Otavio O Souza wrote: > > > Author: loos > > Date: Mon Jun 10 21:50:07 2019 > > New Revision: 348882 > > URL: https://svnweb.freebsd.org/changeset/base/348882 > > > > Log: > > Add support for the GPIO SD Card

svn commit: r349268 - head/sys/dev/nand

2019-06-21 Thread Ed Maste
Author: emaste Date: Fri Jun 21 13:42:40 2019 New Revision: 349268 URL: https://svnweb.freebsd.org/changeset/base/349268 Log: nandsim: correct test to avoid out-of-bounds access Previously nandsim_chip_status returned EINVAL iff both of user-provided chip->ctrl_num and chip->num were out

svn commit: r349267 - in head: sbin/ipfw sys/netinet sys/netpfil/ipfw

2019-06-21 Thread Andrey V. Elsukov
Author: ae Date: Fri Jun 21 10:54:51 2019 New Revision: 349267 URL: https://svnweb.freebsd.org/changeset/base/349267 Log: Add "tcpmss" opcode to match the TCP MSS value. With this opcode it is possible to match TCP packets with specified MSS option, whose value corresponds to configured

Re: svn commit: r349248 - in head/sys: fs/fifofs kern sys

2019-06-21 Thread Bruce Evans
On Thu, 20 Jun 2019, Alan Somers wrote: Log: fcntl: fix overflow when setting F_READAHEAD VOP_READ and VOP_WRITE take the seqcount in blocks in a 16-bit field. However, fcntl allows you to set the seqcount in bytes to any nonnegative 31-bit value. The result can be a 16-bit overflow, which

Re: svn commit: r349233 - head/sys/sys

2019-06-21 Thread Bruce Evans
On Thu, 20 Jun 2019, Warner Losh wrote: On Thu, Jun 20, 2019, 11:44 AM Bruce Evans wrote: On Thu, 20 Jun 2019, Alan Somers wrote: On Thu, Jun 20, 2019 at 10:43 AM Bruce Evans wrote: Summary: and the headers that it includes should declare minimal types to compile (so __int64_t is

svn commit: r349266 - head/sys/netinet

2019-06-21 Thread Kristof Provost
Author: kp Date: Fri Jun 21 07:58:08 2019 New Revision: 349266 URL: https://svnweb.freebsd.org/changeset/base/349266 Log: ip_output: pass PFIL_FWD in the slow path If we take the slow path for forwarding we should still tell our firewalls (hooked through pfil(9)) that we're forwarding.

svn commit: r349265 - head/usr.sbin/bsnmpd/modules/snmp_lm75

2019-06-21 Thread Shteryana Shopova
Author: syrinx Date: Fri Jun 21 07:45:58 2019 New Revision: 349265 URL: https://svnweb.freebsd.org/changeset/base/349265 Log: No need for each bsnmpd(1) module to open connection to syslog bsnmpd(1) main does that early on init and the connection is available to all loaded modules

svn commit: r349264 - head/usr.sbin/bsnmpd/modules/snmp_pf

2019-06-21 Thread Shteryana Shopova
Author: syrinx Date: Fri Jun 21 07:29:02 2019 New Revision: 349264 URL: https://svnweb.freebsd.org/changeset/base/349264 Log: Unbreak snmp_pf(3) after the changes introduced in r338209 PR: 237011 Event:Vienna Hackathon 2019 MFC after:2 weeks Modified: