Displaying 1 50 of 335,682 commits (0.021s)

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

Recognize LAN in Lenovo USB-C and TB3 docks
Delta File
+2 -0 head/sys/dev/usb/net/if_ure.c
+2 -0 1 file

FreeBSD — head/sys/teken teken_subr.h sequences

Implement ECMA-48 "REP", some Linuxen have started emitting them recently.

Approved by:        ed

FreeBSD — head/sys/mips/conf OCTEON1

Remove all the really old junk that never would be used with an OCTEON
CPU. Most of them were here just to test build mips versions of
things, even though many of them have never been tested on mips, let
alone the Octeon.
Delta File
+0 -76 head/sys/mips/conf/OCTEON1
+0 -76 1 file

FreeBSD — head/sys/dev/usb usbdevs

Add Lenovo USB-C and TB3 docks
Delta File
+2 -0 head/sys/dev/usb/usbdevs
+2 -0 1 file

FreeBSD — head/lib/libc/sys recv.2

Update example to something people less than 40 years old have heard about.
Delta File
+2 -7 head/lib/libc/sys/recv.2
+2 -7 1 file

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

__DEFAULT_YES/NO. These options simply cannot work where we were using
__DEFAULT_NO. The proper thing to do in that case is to use the
BROKEN_OPTIONS knob instead.
Delta File
+12 -15 head/share/mk/src.opts.mk
+12 -15 1 file

FreeBSD — head/share/man/man5 src.conf.5, head/tools/build/options WITH_LOADER_FORCE_LE WITH_NVME

Add missing options.

WITHOUT_LOADER_LUA is only needed since we turned it off by default on
powerpc and sparc64 in r338203. Same with
have been needed since they were added.

FreeBSD — head/sys/conf files.amd64, head/sys/dev amdgpio

Add amdgpio, driver for GPIO controller on AMD-based x86_64 platforms

Submitted by:        Rajesh Kumar <rajbsd at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D16865
Delta File
+468 -0 head/sys/dev/amdgpio/amdgpio.c
+332 -0 head/sys/dev/amdgpio/amdgpio.h
+8 -0 head/sys/modules/amdgpio/Makefile
+2 -0 head/sys/modules/Makefile
+1 -0 head/sys/conf/files.amd64
+0 -0 head/sys/dev/amdgpio/
+0 -0 head/sys/modules/amdgpio/
+811 -0 7 files

FreeBSD — head/sys/powerpc/mpc85xx pci_mpc85xx_pcib.c

powerpc/mpc85xx: Make Freescale PCI bridge driver a subclass of ofw_pcib_pci

This driver was already 99% identical to the ofw_pcib_pci driver, except for
the attachment.  Since ofw_pcib_pci is already a subclass of pcib, this
creates a private declaration of that class, to use for the base class for
this driver.

At some point in the future, ofw_pcib_pci_driver should probably be exported
to a header, so we're not tracking the softc struct contents, but for now,
since there's only this one other driver, it's not a pressing issue.

FreeBSD — head/sys/powerpc/powernv opal_dev.c

powerpc64/powernv: Add pnpinfo strings to opal device children

This makes it easier to see what's left unattached as new drivers are
written, and to see what drivers get attached to what nodes.

FreeBSD — head/sys/powerpc/aim mmu_oea64.c

powerpc64/pmap: Correct the logic for minidump KVA chunk

r279252 inverted the logic in moea64_scan_init, such that instead of
terminating when reaching a dead page, it terminates when reaching a live
page, ostensibly preserving exactly one page of KVA.
Delta File
+1 -1 head/sys/powerpc/aim/mmu_oea64.c
+1 -1 1 file

FreeBSD — head/sys/powerpc/pseries xics.c

powerpc64/xics: Fix comment typo
Delta File
+1 -1 head/sys/powerpc/pseries/xics.c
+1 -1 1 file

FreeBSD — head/sys/powerpc/powernv opal_pci.c

powerpc64/powernv:opal_pci: Fix the alignment of the TCE table

The TCE table need only be aligned to the size of the table, not the size of
the TCE segment.

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

arm generic_timer: fix armv8 timer desc

In the FDT based probe, check for "arm,armv8-timer" before "arm,armv7-timer".
This gets the description right when the timer node has both entries in
compatible list.
Delta File
+4 -4 head/sys/arm/arm/generic_timer.c
+4 -4 1 file

FreeBSD — head/sys/cddl/dev/dtrace/powerpc dtrace_asm.S

powerpc/dtrace: Use explicit bit numbers to mask out PSL_EE

There seems to be a race in CI, such that dtrace_asm.S might be assembled
before the genassym is completed.  This causes a build failure when PSL_EE
doesn't exist, and is read as 0.  Get around this by explicitly specifying
the bits in the mask instead.

FreeBSD — head/usr.sbin/pwd_mkdb pwd_mkdb.8 pwd_mkdb.c

pwd_mkdb: retire -B and -L endianness options

Legacy v3 db support was retired in r333133, and it was v3 support that
required the -B and -L options.  The options were retained temporarily,
but now that stable/12 has branched they can be removed.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/powerpc/booke spe.c trap_subr.S, head/sys/powerpc/include spr.h trap.h

powerpcspe: Implement SPE exception handling

The Signal Processing Engine (SPE) found in Freescale e500 cores (and
others) offloads IEEE-754 compliance (NaN, Inf handling, overflow,
underflow) to software, most likely as a means of simplifying the APU
silicon.  Some software, like AbiWord, needs full IEEE-754 compliance,
including NaN handling.  Implement the necessary bits to enable it.

Differential Revision: https://reviews.freebsd.org/D17446

FreeBSD — head/share/vt/fonts tom-thumb.hex

Add some tom-thumb vt font glyphs

Primarily missing glyphs used by mandoc.

U+2010 hyphen
U+2011 non-breaking hyphen
U+2012 figure dash
U+2013 en dash
U+2014 em dash
U+2018 left single quotation mark
U+2019 right single quotation mark
U+2020 dagger
U+2021 double dagger
U+203E overline
U+2122 trade mark sign
U+2502 box drawings light vertical
U+25A1 white square
U+25CA lozenge
U+25CB circle
U+2660 black spade suit
U+2663 black club suit
U+2665 black heart suit
U+2666 black diamond suit
U+FFFD replacement char

    [2 lines not shown]
Delta File
+22 -0 head/share/vt/fonts/tom-thumb.hex
+22 -0 1 file

FreeBSD — head/share/man/man5 src.conf.5

regen src.conf after r339477 and r339511
Delta File
+43 -41 head/share/man/man5/src.conf.5
+43 -41 1 file

FreeBSD — head Makefile.inc1, head/share/mk bsd.lib.mk bsd.prog.mk

Introduce src.conf knob to build userland with retpoline

WITH_RETPOLINE enables -mretpoline vulnerability mitigation in userland
for CVE-2017-5715.

Reported by:        Peter Malcom
Reviewed by:        markj
MFC after:        1 week
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D17421

FreeBSD — head/lib/libc/quad lshldi3.c lshrdi3.c

ANSIfy libc/quad

Some of these routines exist in both lib/libc/quad/ and sys/libkern/.
r325988 ANSIfied sys/libkern.  Update libc/quad to match.

PR:                223641
Reported by:        bde
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/stand/forth check-password.4th

Restore the ability to prevent the user from interrupting the boot process
without first entering the password stored in loader.conf(5).

PR:                kern/207069
Reported by:        david at dcrosstech.com
MFC after:        3 days
Sponsored by:        Smule, Inc.

FreeBSD — head/sys/vm vm_map.c

Unindent vm_map_simplify_entry() after r339506.

Reviewed by:        markj
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Differential revision:        https://reviews.freebsd.org/D17632
Delta File
+14 -16 head/sys/vm/vm_map.c
+14 -16 1 file

FreeBSD — head/sys/amd64/amd64 trap.c machdep.c, head/sys/amd64/ia32 ia32_syscall.c

amd64: flush L1 data cache on syscall return with an error.

The knob allows to select the flushing mode or turn it off/on.  The
idea, as well as the list of the ignored syscall errors, were taken
from https://www.openwall.com/lists/kernel-hardening/2018/10/11/10 .

I was not able to measure statistically significant difference between
flush enabled vs disabled using syscall_timing getuid.

Reviewed by:        bwidawsk
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Differential revision:        https://reviews.freebsd.org/D17536

FreeBSD — head/sys/vm vm_map.c

Reduce code duplication in merging vm_entry neighbors.

Submitted by:        Doug Moore <dougm at rice.edu>
Reviewed by:        markj
MFC after:        1 week
Differential revision:        https://reviews.freebsd.org/D17610
Delta File
+47 -52 head/sys/vm/vm_map.c
+47 -52 1 file

FreeBSD — head/lib/libc/gmon mcount.c, head/sys/libkern mcount.c

mcount: tidy up ANSIfication

libc/gmon's mcount was ANSIfied in r124180, with libkern following over
a decade later, in r325988, but some minor discrepancies remained.
Update libc/gmon's mexitcount to an ANSI C function definition, and use
(void) for libkern-only functions that take no arguments.

Reported by:        bde

FreeBSD — head/stand/i386/libi386 Makefile

libi386: remove CLANG_NO_IAS workaround

Clang's Integrated Assembler was previously disabled for i386 with the
note that it "doesn't grok .codeNN directives yet."  This is no longer
the case (and hasn't been for some time), and the assembled output .text
is identical between gas and IAS.

MFC after:        2 months
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -4 head/stand/i386/libi386/Makefile
+0 -4 1 file

FreeBSD — head/contrib/tzdata Makefile asia

Import tzdata 2018f

Changes: https://github.com/eggert/tz/blob/2018f/NEWS

MFC after:        3 days

FreeBSD — head/lib/libc/gen Makefile.inc

Add link to the setproctitle_fast function.

MFC after:        1 week
Delta File
+1 -0 head/lib/libc/gen/Makefile.inc
+1 -0 1 file

FreeBSD — head/sys/kern kern_mbuf.c

netdump: Zone mbufs should be allocated before dump

Reviewed by:        markj
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D17306
Delta File
+5 -1 head/sys/kern/kern_mbuf.c
+5 -1 1 file

FreeBSD — head/sys/crypto/chacha20 chacha.c

Embedded chacha: Remove some harmless dead stores in keystream mode

(From r338059.)

Sponsored by:        Dell EMC Isilon
Delta File
+2 -0 head/sys/crypto/chacha20/chacha.c
+2 -0 1 file

FreeBSD — head/lib/libc/gen arc4random.c, head/sys/crypto/chacha20 chacha.h

Embedded chacha: Distinguish via dedicated macro

Set embedding expectations via CHACHA_EMBED macro rather than _KERNEL

No functional change.

Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/crypto/chacha20 _chacha.h chacha.h

crypto/chacha: Split header into separate _chacha.h

Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/kern subr_compressor.c

ZSTDIO: Correctly initialize zstd context with provided 'level'

Prior to this revision, we allocated sufficient context space for 'level'
but never actually set the compress level parameter, so we would always get
the default '3'.

Reviewed by:        markj, vangyzen
MFC after:        12 hours
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D17144
Delta File
+19 -4 head/sys/kern/subr_compressor.c
+19 -4 1 file

FreeBSD — head/lib/libc/gen getentropy.c

getentropy(3): Trap non-API errnos from getrandom(2) and abort

Additionally, reconcile our abort behavior with arc4random(3).  Unlike
SIGABRT, SIGKILL cannot be caught by the user program.  These failures
are fatal conditions and should not return to the caller, as they did in
the instance that resulted in D17049.

While here, fix some minor typos in a comment.

Reviewed by:        delphij
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D17050
Delta File
+14 -5 head/lib/libc/gen/getentropy.c
+14 -5 1 file

FreeBSD — head/gnu/lib/libdialog Makefile, head/gnu/usr.bin/dialog Makefile

Bring back the WARNS level to what it used to be to please gcc arches at least

FreeBSD — head/sbin/mdmfs mdmfs.c

mdmfs(8): Check for other types of helper-program failure

Exiting with a signal should not be treated the same as successful exit with
zero status.

Return signal exit information to the callers via negative integers, to
enable distinction from normal exit statuses.  (All consumers that check for
errors don't care what the exact non-zero exit value is -- in such a case
they print a diagnostic message and either continue or bail.)

Additionally, check for unexpected sources of waitpid() wakeup and bail if
we encounter them.

Reported by:        lev@
Reviewed by:        kib, lev, markj (earlier version)
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D17035
Delta File
+49 -10 head/sbin/mdmfs/mdmfs.c
+49 -10 1 file

FreeBSD — head/sbin/nvmecontrol logpage.c

Fix typo

The vendor name wds should have been wdc. Add wdc and keep the wds for
script compat.

MFC after: 3 days
Delta File
+2 -0 head/sbin/nvmecontrol/logpage.c
+2 -0 1 file

FreeBSD — head/sys/dev/random fortuna.c

Fortuna: Fix a race to prevent reseed spamming

If multiple threads enter fortuna_pre_read contemporaneously, such as via
read(2) or getrandom(2), they could race to check how long it has been since
the last update due to a TOCTOU problem with 'now'.

Here is an example problematic execution:

Thread A:                       Thread B:
now_A = getsbinuptime();
                                now_B = getsbinuptime();  // now_B > now_A
                                if (now - fs_lasttime > SBT_1S/10) {
                                        fs_lasttime = now;
                                        ... // reseed
if (now_A - fs_lasttime > SBT_1S/10)  // now_A - fs_lasttime underflows
        fs_lasttime = now_A;
        ... // reseed again, despite less than 100ms elapsing

To resolve the race, simply check the current time after we win the lock

    [11 lines not shown]
Delta File
+1 -1 head/sys/dev/random/fortuna.c
+1 -1 1 file

FreeBSD — head/sys/dev/random random_harvestq.c

random(4): Correct a bare zero to the appropriate enum

The convention for updating hc_destination[] is to index with a
random_entropy_source.  Zero happens to match RANDOM_CACHED, which is
correct for this source (early random data).  Spell the zero value as the
enum name instead of the magic constant.

No functional change.

Reviewed by:        delphij, markm
Approved by:        secteam (delphij)
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D16983

FreeBSD — head/sys/amd64/amd64 pmap.c, head/sys/i386/i386 pmap.c

Add an assertion to pmap_enter().

When modifying an existing managed mapping, we should find a PV entry
for the old mapping.  Verify this.

Before r335784 this would have been implicitly tested by the fact that
we always freed the PV entry for the old mapping.

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

FreeBSD — head/lib/libc/locale rune.c endian.h, head/share/colldef Makefile

Add -b/-l options to localedef(1) to specify output endianness and use
it appropriately when building share/ctypedef and share/colldef.

This makes the resulting locale data in EL->EB (amd64->powerpc64) cross
build and in the native EB build match.  Revert the changes done to libc
in r308170 as they are no longer needed.

PR:                231965
Reviewed by:        bapt, emaste, sbruno, 0mp
Approved by:        kib (mentor)
Differential Revision:        https://reviews.freebsd.org/D17603

FreeBSD — head/contrib/dialog configure aclocal.m4, head/contrib/dialog/package dialog.map dialog.sym

Update libdialog to 1.3-20180621
Delta File
+11,998 -3,307 head/contrib/dialog/configure
+2,212 -777 head/contrib/dialog/aclocal.m4
+857 -840 head/contrib/dialog/config.sub
+716 -883 head/contrib/dialog/dialog.3
+387 -469 head/contrib/dialog/config.guess
+421 -275 head/contrib/dialog/dialog.pl
+4,747 -1,266 77 files not shown
+21,338 -7,817 83 files

FreeBSD — head/sys/sys random.h

random(4): Translate a comment requirement into a compile-time invariant

In various places, random represents the set of sources as a 32-bit word
bitmask.  It assumes all sources fit within this, i.e., the maximum valid
source number is 31.

There was a comment specifying this limitation, but we can actually refuse
to compile if our assumption is violated instead.  We still have a few spare
random source slots, but sooner or later someone may need to convert the
masks used from raw 32-bit words to bitset(9) APIs.

This prevents some kinds of developer foot-shooting when adding new random
sources.  No functional change.

Reviewed by:        delphij, markm
Approved by:        secteam (delphij)
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D16982
Delta File
+2 -3 head/sys/sys/random.h
+2 -3 1 file

FreeBSD — head/share/man/man4 ddb.4, head/sys/ddb db_thread.c db_command.c

ddb: Enable 'thread <address>'

Currently, the 'thread' command (to switch the debugger to another thread)
only accepts decimal-encoded tids.  Use the same parsing logic as 'show
thread <arg>' to accept hex-encoded thread pointers in addition to
decimal-encoded tids.

Document the 'thread' command in ddb.4 and expand the 'show thread'
documentation to cover the tid usage.

Reported by:        bwidawsk
Reviewed by:        bwidawsk (earlier version), kib (earlier version), markj
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D16962

FreeBSD — head/share/man/man9 dev_refthread.9 Makefile

Add a dev_refthread.9 document.

Reviewed by:        kib
Sponsored by:        Dell EMC Isilon
Differential:        https://reviews.freebsd.org/D16897

FreeBSD — head/share/misc bsd-family-tree

bsd-family-tree: Announce two new releases

- OpenBSD 6.4; NetBSD 7.2
Delta File
+6 -3 head/share/misc/bsd-family-tree
+6 -3 1 file

FreeBSD — vendor/dialog 1.3-20180621, vendor/dialog/1.3-20180621 configure aclocal.m4

Tag import of libdialog 1.3-20180621

FreeBSD — vendor/dialog/dist configure aclocal.m4, vendor/dialog/dist/package dialog.map dialog.sym

Import dialog 1.3-20180621
Delta File
+11,998 -3,307 vendor/dialog/dist/configure
+2,212 -777 vendor/dialog/dist/aclocal.m4
+857 -840 vendor/dialog/dist/config.sub
+716 -883 vendor/dialog/dist/dialog.3
+387 -469 vendor/dialog/dist/config.guess
+421 -275 vendor/dialog/dist/dialog.pl
+5,597 -1,256 88 files not shown
+22,188 -7,807 94 files

FreeBSD — head/sys/dev/random fortuna.c

Fortuna: trivial static variable cleanup

Remove unnecessary use of function-local static variable.  32 bytes is
small enough to live on the stack.

Reviewed by:        delphij, markm
Approved by:        secteam (delphij)
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D16937
Delta File
+1 -1 head/sys/dev/random/fortuna.c
+1 -1 1 file