Displaying 1 50 of 270,894 commits (0.014s)

FreeBSD — head/sys/kern vfs_syscalls.c

Reduce nesting in vn_access.

No functional changes.
Delta File
+15 -15 head/sys/kern/vfs_syscalls.c
+15 -15 1 file

FreeBSD — head/sys/x86/isa orm.c

Virtual machines can easily have more than 16 option ROMs and
when that happens, we happily access our resource array out of
bounds. Make sure we stay within the MAX_ROMS limit.
While here, bump MAX_ROMS from 16 to 32 to minimize the chance
of leaving option ROMs unaccounted for.

Obtained from:        Juniper Networks, Inc.
Delta File
+2 -2 head/sys/x86/isa/orm.c
+2 -2 1 file

FreeBSD — head/sys/sys ata.h

Add defines for various FIRST PARTY DMA SEND subcommands.
Delta File
+4 -0 head/sys/sys/ata.h
+4 -0 1 file

FreeBSD — head/sys/kern vfs_syscalls.c

Avoid crdup when possible in kern_accessat.

While here tidy up a little.
Delta File
+16 -14 head/sys/kern/vfs_syscalls.c
+16 -14 1 file

FreeBSD — head/contrib/elftoolchain/libelf libelf_convert.m4

Fix the conversion macro for .note sections, broken in the case
the ELF file's byte order is not the native byte order.  The
bug is that the variables holding the name and description size
are used (natively) after having been byte-swapped.  The fix is
to calculate sz from them just prior to byte-swapping.

Approved by:        jkoshy@
Obtained from:        Juniper Networks, Inc.

FreeBSD — head/contrib/elftoolchain/libelf libelf_align.c

GCC for PowerPC does not align  .note sections to 4 bytes.  When
running ctfmerge on its objects, libelf asserts as it expects
.note sections to be 4-byte aligned.  Change that expectation.

Approved by:        jkoshy@
Obtained from:        Juniper Networks, Inc.

FreeBSD — head/sys/kern kern_descrip.c kern_exec.c, head/sys/sys filedesc.h

filedesc: cleanup setugidsafety a little

Rename it to fdsetugidsafety for consistency with other functions.

There is no need to take filedesc lock if not closing any files.

The loop has to verify each file and we are guaranteed fdtable has space
for at least 20 fds. As such there is no need to check fd_lastfile.

While here tidy up is_unsafe.

FreeBSD — releng/10.0 UPDATING, releng/10.0/contrib/tzdata europe australasia

Time zone data file update. [EN-14:10]

Approved by:        so

FreeBSD — releng/9.3 UPDATING, releng/9.3/contrib/tzdata europe australasia

Time zone data file update. [EN-14:10]

Change crypt(3) default hashing algorithm back to DES. [EN-14:11]

Approved by:        so

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

Update releng/10.1 to -RC3 as part of the 10.1-RELEASE cycle.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 releng/10.1/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — head/sys/i386/ibcs2 ibcs2_misc.c, head/sys/kern kern_prot.c

Eliminate unnecessary memory allocation in sys_getgroups and its ibcs2 counterpart.

FreeBSD — releng/10.1/sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c

MFstable10 r273429:
  MFC r273402:
  Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.

PR:                194376
Approved by:        re (delphij)
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/contrib/libc++/src new.cpp

Do not define bad_array_new_length::bad_array_new_length in libc++ anymore
when used in combinaison with libcxxrt since it is now defined there already.
This fixes building world
Delta File
+2 -2 head/contrib/libc++/src/new.cpp
+2 -2 1 file

FreeBSD — releng/10.1/release/doc/en_US.ISO8859-1/relnotes article.xml, stable/9/release/doc/en_US.ISO8859-1/errata article.xml

Document the following security advisories:
 FreeBSD-SA-14:20.rtsold
 FreeBSD-SA-14:21.routed
 FreeBSD-SA-14:22.namei
 FreeBSD-SA-14:23.openssl

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

FreeBSD — head/sys/sys param.h, stable/10/sys/sys param.h

Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

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

FreeBSD — head/sys/kern kern_linker.c

Take the lock shared in linker_search_symbol_name.

This helps sysctl kern.proc.stack.
Delta File
+2 -2 head/sys/kern/kern_linker.c
+2 -2 1 file

FreeBSD — stable/10/sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c

MFC r273402:
  Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.

PR:                194376
Insta-MFC OK:        re (rodrigc)
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/fs/tmpfs tmpfs_vfsops.c

tmpfs: allow shared file lookups

Tested by: pho
Delta File
+1 -1 head/sys/fs/tmpfs/tmpfs_vfsops.c
+1 -1 1 file

FreeBSD — head/share/mk bsd.lib.mk

Revert r273426 r273409

A solution that work with both new and old binutils should be investigated
Delta File
+1 -1 head/share/mk/bsd.lib.mk
+1 -1 1 file

FreeBSD — stable/9/usr.sbin/pw pw_user.c

MFC r272833 (des):

Two more places where login_setcryptfmt() defaults to MD5 were missed
in r252688.
Delta File
+2 -2 stable/9/usr.sbin/pw/pw_user.c
+2 -2 1 file

FreeBSD — head/share/mk bsd.lib.mk

older binutils does not know about --no-fatal-warnings
Delta File
+1 -1 head/share/mk/bsd.lib.mk
+1 -1 1 file

FreeBSD — stable/9/lib/libcrypt crypt.c

MFC r272830 (des):

Change the hardcoded default back from SHA512 to DES.

This will become EN-14:11.crypt.

PR:                192277
Delta File
+10 -7 stable/9/lib/libcrypt/crypt.c
+10 -7 1 file

FreeBSD — head/sys/kern kern_sysctl.c

Mark some more sysctl stuff shared-locked and MPSAFE.
Delta File
+15 -15 head/sys/kern/kern_sysctl.c
+15 -15 1 file

FreeBSD — head/sys/powerpc/powerpc busdma_machdep.c

Use the UAUTO SYSCTL type for exporting the bounce zone alignment,
because the variable size depends on the build type.

Reported by:        kib @
MFC after:        3 days

FreeBSD — user/cperciva/freebsd-update-build/patches/10.0-RELEASE 10-SA-14:23.openssl 10-SA-14:22.namei, user/cperciva/freebsd-update-build/patches/8.4-RELEASE 17-SA-14:23.openssl 17-SA-14:21.routed

Commit 1/2: add patches for security advisory.

FreeBSD — head/tools/build/options WITHOUT_GNU_GREP_COMPAT

Fix typo in src option description

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

Regenerate after r273418
Delta File
+19 -10 head/share/man/man5/src.conf.5
+19 -10 1 file

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

For the kernel, we have USB_GADGET_EXAMPLES as defaults to yes. For
userland defaults to no. This caused issues for the automated option
documenation script. Turns out, this isn't used in userland at all, so
just remove it from here.
Delta File
+1 -2 head/share/mk/src.opts.mk
+1 -2 1 file

FreeBSD — releng/10.0 UPDATING, releng/10.0/crypto/openssl/apps s_client.c

Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

Fix OpenSSL multiple vulnerabilities. [SA-14:23]

Approved by:        so

FreeBSD — releng/10.1/sbin/routed input.c, releng/10.1/sys/kern vfs_lookup.c

Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

Approved by:        re (so@ blanket)

FreeBSD — stable/8/sbin/routed input.c

Fix routed(8) remote denial of service vulnerability. [SA-14:21]
Delta File
+4 -0 stable/8/sbin/routed/input.c
+4 -0 1 file

FreeBSD — stable/9/sbin/routed input.c, stable/9/sys/kern vfs_lookup.c

Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

FreeBSD — stable/10/sys/kern vfs_lookup.c, stable/10/usr.sbin/rtsold rtsol.c

Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

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

Add sys/socket.h #include for bind(2), et al

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/share/mk bsd.lib.mk

Do not make ld(1) warnings fatal anymore, binutils behaviour has changed over the
time and gnu.warnings.symbol are now being fatal preventing building world.

in the futur we want to investigate only making the gnu.warning.symbol non fatal

Reviewed by:        imp
Delta File
+1 -1 head/share/mk/bsd.lib.mk
+1 -1 1 file

FreeBSD — head Makefile.inc1

Make the external toolchain support grows to the knowleged of XXFLAGS for C++ dedicated 
flags
and DEPFLAGS for mkdep flags
Pass the path to the libc++ headers in both, enforce the gnu++11 standard in the XXFLAGS
to satisfy libc++ requirements pass the libc++ objectdir as a location where to find
libraries so it can find libstdc++.so and libstdc++.A

Reviewed by:        imp
Delta File
+4 -1 head/Makefile.inc1
+4 -1 1 file

FreeBSD — head/lib/libc++ Makefile

When using an external gcc 4.8+ and not building libstdc++ then create in the objectdir a
fake libstdc++.so and libstdc++.a which is a symlink on libc++ that allow g++ to satisfy
its links dependencies in the least hackish way.
Please note that this hacky libstds++ never get installed on the final system

Reviewed by:        imp
Delta File
+12 -0 head/lib/libc++/Makefile
+12 -0 1 file

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

Always use libc++ as the default c++ stack when building with an external gcc 4.8+
While here disable building gcc from base when using gcc 4.8+

Reviewed by:        imp
Delta File
+8 -0 head/share/mk/src.opts.mk
+8 -0 1 file

FreeBSD — head/share/mk bsd.compiler.mk

When using an external toolchain note that gcc 4.8+ supports C++11

Submitted by:        imp
Delta File
+2 -1 head/share/mk/bsd.compiler.mk
+2 -1 1 file

FreeBSD — head/share/mk bsd.dep.mk

The dependencies are computed with CC even if sources are C++, when building
when building with an external gcc, we want to be able to pass the path to
the libc++ headers so dependencies are correctly computed for C++ source files.
Add a DEPFLAGS for that purpose

Reviewed by:        imp
Delta File
+1 -1 head/share/mk/bsd.dep.mk
+1 -1 1 file

FreeBSD — head/sys/kern kern_sysctl.c

Make sysctl name2oid shared-locked as well.

This is a follow-up to r273401.
Delta File
+2 -2 head/sys/kern/kern_sysctl.c
+2 -2 1 file

FreeBSD — head/sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c

Fix an issue where a FreeBSD virtual machine provisioned in
the Microsoft Azure service does not recognize the second
attached disk on the system.

Submitted by:        kyliel at Microsoft
Patched by:        weh at Microsoft
PR:                194376
MFC after:        3 days
X-MFC-10.1:        yes, ASAP
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/kern kern_sysctl.c

Implement shared locking for sysctl.
Delta File
+42 -14 head/sys/kern/kern_sysctl.c
+42 -14 1 file

FreeBSD — head/sys/kern kern_linker.c vfs_init.c, head/sys/sys sysctl.h

Rename sysctl_lock and _unlock to sysctl_xlock and _xunlock.

FreeBSD — releng/10.1 ObsoleteFiles.inc, releng/10.1/crypto/openssl CHANGES e_os.h

MFS r273149 (jkim): MFC: r273144, r273146

Merge OpenSSL 1.0.1j.

This is part of an upcoming FreeBSD security advisory.

Approved by:        re (so@ blanket)

FreeBSD — stable/9/usr.sbin/bsdconfig/dot dot, stable/9/usr.sbin/bsdconfig/dot/include messages.subr

MFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
270283, 270505, 270954, 270989, 273067, and 273068:
r253175: Introduce f_which() to common.subr
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954
r273067: Fix awk(1) asorti() implementation to work when called in a loop
r273068: Rename awk(1) asorti() to prevent conflict with GNU awk(1)

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

Port t_chroot to FreeBSD

- Add missing #include sys/stat.h for mkdir(2)
- Omit the fchroot(2) tests because the support is not present on FreeBSD

Sponsored by: EMC / Isilon Storage Division

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

unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that
instead

Sponsored by: EMC / Isilon Storage Division

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

Mark osi __unused so this compiles cleanly on FreeBSD

Sponsored by: EMC / Isilon Storage Division