svn commit: r311378 - head/contrib/bsnmp/snmpd

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 07:55:17 2017 New Revision: 311378 URL: https://svnweb.freebsd.org/changeset/base/311378 Log: lm_load: fix string copying issues - Ensure `section` doesn't overrun section by using strlcpy instead of strcpy [*]. - Use strdup instead of malloc + strcpy (th

svn commit: r311377 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 07:46:57 2017 New Revision: 311377 URL: https://svnweb.freebsd.org/changeset/base/311377 Log: Redo fix for CID 979581 The previous change was flawed in terms of how it calculated the buffer length for the sockaddr_un object. Use SUN_LEN where appropriate an

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Ngie Cooper (yaneurabeya)
> On Jan 4, 2017, at 22:29, Ngie Cooper wrote: > > >> On Jan 4, 2017, at 15:45, Juli Mallett wrote: >> >>> On Wed, Jan 4, 2017 at 3:36 PM, Jilles Tjoelker wrote: On Wed, Jan 04, 2017 at 02:46:36AM +, Ngie Cooper wrote: - Initialize .sun_len before passing it to strlcpy and bind

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Ngie Cooper
> On Jan 4, 2017, at 15:36, Jilles Tjoelker wrote: ... > It would be better to avoid naming the non-portable sun_len field if it > is just to make Coverity happy. I suggest initializing the structure > with designated initializers or memset(). > > Apart from that, the value for sun_len is wron

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Ngie Cooper
> On Jan 4, 2017, at 15:45, Juli Mallett wrote: > >> On Wed, Jan 4, 2017 at 3:36 PM, Jilles Tjoelker wrote: >>> On Wed, Jan 04, 2017 at 02:46:36AM +, Ngie Cooper wrote: >>> - Initialize .sun_len before passing it to strlcpy and bind. >> It would be better to avoid naming the non-portable s

svn commit: r311363 - head/sys/net80211

2017-01-04 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 05:03:11 2017 New Revision: 311363 URL: https://svnweb.freebsd.org/changeset/base/311363 Log: [net80211] correct VHT ieee80211com state bits. * rename the ieee80211com field for vht mcsinfo to be ic_, not iv; * add a vht config field, stealing from the spar

svn commit: r311361 - head/sys/dev/ath/ath_hal

2017-01-04 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 04:56:04 2017 New Revision: 311361 URL: https://svnweb.freebsd.org/changeset/base/311361 Log: [ath_hal] mad, mad hacks to get some semblence of correct HT/40 channels populated. The HT40 channel population logic was "just" doing pairs of channels starting w

svn commit: r311360 - head/sys/net

2017-01-04 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 04:49:23 2017 New Revision: 311360 URL: https://svnweb.freebsd.org/changeset/base/311360 Log: [net80211] add VHT media types in the media layer. Modified: head/sys/net/if_media.h Modified: head/sys/net/if_media.h ===

svn commit: r311354 - head/usr.sbin/inetd

2017-01-04 Thread Hiroki Sato
Author: hrs Date: Thu Jan 5 03:25:16 2017 New Revision: 311354 URL: https://svnweb.freebsd.org/changeset/base/311354 Log: Fix build when WITHOUT_INET6 is defined. Modified: head/usr.sbin/inetd/inetd.c Modified: head/usr.sbin/inetd/inetd.c

svn commit: r311352 - head/sys/vm

2017-01-04 Thread Mark Johnston
Author: markj Date: Thu Jan 5 03:13:45 2017 New Revision: 311352 URL: https://svnweb.freebsd.org/changeset/base/311352 Log: Remove a redundant use of min(). Reported by: rpokala X-MFC With: r311346 Modified: head/sys/vm/vm_init.c Modified: head/sys/vm/vm_init.c ===

Notification status of your delivery (USPS 8230681)

2017-01-04 Thread USPS TechConnect
Dear Customer, Your item has arrived at the USPS Post Office at January 03, but the courier was unable to deliver parcel to you. Please review delivery label in attachment! Most sincerely, Roger Kane, USPS Parcels Delivery Agent. ___ svn-src-head@fre

svn commit: r311351 - in head/sys/dev: aha ahb aic ciss dpt firewire mly ncr nvme twa

2017-01-04 Thread Ravi Pokala
Author: rpokala Date: Thu Jan 5 03:08:57 2017 New Revision: 311351 URL: https://svnweb.freebsd.org/changeset/base/311351 Log: In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ in several more drivers. Sponsored by: Panasas Modified: head/sys/dev/aha/aha.c head/

svn commit: r311350 - head/sys/dev/advansys

2017-01-04 Thread Ravi Pokala
Author: rpokala Date: Thu Jan 5 02:54:03 2017 New Revision: 311350 URL: https://svnweb.freebsd.org/changeset/base/311350 Log: Fix whitespace in handling of XPT_PATH_INQ in adw(4). Came across this while doing some other minor CAM cleanup. Whitespace-only change, so not bothering w/ a rev

svn commit: r311349 - head/etc/mtree

2017-01-04 Thread Alan Somers
Author: asomers Date: Thu Jan 5 02:47:56 2017 New Revision: 311349 URL: https://svnweb.freebsd.org/changeset/base/311349 Log: tabs -> spaces in etc/mtree MFC after:4 weeks Modified: head/etc/mtree/BSD.tests.dist head/etc/mtree/BSD.var.dist Modified: head/etc/mtree/BSD.tests.dist

svn commit: r311348 - head/lib/libproc

2017-01-04 Thread Mark Johnston
Author: markj Date: Thu Jan 5 02:33:10 2017 New Revision: 311348 URL: https://svnweb.freebsd.org/changeset/base/311348 Log: Add a reasonable bound on the symbol table index size. Modified: head/lib/libproc/proc_sym.c Modified: head/lib/libproc/proc_sym.c

svn commit: r311347 - in head/sys/dev/rtwn/rtl8192c: . pci usb

2017-01-04 Thread Kevin Lo
Author: kevlo Date: Thu Jan 5 02:04:53 2017 New Revision: 311347 URL: https://svnweb.freebsd.org/changeset/base/311347 Log: In rtl8188eu, read R92C_HSSI_PARAM2(0)) register to detect whether it needs to enable CCK high power feature or not. Reviewed by: avos Modified: head/sys/dev/rt

svn commit: r311346 - in head/sys: kern sys vm

2017-01-04 Thread Mark Johnston
Author: markj Date: Thu Jan 5 01:44:12 2017 New Revision: 311346 URL: https://svnweb.freebsd.org/changeset/base/311346 Log: Add a small allocator for exec_map entries. Upon each execve, we allocate a KVA range for use in copying data to the new image. Pages must be faulted into the range

svn commit: r311345 - head/sys/kern

2017-01-04 Thread Mark Johnston
Author: markj Date: Thu Jan 5 01:28:08 2017 New Revision: 311345 URL: https://svnweb.freebsd.org/changeset/base/311345 Log: Sort includes in kern_exec.c. MFC after:1 week Modified: head/sys/kern/kern_exec.c Modified: head/sys/kern/kern_exec.c ===

svn commit: r311343 - head/sys/mips/mips

2017-01-04 Thread John Baldwin
Author: jhb Date: Thu Jan 5 00:59:53 2017 New Revision: 311343 URL: https://svnweb.freebsd.org/changeset/base/311343 Log: Use db_printsym() to display function names in stack traces. Previously, the stack unwinder tried to locate the start of the function in each frame by walking backwar

svn commit: r311341 - in head/sys/mips: include mips

2017-01-04 Thread John Baldwin
Author: jhb Date: Thu Jan 5 00:08:04 2017 New Revision: 311341 URL: https://svnweb.freebsd.org/changeset/base/311341 Log: Only call stacktrace_subr() from DDB. There was a single call to stacktrace() under an #ifdef DEBUG to obtain a stack trace during a fault that resulted in a function

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Juli Mallett
On Wed, Jan 4, 2017 at 3:36 PM, Jilles Tjoelker wrote: > On Wed, Jan 04, 2017 at 02:46:36AM +, Ngie Cooper wrote: >> - Initialize .sun_len before passing it to strlcpy and bind. > It would be better to avoid naming the non-portable sun_len field if it > is just to make Coverity happy. I sugg

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Jilles Tjoelker
On Wed, Jan 04, 2017 at 02:46:36AM +, Ngie Cooper wrote: > Author: ngie > Date: Wed Jan 4 02:46:36 2017 > New Revision: 311233 > URL: https://svnweb.freebsd.org/changeset/base/311233 > Log: > Fix Coverity issues > - Initialize .sun_len before passing it to strlcpy and bind. > - Close f

svn commit: r311340 - head/usr.bin/tail

2017-01-04 Thread Alan Somers
Author: asomers Date: Wed Jan 4 23:22:34 2017 New Revision: 311340 URL: https://svnweb.freebsd.org/changeset/base/311340 Log: Misc Coverity fixes for tail(1) CID 1006402: Initialize stack variable CID 271580: Don't leak memory when ENOMEM. Reported by: Coverity CID: 2

svn commit: r311338 - head/sys/vm

2017-01-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 4 22:31:09 2017 New Revision: 311338 URL: https://svnweb.freebsd.org/changeset/base/311338 Log: Fix assertion that checks that pages are consecutive to properly handle bogus_page insertion(s). Modified: head/sys/vm/vnode_pager.c Modified: head/sys/vm/vnode_pa

svn commit: r311336 - in head/sys: dev/agp kern vm

2017-01-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 4 22:27:19 2017 New Revision: 311336 URL: https://svnweb.freebsd.org/changeset/base/311336 Log: Move bogus_page declaration to vm_page.h and initialization to vm_page.c. Reviewed by: kib Modified: head/sys/dev/agp/agp_i810.c head/sys/kern/kern_sendfile.c

Re: svn commit: r311305 - in head/sys: cam cam/ctl cam/scsi dev/aac dev/aacraid dev/advansys dev/aha dev/ahb dev/ahci dev/aic dev/aic7xxx dev/amr dev/arcmsr dev/ata dev/buslogic dev/ciss dev/dpt dev/e

2017-01-04 Thread Ngie Cooper
On Wed, Jan 4, 2017 at 12:26 PM, Alan Somers wrote: > Author: asomers > Date: Wed Jan 4 20:26:42 2017 > New Revision: 311305 > URL: https://svnweb.freebsd.org/changeset/base/311305 > > Log: > Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) > > The sim_vid, hba_vid, and dev_name f

svn commit: r311311 - head/tools/build/mk

2017-01-04 Thread Jung-uk Kim
Author: jkim Date: Wed Jan 4 21:55:52 2017 New Revision: 311311 URL: https://svnweb.freebsd.org/changeset/base/311311 Log: Remove llvm-objdump when Clang is disabled. It was missed in r310889. Submitted by: dim Modified: head/tools/build/mk/OptionalObsoleteFiles.inc Modified: head/too

Re: svn commit: r310889 - head/tools/build/mk

2017-01-04 Thread Dimitry Andric
On 31 Dec 2016, at 07:07, Jung-uk Kim wrote: > > Author: jkim > Date: Sat Dec 31 06:07:48 2016 > New Revision: 310889 > URL: https://svnweb.freebsd.org/changeset/base/310889 > > Log: > Do not remove llvm-objdump. It is installed by default since r310840. > > Modified: > head/tools/build/mk/O

svn commit: r311309 - head/sys/mips/mips

2017-01-04 Thread John Baldwin
Author: jhb Date: Wed Jan 4 21:13:21 2017 New Revision: 311309 URL: https://svnweb.freebsd.org/changeset/base/311309 Log: Further refine MIPS stack traces across trapframes. Use the trapframe unwinder recently added for kernel stack overflow panics for frames crossing MipsKernGenExceptio

svn commit: r311305 - in head/sys: cam cam/ctl cam/scsi dev/aac dev/aacraid dev/advansys dev/aha dev/ahb dev/ahci dev/aic dev/aic7xxx dev/amr dev/arcmsr dev/ata dev/buslogic dev/ciss dev/dpt dev/es...

2017-01-04 Thread Alan Somers
Author: asomers Date: Wed Jan 4 20:26:42 2017 New Revision: 311305 URL: https://svnweb.freebsd.org/changeset/base/311305 Log: Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq are fixed-length strings. AFAICT the

svn commit: r311299 - head/sys/mips/conf

2017-01-04 Thread Alexander Kabaev
Author: kan Date: Wed Jan 4 18:36:30 2017 New Revision: 311299 URL: https://svnweb.freebsd.org/changeset/base/311299 Log: Remove duplicate iic and iicbus devices from JZ4780 kernel Modified: head/sys/mips/conf/JZ4780 Modified: head/sys/mips/conf/JZ4780 ==

Re: svn commit: r311225 - head/sys/netinet

2017-01-04 Thread Mark Johnston
On Wed, Jan 04, 2017 at 02:19:13AM +, George V. Neville-Neil wrote: > Author: gnn > Date: Wed Jan 4 02:19:13 2017 > New Revision: 311225 > URL: https://svnweb.freebsd.org/changeset/base/311225 > > Log: > Fix DTrace TCP tracepoints to not use mtod() as it is both unnecessary and > dangerou

svn commit: r311298 - head/sbin/dhclient

2017-01-04 Thread Alan Somers
Author: asomers Date: Wed Jan 4 18:13:05 2017 New Revision: 311298 URL: https://svnweb.freebsd.org/changeset/base/311298 Log: Remove dead code in dhclient(8) The offending code has been dead ever since the import from OpenBSD in r195805. OpenBSD later deleted that entire function.

svn commit: r311294 - head/usr.sbin/bsnmpd/modules/snmp_bridge

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 17:54:44 2017 New Revision: 311294 URL: https://svnweb.freebsd.org/changeset/base/311294 Log: style cleanup - bridge_pf_dump: use nitems instead of spelling it out longhand - bridge_do_pfctl: sort variables by alignment for type MFC after:1 week Mod

svn commit: r311293 - head/usr.sbin/bsnmpd/modules/snmp_bridge

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 17:50:52 2017 New Revision: 311293 URL: https://svnweb.freebsd.org/changeset/base/311293 Log: bridge_do_pfctl: allocate mib_name dynamically using asprintf This is being done to reduce wasted space, simplify complexity in the code, and to quell a Coverity war

svn commit: r311292 - head/usr.bin/rpcgen

2017-01-04 Thread Alan Somers
Author: asomers Date: Wed Jan 4 17:39:20 2017 New Revision: 311292 URL: https://svnweb.freebsd.org/changeset/base/311292 Log: Remove dead code in rpc_parse.c It's been dead ever since it was imported from TI-RPC in 1995. The dead code is still present in Illumos today, but was removed f

svn commit: r311291 - head/usr.sbin/bsnmpd/modules/snmp_bridge

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 17:38:18 2017 New Revision: 311291 URL: https://svnweb.freebsd.org/changeset/base/311291 Log: bridge_get_pfval: use nitems instead of spelling it out longhand MFC after:3 days Modified: head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c Modified: hea

svn commit: r311290 - head/usr.sbin/bsnmpd/modules/snmp_bridge

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 17:33:18 2017 New Revision: 311290 URL: https://svnweb.freebsd.org/changeset/base/311290 Log: Use strlcpy instead of strcpy when copying the bridge name to ifr.ifr_name to avoid buffer overflows MFC after:1 week Reported by: Coverity CID: 10

svn commit: r311288 - head/usr.bin/chat

2017-01-04 Thread Alan Somers
Author: asomers Date: Wed Jan 4 16:24:40 2017 New Revision: 311288 URL: https://svnweb.freebsd.org/changeset/base/311288 Log: Delete dead code in chat(8) It's always been dead, ever since first import in 1994. It's still dead in OpenBSD's version, too. Reported by: Coverity CID:

svn commit: r311287 - head/lib/libc/x86/sys

2017-01-04 Thread Konstantin Belousov
Author: kib Date: Wed Jan 4 16:10:52 2017 New Revision: 311287 URL: https://svnweb.freebsd.org/changeset/base/311287 Log: __vdso_gettc(): be extra careful with /dev/hpet mappings, never unmap the mapping which might be accessed by other threads. If a pointer to the /dev/hpet register pag

svn commit: r311286 - head/sys/kern

2017-01-04 Thread Konstantin Belousov
Author: kib Date: Wed Jan 4 16:09:45 2017 New Revision: 311286 URL: https://svnweb.freebsd.org/changeset/base/311286 Log: The callers of kern_getfsstat(UIO_SYSSPACE) expect that *buf always returns memory which must be freed, regardless of the error. Assign NULL to *buf in case we are not

svn commit: r311285 - in head: contrib/zlib contrib/zlib/contrib contrib/zlib/test lib/libz

2017-01-04 Thread Xin LI
Author: delphij Date: Wed Jan 4 16:09:08 2017 New Revision: 311285 URL: https://svnweb.freebsd.org/changeset/base/311285 Log: MFV r311279: zlib 1.2.10. MFC after:1 month Modified: head/contrib/zlib/ChangeLog head/contrib/zlib/README head/contrib/zlib/adler32.c head/contrib/zli

Re: svn commit: r311283 - head/sys/cam/ctl

2017-01-04 Thread Ryan Stone
On Wed, Jan 4, 2017 at 7:50 AM, Edward Tomasz Napierala wrote: > + refcount_release(&cs->cs_outstanding_ctl_pdus); > Shouldn't the return value of refcount_release() be checked? ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/

svn commit: r311284 - head/sys/kern

2017-01-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Jan 4 14:43:57 2017 New Revision: 311284 URL: https://svnweb.freebsd.org/changeset/base/311284 Log: Fix bug that would result in a kernel crash in some cases involving a symlink and an autofs mount request. The crash was caused by namei() calling bcopy() with a nega

svn commit: r311283 - head/sys/cam/ctl

2017-01-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Jan 4 12:50:44 2017 New Revision: 311283 URL: https://svnweb.freebsd.org/changeset/base/311283 Log: Don't release the cfiscsi session refcount too early. It wasn't observed to fix any actual error, but it's the right thing to do from the correctness point of view.

svn commit: r311282 - head/contrib/bsnmp/snmp_mibII

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 10:08:18 2017 New Revision: 311282 URL: https://svnweb.freebsd.org/changeset/base/311282 Log: snmp_mibII(3) requires net/if.h and net/if_mib.h Document that requirement MFC after:1 week Modified: head/contrib/bsnmp/snmp_mibII/snmp_mibII.3 Modified:

svn commit: r311275 - in head: contrib/zlib contrib/zlib/amiga contrib/zlib/as400 contrib/zlib/contrib/ada contrib/zlib/contrib/amd64 contrib/zlib/contrib/blast contrib/zlib/contrib/delphi contrib/...

2017-01-04 Thread Xin LI
Author: delphij Date: Wed Jan 4 09:30:47 2017 New Revision: 311275 URL: https://svnweb.freebsd.org/changeset/base/311275 Log: Restructure libz, place vendor files in contrib/zlib like other third party software, this provides more standarized import workflow and makes future upgrades easier

svn commit: r311274 - head/contrib/netbsd-tests/lib/libpthread

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 09:06:49 2017 New Revision: 311274 URL: https://svnweb.freebsd.org/changeset/base/311274 Log: run: ensure pthread_condattr_{init,setclock} is successful MFC after:1 week Reported by: Coverity CID: 1268631, 1268633 Modified: head/contrib/net

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

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 09:00:16 2017 New Revision: 311273 URL: https://svnweb.freebsd.org/changeset/base/311273 Log: setrlimit_basic: don't leak buf; free it on completion MFC after:3 days Reported by: Coverity CID: 978311 Modified: head/contrib/netbsd-tests/lib/

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

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:59:06 2017 New Revision: 311272 URL: https://svnweb.freebsd.org/changeset/base/311272 Log: revoke_perm: don't leak fd at the end of the test; close it This code is unused on FreeBSD, but it mutes a valid Coverity warning which would be true on NetBSD

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

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:49:07 2017 New Revision: 311271 URL: https://svnweb.freebsd.org/changeset/base/311271 Log: stat_symlink: don't leak fd; close the file descriptor when done MFC after:3 days Reported by: Coverity CID: 978314 Modified: head/contrib/netbsd-

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

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:43:27 2017 New Revision: 311270 URL: https://svnweb.freebsd.org/changeset/base/311270 Log: pipe_restart: free f on function exit to quell complaint from Coverity MFC after:3 days Reported by: Coverity CID: 978307 Modified: head/contrib/n

svn commit: r311269 - head/contrib/netbsd-tests/lib/libpthread

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:35:46 2017 New Revision: 311269 URL: https://svnweb.freebsd.org/changeset/base/311269 Log: swapcontext1: test for getcontext(3) and swapcontext(3) success properly The beforementioned libcalls both succeed if the return codes aren't -1 MFC after:3 d

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

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:25:31 2017 New Revision: 311268 URL: https://svnweb.freebsd.org/changeset/base/311268 Log: Clarify lifetime of child(..) function Ensure child exits when complete as it's always run in a forked process. Add a missing break statement in :pselect_sigmas

svn commit: r311266 - head/sys/net80211

2017-01-04 Thread Adrian Chadd
Author: adrian Date: Wed Jan 4 08:08:50 2017 New Revision: 311266 URL: https://svnweb.freebsd.org/changeset/base/311266 Log: [net80211] Add VHT flags for printf/debugging. Whilst here, note that the last bit is currently used by ifconfig (_CHAN_HT) so don't use it without fixing that fir

svn commit: r311265 - head/contrib/netbsd-tests/lib/libpthread

2017-01-04 Thread Ngie Cooper
Author: ngie Date: Wed Jan 4 08:07:48 2017 New Revision: 311265 URL: https://svnweb.freebsd.org/changeset/base/311265 Log: fpu: ensure calls to pthread_create succeed and test sched_yield to make sure it returns 0 sched_yield tests for values returning 0 of type int and sched_yield is