Displaying 1 50 of 271,027 commits (0.017s)

FreeBSD — releng/10.1/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c, releng/10.1/sys/dev/hyperv/stordisengage hv_ata_pci_disengage.c

MFS r273580: MFC r273577:

Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Approved by:        re (kib)

FreeBSD — stable/10/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c, stable/10/sys/dev/hyperv/stordisengage hv_ata_pci_disengage.c

MFC r273577:

Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Instant MFC approved by:        re (kib)

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_getrusage.c

- Mark signo __unused in the signal handler function
- Effectively #if 0 out some code that does not fail on FreeBSD

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_clock_gettime.c

- Add inttypes.h and stdint.h in lieu of int_limits.h from NetBSD
- Use #include "h_macros.h" instead of relative path analog

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c, head/sys/dev/hyperv/stordisengage hv_ata_pci_disengage.c

Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

FreeBSD — head/sys/dev/uart uart_subr.c

Fix a leaked Storage Variable.

Phabric:        D981
Submitted by:        myself
Reported by:        Coverity
CID:                1248848
Reworked by:        kevlo
Reviewed by:        marcel, davide, ray, kevlo
Approved by:        marcel, kevlo
Delta File
+11 -6 head/sys/dev/uart/uart_subr.c
+11 -6 1 file

FreeBSD — head/usr.bin/vmstat vmstat.c

Fix formatting of vmstat (1) so that it looks cleaner on standard 80
column displays. In particular it wraps far less often.

Submitted by: Andy Kosela <akosela at andykosela.com>
PR:           191976
Delta File
+37 -23 head/usr.bin/vmstat/vmstat.c
+37 -23 1 file

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_msync.c

- Test for EINVAL requirement when passing an invalid flag in to msync(2)
- Expect ENOMEM instead of EFAULT when msync'ing a previously munmap'ed region
  on FreeBSD

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

FreeBSD — stable/10/sys/amd64/amd64 pmap.c

MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.
Delta File
+12 -2 stable/10/sys/amd64/amd64/pmap.c
+12 -2 1 file

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_mknod.c

- Ignore EINVAL check with mknod(path, S_IFCHR, -1) as the testcase is always
  executed on a non-devfs filesystem
- Expect mknod(path, S_IFREG, 0) to fail on FreeBSD

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/cddl/dev/fbt/powerpc fbt_isa.c

Whitespace

X-MFC-with:        r273570
MFC after:        1 week

FreeBSD — head/sys/cddl/dev/fbt/powerpc fbt_isa.c

Three updates to PowerPC FBT:

* Use a constant to define the number of stack frames in a probe exception.
* Only allow function symbols in powerpc64 ('.' prefixed)
* Set the fbtp_roffset for return probes, so the correct dtrace_probe call is
  made.

MFC after:        1 week

FreeBSD — head/sys/dev/gpio gpiobus.c ofw_gpiobus.c

Move the duplicated code to a single function.

No functional changes.

FreeBSD — head/usr.bin Makefile xo, head/usr.bin/xo Makefile

Hook xo(1) to the build -- it's like echo, but uses libxo to
support emitting machine-readable output.

Sponsored by:        Juniper Networks, Inc.
Delta File
+16 -0 head/usr.bin/xo/Makefile
+1 -0 head/usr.bin/Makefile
+0 -0 head/usr.bin/xo/
+17 -0 3 files

FreeBSD — head/etc/mtree BSD.include.dist, head/lib Makefile libxo

Hook libxo to the build.

Sponsored by:        Juniper Networks, Inc.
Delta File
+36 -0 head/lib/libxo/Makefile
+2 -0 head/etc/mtree/BSD.include.dist
+1 -0 head/lib/Makefile
+0 -0 head/lib/libxo/
+39 -0 4 files

FreeBSD — head/sys/dev/gpio gpiobusvar.h

Provide a working GPIOBUS_IVAR() macro for FDT systems.
Delta File
+5 -0 head/sys/dev/gpio/gpiobusvar.h
+5 -0 1 file

FreeBSD — projects/routing/sys/net rt_nhops.c rt_nhops.h, projects/routing/sys/netinet tcp_subr.c in_pcb.c

Add new fib4_lookup_nh_extended() which fills in nhop4_extended
 structure without doinf L2 resolve. It also requires freeing
 references by calling fib4_free_nh_ext().

Convert in_pcbladdr() to use it.
Convert tcp_maxmtu() to use it.

FreeBSD — head/sys/kern kern_sysctl.c

In all cases except CTLTYPE_STRING, penv is NULL here, so passing it
indiscriminately to printf() and freeenv() is incorrect.  Add a NULL
check before freeenv(); as for printf(), we could use req.newptr
instead, but we'd have to select the correct format string based on
the type, and that's too much work for an error message, so just
remove it.
Delta File
+4 -5 head/sys/kern/kern_sysctl.c
+4 -5 1 file

FreeBSD — head/contrib/libxo/libxo xoconfig.h xoversion.h

Add generated headers xoversion.h and xoconfig.h. These are the result
of configuring the source tree:
        % automake --add-missing
        % autoconf
        % ./configure

FreeBSD — head/contrib libxo, head/contrib/libxo install-sh configure.ac

Import libxo 0.1.4

Obtained from:        https://github.com/Juniper/libxo
Sponsored by:        Juniper Networks, Inc.

FreeBSD — head/sys/arm/freescale/imx imx6_machdep.c

Install a temporary workaround to avoid problems in fdt data with linux's
workaround for an imx6 chip erratum.  Linux works around the bug with
changes in fdt data that we can't currently handle, so to enable running
with standard vendor-supplied fdt data, this watches for an attempt to map
the gpio1_6 interrupt and remaps it back to the standard ethernet interrupt.

This can be undone when the intrng project is completed and our gpio drivers
can also be interrupt controllers.

FreeBSD — projects/routing/sys/netinet in_mcast.c

Convert inp_lookup_mcast_ifp() to new routing api.

FreeBSD — projects/routing/sys/net rt_nhops.c rt_nhops.h, projects/routing/sys/netinet ip_output.c in_pcb.c

Rename ip_sendmbuf to fib4_sendmbuf() and move it to rt_nhops api.
Convert IPv4 SAS to use new routing api.

FreeBSD — head/sys/i386/i386 machdep.c

Under PAE ULONG is insufficient for representing the physical memory size.  Use QUAD
for "hw.physmem" so that a physical memory size greater than 4 GB can be specified
from the boot loader.
Delta File
+3 -3 head/sys/i386/i386/machdep.c
+3 -3 1 file

FreeBSD — head/sys/netipsec key.c key.h

Use a static callout to drive key_timehandler() instead of timeout().
While here, make key_timehandler() private to key.c.

Submitted by:        bz (2)
Tested by:        bz

FreeBSD — projects/routing/sys/contrib/ipfilter/netinet ip_fil_freebsd.c

Convert ipfilter to use new routing API.
Compile tested only.

FreeBSD — head/sys/kern sys_generic.c

In selfdfree re-evaulate sf_si after takin the lock.

Otherwise we can race with doselwakeup.

This is a fixup to r273549

Reviewed by:        jhb
Reported by:        everyone and their dog
Delta File
+2 -1 head/sys/kern/sys_generic.c
+2 -1 1 file

FreeBSD — stable/10/usr.sbin/newsyslog newsyslog.c

MFC r272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

FreeBSD — stable/9/usr.sbin/newsyslog newsyslog.c

MFC 272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

FreeBSD — head/sys/kern kern_environment.c

Test if 'env' is NULL before doing memset() and strlen(),
the caller may pass NULL to freeenv().
Delta File
+1 -1 head/sys/kern/kern_environment.c
+1 -1 1 file

FreeBSD — head/sys/dev/puc pucdata.c

puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P card.

Submitted by:        Alex Burlyga <alex.burlyga.ietf at gmail.com>
MFC after:        1 week
Delta File
+7 -0 head/sys/dev/puc/pucdata.c
+7 -0 1 file

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

minor updates to make it more explicit that when using fpu_kern_thread,
you don't need to use fpu_kern_enter/_leave...

Reviewed by:        kib
Delta File
+10 -5 head/share/man/man9/fpu_kern.9
+10 -5 1 file

FreeBSD — head/sys/kern sys_generic.c

Avoid taking the lock in selfdfree when not needed.
Delta File
+4 -3 head/sys/kern/sys_generic.c
+4 -3 1 file

FreeBSD — head/usr.bin/bluetooth/rfcomm_sppd rfcomm_sppd.c rfcomm_sppd.1

Change the code to use the openpty(3) API which uses the pts(4) driver
instead of the pty(4) driver.

PR:                184597
Submitted by:        tobias.rehbein
MFC after:        2 weeks

FreeBSD — head/sys/net if.c

Move if_get_counter initialization from if_attach into if_alloc.
Also, initialize all counters before ifnet will become available in the system.
This fixes possible access to uninitialized ifned fields.

PR:                194550
Delta File
+2 -6 head/sys/net/if.c
+2 -6 1 file

FreeBSD — head/sys/dev/usb/net if_smsc.c

Fix a bug where some DTS layouts could cause the premature ending of the
search (i.e. without returning any result) and you would end up with a
random MAC address.

Change the search algorithm to a recursive one to ensure that all the nodes
on DTS will be verified.

The previous algorithm could not keep up if the DTS has too many sub-nodes.

While here, fix the punctuation on comments.
Delta File
+37 -38 head/sys/dev/usb/net/if_smsc.c
+37 -38 1 file

FreeBSD — stable/10/sys/dev/vt vt_core.c

vt(4): Refuse to load a font if hw.vga.textmode is selected

Before, the font was loaded and the window size recalculated, giving an
unusable terminal, even if the actual font didn't change.

Reported by:        beeessdee at ruggedinbox.com
MFC of:                r273330
Delta File
+3 -0 stable/10/sys/dev/vt/vt_core.c
+3 -0 1 file

FreeBSD — head/sys/dev/vt vt_core.c, head/sys/sys consio.h

vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font

To restore the default font using vidcontrol(1), use the "-f" flag
without an argument:
    vidcontrol -f < /dev/ttyv0

PR:                193910
Differential Revision:        https://reviews.freebsd.org/D971
Submitted by:        Marcin Cieslak <saper at saper.info>
Reviewed by:        ray@, emaste@
Approved by:        ray@
MFC after:        1 week

FreeBSD — head/usr.sbin/ctld discovery.c

Clean up (refactor) discovery a little; no functional changes.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+8 -9 head/usr.sbin/ctld/discovery.c
+8 -9 1 file

FreeBSD — projects/random_number_generator Makefile.inc1 ObsoleteFiles.inc, projects/random_number_generator/bin/sh parser.c jobs.c

MFC - tracking commit.
Merging r273128 through r273541.

FreeBSD — head/sbin/ifconfig sfp.c

Show SFP+/QSFP memory map dump on higher verbose levels.

Sponsored by:        Yandex LLC
MFC after:        1 week
Delta File
+44 -2 head/sbin/ifconfig/sfp.c
+44 -2 1 file

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_mprotect.c

Omit the mprotect_exec testcase on FreeBSD

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_select.c

Mark signum __unused

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_setrlimit.c

Fix a typo (__FreeBSD__ -> __NetBSD__ when omitting setrlimit_nthr)

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_msgrcv.c

Add limits.h #include for SSIZE_MAX

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_msgsnd.c

Add limits.h #include for SSIZE_MAX

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_setrlimit.c

- Omit setrlimit_nthr testcase on FreeBSD (requires lwp.h, et al)
- Expect overflow with rlim_max at INT64_MAX, not UINT64_MAX (rlim_t is int64_t
on FreeBSD)

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_sigaction.c

- Mark sig/signo __unused
- Do not provide a relative path via #include "h_macros.h"

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/contrib/netbsd-tests/lib/libc/sys t_truncate.c

Use <atf_srcdir>/truncate_test.root_owned instead of /usr/bin/fpr as fpr does
not exist on FreeBSD

truncate_test.root_owned will be generated at build time and owned by root

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

FreeBSD — stable/10/sys/cam/ctl ctl.c

MFC r273259:
Make VPD 80h (Serial Number) transfer length match serial number length.
Delta File
+10 -10 stable/10/sys/cam/ctl/ctl.c
+10 -10 1 file