Displaying 1 50 of 319,225 commits (0.022s)

FreeBSD — head/usr.sbin/vidcontrol vidcontrol.1 vidcontrol.c

Reduce complexity and backwards compatibilty a little by removing new aliases
and repurposing "blink".  Improve accuracy of documentation of historical
mistakes and other bugs.

"blink" now means "set the blink attribute for the target(s)" instead of
"set the blink attribute and clear other attributes [and control flags]".
It was even more confusing to use "blinking" for the single attribute to
keep the old meaning for "blink".

"destructive" is not as historically broken or gone as the previous version
said.

The bugs involving resetting from defaults are now understood and partly
documented (the defaults are mis-initialized).

FreeBSD — stable/11/lib/libc/stdlib set_constraint_handler_s.c, stable/11/lib/libc/string memset_s.c

MFC r322427:
Improve standard compliance for memset_s() and abort_handler_s().

FreeBSD — stable/11/tests/sys/kern ptrace_test.c

MFC r321959:

Annotate tests that require root privileges appropriately

This unbreaks running the tests with unprivileged users.

FreeBSD — stable/11/usr.sbin/makefs/tests makefs_cd9660_tests.sh

MFC r321947:

Require strings(1) with :o_flag_preparer and :o_flag_publisher

strings(1) might not be installed on the system, e.g., if MK_TOOLCHAIN == no

FreeBSD — stable/11/share/mk bsd.test.mk

MFC r321081:

Sort the tests alphabetically before adding them to the Kyuafiles

This is being done to aid in debugging test runs, in the event the
output shifts due to refactored Makefiles, added tests, etc.
Delta File
+4 -0 stable/11/share/mk/bsd.test.mk
+4 -0 1 file

FreeBSD — stable/11/share/mk bsd.opts.mk

MFC r321954:

Delete comment above "__DEFAULT_DEPENDENT_OPTIONS" related to "meta mode options"

src.conf(5) should document which knobs are which and the dependency between each;
remove the comment so the variable can apply to non-"meta mode options".
Delta File
+0 -1 stable/11/share/mk/bsd.opts.mk
+0 -1 1 file

FreeBSD — stable/11/usr.bin/getconf progenv.gperf

MFC r321080:

Expose the ILP32/LP64 programming environments based on
__ILP32__/__LP64__ instead of by architecture.

The list was incomplete (previous commits purged invalid architectures,
like __alpha__, but failed to add new ones). It's best to base the symbol
presence on whether or not the architecture is ILP32 / LP64 capable, per
the compiler.

This fixes the ILP32/LP64 program environments on some architectures like
arm64, and by proxy fixes the tests on those architectures.

FreeBSD — stable/11/lib/ncurses/ncurses termcap.c

MFC r322445:

Hide `sccsid` under #if 0, per example in style(9)

This fixes a -Wunused warning with gcc 6.3.0/7.0.0.

FreeBSD — stable/11/bin/chmod/tests chmod_test.sh

MFC r321949,r321950,r322101:

r321949:

Add expected failures for ZFS

- :f_flag fails on ZFS because UF_IMMUTABLE isn't supported [1].
- :v_flag fails on ZFS because the mode for foo is [always] updated
  unnecessarily.

get_filesystem(..) (supporting function that was added to the test script)
is based on equivalent logic in usr.bin/extattr/tests/extattr_test.sh .

PR:        221189 [1], 221188 [2]

r321950:

Always use first parameter passed to get_filesystem(..) instead of discarding it
and using `.` instead.

MFC with:        r321949
PR:        221189 [1], 221188 [2]

r322101:


    [7 lines not shown]

FreeBSD — head/sys/modules Makefile

sys/modules: don't build qlxgbe if the user objects to sourceless ucode

PR:                204749
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
MFC after:        1 week
Delta File
+2 -0 head/sys/modules/Makefile
+2 -0 1 file

FreeBSD — head/share/man/man4 ena.4

ena.4: fix spelling of 'occurred'

PR:                331298
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
MFC after:        1 week
Delta File
+7 -7 head/share/man/man4/ena.4
+7 -7 1 file

FreeBSD — head/sys/modules Makefile

sys/modules: don't build bxe if the user objects to sourceless ucode

PR:                204747
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
MFC after:        1 week
Delta File
+2 -0 head/sys/modules/Makefile
+2 -0 1 file

FreeBSD — projects/pnfs-planb-server/sys/fs/nfsserver nfs_nfsdstate.c

Set nfsrv_doflexfile == 1 when there are mirrors, since mirrors aren't
supported by the File layout.

FreeBSD — head/share/man/man4 sa.4

sa.4: fix spelling of 'suppresses'

PR:                221302
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
MFC after:        1 week
Delta File
+1 -1 head/share/man/man4/sa.4
+1 -1 1 file

FreeBSD — projects/pnfs-planb-server-stable11/sys/fs/nfsserver nfs_nfsdstate.c

Set nfsrv_doflexfile == 1 when there are mirrors, since File Layout doesn't
support mirrors.

FreeBSD — head/usr.sbin/pw pw_user.c, head/usr.sbin/pw/tests pw_useradd_test.sh

pw useradd: Validate the user name before creating the entry

Previouly it was possible to create users with spaces in the name with:
pw useradd -u 1234 -g 1234 -n 'test user'

The "-g 1234" is relevant, without it the name was already rejected
as expected:

[fk at test ~]$ sudo pw useradd -u 1234 -n 'test user'
pw: invalid character ` ' at position 4 in userid/group name

Bug unintentionally found with a salt config without explicit name entry:

test user:
  user.present:
    - uid: 1234
    - gid: 1234
    - fullname: Test user
    - shell: /usr/local/bin/bash
    - home: /home/test
    - groups:
      - wheel
      - salt

"Luckily" salt modules rarely bother with input validation either ...

    [5 lines not shown]

FreeBSD — head/usr.sbin/pw pw_user.c, head/usr.sbin/pw/tests pw_usermod_test.sh

pw usermod: Properly deal with empty secondary group lists (-G '')

"pw usermod someuser -G ''" is supposed make sure that someuser
doesn't have any secondary group memberships.

Previouly it was a nop because split_groups() only intitialised
"groups" if at least one group was specified. As a result the
existing secondary group memberships were kept.

PR:                221417
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
MFC after:        1 week
Relnotes:        yes

FreeBSD — head/contrib/binutils/gas/config tc-mips.c

gas: add parens to clarify expression and eliminate clang warning

Building mips64 w/ Clang failed with -Werror,-Wshift-negative-value
error: shifting a negative signed value is undefined

FreeBSD — head/share/man/man4 bge.4

Add Thunderbolt Apple interfaces to the bge(4) supported list.
Document message reported by kernel upon removal in DIAGNOSTIC section.
Document shortcomings in BUGS section.

Approved by:        bcr (mentor)
MFC after:        5 days
Differential Revision:        https://reviews.freebsd.org/D11771
Delta File
+17 -1 head/share/man/man4/bge.4
+17 -1 1 file

FreeBSD — stable/11/sys/vm vm_kern.c

MFC r322391:
Micro-optimize kmem_unback().
Delta File
+6 -4 stable/11/sys/vm/vm_kern.c
+6 -4 1 file

FreeBSD — head/sys/compat/linuxkpi/common/src linux_tasklet.c linux_work.c, head/sys/sys gtaskqueue.h

Move some other SI_SUB_INIT_IF initializations to SI_SUB_TASKQ

Drop the EARLY_AP_STARTUP gtaskqueue code, as gtaskqueues are now
initialized before APs are started.

Reviewed by:        hselasky@, jhb@
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D12054

FreeBSD — head/contrib/binutils/gas/config tc-mips.c

gas: fix "format string is not a string literal" errors on mips

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/contrib/binutils/bfd ecoff.c

bfd: cast BFD_ALIGN to fix clang error on mips

error: implicit conversion from 'bfd_vma' (aka 'unsigned long long')
to 'int' changes value from 18446744073709551615 to -1
  return BFD_ALIGN (ret, 16);
  ~~~~~~ ^~~~~~~~~~~~~~~~~~~
note: expanded from macro 'BFD_ALIGN'
   : ~ (bfd_vma) 0)
     ^~~~~~~~~~~~~

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/contrib/binutils/bfd/ecoff.c
+1 -1 1 file

FreeBSD — head/lib/libfetch common.c

In fetch_resolve(), if the port number or service name is included in
the host argument (e.g. "www.freebsd.org:443"), the service pointer,
which is supposed to point to the port or service part, instead points
to the separator, causing getaddrinfo() to fail.

Note that I have not been able to trigger this bug with fetch(1), nor
do I believe it is possible, as libfetch always parses the host:port
specification itself.  I discovered it when I copied fetch_resolve()
into an unrelated project.

MFC after:        3 days
Delta File
+1 -1 head/lib/libfetch/common.c
+1 -1 1 file

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

FreeBSD 11.1 release added.
Delta File
+6 -3 head/share/misc/bsd-family-tree
+6 -3 1 file

FreeBSD — head/sys/i386/i386 exception.s

When checking that #UD comes from kernel mode, check that the
exception did not happen in vm86 mode.  A vm86 userland process could
have a %cs that matches GSEL_KPL, while dtrace cannot hook it.

Submitted by:        Maxime Villard <max at m00nbsd.net>
MFC after:        3 days
Delta File
+7 -4 head/sys/i386/i386/exception.s
+7 -4 1 file

FreeBSD — stable/10/release/arm BEAGLEBONE.conf WANDBOARD.conf

Create hard links to the installed dtb files for the BEAGLEBONE [1]
and WANDBOARD [2] images to fix a boot issue.

This is a direct commit to stable/10, as the change is not needed
for head and stable/11.

Approved by:        re (marius)
Help from:        manu [1], ian [2]
Tested by:        gjb [1], ian [2]
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/lib/libutil kinfo_getvmmap.3

Add caveat to kinfo_getvmmap(3) explaining high CPU utilisation.
Based on kib's reply on 
https://lists.freebsd.org/pipermail/freebsd-hackers/2016-July/049710.html

PR:                210904
Submitted by:        Yuri Victorovich <yuri AT rawbw DOT com>
Reviewed by:        jilles
Approved by:        bcr (mentor)
MFC after:        5 days
Differential Revision:        https://reviews.freebsd.org/D12004
Delta File
+8 -1 head/lib/libutil/kinfo_getvmmap.3
+8 -1 1 file

FreeBSD — head/sys/cam cam_iosched.c

cam iosched: fix typos in comments

PR:                220947
Submitted by:        Fabian Keil
Obtained from:        ElectroBSD
Delta File
+11 -11 head/sys/cam/cam_iosched.c
+11 -11 1 file

FreeBSD — head/share/man/man4 pfsync.4

Correct multicast address used in pfsync(4)
As stated in src/sys/netinet/in.h L395, address used is 224.0.0.240.

PR:                216885
Submitted by:        Matthias Ordner <matthias.ordner AT noris DOT net>
Reviewed by:        kp
Approved by:        bcr (mentor)
MFC after:        5 days
Differential Revision:        https://reviews.freebsd.org/D12011
Delta File
+2 -2 head/share/man/man4/pfsync.4
+2 -2 1 file

FreeBSD — head/sys/dev/syscons scterm-teken.c, head/sys/dev/vt vt_core.c

Fix syscons escape sequence for setting the local cursor type.  This sequence
was aliased to a vt sequence, causing and fixing various bugs.

For syscons, this restores support for arg 2 which sets blinking block
too forcefully, and restores bugs for arg 0 and 1.  Arg 2 is used for
vs in the cons25 entry in termcap, but I've never noticed an application
that uses this.  The bugs involve replacing local settings by global
ones and need better handling of defaults to fix.

For vt, this requires moving the aliasing code from teken to vt where
it belongs.  This sequences is very important for cons25 compatibility
in vt since it is used by the cons25 termcap entries for ve, vi and
vs.  vt can't properly support vs for either cons25 or xterm since it
doesn't support blinking.  For xterm, the termcap entry for vs asks
for something different using 12;25h instead of 25h.

Rename C25CURS for this to C25LCT and change its description to be closer
to echoing the old comment about it.  CURS is too generic.

Fix missing syscons escape sequence for setting the global cursor shape
(and type).  Only support this in syscons since vt can't emulate anything
in it.

FreeBSD — stable/10/sys/dev/mpr mpr_config.c mpr_pci.c, stable/10/sys/dev/mps mps_config.c mps_table.h

MFC r321502, r321714, r321733, r321737, r321799, r322364:

  ------------------------------------------------------------------------
  r321502 | scottl | 2017-07-25 19:48:13 -0600 (Tue, 25 Jul 2017) | 2 lines

  Quiet a message that sounds far more dire than it really is.

  ------------------------------------------------------------------------
  r321714 | scottl | 2017-07-30 00:53:58 -0600 (Sun, 30 Jul 2017) | 13 lines

      Split the interrupt setup code into two parts: allocation and configuration.
      Do the allocation before requesting the IOCFacts message.  This triggers
      the LSI firmware to recognize the multiqueue should be enabled if available.
      Multiqueue isn't used by the driver yet, but this also fixes a problem with
      the cached IOCFacts not matching latter checks, leading to potential problems
      with error recovery.

      As a side-effect, fetch the driver tunables as early as possible.

  Reviewed by:        slm
  Obtained from:        Netflix
  Differential Revision:        D9243

  ------------------------------------------------------------------------
  r321733 | scottl | 2017-07-30 16:34:24 -0600 (Sun, 30 Jul 2017) | 5 lines

    [63 lines not shown]

FreeBSD — head/sys/amd64/sgx sgx.c

Fix module unload when SGX support is not present in CPU.

Sponsored by:        DARPA, AFRL
Delta File
+6 -3 head/sys/amd64/sgx/sgx.c
+6 -3 1 file

FreeBSD — head/sys/conf files

Fix cut and paste typo that prevented T5 firmware to be compiled in.

Reviewed by:        np
Delta File
+1 -1 head/sys/conf/files
+1 -1 1 file

FreeBSD — stable/11/sys/dev/mpr mpr_config.c mpr_pci.c, stable/11/sys/dev/mps mps_config.c mps_table.h

MFC r321502, r321714, r321733, r321737, r321799, r322364:

  ------------------------------------------------------------------------
  r321502 | scottl | 2017-07-25 19:48:13 -0600 (Tue, 25 Jul 2017) | 2 lines

  Quiet a message that sounds far more dire than it really is.

  ------------------------------------------------------------------------
  r321714 | scottl | 2017-07-30 00:53:58 -0600 (Sun, 30 Jul 2017) | 13 lines

      Split the interrupt setup code into two parts: allocation and configuration.
      Do the allocation before requesting the IOCFacts message.  This triggers
      the LSI firmware to recognize the multiqueue should be enabled if available.
      Multiqueue isn't used by the driver yet, but this also fixes a problem with
      the cached IOCFacts not matching latter checks, leading to potential problems
      with error recovery.

      As a side-effect, fetch the driver tunables as early as possible.

  Reviewed by:        slm
  Obtained from:        Netflix
  Differential Revision:        D9243

  ------------------------------------------------------------------------
  r321733 | scottl | 2017-07-30 16:34:24 -0600 (Sun, 30 Jul 2017) | 5 lines

    [61 lines not shown]

FreeBSD — head/contrib/mdocml lib.in

typo

PR:                211160
Submitted by:        Dan Robertson <dan.robertson AT anidata DOT org>
Reviewed by:        oshogbo
MFC after:        7 days
Differential Revision:        https://reviews.freebsd.org/D12005
Delta File
+1 -1 head/contrib/mdocml/lib.in
+1 -1 1 file

FreeBSD — head/sys/teken sequences teken_subr_compat.h

Improve names for cons25 sequences.

In a recent commit, I forgot to expand an X to an abbreviation of "BORDER".
Fix this and some nearby bad names.

The descriptions were copied from comments in scterm-sc.c, but some
of these are bad.  The border [color] was inconsistently described as
a property of the "display", but I had changed this to "adapter" to
match the descriptions for other color settings.  All colors supported
by the cons25 sequences are actually properties of the current vty and
that should not be described.  But the other colors are defaults.
Change "adapter" to "default" for them and remove "adapter" for the
border.  Reduce the verbosity of the abbreviation from AD to D.

FreeBSD — head/sys/dev/syscons scterm-teken.c

Fix vt100 escape sequence for showing and hiding the cursor in syscons.
It should toggle between 2 states, but it used a cut-down version of
support for a related 3-state syscons escape sequence and inherited
bugs from that.  The usual misbehaviour was that hiding and showing
the cursor reset it to a global default.

Support for the 3-state sequence remains broken by aliasing to the 2-state
sequence.  This works better but incompatibly for the 2 cases that it
supports.

FreeBSD — head/contrib/zstd examples

Remove example from zstd sources, their license does not allow redistribution

Reported by:        joerg at NetBSD
Delta File
+0 -0 head/contrib/zstd/examples/
+0 -0 1 file

FreeBSD — vendor/zstd/dist examples

Remove example from zstandard distribution as it is not supposed to be
distributed
Delta File
+0 -0 vendor/zstd/dist/examples/
+0 -0 1 file

FreeBSD — stable/10/sbin/route route.8

MFC r322550:
Typo, the '-6' option selects inet6.

Approved by:        re (delphij)
Delta File
+1 -1 stable/10/sbin/route/route.8
+1 -1 1 file

FreeBSD — head/sys/dev/syscons scterm-teken.c, head/sys/teken teken_subr_compat.h sequences

Fix missing syscons escape sequence for setting the border color.

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

safe: quiet -Wtautological-compare

Code was testing that an unsigned type was >= 0.

Reviewed by:        markj
Approved by:        markj (mentor)
Sponsored by:        Dell EMC Isilon
Delta File
+2 -6 head/sys/dev/safe/safe.c
+2 -6 1 file

FreeBSD — head/usr.bin/calendar/calendars calendar.freebsd

Clarify the fact that Andrey (ache) passed away in Moscow

Take care friend <3.

FreeBSD — head/sys/netinet tcp_usrreq.c

Ensure inp_vflag is consistently set for TCP endpoints.

Make sure that the flags INP_IPV4 and INP_IPV6 are consistently set
for inpcbs used for TCP sockets, no matter if the setting is derived
from the net.inet6.ip6.v6only sysctl or the IPV6_V6ONLY socket option.
For UDP this was already done right.

PR:                221385
MFC after:        1 week
Delta File
+2 -0 head/sys/netinet/tcp_usrreq.c
+2 -0 1 file

FreeBSD — stable/11/sbin/route route.8

MFC r322550:
Typo, the '-6' option selects inet6.
Delta File
+1 -1 stable/11/sbin/route/route.8
+1 -1 1 file

FreeBSD — head/sys/kern kern_shutdown.c

Remove some unneeded subroutines for padding writes to dump devices.

Right now we only need to pad when writing kernel dump headers, so
flatten three related subroutines into one. The encrypted kernel dump
code already writes out its key in a dumper.blocksize-sized block.

No functional change intended.

Reviewed by:        cem, def
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D11647
Delta File
+13 -39 head/sys/kern/kern_shutdown.c
+13 -39 1 file

FreeBSD — head/sys/amd64/amd64 minidump_machdep.c, head/sys/arm/arm minidump_machdep.c

Rename mkdumpheader() and group EKCD functions in kern_shutdown.c.

This helps simplify the code in kern_shutdown.c and reduces the number
of globally visible functions.

No functional change intended.

Reviewed by:        cem, def
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D11603

FreeBSD — head/sys/amd64/amd64 minidump_machdep.c, head/sys/arm/arm minidump_machdep.c

Factor out duplicated kernel dump code into dump_{start,finish}().

dump_start() and dump_finish() are responsible for writing kernel dump
headers, optionally writing the key when encryption is enabled, and
initializing the initial offset into the dump device.

Also remove the unused dump_pad(), and make some functions static now that
they're only called from kern_shutdown.c.

No functional change intended.

Reviewed by:        cem, def
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D11584