Displaying 1 50 of 301,717 commits (0.027s)

FreeBSD — head/etc newsyslog.conf

Increase the default rotation threshold of log files from 100kb to 1000kb

Submitted by:        Sean Kelly <smkelly at freebsd.org>
Differential Revision:        https://reviews.freebsd.org/D6792
Delta File
+14 -14 head/etc/newsyslog.conf
+14 -14 1 file

FreeBSD — projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root zpool_import.kshlib

Delete an extraneous file accidentally committed in r292361

cddl/zfs/tests/cli_root/zpool_import/zpool_import.kshlib
cddl/zfs/tests/cli_root/zpool_import.kshlib
        This file accidentally got duped.

Sponsored by:        Spectra Logic Corp

FreeBSD — projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy zpool_destroy_004_pos.ksh

Fix intermittent failures in zpool_destroy_004_pos

The test case has multiple zfs send/recv scenarios.
The scenario that was commonly failing was as follows;
1.) zfs send poolA | zfs recv poolB
2.) wait
3.) destroy -f poolA
4.) declare an error if the exit status of the send/recv pipeline
was success.

Step 4 was attempting to assert that the destruction of poolA interrupted
the zfs send. The problem is that the zfs send could complete before the zfs
destroy -f poolA was issued. If this occured then the receive half of the
pipeline would succeed and the exit code of the pipeline would be zero.

It is not possible to manage this race from a shell script.

Changed test to allow the scenario described above to not declare an error
if the zfs receive succeeds.

Submitted by:        Dave Baukus
Reviewed by:        asomers
Sponsored by:        Spectra Logic Corp

FreeBSD — user/cperciva/freebsd-update-build/scripts 11.0-RC2, user/cperciva/freebsd-update-build/scripts/11.0-RC2/amd64 build.conf

Add 11.0-RC2 config.

FreeBSD — projects/zfsd/head Makefile.inc1 ObsoleteFiles.inc, projects/zfsd/head/bin/csh Makefile

IFC @304773

FreeBSD — head/sys/dev/syscons syscons.c syscons.h

Flesh out the state and flags args to sccnopen().  Set state flags to
indicate (potentially partial) success of the open.  Use these to
decide what to close in sccnclose().  Only grab/ungrab use open/close
so far.

Add a per-sc variable to count successful keyboard opens and use
this instead of the grab count to decide if the keyboad state has
been switched.

Start fixing the locking by using atomic ops for the most important
counter -- the grab level one.  Other racy counting will eventually
be fixed by normal mutex or kdb locking in most cases.

Use a 2-entry per-sc stack of states for grabbing.  2 is just enough
to debug grabbing, e.g., for gets().  gets() grabs once and might not
be able to do a full (or any) state switch.  ddb grabs again and has
a better chance of doing a full state switch and needs a place to
stack the previous state.  For more than 3 levels, grabbing just
changes the count.  Console drivers should try to switch on every i/o
in case lower levels of nesting failed to switch but the current level
succeeds, but then the switch (back) must be completed on every i/o
and this flaps the state unless the switch is null.  The main point
of grabbing is to make it null quite often.  Syscons grabbing also
does a carefully chosen screen focus that is not done on every i/o.


    [3 lines not shown]

FreeBSD — projects/clang390-import/lib/clang/include/clang/Basic Version.inc

Update clang version information for r279477.

FreeBSD — projects/clang390-import/contrib/llvm/tools/clang/lib/CodeGen CGExprScalar.cpp, projects/clang390-import/contrib/llvm/tools/clang/lib/Driver ToolChains.cpp

Update clang to release_39 branch r279477.

FreeBSD — vendor/lldb lldb-release_39-r279477

Tag lldb release_39 branch r279477.
Delta File
+0 -0 vendor/lldb/lldb-release_39-r279477/
+0 -0 1 file

FreeBSD — vendor/lld lldb-release_39-r279477

Tag lld release_39 branch r279477.
Delta File
+0 -0 vendor/lld/lldb-release_39-r279477/
+0 -0 1 file

FreeBSD — vendor/compiler-rt/dist/lib/msan/tests msan_test.cc

FreeBSD — vendor/clang clang-release_39-r279477

Tag clang release_39 branch r279477.
Delta File
+0 -0 vendor/clang/clang-release_39-r279477/
+0 -0 1 file

FreeBSD — vendor/llvm llvm-release_39-r279477

Tag llvm release_39 branch r279477.
Delta File
+0 -0 vendor/llvm/llvm-release_39-r279477/
+0 -0 1 file

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

Reorganise a little to prepare for locking fixes:
- in sccnopen(), open the keyboard before the screen.  The keyboard
  currently requires Giant (although it must be spinlocked to work
  correctly as a console), so the previous order would be a LOR if
  it has any semblance of locking.
- add a (currently dummy) state arg to scgetc().
Delta File
+15 -12 head/sys/dev/syscons/syscons.c
+15 -12 1 file

FreeBSD — head/lib Makefile

Don't build libdevdctl if MK_CXX is no
Delta File
+5 -1 head/lib/Makefile
+5 -1 1 file

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

Close a race when making the CPU idle under pHyp. If an interrupt occurs
between the beginning of the idle function and actually going idle, the
CPU could go to sleep with pending work.

MFC after:        1 month

FreeBSD — head/lib/libc/nls msgcat.c

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

MFC after:      7 days
Delta File
+5 -5 head/lib/libc/nls/msgcat.c
+5 -5 1 file

FreeBSD — head/sys/boot/userboot/userboot main.c

Bug 212038 - svn commit: r304321 broken bhyve zvol VM bhyveload hang 100% WCPU

As the support for large blocks was enabled in loader zfs code, the
heap in userboot was left not changed, resulting with failure of detecting
and accessing zfs pools for bhyve virtual machines.

This fix does set the heap to use same amount of memory as the zfsloader
is using. To make it possible to test and verify loader functions, bhyve
is providing very useful option, but it also means, we like to keep feature
parity with [zfs]loader as close as possible.

PR:                212038
Reported by:        dfh0522 at gmail.com
Reviewed by:        allanjude, grehan
Approved by:        allanjude (mentor)
Differential Revision:        https://reviews.freebsd.org/D7635

FreeBSD — head/sys/cddl/boot/zfs zfssubr.c

Bug 212114 - loader: zio_checksum_verify() must test spa for NULL pointer

The issue was introduced with adding support for salted checksums, and
was revealed by bhyve userboot.so.

During pool discovery the loader is reading pool label from disks, and
at that time the spa structure is not yet set up, so the NULL pointer
is passed for spa. This condition must be checked to avoid the corruption
of the memory and NULL pointer dereference.

PR:                212114
Reported by:        tsoome at freebsd.com
Reviewed by:        allanjude
Approved by:        allanjude (mentor)
Differential Revision:        https://reviews.freebsd.org/D7634
Delta File
+8 -5 head/sys/cddl/boot/zfs/zfssubr.c
+8 -5 1 file

FreeBSD — head/sys/sys param.h

Bump __FreeBSD_version for LC_*_MASK fix for newlocale(3) and querylocale(3)
Delta File
+1 -1 head/sys/sys/param.h
+1 -1 1 file

FreeBSD — head/sbin/camcontrol camcontrol.c

Fix minor copy/paste bug.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov at gmail.com>
MFC after:        1 week
Delta File
+1 -1 head/sbin/camcontrol/camcontrol.c
+1 -1 1 file

FreeBSD — head/sys/arm64/arm64 pmap.c

Allow superpages on arm64 to be enabled. It is disabled for now to allow
for more testing across more hardware.

Obtained from:        ABT Systems Ltd
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -4 head/sys/arm64/arm64/pmap.c
+1 -4 1 file

FreeBSD — head/sys/arm64/arm64 pmap.c

Add support to promote and demote managed superpages. This is the last part
needed before enabling superpages on arm64. This code is based on the amd64
pmap with changes as needed to handle the differences between the two
architectures.

Obtained from:        ABT Systems Ltd
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+359 -22 head/sys/arm64/arm64/pmap.c
+359 -22 1 file

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

Document the existence of the cloudabi32 kernel module.
Delta File
+29 -11 head/share/man/man4/cloudabi.4
+29 -11 1 file

FreeBSD — head/contrib/sqlite3 sqlite3.c sqlite3.h

MFV r304732.

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.

Security:        VuXML 546deeea-3fc6-11e6-a671-60a44ce6887b
Security:        CVE-2016-6153

FreeBSD — head/sys/arm64/arm64 pmap.c, head/sys/arm64/include pmap.h

Teach the parts of the arm64 pmap that need to iterate over pages to also
iterate over superpages. We don't yet create these, but soon will.

Obtained from:        ABT Systems Ltd
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/modules Makefile cloudabi32, head/sys/modules/cloudabi32 Makefile

Add a Makefile for building the cloudabi32 kernel module.

Where the cloudabi64 kernel can be used to execute 64-bit CloudABI
binaries, this one should be used for 32-bit binaries. Right now it
works on i386 and amd64.
Delta File
+17 -17 head/sys/modules/cloudabi32/Makefile
+4 -0 head/sys/modules/Makefile
+0 -0 head/sys/modules/cloudabi32/
+21 -17 3 files

FreeBSD — head/sys/amd64 cloudabi32, head/sys/amd64/cloudabi32 cloudabi32_sysvec.c

Make execution of 32-bit CloudABI executables work on amd64.

A nice thing about requiring a vDSO is that it makes it incredibly easy
to provide full support for running 32-bit processes on 64-bit systems.
Instead of letting the kernel be responsible for composing/decomposing
64-bit arguments across multiple registers/stack slots, all of this can
now be done in the vDSO. This means that there is no need to provide
duplicate copies of certain system calls, like the sys_lseek() and
freebsd32_lseek() we have for COMPAT_FREEBSD32.

This change imports a new vDSO from the CloudABI repository that has
automatically generated code in it that copies system call arguments
into a buffer, padding them to eight bytes and zero-extending any
pointers/size_t arguments. After returning from the kernel, it does the
inverse: extracting return values, in the process truncating
pointers/size_t values to 32 bits.

Obtained from:        https://github.com/NuxiNL/cloudabi

FreeBSD — head/sys/contrib/cloudabi cloudabi_types.h

Remove an unused header file.

The native CloudABI data types header file used to be pulled in by the
vDSOs when they were still written in C. Since they are now all
rewritten in assembly, this can go away.

FreeBSD — head/sys/amd64/cloudabi64 cloudabi64_sysvec.c, head/sys/arm64/cloudabi64 cloudabi64_sysvec.c

Convert pointers obtained from the threadattr_t structure with TO_PTR().

In all of these source files, the userspace pointer size corresponds
with the kernelspace pointer size, meaning that casting directly works.
As I'm planning on making 32-bit execution on 64-bit systems work as
well, use TO_PTR() here as well, so that the changes between source
files remain minimal.

FreeBSD — head/bin/ls/tests ls_tests.sh

Skip ls tests that use sparse files if these are not supported.

Some of the ls(1) tests create really large sparse files to validate
the number formatting features of ls(1).  Unfortunately, those tests fail
if the underlying test file system does not support sparse files, as is the
case when /tmp is mounted on tmpfs.

Before running these tests, check if the test file system supports sparse
files by using getconf(1) and skip them if not.  Note that the support for
this query was just added to getconf(1) in r304694.

Reviewed by:        ngie
Differential Revision:        https://reviews.freebsd.org/D7609
Delta File
+8 -0 head/bin/ls/tests/ls_tests.sh
+8 -0 1 file

FreeBSD — head/sys/compat/ia32 ia32_signal.h

Add missing header dependency.

This header depends on sigaltstack32 being declared.

FreeBSD — stable/10/sys/kern vfs_aio.c

MFC r304286:
Remove duplicated code.
Delta File
+1 -6 stable/10/sys/kern/vfs_aio.c
+1 -6 1 file

FreeBSD — stable/11/sys/kern vfs_aio.c

MFC r304286:
Remove duplicated code.
Delta File
+1 -6 stable/11/sys/kern/vfs_aio.c
+1 -6 1 file

FreeBSD — stable/10/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.
Delta File
+2 -0 stable/10/sys/cam/ctl/ctl.c
+2 -0 1 file

FreeBSD — head/sys/netinet sctputil.c

When aborting an association, send the ABORT before notifying the upper
layer. For the kernel this doesn't matter, for the userland stack, it does.
While there, silence a clang warning when compiling it in userland.
Delta File
+8 -8 head/sys/netinet/sctputil.c
+8 -8 1 file

FreeBSD — head/sys/dev/usb/input ukbd.c

Fix key delay and repeat, part 2.

Use sbintime_t timeouts with precision control to get very accurate
timing.  It costs little to always ask for about 1% accuracy, and the
not so new event timer implementation usual delivers that, and when
it can't it gets much closer than our previous coarse timeouts and
buggy simple countdown.

The 2 fastest atkbd repeat rates have periods 34 and 38 msec, and ukbd
pretended to support rates in between these.  This requires
sub-microsecond precision and accuracy even to handle the 4 msec
difference very well, but ukbd asked the timeout subsystem for timeouts
of 25 msec and the buggy simple countdown of this gave a a wide range
of precisions and accuracies depending on HZ and other timer
configuration (sometimes better than 25 msec but usually more like 50
msec).  We now ask for and usually get precision and accuracy of about
1% for each repeat and much better on average.

The 1% accuracy is overkill.  Rounding of 30 cps to 34 msec instead of
33 already gives an error of +2% instead of -1%, and ut AT keyboards on
PS/2 interfaces have similar errors.

A timeout is now scheduled for every keypress and release.  This allows
some simplifications that are not done.  It allows removing the timeout
scheduling for exiting polled mode where it was unsafe in ddb mode.  This

    [13 lines not shown]
Delta File
+27 -13 head/sys/dev/usb/input/ukbd.c
+27 -13 1 file

FreeBSD — vendor/sqlite3 sqlite-3140100

Tag import of sqlite3-3.14.1 (3140100).
Delta File
+0 -0 vendor/sqlite3/sqlite-3140100/
+0 -0 1 file

FreeBSD — vendor/sqlite3/dist sqlite3.c sqlite3.h, vendor/sqlite3/dist/tea configure Makefile.in

Import sqlite3-3.14.1 (3140100)

FreeBSD — head/sys/dev/hyperv/utilities vmbus_icreg.h hv_util.c

hyperv/ic: Redefine IC version negotiate message.

And stringent input IC version negotiate message checks.

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

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

Update releng/11.0 to RC2 status as part of the 11.0-RELEASE
cycle.

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

FreeBSD — head/sys/dev/hyperv/netvsc hv_rndis_filter.c

hyperv/hn: Log a warning for RESET_CMPLT.

RESET is not used by the hn(4) at all, and RESET_CMPLT does not even
have a rid to match with the pending requests.  So, let's put it
onto an independent switch branch and log a warning about it.

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

FreeBSD — head/sys/powerpc/booke pmap.c booke_machdep.c, head/sys/powerpc/include pmap.h

Fix system hang when large FDT is in use

Summary:
Kernel maps only one page of FDT. When FDT is more than one page in size, data
TLB miss occurs on memmove() when FDT is moved to kernel storage
(sys/powerpc/booke/booke_machdep.c, booke_init())

This introduces a pmap_early_io_unmap() to complement pmap_early_io_map(), which
can be used for any early I/O mapping, but currently is only used when mapping
the fdt.

Submitted by:        Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7605

FreeBSD — projects/powernv/powerpc/powerpc mp_machdep.c intr_machdep.c, projects/powernv/powerpc/pseries xics.c

Fix some SMP issues:
- Use low thread priority in the wait loop for APs
- Add more head room for XICS in its interrupt range: it uses 2^24 + 1 IRQs
- OPAL doesn't like binding fictional interrupts (IPIs) to a particular CPU.
  Don't do that.

FreeBSD — head/sys/dev/usb/input uep.c

Bring datasheet URL up to date.
Delta File
+1 -1 head/sys/dev/usb/input/uep.c
+1 -1 1 file

FreeBSD — head/sys/dev/hyperv/netvsc hv_rndis_filter.c

hyperv/hn: Remove the redundant rid setting for RNDIS HALT.

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

FreeBSD — head/sys/net rndis.h

net/rndis: Fix RNDIS_STATUS_PENDING definition.

While I'm here, sort the RNDIS status in ascending order.

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7594
Delta File
+5 -5 head/sys/net/rndis.h
+5 -5 1 file