Re: svn commit: r363891 - head/sys/kern

2020-08-05 Thread Don Lewis
On 5 Aug, Mateusz Guzik wrote: > Author: mjg > Date: Wed Aug 5 09:24:38 2020 > New Revision: 363891 > URL: https://svnweb.freebsd.org/changeset/base/363891 > > Log: > cache: reduce zone alignment to 8 bytes > > It used to be sizeof of the given struct to accomodate for 32 bit mips > doi

svn commit: r363658 - stable/12

2020-07-28 Thread Don Lewis
Author: truckman Date: Wed Jul 29 04:36:45 2020 New Revision: 363658 URL: https://svnweb.freebsd.org/changeset/base/363658 Log: Make lex a bootstrap tool when cross-building on recent 13-CURRENT if binutils/ld is going to be built. The latter is no longer true by default. The import of f

svn commit: r363653 - stable/11

2020-07-28 Thread Don Lewis
Author: truckman Date: Tue Jul 28 19:35:24 2020 New Revision: 363653 URL: https://svnweb.freebsd.org/changeset/base/363653 Log: Make lex a bootstrap tool when cross-building on recent 13-CURRENT. The import of flex 2.6.4 into -CURRENT changed the type of yy_n_chars in the lex skeleton fro

svn commit: r363536 - in stable/11: libexec/ftpd usr.bin/localedef usr.sbin/rrenumd

2020-07-25 Thread Don Lewis
Author: truckman Date: Sat Jul 25 23:08:51 2020 New Revision: 363536 URL: https://svnweb.freebsd.org/changeset/base/363536 Log: MFC r362569 (by jkim): Fix build with recent byacc. S3curity: Modified: stable/11/libexec/ftpd/ftpcmd.y stable/11/usr.bin/localedef/localedef.c sta

svn commit: r363535 - in stable/12: libexec/ftpd usr.bin/localedef usr.sbin/rrenumd

2020-07-25 Thread Don Lewis
Author: truckman Date: Sat Jul 25 23:06:47 2020 New Revision: 363535 URL: https://svnweb.freebsd.org/changeset/base/363535 Log: MFC r362569 (by jkim): Fix build with recent byacc. Modified: stable/12/libexec/ftpd/ftpcmd.y stable/12/usr.bin/localedef/localedef.c stable/12/usr.bin/

Re: svn commit: r357407 - head

2020-02-04 Thread Don Lewis
On 2 Feb, Warner Losh wrote: > Author: imp > Date: Sun Feb 2 11:37:27 2020 > New Revision: 357407 > URL: https://svnweb.freebsd.org/changeset/base/357407 > > Log: > Per the firm plan, start to remove sparc64 > > The sparc64 architecture is being removed from FreeBSD 13, starting > now.

svn commit: r357133 - stable/11/sbin/swapon

2020-01-25 Thread Don Lewis
Author: truckman Date: Sun Jan 26 01:45:22 2020 New Revision: 357133 URL: https://svnweb.freebsd.org/changeset/base/357133 Log: MFC r33 Fix a logic bug in error handling code. It is an error if p == NULL. The linelen tests are only meaningful when p != NULL. Reported by: Coveri

svn commit: r357132 - stable/12/sbin/swapon

2020-01-25 Thread Don Lewis
Author: truckman Date: Sun Jan 26 01:42:47 2020 New Revision: 357132 URL: https://svnweb.freebsd.org/changeset/base/357132 Log: MFC r33 Fix a logic bug in error handling code. It is an error if p == NULL. The linelen tests are only meaningful when p != NULL. Reported by: Coveri

svn commit: r355553 - head/sbin/swapon

2019-12-08 Thread Don Lewis
Author: truckman Date: Mon Dec 9 07:18:40 2019 New Revision: 33 URL: https://svnweb.freebsd.org/changeset/base/33 Log: Fix a logic bug in error handling code. It is an error if p == NULL. The linelen tests are only meaningful when p != NULL. Reported by: Coverity Coverity CID

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: r339293 - stable/11/sys/net

2018-10-10 Thread Don Lewis
On 10 Oct, John Baldwin wrote: > Author: jhb > Date: Wed Oct 10 21:28:04 2018 > New Revision: 339293 > URL: https://svnweb.freebsd.org/changeset/base/339293 > > Log: > Disable the KASSERT for curcpu == 0 in netisr for EARLY_AP_STARTUP. > > In the EARLY_AP_STARTUP case, thread0 can migrate t

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

2018-08-11 Thread Don Lewis
Author: truckman Date: Sun Aug 12 03:22:28 2018 New Revision: 337678 URL: https://svnweb.freebsd.org/changeset/base/337678 Log: MFC r336855 Fix the long term ULE load balancer so that it actually works. The initial call to sched_balance() during startup is meant to initialize balance_t

Re: svn commit: r336859 - head/sbin/init/rc.d

2018-07-29 Thread Don Lewis
On 29 Jul, Ian Lepore wrote: > On Sun, 2018-07-29 at 09:59 -0700, Don Lewis wrote: >> On 29 Jul, Ian Lepore wrote: >> > On Sun, 2018-07-29 at 05:42 +, Don Lewis wrote: >> >> Author: truckman >> >> Date: Sun Jul 29 05:42:07 2018 >> >> New

Re: svn commit: r336859 - head/sbin/init/rc.d

2018-07-29 Thread Don Lewis
On 29 Jul, Ian Lepore wrote: > On Sun, 2018-07-29 at 05:42 +0000, Don Lewis wrote: >> Author: truckman >> Date: Sun Jul 29 05:42:07 2018 >> New Revision: 336859 >> URL: https://svnweb.freebsd.org/changeset/base/336859 >> >> Log: >>   Fix a variable

svn commit: r336859 - head/sbin/init/rc.d

2018-07-28 Thread Don Lewis
Author: truckman Date: Sun Jul 29 05:42:07 2018 New Revision: 336859 URL: https://svnweb.freebsd.org/changeset/base/336859 Log: Fix a variable name typo in r336845 that prevented the rc.d scripts from being installed in the correct directory. Resurrect a few rc.d scripts that were prematu

svn commit: r336855 - head/sys/kern

2018-07-28 Thread Don Lewis
Author: truckman Date: Sun Jul 29 00:30:06 2018 New Revision: 336855 URL: https://svnweb.freebsd.org/changeset/base/336855 Log: Fix the long term ULE load balancer so that it actually works. The initial call to sched_balance() during startup is meant to initialize balance_ticks, but does no

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

2018-07-06 Thread Don Lewis
On 7 Jul, Alexey Dokuchaev wrote: > On Fri, Jul 06, 2018 at 05:06:03PM -0700, Don Lewis wrote: >> The other machine is my Pentium-M laptop, which is mostly used for light >> browsing and as a VNC client when I'm on the road. Performance is >> acceptable for thos

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

2018-07-06 Thread Don Lewis
On 6 Jul, Warner Losh wrote: > On Fri, Jul 6, 2018 at 6:06 PM, Don Lewis wrote: > >> On 6 Jul, Warner Losh wrote: >> > On Fri, Jul 6, 2018 at 9:32 AM, Rodney W. Grimes < >> > free...@pdx.rh.cn85.dnsmgr.net> wrote: >> > >> >> > Author:

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

2018-07-06 Thread Don Lewis
On 6 Jul, Warner Losh wrote: > On Fri, Jul 6, 2018 at 9:32 AM, Rodney W. Grimes < > free...@pdx.rh.cn85.dnsmgr.net> wrote: > >> > Author: hselasky >> > Date: Fri Jul 6 10:13:42 2018 >> > New Revision: 336025 >> > URL: https://svnweb.freebsd.org/changeset/base/336025 >> > >> > Log: >> > Make su

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Don Lewis
On 2 Jun, Rodney W. Grimes wrote: >> Author: eadler >> Date: Sat Jun 2 22:06:27 2018 >> New Revision: 334543 >> URL: https://svnweb.freebsd.org/changeset/base/334543 >> >> Log: >> top(1): chdir to / as init; remove unneeded comment >> >> - chdir to / to allow unmounting of wd >> - remov

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

2018-03-25 Thread Don Lewis
Author: truckman Date: Mon Mar 26 04:41:23 2018 New Revision: 331541 URL: https://svnweb.freebsd.org/changeset/base/331541 Log: MFC r329844 MFC r329875 (by kib) r329844 | truckman | 2018-02-22 16:12:51 -0800 (Thu, 22 Feb 2018) | 52 lines Decrease latency by not wrapping the idle loop

Re: svn commit: r329875 - head/sys/kern

2018-02-23 Thread Don Lewis
On 23 Feb, Rick Macklem wrote: > Konstantin Belousov wrote: >>Author: kib >>Date: Fri Feb 23 18:26:31 2018 >>New Revision: 329875 >>URL: https://svnweb.freebsd.org/changeset/base/329875 >> >>Log: >> Restore UP build. >> >> Reviewed by: truckman >> Sponsored by: The FreeBSD Foundation >> >>Modif

svn commit: r329844 - head/sys/kern

2018-02-22 Thread Don Lewis
Author: truckman Date: Fri Feb 23 00:12:51 2018 New Revision: 329844 URL: https://svnweb.freebsd.org/changeset/base/329844 Log: Decrease latency by not wrapping the idle loop's potentially lengthy search for a thread to steal inside a critical section. Since this allows the search to be pre

svn commit: r329767 - in stable/11: share/man/man4 stand/forth sys/amd64/conf sys/conf sys/dev/amdsmn sys/dev/amdtemp sys/modules sys/modules/amdsmn

2018-02-21 Thread Don Lewis
Author: truckman Date: Thu Feb 22 00:36:12 2018 New Revision: 329767 URL: https://svnweb.freebsd.org/changeset/base/329767 Log: MFC r323067, r323184, r323185, r323195, r323196 (by cem) r323067 | cem | 2017-08-31 11:3

Re: svn commit: r328159 - head/sys/modules

2018-01-19 Thread Don Lewis
On 19 Jan, Conrad Meyer wrote: > On Fri, Jan 19, 2018 at 9:37 AM, Rodney W. Grimes > wrote: >> If you think in assembler it is easy to understand why this is UB, >> most (all) architectures Right Logic or Arithmetic Shift only accept an >> operand that is a size that can hold log2(wordsize). > >

Re: svn commit: r328159 - head/sys/modules

2018-01-19 Thread Don Lewis
On 19 Jan, David Chisnall wrote: > On 19 Jan 2018, at 05:07, Conrad Meyer wrote: >> >> The spec says the behavior is undefined; not that the compiler has to >> produce a warning or error message. The compiler *does* get to >> arbitrarily decide what it wants to do when it encounters UB. It is >

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Don Lewis
On 12 Dec, Eugene Grosbein wrote: > Now I run FreeBSD 11/i386 as my home router with IPSEC and torrent > client, and I run several virtualized routers with IPSEC tunnels, > jabber and mail server, squid and ZFS for src/obj/ports compression > and they all easily crash unless kern.kstack_pages rais

Re: svn commit: r326376 - head/sys/kern

2017-11-29 Thread Don Lewis
On 29 Nov, Cy Schubert wrote: > In message <201711292328.vatnseom046...@repo.freebsd.org>, Hans Petter > Selasky > writes: >> Author: hselasky >> Date: Wed Nov 29 23:28:40 2017 >> New Revision: 326376 >> URL: https://svnweb.freebsd.org/changeset/base/326376 >> >> Log: >> The sched_add() function

svn commit: r325731 - stable/10/sys/netpfil/ipfw

2017-11-11 Thread Don Lewis
Author: truckman Date: Sun Nov 12 01:28:20 2017 New Revision: 325731 URL: https://svnweb.freebsd.org/changeset/base/325731 Log: MFC r325008 Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / fq_pie schedulers packet classification functions in layer2 (bridge mode). Du

svn commit: r325730 - stable/11/sys/netpfil/ipfw

2017-11-11 Thread Don Lewis
Author: truckman Date: Sun Nov 12 01:26:43 2017 New Revision: 325730 URL: https://svnweb.freebsd.org/changeset/base/325730 Log: MFC r325008 Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / fq_pie schedulers packet classification functions in layer2 (bridge mode). Du

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

2017-11-04 Thread Don Lewis
On 4 Nov, Bryan Drewery wrote: > On 11/4/2017 3:30 PM, Cy Schubert wrote: >> In message <0fc7e918-dcf8-0197-6b50-5936dee23...@freebsd.org>, Bryan >> Drewery wr >> ites: >>> This is an OpenPGP/MIME signed message (RFC 4880 and 3156) >>> --dokLDw6wDnv1gUfKm3uwMSMnWeibN2RaD >>> Content-Type: multipa

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

2017-10-26 Thread Don Lewis
Author: truckman Date: Thu Oct 26 10:11:35 2017 New Revision: 325008 URL: https://svnweb.freebsd.org/changeset/base/325008 Log: Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / fq_pie schedulers packet classification functions in layer2 (bridge mode). Dummynet AQM packet

Re: svn commit: r324313 - head/sys/amd64/amd64

2017-10-08 Thread Don Lewis
On 8 Oct, Konstantin Belousov wrote: > On Sat, Oct 07, 2017 at 01:54:05PM -0700, Don Lewis wrote: >> On 7 Oct, Konstantin Belousov wrote: >> > On Sat, Oct 07, 2017 at 01:04:09PM -0700, Don Lewis wrote: >> >> On 5 Oct, Konstantin Belousov wrote: >> >> &g

Re: svn commit: r324313 - head/sys/amd64/amd64

2017-10-07 Thread Don Lewis
On 7 Oct, Konstantin Belousov wrote: > On Sat, Oct 07, 2017 at 01:04:09PM -0700, Don Lewis wrote: >> On 5 Oct, Konstantin Belousov wrote: >> > Author: kib >> > Date: Thu Oct 5 12:50:03 2017 >> > New Revision: 324313 >> > URL: https://svnweb.fre

Re: svn commit: r324313 - head/sys/amd64/amd64

2017-10-07 Thread Don Lewis
On 5 Oct, Konstantin Belousov wrote: > Author: kib > Date: Thu Oct 5 12:50:03 2017 > New Revision: 324313 > URL: https://svnweb.freebsd.org/changeset/base/324313 > > Log: > Avoid a race betweem freeing LDT and context switches. > > cpu_switch.S uses curproc->p_md.md_ldt value as the flag

svn commit: r322569 - in stable/11/sys/amd64: amd64 include linux

2017-08-16 Thread Don Lewis
Author: truckman Date: Wed Aug 16 07:59:57 2017 New Revision: 322569 URL: https://svnweb.freebsd.org/changeset/base/322569 Log: MFC r321899 Lower the amd64 shared page, which contains the signal trampoline, from the top of user memory to one page lower on machines with the Ryzen (AMD Fa

svn commit: r321899 - in head/sys/amd64: amd64 include linux

2017-08-01 Thread Don Lewis
Author: truckman Date: Wed Aug 2 01:43:35 2017 New Revision: 321899 URL: https://svnweb.freebsd.org/changeset/base/321899 Log: Lower the amd64 shared page, which contains the signal trampoline, from the top of user memory to one page lower on machines with the Ryzen (AMD Family 17h) CPU. T

Re: svn commit: r318441 - in head/etc: . cron.d

2017-06-05 Thread Don Lewis
On 3 Jun, Rodney W. Grimes wrote: > As far as fixing the builds for optional stuff that is rather > easily done in the Makefile with some if's to build a list of > files that can then be catted to conf.foo, using m4 or even > cpp to pre process conf.foo.src, etc, several very easy ways > to solv

svn commit: r318905 - stable/10/sys/netpfil/ipfw

2017-05-25 Thread Don Lewis
Author: truckman Date: Thu May 25 22:41:34 2017 New Revision: 318905 URL: https://svnweb.freebsd.org/changeset/base/318905 Log: MFC r318527 Fix the queue delay estimation in PIE/FQ-PIE when the timestamp (TS) method is used. When packet timestamp is used, the "current_qdelay" keeps sto

svn commit: r318904 - stable/11/sys/netpfil/ipfw

2017-05-25 Thread Don Lewis
Author: truckman Date: Thu May 25 22:39:48 2017 New Revision: 318904 URL: https://svnweb.freebsd.org/changeset/base/318904 Log: MFC r318527 Fix the queue delay estimation in PIE/FQ-PIE when the timestamp (TS) method is used. When packet timestamp is used, the "current_qdelay" keeps sto

svn commit: r318886 - stable/10/sys/netpfil/ipfw

2017-05-25 Thread Don Lewis
Author: truckman Date: Thu May 25 17:23:26 2017 New Revision: 318886 URL: https://svnweb.freebsd.org/changeset/base/318886 Log: MFC r318511 The result of right shifting a negative signed value is implementation defined. On machines without arithmetic shift instructions, zero bits may b

svn commit: r318885 - stable/11/sys/netpfil/ipfw

2017-05-25 Thread Don Lewis
Author: truckman Date: Thu May 25 17:22:13 2017 New Revision: 318885 URL: https://svnweb.freebsd.org/changeset/base/318885 Log: MFC r318511 The result of right shifting a negative signed value is implementation defined. On machines without arithmetic shift instructions, zero bits may b

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

2017-05-19 Thread Don Lewis
Author: truckman Date: Fri May 19 08:38:03 2017 New Revision: 318527 URL: https://svnweb.freebsd.org/changeset/base/318527 Log: Fix the queue delay estimation in PIE/FQ-PIE when the timestamp (TS) method is used. When packet timestamp is used, the "current_qdelay" keeps storing the last que

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

2017-05-18 Thread Don Lewis
Author: truckman Date: Fri May 19 01:23:06 2017 New Revision: 318511 URL: https://svnweb.freebsd.org/changeset/base/318511 Log: The result of right shifting a negative signed value is implementation defined. On machines without arithmetic shift instructions, zero bits may be shifted in from

svn commit: r317489 - stable/10/sys/netpfil/ipfw

2017-04-27 Thread Don Lewis
Author: truckman Date: Thu Apr 27 07:32:07 2017 New Revision: 317489 URL: https://svnweb.freebsd.org/changeset/base/317489 Log: MFC r316777 (by cem) dummynet: Use strlcpy to appease static checkers Some dummynet modules used strcpy() to copy from a larger buffer (dn_aqm->name) to a s

svn commit: r317488 - stable/11/sys/netpfil/ipfw

2017-04-27 Thread Don Lewis
Author: truckman Date: Thu Apr 27 07:30:48 2017 New Revision: 317488 URL: https://svnweb.freebsd.org/changeset/base/317488 Log: MFC r316777 (by cem) dummynet: Use strlcpy to appease static checkers Some dummynet modules used strcpy() to copy from a larger buffer (dn_aqm->name) to a s

svn commit: r316325 - stable/10/sys/netpfil/ipfw

2017-03-30 Thread Don Lewis
Author: truckman Date: Fri Mar 31 06:33:20 2017 New Revision: 316325 URL: https://svnweb.freebsd.org/changeset/base/316325 Log: MFC r315516 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 promot

svn commit: r316324 - stable/11/sys/netpfil/ipfw

2017-03-30 Thread Don Lewis
Author: truckman Date: Fri Mar 31 06:20:06 2017 New Revision: 316324 URL: https://svnweb.freebsd.org/changeset/base/316324 Log: MFC r315516 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 promot

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 ca

Re: svn commit: r285050 - in head: lib/libutil usr.sbin/pwd_mkdb

2016-10-13 Thread Don Lewis
On 13 Oct, Alan Somers wrote: > On Thu, Jul 2, 2015 at 11:31 AM, Renato Botelho wrote: >> Author: garga (ports committer) >> Date: Thu Jul 2 17:30:59 2015 >> New Revision: 285050 >> URL: https://svnweb.freebsd.org/changeset/base/285050 >> >> Log: >> When passwd or group information is changed (

svn commit: r302987 - stable/10/sys/netpfil/ipfw

2016-07-17 Thread Don Lewis
Author: truckman Date: Mon Jul 18 06:09:52 2016 New Revision: 302987 URL: https://svnweb.freebsd.org/changeset/base/302987 Log: MFC r302667 Fix problems in the FQ-PIE AQM cleanup code that could leak memory or cause a crash. Because dummynet calls pie_cleanup() while holding a mutex,

svn commit: r302927 - stable/11/sys/netpfil/ipfw

2016-07-15 Thread Don Lewis
Author: truckman Date: Sat Jul 16 06:41:02 2016 New Revision: 302927 URL: https://svnweb.freebsd.org/changeset/base/302927 Log: MFC r302667 Fix problems in the FQ-PIE AQM cleanup code that could leak memory or cause a crash. Because dummynet calls pie_cleanup() while holding a mutex,

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

2016-07-12 Thread Don Lewis
Author: truckman Date: Tue Jul 12 17:32:40 2016 New Revision: 302667 URL: https://svnweb.freebsd.org/changeset/base/302667 Log: Fix problems in the FQ-PIE AQM cleanup code that could leak memory or cause a crash. Because dummynet calls pie_cleanup() while holding a mutex, pie_cleanup()

svn commit: r302422 - stable/10/sys/netpfil/ipfw

2016-07-07 Thread Don Lewis
Author: truckman Date: Fri Jul 8 02:52:39 2016 New Revision: 302422 URL: https://svnweb.freebsd.org/changeset/base/302422 Log: MFC r302338 Fix a race condition between the main thread in aqm_pie_cleanup() and the callout thread that can cause a kernel panic. Always do the final cleanup

svn commit: r302377 - in stable/10: lib/libcam sbin/camcontrol sbin/iscontrol sys/cam usr.sbin/camdd usr.sbin/mptutil

2016-07-06 Thread Don Lewis
Author: truckman Date: Wed Jul 6 17:45:38 2016 New Revision: 302377 URL: https://svnweb.freebsd.org/changeset/base/302377 Log: MFC r300547 Fix multiple Coverity Out-of-bounds access false postive issues in CAM The currently used idiom for clearing the part of a ccb after its header

svn commit: r302376 - in stable/10: sbin/camcontrol sys/cam sys/cam/scsi

2016-07-06 Thread Don Lewis
Author: truckman Date: Wed Jul 6 17:42:09 2016 New Revision: 302376 URL: https://svnweb.freebsd.org/changeset/base/302376 Log: MFC r299371 (by trasz) Add "camcontrol reprobe" subcommand, and implement it for da(4). This makes it possible to manually force updating capacity data after t

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

2016-07-04 Thread Don Lewis
Author: truckman Date: Tue Jul 5 00:53:01 2016 New Revision: 302338 URL: https://svnweb.freebsd.org/changeset/base/302338 Log: Fix a race condition between the main thread in aqm_pie_cleanup() and the callout thread that can cause a kernel panic. Always do the final cleanup in the callout

svn commit: r302032 - stable/10/sys/netinet

2016-06-20 Thread Don Lewis
Author: truckman Date: Mon Jun 20 19:00:47 2016 New Revision: 302032 URL: https://svnweb.freebsd.org/changeset/base/302032 Log: MFC r300240 Change net.inet.tcp.ecn.enable sysctl mib from a binary off/on control to a three way setting. 0 - Totally disable ECN. (no change) 1 - Enabl

svn commit: r301917 - stable/10/games/random

2016-06-14 Thread Don Lewis
Author: truckman Date: Wed Jun 15 06:27:43 2016 New Revision: 301917 URL: https://svnweb.freebsd.org/changeset/base/301917 Log: MFC r299484, r301574 r299484 | cem | 2016-05-11 15:04:28 -0700 (Wed, 11 May 2016) | 13 lines random(6): Fix double-close In the case where a file lacks a

svn commit: r301921 - stable/10/lib/libc/gen

2016-06-14 Thread Don Lewis
Author: truckman Date: Wed Jun 15 06:42:30 2016 New Revision: 301921 URL: https://svnweb.freebsd.org/changeset/base/301921 Log: MFC r301596 Don't leak olinep if malloc() fails. If malloc() fails to allocate linep, then free olinep (if it exists) before returning to avoid a memory lea

svn commit: r301920 - stable/10/lib/libc/resolv

2016-06-14 Thread Don Lewis
Author: truckman Date: Wed Jun 15 06:40:30 2016 New Revision: 301920 URL: https://svnweb.freebsd.org/changeset/base/301920 Log: MFC r301592 Don't leak addrinfo if ai->ai_addrlen <= minsiz test fails. If the ai->ai_addrlen <= minsiz test fails, then freeaddrinfo() does not get called

svn commit: r301919 - stable/10/bin/setfacl

2016-06-14 Thread Don Lewis
Author: truckman Date: Wed Jun 15 06:33:40 2016 New Revision: 301919 URL: https://svnweb.freebsd.org/changeset/base/301919 Log: MFC r301582 Explicitly NUL terminate the buffer filled by fread(). The fix in r300649 was not sufficient to convince Coverity that the buffer was NUL te

svn commit: r301772 - in stable/10: sbin/ipfw sys/conf sys/modules/dummynet sys/netinet sys/netpfil/ipfw

2016-06-09 Thread Don Lewis
Author: truckman Date: Fri Jun 10 00:00:25 2016 New Revision: 301772 URL: https://svnweb.freebsd.org/changeset/base/301772 Log: MFC r300779, r300781, r300783, r300784, r300949, r301162, r301180 r300779 | truckman | 2016-05-26 14:40:13 -0700 (Thu, 26 May 2016) | 64 lines Import Dummynet

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

2016-06-08 Thread Don Lewis
Author: truckman Date: Wed Jun 8 10:25:16 2016 New Revision: 301596 URL: https://svnweb.freebsd.org/changeset/base/301596 Log: Don't leak olinep if malloc() fails. If malloc() fails to allocate linep, then free olinep (if it exists) before returning to avoid a memory leak. Reported

svn commit: r301592 - head/lib/libc/resolv

2016-06-08 Thread Don Lewis
Author: truckman Date: Wed Jun 8 09:40:06 2016 New Revision: 301592 URL: https://svnweb.freebsd.org/changeset/base/301592 Log: Don't leak addrinfo if ai->ai_addrlen <= minsiz test fails. If the ai->ai_addrlen <= minsiz test fails, then freeaddrinfo() does not get called to free the memor

svn commit: r301582 - head/bin/setfacl

2016-06-07 Thread Don Lewis
Author: truckman Date: Wed Jun 8 05:32:39 2016 New Revision: 301582 URL: https://svnweb.freebsd.org/changeset/base/301582 Log: Explicitly NUL terminate the buffer filled by fread(). The fix in r300649 was not sufficient to convince Coverity that the buffer was NUL terminated, even with t

svn commit: r301574 - head/usr.bin/random

2016-06-07 Thread Don Lewis
Author: truckman Date: Wed Jun 8 02:14:05 2016 New Revision: 301574 URL: https://svnweb.freebsd.org/changeset/base/301574 Log: Fix a (false positive?) Argument cannot be negative coverity defect. Rather than guarding close(fd) with an fd >= 0 test and setting fd to -1 when it is closed t

svn commit: r301571 - stable/10/bin/sh

2016-06-07 Thread Don Lewis
Author: truckman Date: Wed Jun 8 01:17:22 2016 New Revision: 301571 URL: https://svnweb.freebsd.org/changeset/base/301571 Log: MFC r301139 The (i < PROMPTLEN - 1) test added by r300442 in the code for the default case of \c in the prompt format string is a no-op. We already passed thi

svn commit: r301557 - stable/10/usr.sbin/pw

2016-06-07 Thread Don Lewis
Author: truckman Date: Tue Jun 7 16:56:15 2016 New Revision: 301557 URL: https://svnweb.freebsd.org/changeset/base/301557 Log: MFC r300564 Fix CID 1006692 in /usr/sbin/pw pw_log() function and other fixes The length of the name returned from the $LOGNAME and $USER can be very long a

svn commit: r301556 - stable/10/sbin/ifconfig

2016-06-07 Thread Don Lewis
Author: truckman Date: Tue Jun 7 16:53:05 2016 New Revision: 301556 URL: https://svnweb.freebsd.org/changeset/base/301556 Log: MFC r299921 Add an assertion to catch a potential underflow in an array index calculation, though this should not happen in the current code. Reported by:

Re: svn commit: r301546 - head/release/doc/en_US.ISO8859-1/relnotes

2016-06-07 Thread Don Lewis
On 7 Jun, Steven Kreuzer wrote: > Author: skreuzer (doc,ports committer) > Date: Tue Jun 7 14:11:15 2016 > New Revision: 301546 > URL: https://svnweb.freebsd.org/changeset/base/301546 > > Log: > Document 300779, Dummynet AQM version 0.2.1 > > Approved by:re (gjb, implicit, relnote

svn commit: r301231 - in stable/10: sbin/ipfw sys/netinet sys/netpfil/ipfw

2016-06-02 Thread Don Lewis
Author: truckman Date: Fri Jun 3 00:48:50 2016 New Revision: 301231 URL: https://svnweb.freebsd.org/changeset/base/301231 Log: MFC r266941, r266955 Needed for anticipated dummynet AQM MFC next week. r266941 | hiren | 2014-06-01 00:28:24 -0700 (Sun, 01 Jun 2014) | 9 lines ECN mark

svn commit: r301178 - stable/10/games/fortune/unstr

2016-06-02 Thread Don Lewis
Author: truckman Date: Wed Jun 1 22:39:15 2016 New Revision: 301178 URL: https://svnweb.freebsd.org/changeset/base/301178 Log: MFC r300705 (compensating for fortune moving from games to usr.bin) Avoid buffer overflow when copying the input file name and appending .dat. Check the retur

svn commit: r301180 - head/sbin/ipfw

2016-06-02 Thread Don Lewis
Author: truckman Date: Thu Jun 2 00:42:15 2016 New Revision: 301180 URL: https://svnweb.freebsd.org/changeset/base/301180 Log: Belatedly bump .Dd date for Dummynet AQM import in r300779. Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8

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

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 20:04:24 2016 New Revision: 301162 URL: https://svnweb.freebsd.org/changeset/base/301162 Log: Replace constant expressions that contain multiplications by fractional floating point values with integer divides. This will eliminate any chance that the compile

svn commit: r301156 - stable/10/usr.sbin/tzsetup

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:57:56 2016 New Revision: 301156 URL: https://svnweb.freebsd.org/changeset/base/301156 Log: MFC r300706 Avoid buffer overflow or truncation when constructing path_zoneinfo_file. Reported by: Coverity CID: 1011160 Modified: stable/10/us

svn commit: r301155 - stable/10/bin/ed

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:47:34 2016 New Revision: 301155 URL: https://svnweb.freebsd.org/changeset/base/301155 Log: MFC r300692 Close the input FILE * in read_file() and the output FILE * in write_file() if read_stream() or write_stream() fails to avoid leaking the FILE.

svn commit: r301154 - stable/10/lib/libfetch

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:45:00 2016 New Revision: 301154 URL: https://svnweb.freebsd.org/changeset/base/301154 Log: MFC r300666 Call closedir() before returning from fetchListFile() to avoid a leak. Reported by: Coverity CID: 1016697 Modified: stable/10/lib/l

svn commit: r301153 - stable/10/lib/libfetch

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:43:04 2016 New Revision: 301153 URL: https://svnweb.freebsd.org/changeset/base/301153 Log: MFC r300665 Don't leak addrinfo in fetch_bind() Submitted by: Coverity CID: 1225038 Modified: stable/10/lib/libfetch/common.c Directory Properti

svn commit: r301152 - stable/10/lib/libcompat/4.3

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:41:00 2016 New Revision: 301152 URL: https://svnweb.freebsd.org/changeset/base/301152 Log: MFC r300664 Fix Coverity CID 978183 Resource leak in rexec(). Close the socket if connect() fails to avoid leaking it. Reported by: Coverity CID:

svn commit: r301151 - stable/10/lib/libc/gen

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:39:03 2016 New Revision: 301151 URL: https://svnweb.freebsd.org/changeset/base/301151 Log: MFC r300662 Fix Coverity CID 1016714 Resource leak in process_file_actions_entry() Don't leak a file descriptor of _dup2() fails (shouldn't happen). Repo

svn commit: r301150 - stable/10/lib/libc/gen

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:37:16 2016 New Revision: 301150 URL: https://svnweb.freebsd.org/changeset/base/301150 Log: MFC r300660 Fix 1016718 Resource leak. Don't leak a file descriptor if fchdir() fails. Reported by: Coverity CID: 1016718 Modified: stable

svn commit: r301149 - stable/10/bin/setfacl

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:35:03 2016 New Revision: 301149 URL: https://svnweb.freebsd.org/changeset/base/301149 Log: MFC r300649 Fix Coverity CID 1019054 (String not null terminated) in setfacl. Increase the size of buf[] by one to allow room for a NUL character at the end

svn commit: r301148 - stable/10/bin/ps

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:33:02 2016 New Revision: 301148 URL: https://svnweb.freebsd.org/changeset/base/301148 Log: MFC r300648 Fix CID 1011370 (Resource leak) in ps. There is no need to to call strdup() on the value returned by fmt(). The latter calls fmt_argv() which al

svn commit: r301147 - stable/10/bin/mv

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:30:50 2016 New Revision: 301147 URL: https://svnweb.freebsd.org/changeset/base/301147 Log: MFC r300643 Close from_fd if malloc() fails to avoid a file descriptor leak. Reported by: Coverity CID: 1007203 Modified: stable/10/bin/mv/mv.c

svn commit: r301146 - stable/10/bin/sh

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:29:15 2016 New Revision: 301146 URL: https://svnweb.freebsd.org/changeset/base/301146 Log: MFC r300642 Match the descriptions of the \H and \h prompt string sequences to reality. They were swapped. X-Confirmed by: jilles Modified: stable/

svn commit: r301144 - stable/10/usr.sbin/ypserv

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:20:36 2016 New Revision: 301144 URL: https://svnweb.freebsd.org/changeset/base/301144 Log: MFC r300636 Delay calling yp_malloc_dnsent() until after some additional sanity checks to avoid leaking memory on error returns. Reported by: Coverity CI

svn commit: r301143 - stable/10/usr.sbin/ypserv

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:18:35 2016 New Revision: 301143 URL: https://svnweb.freebsd.org/changeset/base/301143 Log: MFC r300635 Call free(cur) if strdup(dirp->d_name) fails to avoid a memory leak. Reported by: Coverity CID: 1007414 Modified: stable/10/usr.sbi

svn commit: r301142 - stable/10/usr.sbin/acpi/acpidb

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:16:35 2016 New Revision: 301142 URL: https://svnweb.freebsd.org/changeset/base/301142 Log: MFC r300633 Fix acpidb CIDs 1011279 (Buffer not null terminated) and 978405 and 1199380 (Resource leak). load_dsdt() calls strncpy() to copy a filename and

svn commit: r301141 - stable/10/usr.sbin/acpi/acpidump

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:13:43 2016 New Revision: 301141 URL: https://svnweb.freebsd.org/changeset/base/301141 Log: MFC r300632 Fix acpidump CID 1011278 (Buffer not null terminated) and other issues Coverity reports that a buffer used for temporary file generation might n

svn commit: r301140 - stable/10/bin/sh

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 17:09:50 2016 New Revision: 301140 URL: https://svnweb.freebsd.org/changeset/base/301140 Log: MFC r300442 Hopefully fix Coverity CID 1008328 (Out-of-bounds write) in /bin/sh. Replace the magic constant 127 in the loop interation count with "PROMPTLEN

Re: svn commit: r301139 - head/bin/sh

2016-06-01 Thread Don Lewis
On 1 Jun, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Wed Jun 1 16:56:29 2016 > New Revision: 301139 > URL: https://svnweb.freebsd.org/changeset/base/301139 > > Log: > The (i < PROMPTLEN - 1) test added by r300442 in the code for the default > case of \c in the prompt fo

svn commit: r301139 - head/bin/sh

2016-06-01 Thread Don Lewis
Author: truckman Date: Wed Jun 1 16:56:29 2016 New Revision: 301139 URL: https://svnweb.freebsd.org/changeset/base/301139 Log: The (i < PROMPTLEN - 1) test added by r300442 in the code for the default case of \c in the prompt format string is a no-op. We already passed this test at the top

Re: svn commit: r300952 - head/usr.sbin/services_mkdb

2016-05-30 Thread Don Lewis
On 29 May, Alan Somers wrote: > On Sun, May 29, 2016 at 4:41 AM, Ed Schouten wrote: >> Author: ed >> Date: Sun May 29 10:41:27 2016 >> New Revision: 300952 >> URL: https://svnweb.freebsd.org/changeset/base/300952 >> >> Log: >> Invoke the dirname() function in a POSIX compliant way. >> >> POSIX

Re: svn commit: r300949 - head/sys/netpfil/ipfw

2016-05-30 Thread Don Lewis
On 29 May, Bruce Evans wrote: > On Sun, 29 May 2016, Don Lewis wrote: > >> Log: >> Cast some expressions that multiply a long long constant by a >> floating point constant to int64_t. This avoids the runtime >> conversion of the the other operand in a set of c

svn commit: r300950 - in head/sys: conf modules/dummynet

2016-05-29 Thread Don Lewis
Author: truckman Date: Sun May 29 07:29:35 2016 New Revision: 300950 URL: https://svnweb.freebsd.org/changeset/base/300950 Log: Now that PIE is free of runtime floating point, revert r300853 to reconnect PIE to the build. Modified: head/sys/conf/files head/sys/modules/dummynet/Makefile

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

2016-05-29 Thread Don Lewis
Author: truckman Date: Sun May 29 07:23:56 2016 New Revision: 300949 URL: https://svnweb.freebsd.org/changeset/base/300949 Log: Cast some expressions that multiply a long long constant by a floating point constant to int64_t. This avoids the runtime conversion of the the other operand in a

svn commit: r300853 - in head/sys: conf modules/dummynet

2016-05-27 Thread Don Lewis
Author: truckman Date: Fri May 27 17:07:07 2016 New Revision: 300853 URL: https://svnweb.freebsd.org/changeset/base/300853 Log: Disconnect PIE from the build until it is free of floating point math. Reported by: lidl, adrian Modified: head/sys/conf/files head/sys/modules/dummynet/Make

Re: svn commit: r300779 - in head: sbin/ipfw sys/modules/dummynet sys/netinet sys/netpfil/ipfw

2016-05-27 Thread Don Lewis
On 27 May, Adrian Chadd wrote: > Hi, > > Did this introduce floating point into the kernel? Cr*p, it did. It looks fixable, but I'll disconnect PIE from the build for now. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/lis

Re: svn commit: r300779 - in head: sbin/ipfw sys/modules/dummynet sys/netinet sys/netpfil/ipfw

2016-05-26 Thread Don Lewis
On 26 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Thu May 26 21:40:13 2016 > New Revision: 300779 > URL: https://svnweb.freebsd.org/changeset/base/300779 > > Log: > Import Dummynet AQM version 0.2.1 (CoDel, FQ-CoDel, PIE and FQ-PIE). > > Centre for Advanced Interne

  1   2   3   4   >