Displaying 1 50 of 266,504 commits (0.012s)

FreeBSD — stable/10/lib/libc/stdio puts.c fputs.c

MFC        r268985, r269001:
Avoid possible cast degradation.

Assign iov_len first, avoiding the cast to uio_resid
(int in stdio) from degrading the value.

Small cosmetical fix while here.

FreeBSD — head/tools/build/mk OptionalObsoleteFiles.inc, head/usr.bin/units/tests units_basics.sh basics_test.sh

Fix structure of new tests (r268794) for usr.bin/units.

- Make sure the tests go into the right directory.  The location was
  wrong so they were overwriting the bin/chown tests!
- Use the right naming scheme for the test program.
- Remove the svn:executable property from the shell script.

FreeBSD — stable/9/sys/dev/cxgbe t4_main.c t4_sge.c, stable/9/sys/dev/cxgbe/common t4_hw.c common.h

MFC r268640 and r268989.

r268640:
Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl.  The
firmware allows up to 48B to be read this way but the driver limits
itself to 8B at a time to remain compatible with old cxgbetool
binaries.

r268989:
Add missing newline to an error message.

FreeBSD — stable/10/sys/dev/cxgbe t4_main.c t4_sge.c, stable/10/sys/dev/cxgbe/common t4_hw.c common.h

MFC r268640 and r268989.

r268640:
Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl.  The
firmware allows up to 48B to be read this way but the driver limits
itself to 8B at a time to remain compatible with old cxgbetool
binaries.

r268989:
Add missing newline to an error message.

FreeBSD — head/sys/fs/nullfs null_vnops.c

Fix typo.

MFC after:        3 days
Delta File
+1 -1 head/sys/fs/nullfs/null_vnops.c
+1 -1 1 file

FreeBSD — head/sys/amd64/vmm vmm_instruction_emul.c

Fix a couple of issues in the PUSH emulation:

It is not possible to PUSH a 32-bit operand on the stack in 64-bit mode. The
default operand size for PUSH is 64-bits and the operand size override prefix
changes that to 16-bits.

vm_copy_setup() can return '1' if it encounters a fault when walking the
guest page tables. This is a guest issue and is now handled properly by
resuming the guest to handle the fault.

FreeBSD — head/lib/libc/gen rewinddir.c

POSIX says that passing a location returned by telldir() to seekdir()
after an intervening call to rewinddir() is undefined, so reclaim any
pending telldir() cookies in the directory when rewinddir() is called.

CR:                D459
Reviewed by:        jilles
MFC after:        1 week
Delta File
+1 -0 head/lib/libc/gen/rewinddir.c
+1 -0 1 file

FreeBSD — stable/10 Makefile.inc1

MFC r268957:

Run mtree for BSD.tests.dist during make xdev-install, if the tests are
enabled (which they are in the default configuration).  Otherwise, it
will fail because ${XDDESTDIR}/usr/include/atf-c does not exist.
Delta File
+4 -0 stable/10/Makefile.inc1
+4 -0 1 file

FreeBSD — head/lib/libstand qdivrem.c quad.h

libstand's qdivrem.c assumes that sizeof(int) == sizeof(long), this is not
true on amd64 I'm not quite positive this is the "correct" solution for
this but it does seem to compile and shut up the spew of warnings when
compiling libstand for userboot.

Add two _Static_asserts() so that in the future somebody will get a compile
failure if an architecture develops that violates the assumptions of this
code. (strongly suggested by jmg)

Change commetns to indicate int types instead of long.  (noted by ian in
phabric review)

Phabric:        https://phabric.freebsd.org/D443

FreeBSD — head/sys/dev/cxgbe t4_main.c offload.h, head/sys/dev/cxgbe/tom t4_cpl_io.c t4_tom.h

Some hooks in cxgbe(4) for the offloaded iSCSI driver.

(I'm committing this on behalf of my colleagues in the Storage team
at Chelsio).

Submitted by:        Sreenivasa Honnur <shonnur at chelsio dot com>
Sponsored by:        Chelsio Communications.

FreeBSD — head/sys/netinet sctputil.c

Initialize notification strucuture. This was missed in an earlier commit

MFC after: 3 days
Delta File
+2 -0 head/sys/netinet/sctputil.c
+2 -0 1 file

FreeBSD — head/usr.sbin/bsdinstall/scripts mirrorselect

Strip the patch level from the release name before trying to fetch the
distribution.

PR:                170264
Approved by:        nathanw
MFC after:        1 week

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

MFC r268466:
Calculate the amount of resident pages by looking in the objects chain
backing the region. Add a knob to disable the residency calculation at
all.

MFC r268490:
Unconditionally initialize addr to handle the case of changed map
timestamp while the map is unlocked.

MFC r268711:
Change the calculation of the kinfo_vmentry field kve_private_resident
to reflect its name.

MFC r268712:
Followup to r268466.
- Move the code to calculate resident count into separate function.
  It reduces the indent level and makes the operation of
  vmmap_skip_res_cnt tunable more clear.
- Optimize the calculation of the resident page count for map entry.
  Skip directly to the next lowest available index and page among the
  whole shadow chain.
- Restore the use of pmap_incore(9), only to verify that current
  mapping is indeed superpage.
- Note the issue with the invalid pages.
Delta File
+87 -35 stable/10/sys/kern/kern_proc.c
+87 -35 1 file

FreeBSD — stable/10/sys/amd64/amd64 pmap.c, stable/10/sys/arm/arm pmap-v6.c

MFC r267213 (by alc):
Add a page size field to struct vm_page.

Approved by:        alc

FreeBSD — stable/10/usr.sbin/ctladm ctladm.8

MFC r268457 (by pluknet):
Fix typos.

FreeBSD — stable/10/usr.sbin/ctladm ctladm.c

MFC r268289:
Fix minor copy-paste bug in r268284.

FreeBSD — stable/10/usr.sbin/iscsid login.c

MFC r267612 (by trasz):
Get rid of unneccessary argument.
Delta File
+8 -5 stable/10/usr.sbin/iscsid/login.c
+8 -5 1 file

FreeBSD — stable/10/usr.sbin/iscsid login.c

MFC r267609 (by trasz):
Improve code a little; no functional changes.
Delta File
+21 -9 stable/10/usr.sbin/iscsid/login.c
+21 -9 1 file

FreeBSD — stable/10/usr.sbin/iscsid login.c

MFC r267608 (by trasz):
Use proper term in debug messages.
Delta File
+5 -5 stable/10/usr.sbin/iscsid/login.c
+5 -5 1 file

FreeBSD — stable/10/usr.sbin/iscsid login.c

MFC r266169 (by trasz):
Remove unused variable.
Delta File
+0 -4 stable/10/usr.sbin/iscsid/login.c
+0 -4 1 file

FreeBSD — stable/10/sys/dev/iscsi iscsi.c iscsi_ioctl.h, stable/10/usr.sbin/iscsid login.c iscsid.c

MFC r267613 (by trasz):
Implement redirection handling in initiator.

FreeBSD — stable/10/sys/dev/drm2/i915 intel_fb.c, stable/10/sys/dev/vt vt_core.c

MFC r268947: Hide syscons-specific workaround under DEV_SC

FreeBSD — head/usr.bin/vtfontcvt vtfontcvt.8

vtfontcvt will first ship in FreeBSD 10.1

FreeBSD — stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_vnops.c

MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

FreeBSD — stable/10/sys/amd64/amd64 machdep.c

MFC r258471: Don't abort SMAP processing after an entry of length 0

  Length 0 is not special and should just be skipped.  This is the same
  behaviour as i386.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/sys event.h

Fix a typo in a comment

Reported by:        jhb
Delta File
+1 -1 head/sys/sys/event.h
+1 -1 1 file

FreeBSD — head/sys/cam/ctl ctl_backend_ramdisk.c

Fix build with QUEUE_MACRO_DEBUG.

Submitted by:        benno@
MFC after:        3 days

FreeBSD — stable/9/sys/kern kern_lockf.c

MFC r268384:
When the lock was stolen from us, retry the whole lock sequence in kernel,
instead of returning EINTR.
Delta File
+9 -1 stable/9/sys/kern/kern_lockf.c
+9 -1 1 file

FreeBSD — stable/10/sys/amd64/amd64 pmap.c

MFC r268660:
Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP.
Delta File
+53 -5 stable/10/sys/amd64/amd64/pmap.c
+53 -5 1 file

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

MFC r268384:
When the lock was stolen from us, retry the whole lock sequence in kernel,
instead of returning EINTR.
Delta File
+9 -1 stable/10/sys/kern/kern_lockf.c
+9 -1 1 file

FreeBSD — head/sys/netinet in_gif.c, head/sys/netinet6 in6_gif.c

Fix EtherIP.  TOS field must be initialized when the inner protocol is
PF_LINK, and multicast/broadcast flag should always be dropped because
the outer protocol uses unicast even when the inner address is not for
unicast.  It had been broken since r236951 when gif_output() started to
use IFQ_HANDOFF().

FreeBSD — head/sys/vm vm_object.c

Correct assertion.  The shadowing object cannot be tmpfs vm object,
and tmpfs object cannot shadow.  In other words, tmpfs vm object is
always at the bottom of the shadow chain.

Reported and tested by:        bdrewery
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+4 -2 head/sys/vm/vm_object.c
+4 -2 1 file

FreeBSD — head/sys/x86/x86 mca.c

Intel desktop Haswell CPUs may report benign corrected parity errors (see
HSD131 erratum in [1]) at a considerable rate. So filter these (default),
unless logging is enabled. Unfortunately, there really is no better way to
reasonably implement suppressing these errors than to just skipping them
in mca_log(). Given that they are reported for bank 0, they'd need to be
masked in MSR_MC0_CTL. However, P6 family processors require that register
to be set to either all 0s or all 1s, disabling way more than the one error
in question when using all 0s there. Alternatively, it could be masked for
the corresponding CMCI, but that still wouldn't keep the periodic scanner
from detecting these spurious errors. Apart from that, register contents of
MSR_MC0_CTL{,2} don't seem to be publicly documented, neither in the Intel
Architectures Developer's Manual nor in the Haswell datasheets.

Note that while HSD131 actually is only about C0-stepping as of revision
014 of the Intel desktop 4th generation processor family specification
update, these corrected errors also have been observed with D0-stepping
aka "Haswell Refresh".

1: 
http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf

Reviewed by:        jhb
MFC after:        3 days
Sponsored by:        Bally Wulff Games & Entertainment GmbH
Delta File
+26 -0 head/sys/x86/x86/mca.c
+26 -0 1 file

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

Copying pages via temporary mappings in the !DMAP case of pmap_copy_pages()
involves updating the corresponding page tables followed by accesses to the
pages in question. This sequence is subject to the situation exactly described
in the "AMD64 Architecture Programmer's Manual Volume 2: System Programming"
rev. 3.23, "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore,
issuing the INVLPG right after modifying the PTE bits is crucial (see also
r269050).
For the amd64 PMAP code, the order of instructions was already correct. The
above fact still is worth documenting, though.

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Reviewed by:        alc
Sponsored by:        Bally Wulff Games & Entertainment GmbH
Delta File
+8 -0 head/sys/amd64/amd64/pmap.c
+8 -0 1 file

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

- Copying and zeroing pages via temporary mappings involves updating the
  corresponding page tables followed by accesses to the pages in question.
  This sequence is subject to the situation exactly described in the "AMD64
  Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23,
  "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing
  the INVLPG right after modifying the PTE bits is crucial.
  For pmap_copy_page(), this has been broken in r124956 and later on carried
  over to pmap_copy_pages() derived from the former, while all other places
  in the i386 PMAP code use the correct order of instructions in this regard.
  Fixing the latter breakage solves the problem of data corruption seen with
  unmapped I/O enabled when running at least bare metal on AMD R-268D APUs.
  However, this might also fix similar corruption reported for virtualized
  environments.
- In pmap_copy_pages(), correctly set the cache bits on the source page being
  copied. This change is thought to be a NOP for the real world, though. [2]

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Submitted by:        kib [2]
Reviewed by:        alc, kib
MFC after:        3 days
Sponsored by:        Bally Wulff Games & Entertainment GmbH
Delta File
+12 -5 head/sys/i386/i386/pmap.c
+12 -5 1 file

FreeBSD — stable/9/etc/namedb named.root

Sync with 2014060201 which adds IPv6 to b.root-servers.net

Note that this is a direct commit to stable/9 as this file
is no longer in HEAD.

Sponsored by: DK Hostmaster A/S
Delta File
+3 -2 stable/9/etc/namedb/named.root
+3 -2 1 file

FreeBSD — head Makefile UPDATING

Add compat shims for XDEV and XDEV_ARCH so we don't break all the
users of them. Also, add a note to updating. We'll keep these shims at
least until the 12 branch.
Delta File
+7 -0 head/Makefile
+4 -0 head/UPDATING
+11 -0 2 files

FreeBSD — stable/10/sys/sys mbuf.h

MFC r268825:

Remove deprecated definition "m_act".

Suggested by:        adrian, glebius
Delta File
+0 -1 stable/10/sys/sys/mbuf.h
+0 -1 1 file

FreeBSD — stable/10/sys/kern uipc_usrreq.c, stable/10/sys/net if.c if_spppsubr.c

MFC r268787:

Deprecate m_act.  Use m_nextpkt always.

FreeBSD — stable/10/lib/libc/sys listen.2

MFC r268643:

Document that listen(2) can fail with EDESTADDRREQ.
Delta File
+4 -1 stable/10/lib/libc/sys/listen.2
+4 -1 1 file

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

MFC r268601:

Make bind(2) and connect(2) return EAFNOSUPPORT for AF_UNIX on wrong
address family.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191586 for the
original discussion.

Reviewed by:        terry
Delta File
+6 -0 stable/10/sys/kern/uipc_usrreq.c
+6 -0 1 file

FreeBSD — head/usr.sbin/bhyve task_switch.c

Reduce the proliferation of VMEXIT_RESTART in task_switch.c.

This is in preparation for further simplification of the return values from
VM exit handlers in bhyve(8).
Delta File
+94 -76 head/usr.sbin/bhyve/task_switch.c
+94 -76 1 file

FreeBSD — head/lib/libvmmapi vmmapi.c vmmapi.h, head/sys/amd64/include vmm.h

Fix fault injection in bhyve.

The faulting instruction needs to be restarted when the exception handler
is done handling the fault. bhyve now does this correctly by setting
'vmexit[vcpu].inst_length' to zero so the %rip is not advanced.

A minor complication is that the fault injection APIs are used by instruction
emulation code that is shared by vmm.ko and bhyve. Thus the argument that
refers to 'struct vm *' in kernel or 'struct vmctx *' in userspace needs to
be loosely typed as a 'void *'.

FreeBSD — stable/10/tools/tools/vt/fontcvt fontcvt.c terminus.sh, stable/10/usr.bin Makefile vtfontcvt

MFC vtfontcvt improvements:

r267011: Make height and width optional arguments

  Now defaults to a 16x8 font size.  The height and width can be specified
  using -h and -w respectively.

r267012: Make the bold font optional

r267035: Use a hash to speed up glyph deduplication

  Walking a linked list of all glyphs to look for a duplicate is very slow
  for large fonts (e.g., for CJK character sets).  In my test the runtime
  for a sample 40000 character font went from just over 80 seconds on
  average to just over 2 seconds.

r267119: -w sets the width, not height

r267123: Support "GNU Unifont" format font data

  The GNU Unifont .hex format is a text file.  Each line represents one
  glyph and consists of a four-digit hex code point, a colon, and pairs of
  hex digits representing the bitmap.  By default an 8x16 font is assumed,
  with 16x16 double-width glyphs, resulting in either 32 or 64 hex digits
  for the bitmap.

    [57 lines not shown]

FreeBSD — stable/9/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering tst.resize2.d tst.resize1.d, stable/9/cddl/contrib/opensolaris/lib/libdtrace/common dt_options.c

MFC r262329:
Define the KM_NORMALPRI flag for kmem_alloc(), as it is used in some
upstream DTrace code.

MFC r262330:
1452 DTrace buffer autoscaling should be less violent

illumos/illumos-gate at 6fb4854bed54ce82bd8610896b64ddebcd4af706

FreeBSD — head/sys/conf kmod.mk

Clean symlinks created in sys/modules dirs when a make clean is invoked.

Phabric:        https://phabric.freebsd.org/D474
Reviewed by:        grehan sjg
Delta File
+1 -0 head/sys/conf/kmod.mk
+1 -0 1 file

FreeBSD — stable/10/sys/dev/acpica acpi.c, stable/9/sys/dev/acpica acpi.c

MFC 267883:
Expand r261243 even further and ignore any I/O port resources assigned to
PCI root bridges except for the one known-valid case on x86 where bridges
claim the I/O port registers used for PCI config space access.

FreeBSD — head/usr.bin/make Makefile

When producing fmake(1), `make clean' should remove fmake.1 (a copy of
make.1). Introduced initially via SVN r250699 (sjg).

Reviewed by:        sjg, gjb
MFC after:        3 days
X-MFC-to:        stable/10
Delta File
+1 -0 head/usr.bin/make/Makefile
+1 -0 1 file

FreeBSD — head/sys/boot/libstand32 Makefile

Delete the entire cleandepend/cleanmachine target thing now that its been
cleared out in r269029

Reviewed by:        emaste at freebsd.org
Delta File
+0 -1 head/sys/boot/libstand32/Makefile
+0 -1 1 file