Displaying 1 50 of 303,369 commits (0.023s)

FreeBSD — head/contrib/unbound configure configure.ac, head/contrib/unbound/compat arc4random.c getentropy_linux.c

Upgrade to Unbound 1.5.10.

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_traverse.c

Add #ifdef _KERNEL around send_holes_without_birth_time sysctl.

Reported by:        avg@

FreeBSD — head/sys/arm/arm vm_machdep.c

Use SV_ABI_ERRNO to set the syscall return value. The Linuxulator will
need this.

Submitted by:        Grégory Soutadé <soutade at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D7976
Delta File
+1 -1 head/sys/arm/arm/vm_machdep.c
+1 -1 1 file

FreeBSD — head/sys/ofed/drivers/net/mlx4 en_netdev.c

Set hardware stats flag to avoid double counting the number of incoming bytes.

Found by:        Ben RUBSON <ben.rubson at gmail.com>
Sponsored by:        Mellanox Technologies
MFC after:        1 week

FreeBSD — head/sys/dev/mlx5/mlx5_en mlx5_en_main.c

Set hardware stats flag to avoid double counting the number of incoming bytes.

Found by:        Ben RUBSON <ben.rubson at gmail.com>
Sponsored by:        Mellanox Technologies
MFC after:        1 week

FreeBSD — head/sys/kern kern_mib.c

Allow reading the following sysctl MIBs in capability mode:
kern.hostname, kern.domainname, and kern.hostuuid

This allows sandboxed applications to read these sysctls

Submitted by:        cem (original version)
Reviewed by:        cem, jonathan, rwatson (original version)
Sponsored by:        ScaleEngine Inc.
Differential Revision:        https://reviews.freebsd.org/D8015
Delta File
+3 -3 head/sys/kern/kern_mib.c
+3 -3 1 file

FreeBSD — head/sys/compat/linuxkpi/common/include/linux pci.h

The IORESOURCE_XXX defines should resemble a bitmask while SYS_RES_XXX
are not bitmasks. Fix return value of pci_resource_flags() to reflect
this change.

MFC after:        1 week
Sponsored by:        Mellanox Technologies

FreeBSD — head/share/man/man9 sysctl.9

sysctl.9: add missing underscore (SYSCTL_HANDLERARGS -> SYSCTL_HANDLER_ARGS)
Delta File
+1 -1 head/share/man/man9/sysctl.9
+1 -1 1 file

FreeBSD — head/sys/contrib/ipfilter/netinet fil.c

Remove an extra etter.

FreeBSD — head/sys/dev/cxgbe/cxgbei cxgbei.c, head/sys/dev/cxgbe/tom t4_cpl_io.c

Remove a a duplicated word.

FreeBSD — head/sys/arm/nvidia tegra_ahci.c

TEGRA: Rename (cut & pasted) genahci to tegra_ahci. Make device class definition static.
Delta File
+6 -5 head/sys/arm/nvidia/tegra_ahci.c
+6 -5 1 file

FreeBSD — head/share/mk src.opts.mk

SSP is broken on all mips.
Delta File
+1 -1 head/share/mk/src.opts.mk
+1 -1 1 file

FreeBSD — head/sys/arm/nvidia/tegra124 files.tegra124

TEGRA: Return back kern_clocksource.c into tegra config file. It was removed in r306444 by 
mistake.

FreeBSD — head/sys/arm/nvidia/tegra124 files.tegra124

TEGRA: Don't include files already included by system or arch configs.

FreeBSD — head/sys/netinet tcp_syncache.c

Fix an issue with accept_filter introduced with r261242:

As a side effect of r261242 when using accept_filter the
first call to soisconnected() is done earlier in tcp_input()
instead of tcp_do_segment() context.  Restore the expected behaviour.

Note:  This call to soisconnected() seems to be extraneous in all
cases (with or without accept_filter).  Will be addressed in a
separate commit.

PR:                        212920
Reported by:                Alexey
Tested by:              Alexey, jch
Sponsored by:           Verisign, Inc.
MFC after:                1 week
Delta File
+3 -1 head/sys/netinet/tcp_syncache.c
+3 -1 1 file

FreeBSD — head/sys/arm/conf TEGRA124, head/sys/arm/nvidia/tegra124 tegra124_machdep.c

TEGRA: Add support for MULTIDELAY option.

FreeBSD — head/share/man/man9 taskqueue.9, head/sys/kern subr_taskqueue.c

While draining a timeout task prevent the taskqueue_enqueue_timeout()
function from restarting the timer.

Commonly taskqueue_enqueue_timeout() is called from within the task
function itself without any checks for teardown. Then it can happen
the timer stays active after the return of taskqueue_drain_timeout(),
because the timeout and task is drained separately.

This patch factors out the teardown flag into the timeout task itself,
allowing existing code to stay as-is instead of applying a teardown
flag to each and every of the timeout task consumers.

Add assert to taskqueue_drain_timeout() which prevents parallel
execution on the same timeout task.

Update manual page documenting the return value of
taskqueue_enqueue_timeout().

Differential Revision:        https://reviews.freebsd.org/D8012
Reviewed by:        kib, trasz
MFC after:        1 week

FreeBSD — head/contrib/atf/atf-sh atf-check.cpp

Fix conversion from C++ std::string into C const char *.
This fixes operation on MIPS64EB with GCC 4.2.1.

Reviewed by:        jmmv
Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5
Differential Revision:        https://reviews.freebsd.org/D7952

FreeBSD — head/sys/arm/include platformvar.h

Remove struct platform_data, it was never used.

Sponsored by:        ABT Systems Ltd

FreeBSD — user/pho/stress2/misc credleak.sh link.sh

Fixed typo.

Noticed by:         pgollucci@
Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/arm/broadcom/bcm2835 bcm2836_mp.h bcm2836_mp.c, head/sys/arm/conf RPI2

RPI2: Add support for PLATFORM_SMP so we can later add it to GENERIC.

Reviewed by:        andrew
Differential Revision:        https://reviews.freebsd.org/D8063

FreeBSD — head/sys/arm/broadcom/bcm2835 bcm2835_systimer.c bcm2835_machdep.c, head/sys/arm/conf RPI-B

RPI-B: Add support for MULTIDELAY

100 cycles per us seems accurate enough, at least it's better than the 200 value
that was used before.

Reviewed by:        andrew, imp
Differential Revision:        https://reviews.freebsd.org/D8062

FreeBSD — head .arcconfig

callsign isn't required anymore
Delta File
+0 -1 head/.arcconfig
+0 -1 1 file

FreeBSD — head/sys/contrib/ipfilter/netinet ip_compat.h, head/sys/net if_var.h

Remove the compatibility macro if_addrlist.

Since if_addrlist is used only for ipfilter(4), add a macro if_addrlist
in ip_compat.h.

Reviewed by:        cy
Differential Revision:        https://reviews.freebsd.org/D8059

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c hv_net_vsc.h

hyperv/hn: Don't set HASHVAL pktinfo for NDIS < 6.30

This unbreaks packet sending on WS2008R2.

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D8057

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c

hyperv/hn: Consolidate hn_init() and hn_stop()

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D8056

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c

hyperv/hn: Move TX tasks' draining into hn_suspend().

This prepares to consolidate hn_stop() and netvsc_detach().

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D8055

FreeBSD — head/sys/arm/broadcom/bcm2835 bcm2835_ft5406.c files.bcm283x, head/sys/boot/fdt/dts/arm rpi.dts rpi2.dts

Add touchscreen support for the official 7" RPi touch display

Technically touchscreen chip is FT5406 but all hardware
communication is performed by VideCore and only final results
are presented to ARM part through memory region shared between
VC and ARM.

evdev is used as userland interface. FT5406 supports up to
10 touchpoints, but for now driver emulates single touch device
because I do not have GUI bits to test this functionality.

Driver is not enabled in default config for RPI and RPI2

Tested with: evdev-dump, tslib

FreeBSD — stable/9/usr.sbin/portsnap/phttpget phttpget.c

MFC (part of) r298089 by pfg: Cleanup unnecessary semicolons

(Merged from stable/10 r306428)

FreeBSD — stable/10/usr.sbin/portsnap/phttpget phttpget.c

MFC (part of) r298089 by pfg: Cleanup unnecessary semicolons

FreeBSD — stable/10/usr.sbin/portsnap/phttpget phttpget.8

MFC r296205: Fix typo.

FreeBSD — head/sys/conf files.amd64 files.i386, head/sys/dev/hyperv stordisengage

hyperv/storvsc: Fix the blkvsc disk attachment issues.

- The original 'disengage' ATA controller model does not work properly
  for all possible disk configurations.  Use the newly added ATA disk
  veto eventhandler to fit into all possible disk configuration.
- If the 'invalid LUN' happens on blkvsc controllers, return
  CAM_DEV_NOT_THERE so that CAM will not destroy attached disks under
  the blkvsc controllers.

Submitted by:        Hongjiang Zhang <honzhan microsoft com>
Discussed with:        mav
MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7693
Delta File
+91 -22 head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+1 -1 head/sys/modules/hyperv/Makefile
+0 -1 head/sys/conf/files.amd64
+0 -1 head/sys/conf/files.i386
+0 -0 head/sys/dev/hyperv/stordisengage/
+0 -0 head/sys/modules/hyperv/stordisengage/
+92 -25 6 files

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_traverse.c

MFV r306423: 7402 Create tunable to ignore hole_birth feature

Until we can resolve the numerous hole_birth bugs that have cropped up
recently, and come up with a way going forwards to protect users from
corruption, we should disable the hole_birth feature.  Using a tunable
allows those who are confident that their data is correct to continue to
take advantage of the feature.

Closes #188

Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Author: Paul Dagnelie <pcd at delphix.com>

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dbuf.c dsl_dataset.c, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys dmu_objset.h dsl_dataset.h

MFV r306422: 7254 ztest failed assertion in ztest_dataset_dirobj_verify: dirobjs + 1 == 
usedobjs

dsl_dataset_space is looking at the ds_bp's fill count while
dmu_objset_write_ready() is concurrently modifying it. This fix adds an
rrwlock to protect the ds_bp.

Closes #180

Reviewed by: George Wilson <george.wilson at delphix.com>
Reviewed by: Prakash Surya <prakash.surya at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi at delphix.com>
Author: Paul Dagnelie <pcd at delphix.com>

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs dmu_traverse.c

7402 Create tunable to ignore hole_birth feature

Until we can resolve the numerous hole_birth bugs that have cropped up
recently, and come up with a way going forwards to protect users from
corruption, we should disable the hole_birth feature.  Using a tunable
allows those who are confident that their data is correct to continue to
take advantage of the feature.

Closes #188

Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Author: Paul Dagnelie <pcd at delphix.com>

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs dbuf.c dsl_dataset.c, vendor-sys/illumos/dist/uts/common/fs/zfs/sys dmu_objset.h dsl_dataset.h

7254 ztest failed assertion in ztest_dataset_dirobj_verify: dirobjs + 1 == usedobjs

dsl_dataset_space is looking at the ds_bp's fill count while
dmu_objset_write_ready() is concurrently modifying it. This fix adds an
rrwlock to protect the ds_bp.

Closes #180

Reviewed by: George Wilson <george.wilson at delphix.com>
Reviewed by: Prakash Surya <prakash.surya at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi at delphix.com>
Author: Paul Dagnelie <pcd at delphix.com>

FreeBSD — releng/11.0@306420 => release 11.0.1

Tag releng/11.0 at r306420 as release/11.0.1 for 11.0-RELEASE-p1.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -0 releng/11.0@306420 => release/11.0.1/
+0 -0 1 file

FreeBSD — releng/11.0/sys/conf newvers.sh

Update releng/11.0 to 11.0-RELEASE-p1.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 releng/11.0/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — releng/11.0/usr.sbin/portsnap/portsnap portsnap.sh

MFS r306418: portsnap: only move expected snapshot contents from snap/ to files/

Previously it was possible to smuggle in addional files that would
be used by later portsnap runs. Now we only move those files expected
to be in the snapshot into files/ and require that there are no
unexpected files.

This was used by portsnap attacks 2, 3, and 4 in the "non-cryptanalytic
attacks against FreeBSD update components" anonymous gist.

Approved by:        re (gjb)

FreeBSD — stable/11/usr.sbin/portsnap/portsnap portsnap.sh

MFC r306417: portsnap: only move expected snapshot contents from snap/ to files/

Previously it was possible to smuggle in addional files that would
be used by later portsnap runs. Now we only move those files expected
to be in the snapshot into files/ and require that there are no
unexpected files.

This was used by portsnap attacks 2, 3, and 4 in the "non-cryptanalytic
attacks against FreeBSD update components" anonymous gist.

Approved by:        re (gjb)

FreeBSD — head/usr.sbin/portsnap/portsnap portsnap.sh

portsnap: only move expected snapshot contents from snap/ to files/

Previously it was possible to smuggle in addional files that would
be used by later portsnap runs. Now we only move those files expected
to be in the snapshot into files/ and require that there are no
unexpected files.

This was used by portsnap attacks 2, 3, and 4 in the "non-cryptanalytic
attacks against FreeBSD update components" anonymous gist.

Reported by:        anonymous gist
Reviewed by:        allanjude, delphij
MFC after:        ASAP
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D8052

FreeBSD — stable/9/lib/libc/stdtime strptime.c

MFC r306075,r306109

1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week (week 0) request and no such week in the
year.
5) Fix yday formula when Sunday requested and the week started from Monday.
6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u
request.
7) Shift yday/wday to the first day of the year, if incomplete week
(week 0) requested and no %w/%u used.
8) For already non-standard %z extension implement GNU compatible formats:
+hh and -hh.
9) Check for incorrect values for %z.

PR:     212983 (case 3 only)
Delta File
+32 -14 stable/9/lib/libc/stdtime/strptime.c
+32 -14 1 file

FreeBSD — stable/11/lib/libc/stdtime strptime.c

MFC r306075,r306109

1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week (week 0) request and no such week in the
year.
5) Fix yday formula when Sunday requested and the week started from Monday.
6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u
request.
7) Shift yday/wday to the first day of the year, if incomplete week
(week 0) requested and no %w/%u used.
8) For already non-standard %z extension implement GNU compatible formats:
+hh and -hh.
9) Check for incorrect values for %z.

PR:     212983 (case 3 only)
Delta File
+32 -14 stable/11/lib/libc/stdtime/strptime.c
+32 -14 1 file

FreeBSD — stable/10/lib/libc/stdtime strptime.c

MFC r306075,r306109

1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week (week 0) request and no such week in the
year.
5) Fix yday formula when Sunday requested and the week started from Monday.
6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u
request.
7) Shift yday/wday to the first day of the year, if incomplete week
(week 0) requested and no %w/%u used.
8) For already non-standard %z extension implement GNU compatible formats:
+hh and -hh.
9) Check for incorrect values for %z.

PR:     212983 (case 3 only)
Delta File
+32 -14 stable/10/lib/libc/stdtime/strptime.c
+32 -14 1 file

FreeBSD — projects/clang390-import Makefile.inc1 UPDATING, projects/clang390-import/contrib/netbsd-tests/lib/libc/gen t_nice.c

Merge ^/head r306303 through 306411.

FreeBSD — projects/clang390-import/usr.bin/clang/lld Makefile

lld: use ${SRCDIR} instead of ${.CURDIR}-relative path

FreeBSD — head/lib/msun Makefile

libm: simplify i387 subdir logic with make's :S substitution
Delta File
+1 -5 head/lib/msun/Makefile
+1 -5 1 file

FreeBSD — head/lib/msun/src s_scalbn.c s_scalbnl.c

libm: fix some unused variable (rcsid) and dangling else warnings

s_{fabs,fmax,logb,scalb}{,f,l}.c may be built elsewhere with a higher
WARNS setting.

Reviewed by:        ed
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D8061

FreeBSD — head/sys/mips/mips trap.c

Use SIGSEGV signal for memory protection failures from userspace on MIPS.
(same as ARMv8, RISC-V and other architectures do).
This makes mmap tests happy.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5
Delta File
+5 -2 head/sys/mips/mips/trap.c
+5 -2 1 file