Displaying 1 50 of 284,759 commits (0.019s)

FreeBSD — head/sys/powerpc/include pmap.h, head/sys/powerpc/powerpc pmap_dispatch.c

pmap_mapdev_attr() also takes a vm_paddr_t.

This was missed in r235936.  With recent work for 36-bit paddr, this is now
needed.

FreeBSD — head/usr.sbin/makefs mtree.c

Don't leak 'var'.

Reported by:        clang static analyzer
Delta File
+3 -1 head/usr.sbin/makefs/mtree.c
+3 -1 1 file

FreeBSD — head/sys/kern kern_descrip.c

fd: remove UMA_ZONE_ZINIT argument from Files zone

Originally it was added in order to prevent trashing of objects with
INVARIANTS enabled. The same effect is now provided with mere UMA_ZONE_NOFREE.

This reverts r286921.

Discussed with:                kib
Delta File
+1 -1 head/sys/kern/kern_descrip.c
+1 -1 1 file

FreeBSD — head/sys/vm uma_core.c

Don't trash memory from UMA_ZONE_NOFREE zones.

Objects obtained from such zones are supposed to retain type stability,
which was violated by aforementioned trashing.

This is a follow-up to r284861.

Discussed with:                kib
Delta File
+2 -2 head/sys/vm/uma_core.c
+2 -2 1 file

FreeBSD — head/sys/dev/ioat ioat.c

ioat(4): pci_save/restore_state to persist MSI-X registers over BDXDE reset

Also for BWD devices, per jimharris@.

Reviewed by:        jhb
Approved by:        markj (mentor)
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D3552
Delta File
+18 -16 head/sys/dev/ioat/ioat.c
+18 -16 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Minor code cleanups (no functional changes).

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+12 -14 head/usr.sbin/sysrc/sysrc
+12 -14 1 file

FreeBSD — stable/9/release/doc/share/xml security.xml

Document SA-15:23.

Sponsored by:        The FreeBSD Foundation

FreeBSD — releng/9.3 UPDATING, releng/9.3/contrib/bind9/lib/dns openssldsa_link.c openssldh_link.c

Fix remote denial of service vulnerability when parsing malformed
key.

Security:        CVE-2015-5722
Security:        FreeBSD-SA-15:23.bind
Approved by:        so

FreeBSD — stable/9/contrib/bind9/lib/dns openssldsa_link.c openssldh_link.c, stable/9/contrib/bind9/lib/dns/include/dst dst.h

Fix remote denial of service vulnerability when parsing malformed
key.

Fix remote denial of service vulnerability caused by an incorrect
boundary check in openpgpkey_61.c.

Security:        CVE-2015-5722, FreeBSD-SA-15:23.bind
Security:        CVE-2015-5986

FreeBSD — head/bin/sh parser.c, head/bin/sh/tests/parser heredoc13.0 Makefile

sh: Allow empty << EOF markers.

FreeBSD — head/usr.bin/netstat main.c netisr.c

Simplify kvm symbol resolution and error handling.  The symbol table
nl_symbols will eventually be organized into several modules depending
on MK_* variables.

FreeBSD — head/usr.bin/netstat if.c

Divide statistics in the number of packets with 1000 instead of 1024
in human-readable form.

PR:        183598
Delta File
+25 -21 head/usr.bin/netstat/if.c
+25 -21 1 file

FreeBSD — head/sys/geom geom_io.c

After the introduction of direct dispatch, the pacing code in g_down()
broke in two ways. One, the pacing variable was accessed in multiple
threads in an unsafe way. Two, since large numbers of I/O could come
down from the buf layer at one time, large numbers of allocation
failures could happen all at once, resulting in a huge pace value that
would limit I/Os to 10 IOPS for minutes (or even hours) at a
time. While a real solution to these problems requires substantial
work (to go to a no-allocation after the first model, or to have some
way to wait for more memory with some kind of reserve for pager and
swapper requests), it is relatively easy to make this simplistic
pacing less pathological.

Move to using a volatile variable with loads and stores. While this is
a little racy, losing the race is safe: either you get memory and
proceed, or you don't and queue. Second, sleep for 1ms (or one tick, whichever
is larger) instead of 100ms. This removes the artificial 10 IOPS limit
while still easing up on new I/Os during memory shortages. Remove
tying the amount of time we do this to the number of failed requests
and do it only as long as we keep failing requests.

Finally, to avoid needless recursion when memory is tight (start ->
g_io_deliver() -> g_io_request() -> start -> ... until we use 1/2 the
stack), don't do direct dispatch while pacing. This should be a rare
event (not steady state) so the performance hit here is worth the
extra safety of not starving g_down() with directly dispatched I/O.

    [2 lines not shown]
Delta File
+41 -7 head/sys/geom/geom_io.c
+41 -7 1 file

FreeBSD — head/lib/libc/net getnameinfo.c

- snprintf() returns at most size-1 of the chars printed into
  the buffer.  (n == hostlen) also means the buffer length was
  too short.

- Use sdl->sdl_data only when (sdl->sdl_nlen > 0 && sdl->sdl_alen == 0)
  to prevent redundant output.
Delta File
+6 -10 head/lib/libc/net/getnameinfo.c
+6 -10 1 file

FreeBSD — head/sys/dev/ioat ioat.c

ioat: re-initialize interrupts after resetting hw on BDXDE

Resetting some generations of the I/OAT hardware (just BDXDE for now)
resets the corresponding MSI-X registers.  So, teardown and
re-initialize interrupts after resetting the hardware.

Reviewed by:        jimharris
Approved by:        markj (mentor)
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D3549
Delta File
+52 -9 head/sys/dev/ioat/ioat.c
+52 -9 1 file

FreeBSD — head/sys/net if_epair.c

Fix a panic which was reproducible by an infinite loop of
"ifconfig epair0 create && ifconfig epair0a destroy".

This was caused by an uninitialized function pointer in
softc->media.
Delta File
+8 -8 head/sys/net/if_epair.c
+8 -8 1 file

FreeBSD — projects/ifnet Makefile.inc1 UPDATING, projects/ifnet/bin/df df.c

Merge head r257698 through r287400.

FreeBSD — head Makefile.inc1

The ${BUILDKERNELS:[2..-1]} appears to produce a non zero result for
a one word variable, which is quite unexpected from documentation.
So, to avoid double installation of a single kernel, protect the extra
kernels loop with ${BUILDKERNELS:[#]} > 1 conditional.

Sponsored by:        Netflix
Sponsored by:        Nginx, Inc.
Delta File
+8 -0 head/Makefile.inc1
+8 -0 1 file

FreeBSD — head/sys/dev/iwn if_iwn.c if_iwnvar.h

Remove the software queue, which is a remnant of ifnet ifqueue.

Reviewed by:        adrian
Sponsored by:        Netflix
Sponsored by:        Nginx, Inc.

FreeBSD — head/etc devd.conf

Add iwm(4), that was missing in r287394.

Submitted by:        Shawn Webb
Delta File
+2 -2 head/etc/devd.conf
+2 -2 1 file

FreeBSD — head/sbin/mount_unionfs mount_unionfs.8

Fix markup.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sbin/bsdlabel bsdlabel.8, head/sbin/dumpfs dumpfs.8

It's 2015, and some people are still trying to use fdisk and then
go asking what debug flags to set for GEOM to make it work.  Advice
them to use gpart(8) instead.

Something similar should probably done with disklabel,
but I need to rewrite the disklabel examples first.

Reviewed by:        wblock@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D3315

FreeBSD — head/sys/compat/linux linux_fork.c

Fixes a panic triggered by threaded Linux applications when running
with RACCT/RCTL enabled.

Reviewed by:        ngie@, ed@
Tested by:        Larry Rosenman <ler at lerctr.org>
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D3470
Delta File
+21 -1 head/sys/compat/linux/linux_fork.c
+21 -1 1 file

FreeBSD — head/etc devd.conf pccard_ether

Fix dynamic attach/detach of 802.11 devices after r287197:

o In pccard_ether add code to start children of a 802.11
  device, that are configured in rc.conf.
o In devd.conf provide a regex matching all 802.11 devices,
  and on match run pccard_ether to spawn children.

PR:                202784
Submitted by:        <vidwer gmail.com>
In collaboration with:        "Oleg V. Nauman" <oleg opentransfer.com>
Delta File
+11 -9 head/etc/devd.conf
+17 -0 head/etc/pccard_ether
+28 -9 2 files

FreeBSD — stable/10/lib/libc/locale utf8.c

MFC: r286490,r286491,r287125

Per rfc3629 value greater than 0x10ffff should be rejected (r286490,r286491)

Make UTF-8 parsing and generation more strict. (r287125  by ed)

- in mbrtowc() we need to disallow codepoints above 0x10ffff.
- In wcrtomb() we need to disallow codepoints between 0xd800 and 0xdfff.
Delta File
+6 -16 stable/10/lib/libc/locale/utf8.c
+6 -16 1 file

FreeBSD — stable/10/etc/mtree BSD.tests.dist, stable/10/usr.bin Makefile timeout

MFC: r268745,r268746,r268747,r268748,r268749,r268861,r268750,r268751,r268763
     r273769,r273771,r276771,r278810

New BSDL timeout(1) utility compatible with GNU timeout

Relnotes:        yes
Delta File
+69 -43 stable/10/usr.bin/timeout/timeout.c
+69 -10 stable/10/usr.bin/timeout/timeout.1
+6 -0 stable/10/usr.bin/timeout/Makefile
+2 -0 stable/10/etc/mtree/BSD.tests.dist
+1 -0 stable/10/usr.bin/Makefile
+0 -0 stable/10/usr.bin/timeout/tests/
+0 -0 stable/10/usr.bin/timeout/
+147 -53 7 files

FreeBSD — head/usr.sbin/sysrc sysrc

Bump version for altered long-opts processing

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+1 -1 head/usr.sbin/sysrc/sysrc
+1 -1 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Simplify long-option processing

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+10 -14 head/usr.sbin/sysrc/sysrc
+10 -14 1 file

FreeBSD — stable/10/sys/dev/sound/midi midi.c

MFC r286887: Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

FreeBSD — head/sys/kern subr_syscall.c

The 'sa' argument to syscallret() is not unused.
Delta File
+1 -1 head/sys/kern/subr_syscall.c
+1 -1 1 file

FreeBSD — head/sys/kern sys_process.c subr_syscall.c, head/sys/sys proc.h ptrace.h

Export current system call code and argument count for system call entry
and exit events. procfs stop events for system call tracing report these
values (argument count for system call entry and code for system call exit),
but ptrace() does not provide this information. (Note that while the system
call code can be determined in an ABI-specific manner during system call
entry, it is not generally available during system call exit.)

The values are exported via new fields at the end of struct ptrace_lwpinfo
available via PT_LWPINFO.

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

FreeBSD — head/usr.sbin/sysrc sysrc

Bump version for prior fix (SVN r287381)

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+1 -1 head/usr.sbin/sysrc/sysrc
+1 -1 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Style: Remove whitespace around brackets from function syntax options

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+1 -1 head/usr.sbin/sysrc/sysrc
+1 -1 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Comment for escape() function.

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+8 -0 head/usr.sbin/sysrc/sysrc
+8 -0 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Comment

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+1 -1 head/usr.sbin/sysrc/sysrc
+1 -1 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Properly escape arguments when moving into jail or chroot

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+22 -1 head/usr.sbin/sysrc/sysrc
+22 -1 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Style: comments

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+4 -4 head/usr.sbin/sysrc/sysrc
+4 -4 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Style consistency: add single space before each `;;' case entry

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+19 -19 head/usr.sbin/sysrc/sysrc
+19 -19 1 file

FreeBSD — head/usr.sbin/sysrc sysrc

Remove `SYSRC_' prefix from $SYSRC_VERBOSE (prefix unnecessary since
this is a non-inheritable attribute; was previously).

MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+12 -12 head/usr.sbin/sysrc/sysrc
+12 -12 1 file

FreeBSD — user/pho/stress2/misc trim6.sh

Regression test added.

Sponsored by:        EMC / Isilon storage division
Delta File
+56 -0 user/pho/stress2/misc/trim6.sh
+56 -0 1 file

FreeBSD — head/sys/netpfil/pf pf.c

pf: Fix misdetection of forwarding when net.link.bridge.pfil_bridge is set

If net.link.bridge.pfil_bridge is set we can end up thinking we're forwarding in
pf_test6() because the rcvif and the ifp (output interface) are different.
In that case we're bridging though, and the rcvif the the bridge member on which
the packet was received and ifp is the bridge itself.
If we'd set dir to PF_FWD we'd end up calling ip6_forward() which is incorrect.

Instead check if the rcvif is a member of the ifp bridge. (In other words, the
if_bridge is the ifp's softc). If that's the case we're not forwarding but
bridging.

PR:        202351
Reviewed by:        eri
Differential Revision:        https://reviews.freebsd.org/D3534
Delta File
+11 -1 head/sys/netpfil/pf/pf.c
+11 -1 1 file

FreeBSD — stable/10/usr.sbin/ypserv Makefile.yp ypinit.sh

MFC r286892

Serve /etc/eui64 via NIS.

The C library already knows how to lookup eui64 entries from NIS. For
example, fwcontrol(8) does it. But /var/yp/Makefile.dist doesn't build the
eui64 maps, and ypinit(8) doesn't push them to slaves. This change fixes
that.

FreeBSD — head/usr.sbin/pmcstat pmcstat.c

Fix an off by one error in r283613:  Like regular ffs(), CPU_FFS() returns
1 for CPU 0, etc. so the return value must be decremented to obtain the
first valid CPU ID.

Submitted by:        fabient
MFC after:        1 week
Delta File
+1 -1 head/usr.sbin/pmcstat/pmcstat.c
+1 -1 1 file

FreeBSD — head/sys/arm64/conf GENERIC, head/sys/conf files.arm64

Add support for the dwc usb in the HiSilicon hi6220 in the HiKey board. For
this we need to force the driver into host mode, as without this the driver
fails to detect any devices.

Relnotes:        yes
Sponsored by:        ABT Systems Ltd

FreeBSD — head/sys/cam/ctl ctl_frontend.c ctl_tpc_local.c

Make most of port methods optional and remove bunch of dummies.

FreeBSD — head/sys/arm64/conf GENERIC, head/sys/conf files.arm64

Add support for the DesignWare MMC hardware in the HiSilicon hi6220. This
SoC is used in the HiKey board from 96boards.

Currently on the SD card is working on the HiKey, as such devices 0 and 2
will need to be disabled, for example by adding the following to
loader.conf:

hint.hisi_dwmmc.0.disabled=1
hint.hisi_dwmmc.2.disabled=1

Relnotes:        yes (Hikey board booting)
Sponsored by:        ABT Systems Ltd

FreeBSD — head/libexec/rtld-elf/aarch64 rtld_machdep.h reloc.c

Fix how we place each objects thread local data. The code used was based
on the Variant II code, however arm64 uses Variant I. The former placed the
thread pointer after the data, pointing at the thread control block, while
the latter places these before said data.

Because of this we need to use the size of the previous entry to calculate
where to place the current entry. We also need to reserve 16 bytes at the
start for the thread control block.

This also fixes the value of TLS_TCB_SIZE to be correct. This is the size
of two unsigned longs, i.e. 2 * 8 bytes.

While here remove the bogus adjustment of the pointer in the
R_AARCH64_TLS_TPREL64 case. It should be the offset of the data relative
to the thread pointer, including the thread control block.

Sponsored by:        ABT Systems Ltd

FreeBSD — head/libexec/rtld-elf rtld.c

Ensure we use calculate_first_tls_offset, even if the main program doesn't
have TLS program header. This is needed on architectures with Variant I
tls, that is arm, arm64, mips, and powerpc. These place the thread control
block at the start of the buffer and, without this, this data may be
trashed.

This appears to not be an issue on mips or powerpc as they include a second
adjustment to move the thread local data, however this is on arm64 (with a
future change to fix placing this data), and should be on arm. I am unable
to trigger this on arm, even after changing the code to move the data
around to make it more likely to be hit. This is most likely because my
tests didn't use the variable in offset 0.

Reviewed by:        kib
MFC after:        1 week
Sponsored by:        ABT Systems Ltd
Delta File
+1 -1 head/libexec/rtld-elf/rtld.c
+1 -1 1 file

FreeBSD — head/release Makefile.vagrant

Remove '-' separating OSRELEASE and SNAPSHOT_DATE for vagrant
builds, and prepend it to SNAPSHOT_DATE to prevent a trailing '-'
in the final box name for a release build.

MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 head/release/Makefile.vagrant
+2 -2 1 file

FreeBSD — head/sys/dev/mmc/host dwmmc_var.h dwmmc.c

Finish allowing the dwmmc driver to be subclassed, move the softc to a new
header, along with the hwtype enum, device attach prototype, and driver_t.

Sponsored by:        ABT Systems Ltd