svn commit: r298734 - head/sys/compat/ndis

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Thu Apr 28 03:19:53 2016 New Revision: 298734 URL: https://svnweb.freebsd.org/changeset/base/298734 Log: ndis(4): it's rather unrealistic to expect a size_t here. int was actually OK, and u_int is more than enough. Modified: head/sys/compat/ndis/subr_ndis.c Modified:

svn commit: r298733 - head/sys/netinet

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Thu Apr 28 02:46:08 2016 New Revision: 298733 URL: https://svnweb.freebsd.org/changeset/base/298733 Log: ipdivert: Remove unnecessary and incorrectly typed variable. In principle n is only used to carry a copy of ipi_count, which is unsigned, in the non-VIMAGE case,

svn commit: r298732 - head/sys/fs/devfs

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Thu Apr 28 02:39:43 2016 New Revision: 298732 URL: https://svnweb.freebsd.org/changeset/base/298732 Log: sys/devfs: unsign an index to prevent signed integer overflow. cdp_maxdirent in struct:cdev_priv is of type u_int. Use the same type for the corresponding index in

svn commit: r298731 - head/sys/compat/ndis

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Thu Apr 28 01:58:56 2016 New Revision: 298731 URL: https://svnweb.freebsd.org/changeset/base/298731 Log: ndis(4): unsign some indexes to prevent overflows. The "len" parameter is uint32_t, indexing it with an int may end up in a signed integer overflow. strlen(3)

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

2016-04-27 Thread Sepherosa Ziehau
On Wed, Apr 27, 2016 at 11:56 PM, hiren panchasara wrote: > On 04/27/16 at 09:40P, Sepherosa Ziehau wrote: >> Author: sephe >> Date: Wed Apr 27 09:40:55 2016 >> New Revision: 298696 >> URL: https://svnweb.freebsd.org/changeset/base/298696 >> >> Log: >> tcp/lro: Fix

svn commit: r298730 - head/sys/netinet

2016-04-27 Thread Sepherosa Ziehau
Author: sephe Date: Thu Apr 28 01:43:18 2016 New Revision: 298730 URL: https://svnweb.freebsd.org/changeset/base/298730 Log: tcp/lro: Fix more typo Noticed by: hiren MFC after:1 week Sponsored by: Microsoft OSTC Modified: head/sys/netinet/tcp_lro.c Modified:

svn commit: r298723 - head/sys/vm

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 21:51:24 2016 New Revision: 298723 URL: https://svnweb.freebsd.org/changeset/base/298723 Log: Trim redundant message. WITNESS_WARN() appends "with non-sleepable lock" to the caller's message. Sponsored by: Chelsio Communications Modified:

svn commit: r298722 - head/sys/dev/acpica

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 21:12:05 2016 New Revision: 298722 URL: https://svnweb.freebsd.org/changeset/base/298722 Log: Adjust prototypes for NUMA-related functions to match the style of the rest of this file. Modified: head/sys/dev/acpica/acpivar.h Modified:

svn commit: r298721 - head/sys/arm/allwinner

2016-04-27 Thread Emmanuel Vadot
Author: manu Date: Wed Apr 27 20:49:57 2016 New Revision: 298721 URL: https://svnweb.freebsd.org/changeset/base/298721 Log: Add support for the Non-maskable interrupt driver found in the Allwinner A20 and A31 SoCs. This is normally used for the PMU. Reviewed by: andrew Approved by:

Re: svn commit: r298714 - in head: sys/conf sys/contrib/dev/acpica sys/contrib/dev/acpica/common sys/contrib/dev/acpica/compiler sys/contrib/dev/acpica/components/debugger sys/contrib/dev/acpica/compo

2016-04-27 Thread Jung-uk Kim
On 04/27/16 04:24 PM, Ngie Cooper wrote: > On Wed, Apr 27, 2016 at 12:09 PM, Jung-uk Kim wrote: >> Author: jkim >> Date: Wed Apr 27 19:09:21 2016 >> New Revision: 298714 >> URL: https://svnweb.freebsd.org/changeset/base/298714 >> >> Log: >> Merge ACPICA 20160422. > > This

svn commit: r298720 - head/sys/contrib/dev/acpica/include

2016-04-27 Thread Jung-uk Kim
Author: jkim Date: Wed Apr 27 20:24:48 2016 New Revision: 298720 URL: https://svnweb.freebsd.org/changeset/base/298720 Log: Fix build without ACPI_DEBUG. Modified: head/sys/contrib/dev/acpica/include/acoutput.h Modified: head/sys/contrib/dev/acpica/include/acoutput.h

Re: svn commit: r298714 - in head: sys/conf sys/contrib/dev/acpica sys/contrib/dev/acpica/common sys/contrib/dev/acpica/compiler sys/contrib/dev/acpica/components/debugger sys/contrib/dev/acpica/compo

2016-04-27 Thread Ngie Cooper
On Wed, Apr 27, 2016 at 12:09 PM, Jung-uk Kim wrote: > Author: jkim > Date: Wed Apr 27 19:09:21 2016 > New Revision: 298714 > URL: https://svnweb.freebsd.org/changeset/base/298714 > > Log: > Merge ACPICA 20160422. This broke i386:

svn commit: r298717 - head/sys/dev/pci

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 19:54:56 2016 New Revision: 298717 URL: https://svnweb.freebsd.org/changeset/base/298717 Log: Fix build for systems without PCI_RES_BUS. Submitted by: vangyzen Modified: head/sys/dev/pci/pci.c Modified: head/sys/dev/pci/pci.c

Re: svn commit: r298712 - in head/sys: dev/cardbus kern mips/nlm powerpc/ofw sparc64/pci sys

2016-04-27 Thread Marius Strobl
On Wed, Apr 27, 2016 at 10:54:42AM -0700, John Baldwin wrote: > On Wednesday, April 27, 2016 05:49:42 PM John Baldwin wrote: > > Author: jhb > > Date: Wed Apr 27 17:49:42 2016 > > New Revision: 298712 > > URL: https://svnweb.freebsd.org/changeset/base/298712 > > > > Log: > > Add a

svn commit: r298716 - head/sys/modules/acpi

2016-04-27 Thread Jung-uk Kim
Author: jkim Date: Wed Apr 27 19:38:24 2016 New Revision: 298716 URL: https://svnweb.freebsd.org/changeset/base/298716 Log: Sort SUBDIR. Modified: head/sys/modules/acpi/Makefile Modified: head/sys/modules/acpi/Makefile

svn commit: r298714 - in head: sys/conf sys/contrib/dev/acpica sys/contrib/dev/acpica/common sys/contrib/dev/acpica/compiler sys/contrib/dev/acpica/components/debugger sys/contrib/dev/acpica/compon...

2016-04-27 Thread Jung-uk Kim
Author: jkim Date: Wed Apr 27 19:09:21 2016 New Revision: 298714 URL: https://svnweb.freebsd.org/changeset/base/298714 Log: Merge ACPICA 20160422. Added: head/sys/contrib/dev/acpica/common/acfileio.c - copied, changed from r291333, vendor-sys/acpica/dist/source/common/acfileio.c

svn commit: r298713 - head/sys/netinet

2016-04-27 Thread Michael Tuexen
Author: tuexen Date: Wed Apr 27 18:58:47 2016 New Revision: 298713 URL: https://svnweb.freebsd.org/changeset/base/298713 Log: Don't use the control argument after calling sctp_add_to_readq(). This breaks the userland stack. There should be no functional change for the FreeBSD kernel stack.

Re: svn commit: r298712 - in head/sys: dev/cardbus kern mips/nlm powerpc/ofw sparc64/pci sys

2016-04-27 Thread John Baldwin
On Wednesday, April 27, 2016 05:49:42 PM John Baldwin wrote: > Author: jhb > Date: Wed Apr 27 17:49:42 2016 > New Revision: 298712 > URL: https://svnweb.freebsd.org/changeset/base/298712 > > Log: > Add a bus_null_rescan() method that always fails with an error. > > Use this in place of

svn commit: r298712 - in head/sys: dev/cardbus kern mips/nlm powerpc/ofw sparc64/pci sys

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 17:49:42 2016 New Revision: 298712 URL: https://svnweb.freebsd.org/changeset/base/298712 Log: Add a bus_null_rescan() method that always fails with an error. Use this in place of kobj_error_method to disable BUS_RESCAN() on PCI drivers that do not use the

Re: svn commit: r298425 - head/sys/dev/acpica

2016-04-27 Thread Zbigniew Bodek
2016-04-27 18:46 GMT+02:00 John Baldwin : > On Wednesday, April 27, 2016 04:57:28 PM Zbigniew Bodek wrote: > > Hello, > > > > I'm forwarding a message from Michal Stanek who found some problems wit > > this commit. Please see below: > > It looks like you have "cpuX" devices that

Re: svn commit: r298425 - head/sys/dev/acpica

2016-04-27 Thread John Baldwin
On Wednesday, April 27, 2016 04:57:28 PM Zbigniew Bodek wrote: > Hello, > > I'm forwarding a message from Michal Stanek who found some problems wit > this commit. Please see below: It looks like you have "cpuX" devices that aren't acpi_cpu.c devices. That's fine, but that is why this driver is

Re: svn commit: r298708 - in head/sys: dev/cardbus dev/pci mips/nlm powerpc/ofw sparc64/pci

2016-04-27 Thread John Baldwin
On Wednesday, April 27, 2016 04:31:12 PM John Baldwin wrote: > Author: jhb > Date: Wed Apr 27 16:31:12 2016 > New Revision: 298708 > URL: https://svnweb.freebsd.org/changeset/base/298708 > > Log: > Implement a PCI bus rescan method. > > Rescanning a PCI bus uses the following steps: > -

Re: svn commit: r298425 - head/sys/dev/acpica

2016-04-27 Thread Andrew Turner
On Wed, 27 Apr 2016 16:57:28 +0200 Zbigniew Bodek wrote: > Hello, > > I'm forwarding a message from Michal Stanek who found some problems > wit this commit. Please see below: > > --- > I'm getting a lot of ACPI error messages on

Re: svn commit: r298709 - in head: lib/libdevctl sys/kern sys/sys usr.sbin/devctl

2016-04-27 Thread John Baldwin
On Wednesday, April 27, 2016 04:33:17 PM John Baldwin wrote: > Author: jhb > Date: Wed Apr 27 16:33:17 2016 > New Revision: 298709 > URL: https://svnweb.freebsd.org/changeset/base/298709 > > Log: > Add 'devctl delete' that calls device_delete_child(). > > 'devctl delete' can be used to

Re: svn commit: r298710 - head/sys/dev/pci

2016-04-27 Thread John Baldwin
On Wednesday, April 27, 2016 04:34:29 PM John Baldwin wrote: > Author: jhb > Date: Wed Apr 27 16:34:29 2016 > New Revision: 298710 > URL: https://svnweb.freebsd.org/changeset/base/298710 > > Log: > Fix PCI bus detach to delete child devices. > > Differential Revision:

svn commit: r298710 - head/sys/dev/pci

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 16:34:29 2016 New Revision: 298710 URL: https://svnweb.freebsd.org/changeset/base/298710 Log: Fix PCI bus detach to delete child devices. Differential Revision:https://reviews.freebsd.org/D6020 Modified: head/sys/dev/pci/pci.c Modified:

svn commit: r298709 - in head: lib/libdevctl sys/kern sys/sys usr.sbin/devctl

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 16:33:17 2016 New Revision: 298709 URL: https://svnweb.freebsd.org/changeset/base/298709 Log: Add 'devctl delete' that calls device_delete_child(). 'devctl delete' can be used to delete a device that is no longer present. As an anti-foot-shooting measure,

svn commit: r298708 - in head/sys: dev/cardbus dev/pci mips/nlm powerpc/ofw sparc64/pci

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 16:31:12 2016 New Revision: 298708 URL: https://svnweb.freebsd.org/changeset/base/298708 Log: Implement a PCI bus rescan method. Rescanning a PCI bus uses the following steps: - Fetch the current set of child devices and save it in the 'devlist' array.

svn commit: r298707 - in head: lib/libdevctl share/man/man9 sys/kern sys/sys usr.sbin/devctl

2016-04-27 Thread John Baldwin
Author: jhb Date: Wed Apr 27 16:29:03 2016 New Revision: 298707 URL: https://svnweb.freebsd.org/changeset/base/298707 Log: Add a new rescan method to the bus interface. The BUS_RESCAN() method rescans a single bus device checking for devices that have been added or removed from the bus.

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

2016-04-27 Thread hiren panchasara
On 04/27/16 at 09:40P, Sepherosa Ziehau wrote: > Author: sephe > Date: Wed Apr 27 09:40:55 2016 > New Revision: 298696 > URL: https://svnweb.freebsd.org/changeset/base/298696 > > Log: > tcp/lro: Fix typo. > > MFC after: 1 week > Sponsored by: Microsoft OSTC > > Modified: >

svn commit: r298703 - in head/sys/cam: . ctl

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 27 15:35:05 2016 New Revision: 298703 URL: https://svnweb.freebsd.org/changeset/base/298703 Log: cam: unsign some types to match their definitions and avoid overflows. numpatterns is u_int. ctl: CTL_NUM_MODE_PAGES comes from sizeof(). In

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

2016-04-27 Thread Andrey V. Elsukov
Author: ae Date: Wed Apr 27 15:28:25 2016 New Revision: 298702 URL: https://svnweb.freebsd.org/changeset/base/298702 Log: Make create_object callback optional and return EOPNOTSUPP when it isn't defined. Remove eaction_create_compat() and use designated initializers to initialize

svn commit: r298698 - in head/sys/geom: . mirror raid virstor

2016-04-27 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 27 15:10:40 2016 New Revision: 298698 URL: https://svnweb.freebsd.org/changeset/base/298698 Log: geom: unsign some types to match their definitions and avoid overflows. In struct:gctl_req, nargs is unsigned. In mirror: g_mirror_syncreqs is unsigned. In

Re: svn commit: r298425 - head/sys/dev/acpica

2016-04-27 Thread Zbigniew Bodek
Hello, I'm forwarding a message from Michal Stanek who found some problems wit this commit. Please see below: --- I'm getting a lot of ACPI error messages on ThunderX (arm64). The kernel also panics before it gets to prompt. Running bisect pointed to this

Leshow Moscow

2016-04-27 Thread Divyajit Kaur
** 27 April 2016 ** Wednesday http://fashionablyin.us1.list-manage.com/track/click?u=8e7d8ec661c4606682b4765dd=9323eb3a35=f2b96bde3b

svn commit: r298696 - head/sys/netinet

2016-04-27 Thread Sepherosa Ziehau
Author: sephe Date: Wed Apr 27 09:40:55 2016 New Revision: 298696 URL: https://svnweb.freebsd.org/changeset/base/298696 Log: tcp/lro: Fix typo. MFC after:1 week Sponsored by: Microsoft OSTC Modified: head/sys/netinet/tcp_lro.c Modified: head/sys/netinet/tcp_lro.c

Re: svn commit: r298671 - head/sys/geom/part

2016-04-27 Thread Bruce Evans
On Tue, 26 Apr 2016, Conrad E. Meyer wrote: Log: g_part_bsd64: Check for valid on-disk npartitions value This value is u32 on disk, but assigned to an int in memory. After we do the implicit conversion via assignment, check that the result is at least one[1] (non-negative[2]). 1. The

svn commit: r298695 - in head: contrib/ntp contrib/ntp/html contrib/ntp/include contrib/ntp/lib/isc contrib/ntp/lib/isc/include/isc contrib/ntp/libntp contrib/ntp/ntpd contrib/ntp/ntpdate contrib/n...

2016-04-27 Thread Xin LI
Author: delphij Date: Wed Apr 27 07:46:38 2016 New Revision: 298695 URL: https://svnweb.freebsd.org/changeset/base/298695 Log: MFV r298691: ntp 4.2.8p7. Security: CVE-2016-1547, CVE-2016-1548, CVE-2016-1549, CVE-2016-1550 Security: CVE-2016-1551, CVE-2016-2516,

svn commit: r298694 - head/sys/dev/hyperv/netvsc

2016-04-27 Thread Sepherosa Ziehau
Author: sephe Date: Wed Apr 27 06:49:16 2016 New Revision: 298694 URL: https://svnweb.freebsd.org/changeset/base/298694 Log: hyperv/hn: Add stat for # of chimney sending tries MFC after:1 week Sponsored by: Microsoft OSTC Modified: head/sys/dev/hyperv/netvsc/hv_net_vsc.h