Displaying 1 50 of 300,273 commits (0.030s)

FreeBSD — stable/9/usr.bin/mail v7.local.c quit.c

MFC r302911:
mail(1): Avoid closing negative file descriptors.

CID:                1008105, 1008106

FreeBSD — releng/10.1 UPDATING, releng/10.1/sys/conf newvers.sh

Fix bspatch heap overflow vulnerability. [SA-16:25]

Fix freebsd-update(8) support of FreeBSD 11.0 release
distribution. [EN-16:09]

Approved by:        so

FreeBSD — stable/10/usr.bin/mail v7.local.c quit.c

MFC r302911:
mail(1): Avoid closing negative file descriptors.

CID:                1008105, 1008106

FreeBSD — stable/11/usr.bin/mail v7.local.c quit.c

MFC r302911:
mail(1): Avoid closing negative file descriptors.

CID:                1008105, 1008106
Approved by:        re (gjb)

FreeBSD — stable/10/usr.bin/bsdiff/bspatch bspatch.c, stable/9/usr.bin/bsdiff/bspatch bspatch.c

Fix bspatch heap overflow vulnerability.

Obtained from:        Chromium
Reported by:        Lu Tung-Pin
Security:        FreeBSD-SA-16:25.bspatch

FreeBSD — stable/11/usr.bin/bsdiff/bspatch bspatch.c

Fix bspatch heap overflow vulnerability.

Obtained from:        Chromium
Reported by:        Lu Tung-Pin
Security:        FreeBSD-SA-16:25.bspatch
Approved by:        re (so@ blanket)

FreeBSD — head/sys/arm64/conf GENERIC

Enable the generic OHCI driver on arm64

Obtained from:        ABT Systems Ltd
MFC after:        1 month
Relnotes:        yes
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -0 head/sys/arm64/conf/GENERIC
+1 -0 1 file

FreeBSD — head/usr.bin/bsdiff/bspatch bspatch.c

Fix bspatch heap overflow vulnerability.

Obtained from:        Chromium
Reported by:        Lu Tung-Pin
Security:        FreeBSD-SA-16:25.bspatch

FreeBSD — stable/10/sys/boot/efi/boot1 generate-fat.sh

MFC r297871: boot1.efifat: provide a fallback startup.nsh

In case the firmware falls through to executing startup.sh, populate it
with the name of our boot loader. In normal operation this should not be
necessary but may allow the system to boot if it would otherwise just
remain at a shell prompt.

Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/11/usr.bin/mail collect.c

MFC r302542:

Use _PATH_DEVNULL instead of hardcoding.

Approved by:        re (kib)
Delta File
+2 -2 stable/11/usr.bin/mail/collect.c
+2 -2 1 file

FreeBSD — stable/10/usr.bin/ar ar.1 ar.c

MFC r301974: ar: enable reproducible output by default when invoked as 'ar -s'

ar output is already deterministic by default for ar -q and ar -r, and
when invoked as ranlib. Make ar -s equivalent to ranlib and enable
deterministic output by default in that case too.

PR:                210330
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/10/sys/boot/efi/boot1 boot1.c

MFC r302335: boot1.efi: fix assignment / comparison expression

PR:                210706
Submitted by:        David Binderman <dcb314 at hotmail.com>

FreeBSD — stable/10/lib/libcxxrt Version.map

MFC r302278:   libcxxrt: correct mangled "typeinfo name" symbols in Version.map

r261644 (MFC of r260553) added missing C++ typinfos to libcxxrt's
version script. It appears that a number of duplicate mangled symbols
were added due to a cut and paste error. Switch the second instances to
_ZTS*, typeinfo name for *.

Found by lld, which produces an error or warning for duplicate symbols.

Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/11/contrib/libcxxrt exception.cc

MFC r303157: libcxxrt: add padding in __cxa_allocate_* to fix alignment

The addition of the referenceCount to __cxa_allocate_exception put the
unwindHeader at offset 0x58 in __cxa_exception, but it requires 16-byte
alignment. In order to avoid changing the current __cxa_exception ABI
(and thus breaking its consumers), add explicit padding in the
allocation routines (and account for it when freeing).

This is intended as a lower-risk change for FreeBSD 11. A "more correct"
fix should be prepared for upstream and -CURRENT.

Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/10/sys/kern vfs_subr.c, stable/10/sys/vm vm_object.c

MFC r302567:
In vgonel(), postpone setting BO_DEAD until VOP_RECLAIM() is called,
if vnode is VMIO.  For VMIO vnodes, set BO_DEAD in vm_object_terminate().

MFC r302580:
Fix grammar.

FreeBSD — stable/11/sys/kern vfs_subr.c, stable/11/sys/vm vm_object.c

MFC r302567:
In vgonel(), postpone setting BO_DEAD until VOP_RECLAIM() is called,
if vnode is VMIO.  For VMIO vnodes, set BO_DEAD in vm_object_terminate().

MFC r302580:
Fix grammar.

Approved by:        re (gjb)

FreeBSD — head/sbin/geom/class/part gpart.8

Rewrite the GPT and MBR examples.  For GPT, ensure that the boot partition
is large enough for gptzfsboot, which has doubled in size since 10.

PR:                211361
MFC after:        3 days
Delta File
+63 -36 head/sbin/geom/class/part/gpart.8
+63 -36 1 file

FreeBSD — head/sys/geom geom_subr.c

Do not invoke resize method if geom is being withered.

PR:                211028
MFC after:        2 weeks
Delta File
+1 -1 head/sys/geom/geom_subr.c
+1 -1 1 file

FreeBSD — head/sys/sys sysent.h

Split MAKE_SYSENT into two parts so that the initializer part can be
used separately if one wants to embed the sysent into a larger structure.

MFC after:        1 week
Delta File
+14 -6 head/sys/sys/sysent.h
+14 -6 1 file

FreeBSD — stable/9/contrib/file configure configure.ac, stable/9/contrib/file/doc file.man

MFC r302221,302222:

MFV r302218: file 5.28.

Relnotes:        yes

FreeBSD — head/contrib libdivsufsort, head/contrib/libdivsufsort CMakeLists.txt .gitignore

Change bsdiff to use divsufsort suffix sort library instead of qsufsort,
which is more efficient.

Note that for now we do not create a separate library for libdivsufsort
because it's not used anywhere else.

Obtained from:        Chromium
MFC after:        2 months

FreeBSD — head/sys/dev/hyperv/vmbus vmbus_brvar.h vmbus_chanvar.h

hyperv/vmbus: Move bufring info definition to vmbus_brvar.h

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

FreeBSD — head/sys/dev/hyperv/netvsc hv_rndis_filter.c, head/sys/dev/hyperv/vmbus vmbus_brvar.h hv_vmbus_priv.h

hyperv/vmbus: Rename hv_vmbus_priv.h to vmbus_brvar.h

It only contains bufring related bits for a while.

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

FreeBSD — head/sys/modules Makefile

avoid building otusfw when WITHOUT_SOURCELESS_UCODE set

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

FreeBSD — stable/9/usr.bin/mail collect.c

MFC r302542:

Use _PATH_DEVNULL instead of hardcoding.
Delta File
+2 -2 stable/9/usr.bin/mail/collect.c
+2 -2 1 file

FreeBSD — stable/10/usr.bin/mail collect.c

MFC r302542:

Use _PATH_DEVNULL instead of hardcoding.
Delta File
+2 -2 stable/10/usr.bin/mail/collect.c
+2 -2 1 file

FreeBSD — head/contrib/elftoolchain/libelftc libelftc_dem_gnu3.c

libelftc: fix demangling of wchar_t

"wchar_t" is 7 characters long, not 6.

PR:                208661
Submitted by:        Daniel McRobb
Obtained from:        ELF Tool Chain r3480
MFC after:        3 days

FreeBSD — projects/mips64-clang Makefile.inc1 ObsoleteFiles.inc, projects/mips64-clang/bin/csh Makefile

MFC to r303274

FreeBSD — head/usr.bin/calendar/calendars/ru_RU.UTF-8 calendar.pagan calendar.orthodox

Fix failures of scripted conversion.

Noticed by:        ache
Pointy hat to:        glebius

FreeBSD — vendor/libdivsufsort 0.0.2015.10.27

Tag libdivsufsort snapshot of 2015/10/27.

Git revision: 5f60d6f026c30fb4ac296f696b3c8b0eb71bd428
Delta File
+0 -0 vendor/libdivsufsort/0.0.2015.10.27/
+0 -0 1 file

FreeBSD — vendor libdivsufsort, vendor/libdivsufsort dist

Vendor import of libdivsufsort, a software library that implements
a lightweight suffix array construction algorithm.

Obtained from:        https://github.com/y-256/libdivsufsort

FreeBSD — head Makefile.inc1 Makefile.libcompat

Don't disable binutils/elftoolchain bootstrapping with external compiler.

This was a regression from r300349.

Setting MK_CROSS_COMPILER=no forces the compiler bootstraping *and* the
binutils/elftoolchain bootstrapping to be disabled in share/mk/src.opts.mk.
The only intent with using an external compiler is to disable bootstrapping of
the compiler.  The binutils/elftoolchain bootstrapping must still occur unless
XAS is set.  This did not affect WITH_SYSTEM_COMPILER.

Now that setting an external compiler sets both MK_CLANG_BOOTSTRAP and
MK_GCC_BOOTSTRAP to no, and MK_CROSS_COMPILER does the same via
share/mk/src/opts.mk, remove redundant logic that checks for
MK_CROSS_COMPILER.  It will not always be true now that MK_CROSS_COMPILER==no
when an external compiler is used and --sysroot/-target is needed.

Reported by:        sbruno
Pointyhat to:        bdrewery
MFC after:        3 days
Sponsored by:        EMC / Isilon Storage Division
Delta File
+5 -7 head/Makefile.inc1
+2 -2 head/Makefile.libcompat
+7 -9 2 files

FreeBSD — head Makefile.inc1

Fix empty WANT_COMPILER_TYPE when neither compiler is bootstrapped.

Bug in r303272.

MFC after:        3 days
X-MFC-With:        r303272
Sponsored by:        EMC / Isilon Storage Division
Delta File
+2 -0 head/Makefile.inc1
+2 -0 1 file

FreeBSD — head Makefile.inc1 Makefile

SYSTEM_COMPILER: Rework the logic to allow a 'make test-system-compiler'.

1. Always calculate what the expected values are.
2. Add 'make test-system-compiler' to show all of the computed values
   vs the wanted values.
3. Extend the .info line to buildkernel/kernel-toolchain/toolchain/_cross-tools.
4. Consolidate all of the logic to one condition.

MFC after:        3 days
Sponsored by:        EMC / Isilon Storage Division
Delta File
+46 -30 head/Makefile.inc1
+4 -2 head/Makefile
+50 -32 2 files

FreeBSD — head/share/mk bsd.sys.mk, head/sys/conf kern.mk

Fix style.
Delta File
+20 -2 head/share/mk/bsd.sys.mk
+1 -1 head/sys/conf/kern.mk
+21 -3 2 files

FreeBSD — stable/10/sys/dev/ixgbe ixgbe_phy.c

MFC r303032
Fixup DA cable detection routines to not set the cable type to
unknown if they do not match one of two cable types.

PR:                150249

FreeBSD — stable/11/sys/dev/ixgbe ixgbe_phy.c

MFC r303032
Fixup DA cable detection routines to not set the cable type to
unknown if they do not match one of two cable types.

PR:                150249
Approved by:        re (gjb)

FreeBSD — stable/11/sys/netinet sctp_indata.c sctp_output.c, stable/11/usr.bin/netstat sctp.c inet.c

MFC r302904:
Fix a bug which results in a core dump when running netstat with
the -W option and having a listening SCTP socket.
The bug was introduced in r279122 when adding support for libxo.

MFC r302907:
When calling netstat -Laptcp the local address values are not aligned
with the corresponding entry in the table header. r295136
increased the value width from 14 to 32 without the corresponding
change to the table header. This commit adds the change to the table
header width.

MFC r302917:
Ensure that the -a, -W, -L options for SCTP behave similar
as for TCP.

MFC r302928:
Address a potential memory leak found a the clang static code analyzer
running on the userland stack.

MFC r302930:
Don't free a data chunk twice.
Found by the clang static code analyzer running for the userland stack.

MFC r302935:

    [35 lines not shown]

FreeBSD — head/sys/dev/ntb/ntb_hw ntb_hw.c

Postpone ntb_get_msix_info() till we need to negotiate MSIX.

Calling it earlier increases the window when MSIX info may change.
This change does not solve the problem completely, but seems logical.
Complete solution should probably include link reset in case of MSIX
remap to trigger new negotiation, but we have no way to get notified
about that now.
Delta File
+1 -2 head/sys/dev/ntb/ntb_hw/ntb_hw.c
+1 -2 1 file

FreeBSD — head/usr.bin/calendar calendar.1

Remove reference cpp(1) which is not used anymore
Delta File
+1 -2 head/usr.bin/calendar/calendar.1
+1 -2 1 file

FreeBSD — head/usr.bin/calendar/calendars/ru_RU.UTF-8 calendar.common calendar.pagan

The date format for ru_RU.UTF-8 locale has changed some time ago, adjust
the ru_RU.UTF-8 calendar files.

FreeBSD — head/sys/compat/svr4 svr4_sockio.c, head/sys/net if.c

Partially revert r257696/r257713, which have an issue with writing to user
controlled address. Restore the old code that emulated OSIOCGIFCONF in if.c.

Noticed by:        C Turt

FreeBSD — stable/11/usr.sbin/ctld ctl.conf.5 ctld.8

MFC r303132:

Add documentation for "ctld -u", the UCL configuration file format.

Submitted by:        jceel@
Approved by:        re (kib)
MFC after:        1 month
Differential Revision:        https://reviews.freebsd.org/D7222

FreeBSD — head/sys/amd64/amd64 machdep.c, head/sys/amd64/include/pc bios.h

Add more UEFI/e820 memory types from latest specifications.

This is only cosmetics.

MFC after:        2 weeks

FreeBSD — stable/11/share/timedef sk_SK.UTF-8.src cs_CZ.UTF-8.src

MFC: r303219

Add weekday to the date format of more locales
Approved by:        re (kib)

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

Remove now unused functions from the FDT uart cpu driver.

Obtained from:        ABT Systems Ltd
MFC after:        1 month
X-MFC with:        r303100
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -47 head/sys/dev/uart/uart_cpu_fdt.c
+0 -47 1 file

FreeBSD — head/sys/conf files.mips, head/sys/dev/nvram2env nvram2env.c nvram2env.h

[nvram2env] split implementation into generic & MIPS-based code

Split implementation of nvram2env to generic (MI) & MIPS-based code:

 - removed includes like "*siba*", because they are unused
 - added nvram2env_mips.c file with MIPS-specific code, code moved from nvram2env.c
 - added header file to shared defines/structures/function prototypes between MI and MIPS 
code

Also this fix allows to implement own nvram2env drivers.

Reviewed by:    ray, adrian (mentor)
Approved by:    adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D6513

FreeBSD — stable/10/usr.sbin/pw rm_r.c, stable/10/usr.sbin/pw/tests pw_userdel.sh

Do not try to delete the home of the user if is is not a directory for example
"/dev/null"

PR:                211195
Submitted by:        rday <ryan at ryanday.net>
Reported by:        eniorm <eniorm at gmail.com>

FreeBSD — stable/11/usr.sbin/pw rm_r.c, stable/11/usr.sbin/pw/tests pw_userdel.sh

iDo not try to delete the home of the user if is is not a directory for example
"/dev/null"

PR:                211195
Submitted by:        rday <ryan at ryanday.net>
Reported by:        eniorm <eniorm at gmail.com>
Approved by:        re (kib)

FreeBSD — stable/10/share/man/man9 pci.9, stable/10/sys/dev/pci pci.c pcivar.h

MFC 302175:
Add pci_get_max_payload() to fetch the PCI-express maximum payload size.