Displaying 1 50 of 245,801 commits (0.019s)

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs dsl_prop.c

Fix kernel panic when inheriting properties without default.

There are two writable hidden properties "iscsioptions" and "stmf_sbd_lu",
that have no default string value.  Attempt to unset them or replicate
caused kernel panic.  This simple bandaid seems fixes the problem nicely.

Ticket:        #17118
Ticket:        #17121

(cherry picked from commit 7526e12121980a0c83fdd2697c59c8373f369390)
(cherry picked from commit cc7c1ef31f31bce0d0d22cb2de2d6d43901589bb)

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs dsl_prop.c

Fix kernel panic when inheriting properties without default.

There are two writable hidden properties "iscsioptions" and "stmf_sbd_lu",
that have no default string value.  Attempt to unset them or replicate
caused kernel panic.  This simple bandaid seems fixes the problem nicely.

Ticket:        #17118
Ticket:        #17121

(cherry picked from commit 7526e12121980a0c83fdd2697c59c8373f369390)

PC-BSD — contrib/lib9p/backend fs.c

backend/fs.c: fix typo

Misplaced close parenthesis = all renames fail.

(cherry-picked from 49d11992d33f3a9f5b1d786de1e78df22f9fb249 in
in lib9p repo)
Delta File
+1 -1 contrib/lib9p/backend/fs.c
+1 -1 1 file

PC-BSD — contrib/lib9p/backend fs.c

backend/fs.c: fix rename()

The target directory for the new name is supplied by the
second (f2 / dfid) argument, not the first.  That is, we
rename openfid to dir2/newname, not to a new name in its
current directory.

(cherry-picked from bd3e66c847d8292f165908cc74dfa5ac39932f9b
in lib9p repo)
Delta File
+10 -4 contrib/lib9p/backend/fs.c
+10 -4 1 file

PC-BSD — contrib/lib9p/backend fs.c

Cherry pick 01cc2aeb8e2e34832645b52bf32541a0e02d6793 from lib9p repo.
Delta File
+1 -1 contrib/lib9p/backend/fs.c
+1 -1 1 file

PC-BSD — sys/kern kern_umtx.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ badger - d8feb13e - 2016-08-30 13:39:42
MFC r304184:

sem_post(): wake up the sleeper only after adjusting has_waiters

If the caller of sem_post() wakes up a thread sleeping via sem_wait()
before it clears the has_waiters flag, the caller of sem_wait() has no way of
knowing when it is safe to destroy the semaphore and reuse the memory. This is
because the caller of sem_post() may be interrupted between the wake step and
the clearing of has_waiters. It will then write into the has_waiters flag in
userspace after being preempted for some unknown amount of time.

Approved by:        vangyzen (mentor)
Sponsored by:        Dell Inc.
Delta File
+1 -1 sys/kern/kern_umtx.c
+1 -1 1 file

PC-BSD — lib/libc/net getaddrinfo.c

MFC r304911

The formal behavior of qsort is unstable with regard to objects that
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain in the order supplied by the DNS server. The present code attempts
to deal with this by returning -1 for objects that are equal (i.e.,
returns that the first parameter is less then the second parameter).
Unfortunately, the qsort API does not state that the first parameter
passed in is in any particular position in the list.

PR:     212122
Submitted by:   Herbie.Robinson at stratus.com
Delta File
+19 -0 lib/libc/net/getaddrinfo.c
+19 -0 1 file

PC-BSD — contrib/sqlite3 sqlite3.c configure, contrib/sqlite3/tea configure Makefile.in

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ cy - 06b3d2eb - 2016-08-29 12:57:28
MFC r304747:

Update from sqlite3-3.12.1 (3120100) to sqlite3-3.14.1 (3140100).

This commit addresses the tmpdir selection vulnerability fixed in
sqlite3-1.13.0.  See VuXML entry 546deeea-3fc6-11e6-a671-60a44ce6887b.

This MFC was suggested by kib@ in the abandoned D7651.

Security:        VuXML 546deeea-3fc6-11e6-a671-60a44ce6887b
Security:        CVE-2016-6153
Delta File
+46,060 -9,813 contrib/sqlite3/sqlite3.c
+9,977 -0 contrib/sqlite3/tea/configure
+4,276 -0 contrib/sqlite3/tea/generic/tclsqlite3.c
+4,168 -0 contrib/sqlite3/tea/tclconfig/tcl.m4
+1,981 -1,033 contrib/sqlite3/configure
+2,558 -76 contrib/sqlite3/sqlite3.h
+6,430 -742 20 files not shown
+75,450 -11,664 26 files

PC-BSD — sys/dev/usb/controller xhci.c

MFC r304629:
Don't separate the status stage of the XHCI USB control transfers into
its own job because this breaks the simplified QEMU XHCI TRB parser,
which expects the complete USB control transfer as a series of back to
back TRBs. The old behaviour is kept under #ifdef in case this change
breaks enumeration of any USB devices.

PR:                212021
Delta File
+4 -0 sys/dev/usb/controller/xhci.c
+4 -0 1 file

PC-BSD — sys/dev/mlx5/mlx5_en en.h

MFC r304601:
Increase the maximum RX/TX queue size. This allows for a RX/TX queue
size of 16384 mbufs. Previously the limit was 8192.

Sponsored by:        Mellanox Technologies
Delta File
+2 -2 sys/dev/mlx5/mlx5_en/en.h
+2 -2 1 file

PC-BSD — sys/dev/usb/controller xhci.c

MFC r304597:
Fix for invalid use of bits in input context. Basically split
configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and
xhci_cmd_configure_ep() respectivly. This resolves some errors when
using XHCI under QEMU and gets is more in line with the XHCI
specification.

PR:                212021
Delta File
+8 -6 sys/dev/usb/controller/xhci.c
+8 -6 1 file

PC-BSD — lib/libc/net getaddrinfo.c

MFstable/11 r304945:

MFC r304034:

Initialize `ai` to NULL and test for `ai` with type-appropriate values

Depending on the address family and ai_flags containing AI_V4MAPPED,
it might not do a proper DNS lookup on the provided DNS address

Convert some `ai` boolean true/false checks to NULL/non-NULL while here.

PR:                211790
Delta File
+5 -3 lib/libc/net/getaddrinfo.c
+5 -3 1 file

PC-BSD — sys/vm vm_pageout.c

MFC r303982
  Correct errors and clean up the comments on the active queue scan.

  Eliminate some unnecessary blank lines.
Delta File
+14 -11 sys/vm/vm_pageout.c
+14 -11 1 file

PC-BSD — contrib/lib9p/backend fs.c

Disable Trenameat until we add support for path rewriting in open fids.
Delta File
+6 -0 contrib/lib9p/backend/fs.c
+6 -0 1 file

PC-BSD — contrib/lib9p utils.c

Change type of 'rr' to const char * (only string literals are assigned to it).
Delta File
+1 -1 contrib/lib9p/utils.c
+1 -1 1 file

PC-BSD — contrib/lib9p request.c fid.h, contrib/lib9p/backend fs.c backend.h

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ Jakub Klama - a3037ab6 - 2016-08-27 17:49:23
Delta File
+1,253 -666 contrib/lib9p/backend/fs.c
+726 -167 contrib/lib9p/request.c
+118 -2 contrib/lib9p/fid.h
+65 -9 contrib/lib9p/utils.c
+25 -4 contrib/lib9p/example/server.c
+10 -9 contrib/lib9p/fcall.h
+28 -8 5 files not shown
+2,225 -865 11 files

PC-BSD — sys/ddb db_ps.c, sys/kern subr_sleepqueue.c kern_thread.c

MFC r303426:
Rewrite subr_sleepqueue.c use of callouts to not depend on the
specifics of callout KPI.

PC-BSD — share/man/man9 timeout.9 Makefile, sys/kern kern_timeout.c

MFC r303425:
Add callout_when(9).

MFC r303919:
Fix indentation.

PC-BSD — sys/kern kern_timeout.c kern_clocksource.c, sys/sys time.h

MFC r264388 (by davide):
Define SBT_MAX.

MFC r267896 (by davide):
Improve r264388.

MFC note.  The SBT_MAX definition already existed on stable/10, but without
the refinement from r267896.  Also, consumers of SBT_MAX were not converted,
since r264388 was not merged properly.

Reviewed by:        mav

PC-BSD — lib/libc/stdio fputwc.c fgetwc.c

MFC r304607,r304641,r304819,r304811

1) Don't forget to set __SERR on __slbexpand() error.

2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
encoding errors and ignores them all.
One of affected encoding example: US-ASCII

3)  Original fgetln() from 44lite return success for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR:     212033

PC-BSD — lib/libc/stdio vfprintf.c vfwprintf.c

MFC r304810

Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.

PC-BSD — etc/ntp leap-seconds, etc/rc.d ntpd

MFC r304779, r304780, r304781, r304782, r304802

r304779:

  Revert r298887 (spelling fix) and remove $FreeBSD$ because text changes
  to leap-seconds invaldidates validation hash at the end of the file.

  Remove svn:keywords and replace with fbsd:nokeywords=yes to
  support this change.

r304780:

  Change the algorithm by which /var/db/leap-seconds is updated.

  1. Use the leap-seconds version number (update time) to determine
     whether to update the file or not.

  2. If the version numbers of the files is the same, use the later
     expiry date to determine which file to use.

  Suggested by:        ian@

r304781:

  Add logic to replace the working ntp leap-seconds file in /var/db

    [14 lines not shown]
Delta File
+24 -3 etc/rc.d/ntpd
+1 -3 etc/ntp/leap-seconds
+25 -6 2 files

PC-BSD — usr.sbin/ntp/doc sntp.8

MFC r304721:

Fixup man page formatting.

Submitted by:        Steve Kargl <sgk at troutmask.apl.washington.edu>
Discussed with:        bjk@
Delta File
+1 -1 usr.sbin/ntp/doc/sntp.8
+1 -1 1 file

PC-BSD — sys/sys param.h

Bump __FreeBSD_version after LC_*_MASK fix
Delta File
+1 -1 sys/sys/param.h
+1 -1 1 file

PC-BSD — include/xlocale _locale.h, lib/libc/nls msgcat.c

MFC r304703, r304755

1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.

The order here should match XLC_* from "xlocale_private.h" which, in turn,
match LC_* publicly visible order from <locale.h> which determines how
locale components are stored in the structure.
LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale()
and equivalent shift loop in the newlocale(), so mapped to some wrong
components (excluding two mentioned above).

Formally the fix is ABI breakage, but old code using those masks
never works properly in any case.
Only newlocale() and querylocale() are affected.

2) msgcat.c
Use current locale (f.e. set by thread). It was global locale always
previously.

PR:     211743

PC-BSD — usr.bin/passwd passwd.c

Allow changing passwords via pam_freenas.
Delta File
+3 -3 usr.bin/passwd/passwd.c
+3 -3 1 file

PC-BSD — lib/libc/stdio fgetln.c fgetln.3

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ ache - fc5cb989 - 2016-08-25 19:55:31
MFC r295632

getln: We cannot expand the buffer beyond INT_MAX (_size overflows).

In such cases return ENOMEM. This is a limitation of our
implementation, alternatively you may consider getline(3).

Differential Revision:  https://reviews.freebsd.org/D442 (Partial)
Obtained from:  Apple Inc. (Libc 997.90.3)

PC-BSD — sys/kern vfs_aio.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ kib - c29dc2b4 - 2016-08-24 09:20:27
MFC r304286:
Remove duplicated code.
Delta File
+1 -6 sys/kern/vfs_aio.c
+1 -6 1 file

PC-BSD — sys/cam/ctl ctl.c

Fix HA mode configuration on FreeBSD 10.x.

This is direct commit, compensating CTLFLAG_RDTUN difference between
FreeBSD 10.x and 11.x branches.

Ticket:        #16982

(cherry picked from commit b8dd3c9356dd664db6064a1cc987aa9036f17282)
(cherry picked from commit 5e366b398262026e38925dbb69a3477830309644)
Delta File
+2 -0 sys/cam/ctl/ctl.c
+2 -0 1 file

PC-BSD — sys/cam/ctl ctl.c

Fix HA mode configuration on FreeBSD 10.x.

This is direct commit, compensating CTLFLAG_RDTUN difference between
FreeBSD 10.x and 11.x branches.

Ticket:        #16982

(cherry picked from commit b8dd3c9356dd664db6064a1cc987aa9036f17282)
Delta File
+2 -0 sys/cam/ctl/ctl.c
+2 -0 1 file

PC-BSD — sys/dev/sfxge sfxge_port.c sfxge_ev.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ arybchik - 8b080b5d - 2016-08-23 13:51:55
MFC r301724

sfxge(4): handle negative ticks difference correctly

ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.

Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.

Sponsored by:   Solarflare Communications, Inc.

PC-BSD — build-files/conf port-make.conf

Enable LibreSSL by default the "new" way
Delta File
+1 -2 build-files/conf/port-make.conf
+1 -2 1 file

PC-BSD — sys/ufs/ffs ffs_balloc.c

MFC r304232:
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding.
Delta File
+4 -4 sys/ufs/ffs/ffs_balloc.c
+4 -4 1 file

PC-BSD — sys/cddl/compat/opensolaris/sys vnode.h, sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c zfs_dir.c

MFC r303763,303791,303869: zfs: honour and make use of vfs vnode locking protocol

PR:                209158

PC-BSD — sys/ufs/ffs ffs_balloc.c

MFC r304231:
On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert
that recorded allocated blocks numbers match the physical block numbers
of dandling buffers which are released.
When finally freeing the blocks during unwind, assert that dandling
buffers where not re-allocated.
Delta File
+34 -0 sys/ufs/ffs/ffs_balloc.c
+34 -0 1 file

PC-BSD — sys/ufs/ffs ffs_balloc.c

MFC r304229:
When looking up dandling buffers for unwing after failing block
allocation in UFS_BALLOC(), there is no need to map them.
Delta File
+4 -2 sys/ufs/ffs/ffs_balloc.c
+4 -2 1 file

PC-BSD — sys/ufs/ffs ffs_balloc.c

MFC r304228:
When block allocation fails in UFS_BALLOC(), and the volume does not
have SU enabled, there is no point in calling softdep_request_cleanup().
Delta File
+4 -4 sys/ufs/ffs/ffs_balloc.c
+4 -4 1 file

PC-BSD — sys/ufs/ffs ffs_balloc.c

MFC r304227:
In ffs_balloc_ufs{1,2} routines, assert that unwind records do not
overflow local arrays.
Delta File
+12 -0 sys/ufs/ffs/ffs_balloc.c
+12 -0 1 file

PC-BSD — sys/dev/ahci ahci_pci.c

MFC r304521: JMicron JMB361 has only a single SATA port
Delta File
+1 -1 sys/dev/ahci/ahci_pci.c
+1 -1 1 file

PC-BSD — lib/libc/stdio fgetln.c

Direct commit, equal to MFC part of r295632 which is not planned for
MFC at whole.
Set __SERR on  __slbexpand() errors.
Delta File
+1 -0 lib/libc/stdio/fgetln.c
+1 -0 1 file

PC-BSD — sys/sys proc.h

MFC 302379: Correct locking annotation for p_comm.

p_comm is changed during exec, it is not read-only after fork.
Delta File
+1 -1 sys/sys/proc.h
+1 -1 1 file

PC-BSD — lib/libc/sys aio_fsync.2 aio_mlock.2

MFC 304476: Fix various nits in the aio operation manpages.

- Avoid double use of "request" in a single sentence.  Instead, describe
  aio_sigevent as being used to request notification of the associated
  operation's completion.  This matches the language used to describe
  aio_sigevent in aio(4).
- Simplify the prohibition on modifying buffers while requests are in
  flight.
- Fix case mismatch.
- Drop note about not using stack variables. C programmers should be able
  to figure out if a stack variable is safe based on the later warning
  about the life cycle requirements of control blocks.
- Remove prohibition on modifying the I/O buffer for aio_fsync() since
  it does not use an I/O buffer.  For aio_mlock(), prohibit modifications
  to the mapping (e.g. due to mprotect, munmap, mmap, etc.) but do not
  prohibit modifications to the memory backing the buffer (stores into
  the pages backing the buffer).

PC-BSD — sys/kern sys_process.c kern_fork.c, sys/sys proc.h

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ markj - 019f9f65 - 2016-08-22 17:21:45
MFC r304440, r304487:
Fix some handling of P2_PTRACE_FSTP.

PC-BSD — sys/sys param.h

MFC r304608:

  Bump __FreeBSD_version for C++11 thread_local support in r303795.

PR:                192320
Delta File
+1 -1 sys/sys/param.h
+1 -1 1 file

PC-BSD — sys/kern vfs_default.c

MFC r304174:
VOP_FSYNC() does not take cred as an argument.  Correct comment.
Delta File
+0 -1 sys/kern/vfs_default.c
+0 -1 1 file

PC-BSD — sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c hv_vstorage.h

MFC 304251

    hyperv/storvsc: Deliver CAM_SEL_TIMEOUT upon SRB status error.

    SRB status is set to 0x20 by the hypervisor, if the specified LUN is
    unaccessible, and even worse the INQUIRY response will not be set by
    the hypervisor at all under this situation.  Additionally, SRB status
    is 0x20 too, for TUR on an unaccessible LUN.

    Deliver CAM_SEL_TIMEOUT to CAM upon SRB status errors as suggested by
    Scott Long, other values seems improper.

    This commit fixes the Hyper-V disk hotplug support.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D7521

PC-BSD — lib/libc/tests/stdlib Makefile

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ ngie - 3084b021 - 2016-08-21 05:08:37
Unbreak the build when MK_TESTS != no after r304527

- src.opts.mk should be bsd.own.mk on ^/stable/10
- LIBADD should be DPADD/LDADD on ^/stable/10

Pointyhat to:        kib
Reported by:        Olivier Pinter <oliver.pinter at hardenedbsd.org>
Sponsored by:        EMC / Isilon Storage Division
Delta File
+3 -2 lib/libc/tests/stdlib/Makefile
+3 -2 1 file

PC-BSD — lib/libc/include libc_private.h, lib/libc/stdlib cxa_thread_atexit.c exit.c

MFC r303795:
Add __cxa_thread_atexit(3) API implementation.

PC-BSD — lib/libc Versions.def

MFC r303794:
Create namespace for the symbols added during 12-CURRENT cycle.
Delta File
+5 -1 lib/libc/Versions.def
+5 -1 1 file

PC-BSD — contrib/binutils/bfd elfxx-mips.c

MFC r303147
binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic.

From OpenBSD's log:

Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html,
but expressed differently so there are no GPLv3 issues.

Obtained from:        OpenBSD (CVS rev. 1.7)
Delta File
+1 -1 contrib/binutils/bfd/elfxx-mips.c
+1 -1 1 file