svn commit: r259609 - head/sys/kern

2013-12-19 Thread Stefan Esser
Author: se Date: Thu Dec 19 09:01:46 2013 New Revision: 259609 URL: http://svnweb.freebsd.org/changeset/base/259609 Log: Fix overflow for timeout values of more than 68 years, which is the maximum covered by sbintime (LONG_MAX seconds). Some programs use timeout values in excess of 1000 y

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

2013-12-19 Thread Bruce Evans
On Thu, 19 Dec 2013, Stefan Esser wrote: Log: Fix overflow for timeout values of more than 68 years, which is the maximum covered by sbintime (LONG_MAX seconds). Not LONG_MAX seconds, but INT32_MAX seconds. LONG_MAX seconds is about 2**32 times larger on 64-bit arches. sbintimes and their

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread Gleb Smirnoff
On Wed, Dec 18, 2013 at 04:40:52PM -0500, John Baldwin wrote: J> On Wednesday, December 18, 2013 3:07:58 pm Alexander V. Chernikov wrote: J> > On 18.12.2013 22:45, John-Mark Gurney wrote: J> > > Alexander V. Chernikov wrote this message on Wed, Dec 18, 2013 at 18:25 +: J> > >> Author: melifaro

svn commit: r259612 - head/sys/dev/drm2/ttm

2013-12-19 Thread Andriy Gapon
Author: avg Date: Thu Dec 19 12:00:48 2013 New Revision: 259612 URL: http://svnweb.freebsd.org/changeset/base/259612 Log: ttm_bo_vm_lookup_rb: actually make use of the red-black tree Previously the code would just iterate over the whole tree as if it were just a list. Without this ch

svn commit: r259615 - head/sys/dev/vt

2013-12-19 Thread Aleksandr Rybalko
Author: ray Date: Thu Dec 19 15:31:20 2013 New Revision: 259615 URL: http://svnweb.freebsd.org/changeset/base/259615 Log: Enable mouse support for terminal clients (like dialog(1)). Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/vt/vt.h head/sys/dev/vt/vt_core.c head/sys

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

2013-12-19 Thread Julian Elischer
On 12/17/13, 8:34 PM, John Baldwin wrote: On Tuesday, December 17, 2013 1:17:45 pm Mateusz Guzik wrote: On Tue, Dec 17, 2013 at 11:41:49AM -0500, John Baldwin wrote: On Saturday, December 14, 2013 11:11:43 pm Mateusz Guzik wrote: Author: mjg Date: Sun Dec 15 04:11:43 2013 New Revision: 259407

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

2013-12-19 Thread Stefan Esser
Am 19.12.2013 11:49, schrieb Bruce Evans: > On Thu, 19 Dec 2013, Stefan Esser wrote: > >> Log: >> Fix overflow for timeout values of more than 68 years, which is the >> maximum >> covered by sbintime (LONG_MAX seconds). > > Not LONG_MAX seconds, but INT32_MAX seconds. LONG_MAX seconds is about

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread John-Mark Gurney
Gleb Smirnoff wrote this message on Thu, Dec 19, 2013 at 15:57 +0400: > On Wed, Dec 18, 2013 at 04:40:52PM -0500, John Baldwin wrote: > J> On Wednesday, December 18, 2013 3:07:58 pm Alexander V. Chernikov wrote: > J> > On 18.12.2013 22:45, John-Mark Gurney wrote: > J> > > Alexander V. Chernikov wro

svn commit: r259619 - in head/contrib/gcc: . cp doc

2013-12-19 Thread Pedro F. Giffuni
Author: pfg Date: Thu Dec 19 18:27:32 2013 New Revision: 259619 URL: http://svnweb.freebsd.org/changeset/base/259619 Log: gcc: backport upstream fix for issue with C++'s placement new Fixes GCC libstdc++/29286 Obtained from:gcc 4.3 (rev. 125603, 125653; GPLv2) MFC after:2

Re: svn commit: r259479 - head/usr.sbin/bsdinstall/scripts

2013-12-19 Thread Teske, Devin
On Dec 18, 2013, at 10:08 PM, Teske, Devin wrote: > > On Dec 16, 2013, at 2:03 PM, Nathan Whitehorn wrote: > >> On 12/16/13 15:55, Teske, Devin wrote: >>> On Dec 16, 2013, at 1:50 PM, Nathan Whitehorn wrote: >>> On 12/16/13 15:48, Teske, Devin wrote: > On Dec 16, 2013, at 1:40 PM, Tes

svn commit: r259626 - head/contrib/tzdata

2013-12-19 Thread Edwin Groothuis
Author: edwin Date: Thu Dec 19 20:19:57 2013 New Revision: 259626 URL: http://svnweb.freebsd.org/changeset/base/259626 Log: MFV of r259624, tzdata2013i Removed support for solar-time-based time zones Jordan stays at summer time this year. Fix historical data for Cuba Obtained from:

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

2013-12-19 Thread Andreas Tobler
On 19.12.13 18:00, Stefan Esser wrote: > I'd replace the two occurances of LLONG_MAX with INT64_MAX and add the > missing empty line: > > static __inline sbintime_t > timer2sbintime(intptr_t data) > { > > if (data > INT64_MAX / SBT_1MS) > return INT64_MAX; > retur

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

2013-12-19 Thread Stefan Esser
Am 19.12.2013 21:46, schrieb Andreas Tobler: > On 19.12.13 18:00, Stefan Esser wrote: > >> I'd replace the two occurances of LLONG_MAX with INT64_MAX and add the >> missing empty line: >> >> static __inline sbintime_t >> timer2sbintime(intptr_t data) >> { >> >> if (data > INT64_MAX / SBT_1

svn commit: r259632 - head/sys/rpc

2013-12-19 Thread Alexander Motin
Author: mav Date: Thu Dec 19 21:31:28 2013 New Revision: 259632 URL: http://svnweb.freebsd.org/changeset/base/259632 Log: Rework flow control for connection-oriented (TCP) RPC server. When processing receive buffer, write the amount of data, expected in present request record, into sock

svn commit: r259633 - head/sys/kern

2013-12-19 Thread Stefan Esser
Author: se Date: Thu Dec 19 21:35:33 2013 New Revision: 259633 URL: http://svnweb.freebsd.org/changeset/base/259633 Log: Fix compilation on 32 bit architectures and use INT64_MAX instead of LONG_MAX for the upper bound check. Modified: head/sys/kern/kern_event.c Modified: head/sys/kern/ker

svn commit: r259634 - head/sys/geom/mirror

2013-12-19 Thread Andrey V. Elsukov
Author: ae Date: Thu Dec 19 22:13:12 2013 New Revision: 259634 URL: http://svnweb.freebsd.org/changeset/base/259634 Log: Prevent users from deactivating the last component of a mirror. PR: 184985 MFC after:1 week Modified: head/sys/geom/mirror/g_mirror_ctl.c Modified: he

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

2013-12-19 Thread Neel Natu
Author: neel Date: Thu Dec 19 22:27:28 2013 New Revision: 259635 URL: http://svnweb.freebsd.org/changeset/base/259635 Log: Add an option to ignore accesses by the guest to unimplemented MSRs. Also, ignore a couple of SandyBridge uncore PMC MSRs that Centos 6.4 writes to during boot.

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread John Baldwin
On Thursday, December 19, 2013 6:57:35 am Gleb Smirnoff wrote: > On Wed, Dec 18, 2013 at 04:40:52PM -0500, John Baldwin wrote: > J> On Wednesday, December 18, 2013 3:07:58 pm Alexander V. Chernikov wrote: > J> > On 18.12.2013 22:45, John-Mark Gurney wrote: > J> > > Alexander V. Chernikov wrote this

svn commit: r259638 - head/usr.bin/netstat

2013-12-19 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Dec 20 00:17:26 2013 New Revision: 259638 URL: http://svnweb.freebsd.org/changeset/base/259638 Log: Use more fine-grained kvm(3) symbol lookup: routing code retrieves only necessary symbols needed per subsystem. Main kvm(3) init is now delayed as much as possbile.

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread Gleb Smirnoff
John, On Thu, Dec 19, 2013 at 03:52:03PM -0500, John Baldwin wrote: J> > J> Please don't gratuitiously break things that /usr/sbin/crashinfo runs. It's J> > J> fine if kvm mode is fragile and requires the binary to be in sync with the J> > J> kernel and is only used for crash dumps, but it is

svn commit: r259640 - in head/sys: arm/arm arm/include conf

2013-12-19 Thread Ganbold Tsagaankhuu
Author: ganbold (doc committer) Date: Fri Dec 20 00:56:23 2013 New Revision: 259640 URL: http://svnweb.freebsd.org/changeset/base/259640 Log: Add identification and necessary type checks for Krait CPU cores. Krait CPU is used in Qualcomm Snapdragon S4 and Snapdragon 400/600/800 SoCs and has a

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread John-Mark Gurney
Gleb Smirnoff wrote this message on Fri, Dec 20, 2013 at 04:28 +0400: > Looks like we are coming to agreement. The way to go is to remove kvm access > from netstat, substituting it with proper APIs. The better crashdump utility > needs to be started. Not yet sure that C + kvm(3) is a proper framewo

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread Alexey Dokuchaev
On Fri, Dec 20, 2013 at 04:28:50AM +0400, Gleb Smirnoff wrote: > in stable branches. I don't have strong opinion on this, I really think that > running kernel and world out of sync is a bad idea, so I may agree with you. This notorious requirement (or strong recommendation) of keeping one's world

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

2013-12-19 Thread Adrian Chadd
On 19 December 2013 13:15, Stefan Esser wrote: > NB: I should have known better and should have asked for a review of > this change before it wa committed. Sorry for the inconvenience > caused :( Hey, don't be (too) sorry - you chased down and debugged a substantially annoying bug that's

Re: svn commit: r259562 - head/usr.bin/netstat

2013-12-19 Thread Adrian Chadd
Linux doesn't have this problem because debugging LInux is a wildly different thing. Maybe it's time we actually just bit the bullet and made libkvm much more fleshed out for pulling out stuff like this from core files. -a ___ svn-src-head@freebsd.org

svn commit: r259641 - in head/sys/amd64: amd64 include vmm/intel

2013-12-19 Thread Neel Natu
Author: neel Date: Fri Dec 20 05:50:22 2013 New Revision: 259641 URL: http://svnweb.freebsd.org/changeset/base/259641 Log: Re-arrange bits in the amd64/pmap 'pm_flags' field. The least significant 8 bits of 'pm_flags' are now used for the IPI vector to use for nested page table TLB shootd

svn commit: r259642 - head/sys/netinet

2013-12-19 Thread Adrian Chadd
Author: adrian Date: Fri Dec 20 07:41:03 2013 New Revision: 259642 URL: http://svnweb.freebsd.org/changeset/base/259642 Log: Disable the now unpredicably bogus check for whether we have eneough queue space before queuing a bunch of IP fragments. As the comment in the committed change says