SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2014 - 07 - 28   (today)
14:41:22 - r269194
(3 hours 44 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt_core.c
Revise font initialization handling.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
14:37:59 - r269193
(3 hours 48 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt_core.c
Update comments.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
14:35:21 - r269192
(3 hours 51 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt_core.c
Remove special handling of console window size. It's done in vt_upgrade() for
all windows.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
14:32:20 - r269191
(3 hours 54 minutes ago)
by mav
Affects:  /head/usr.sbin/ctld/ctld.c
Fix r269183 build woth GCC.

MFC after:      2 weeks
14:27:05 - r269190
(3 hours 59 minutes ago)
by kib
Affects:  /head/sys/dev/md/md.c
/head/sys/kern/uipc_shm.c
For md(4), posix shm(3) and tmpfs(5), free swap space used by paged in
dirty page, which is written by the process.

Reviewed by:    alc
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
14:24:18 - r269189
(4 hours 2 minutes ago)
by kib
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
Initialize zfs vnode v_hash when the vnode is allocated, instead of
postponing it to zfs_vget().  zfs_root() returned vnode with the
default value of v_hash, which caused inconsistent v_hash value when
root vnode was obtained from zfs_vget().

Nullfs allocated two upper vnodes for the root zfs vnode due to
different hashes, causing consistency problems.

Reported and tested by: Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
14:22:34 - r269188
(4 hours 3 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt_core.c
Avoid embedding buffers into static virtual terminal window.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
14:20:31 - r269187
(4 hours 5 minutes ago)
by kib
Affects:  /head/sys/fs/nullfs/null_vnops.c
Assert that nullfs vnode has VV_ROOT set whenever lower vnode has.
Assert that dotdot lookup on the root vnode is not performed.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
14:15:41 - r269186
(4 hours 10 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt_core.c
o Remove useless debug string.
o Fix indent.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
14:14:33 - r269185
(4 hours 11 minutes ago)
by ray
Affects:  /head/sys/dev/vt/vt.h
Remove unused macro VT_CONSDEV_DECLARE. Join console device now declared in one
place.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
13:47:02 - r269184
(4 hours 39 minutes ago)
by akiyama
Affects:  /head/sys/x86/acpica/madt.c
Add missing newline to output dmesg properly.
12:47:09 - r269183
(5 hours 39 minutes ago)
by mav
Affects: 
(4 files)
/head/usr.sbin/ctld/*
Add netmasks support to initiator-portal option.

MFC after:      2 weeks
10:17:41 - r269182
(8 hours 8 minutes ago)
by gnn
Affects:  /head/lib/libpmc/pmc.3
Update the list of cross references to include the more modern set of
processors that we now support.
10:01:23 - r269181
(8 hours 24 minutes ago)
by antoine
Affects:  /head/ObsoleteFiles.inc
libsbuf.so.6 is no longer obsolete
08:22:08 - r269180
(10 hours 4 minutes ago)
by delphij
Affects:  /head/sbin/ping6/ping6.c
When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR:             bin/151023
Submitted by:   tjmao at tjmao.net
MFC after:      2 weeks
07:20:22 - r269179
(11 hours 5 minutes ago)
by gahr
Affects:  /head/lib/libsbuf/Makefile
/head/sys/kern/subr_sbuf.c
/head/sys/sys/sbuf.h
Unbreak the ABI by reverting r268494 until the compat shims are provided
05:37:10 - r269178
(12 hours 49 minutes ago)
by br
Affects:  /head/sys/arm/samsung/exynos/exynos5_combiner.c
Add the rest of combined interrupt groups.
02:07:16 - r269177
(16 hours 19 minutes ago)
by marcel
Affects: 
(12 files)
/stable/10/usr.bin/mkimg/*
MFC r268236,268264,268524,268646,268802,269021:
This brings VHD support to mkimg(1); both dynamic and fixed file formats.
Dynamic VHD and VMDK file images are now sparsely written, meaning that
"free" sectors do not occupy space.

Relnotes: yes
01:25:49 - r269176
(17 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/tmpfs/tmpfs_vnops.c
MFC r268766:
Do not ignore error from tmpfs_alloc_vp().
01:23:59 - r269175
(17 hours 2 minutes ago)
by kib
Affects: 
(4 files)
/stable/10/sys/fs/tmpfs/tmpfs.h
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
/stable/10/sys/fs/tmpfs/tmpfs_vfsops.c
MFC r268617:
Rework the tmpfs unmount.
01:21:02 - r269174
(17 hours 5 minutes ago)
by kib
Affects: 
(4 files)
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
/stable/10/sys/vm/vm_object.c
/stable/10/sys/vm/vm_object.h
MFC r268615:
Add OBJ_TMPFS_NODE flag.

MFC r268616:
Set the OBJ_TMPFS_NODE flag for vm_object of VREG tmpfs node.

MFC r269053:
Correct assertion. tmpfs vm object is always at the bottom of
the shadow chain.
01:16:07 - r269173
(17 hours 10 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/tmpfs/tmpfs_vnops.c
MFC r268614:
Use tmpfs_vn_get_ino_gen() to handle the races with reclaim in tmpfs
dotdot lookup.
01:14:25 - r269172
(17 hours 11 minutes ago)
by kib
Affects: 
(3 files)
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
/stable/10/sys/fs/tmpfs/tmpfs_vnops.c
MFC r268613:
Style.  Add comment about lock mode.
01:11:29 - r269171
(17 hours 14 minutes ago)
by kib
Affects: 
(4 files)
/stable/10/sys/kern/vfs_vnops.c
/stable/10/sys/sys/vnode.h
/stable/10/sys/ufs/ffs/ffs_vfsops.c
MFC r268612:
Add helper helper vfs_write_suspend_umnt().

Fix the bug in the FFS unmount, when suspension failed, the ufs
extattrs were not reinitialized.
01:08:43 - r269170
(17 hours 17 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
MFC r268611:
Replace goto's with the return.
01:06:36 - r269169
(17 hours 19 minutes ago)
by kib
Affects: 
(3 files)
/stable/10/sys/fs/tmpfs/tmpfs.h
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
MFC r268610:
Add convenience macro to assert tmpfs node lock.
01:04:33 - r269168
(17 hours 21 minutes ago)
by kib
Affects: 
(3 files)
/stable/10/sys/fs/tmpfs/tmpfs_subr.c
/stable/10/sys/fs/tmpfs/tmpfs_vnops.c
MFC r268609:
Add some assertions for the code handling vm_object for tmpfs vnode.
01:01:20 - r269167
(17 hours 25 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/tmpfs/tmpfs_vnops.c
MFC r268608:
The tmpfs_link() must not dereference the filesystem-specific data for
a vnode until it is verified that the vnode indeed belongs to tmpfs mount.
00:57:28 - r269166
(17 hours 28 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_syscalls.c
MFC r268607:
In kern_linkat(), avoid passing doomed vnode to the VOP.
00:53:26 - r269165
(17 hours 32 minutes ago)
by kib
Affects: 
(5 files)
/stable/10/sys/fs/*
/stable/10/sys/kern/vfs_vnops.c
/stable/10/sys/sys/vnode.h
MFC r268606:
Generalize vn_get_ino() to allow filesystems to use custom vnode
producer. Convert inline copies of vn_get_ino() in msdosfs and cd9660
into the uses of vn_get_ino_gen().
00:43:42 - r269164
(17 hours 42 minutes ago)
by kib
Affects: 
(8 files)
/stable/10/sys/fs/tmpfs/*
MFC r268605:
Remove code separator lines which do not conform to style(9).
2014 - 07 - 27   (yesterday)
22:56:46 - r269163
(19 hours 29 minutes ago)
by bapt
Affects:  /head/usr.bin/m4/lib/ohash_int.h
Remove ohash_int.h forgotten in previous commit
22:54:13 - r269162
(19 hours 32 minutes ago)
by bapt
Affects: 
(23 files)
/head/usr.bin/m4/*
Sync with OpenBSD
This brings:
- check for integer overflows in custom allocs
- fix potential integer overflows in memory allocation
- annotate regexp error messages with source string
- better error handling in mkstemp/unlink/fdopen logic
20:55:47 - r269161
(21 hours 30 minutes ago)
by kib
Affects:  /head/share/man/man9/VOP_INACTIVE.9
Explicitely mention that inactivated or reclaimed vnode is locked
exclusively.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
20:48:56 - r269160
(21 hours 37 minutes ago)
by kib
Affects:  /head/share/man/man9/Makefile
/head/share/man/man9/VOP_GETVOBJECT.9
Remove man page for non-existent VOPs.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
20:47:06 - r269159
(21 hours 39 minutes ago)
by kib
Affects:  /head/share/man/man9/VOP_INACTIVE.9
Correct the locking statement.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
20:14:22 - r269158
(22 hours 11 minutes ago)
by adrian
Affects:  /head/sys/dev/sound/pci/hda/hdaa_patches.c
Update from mav@ - don't break the input switching.
18:10:07 - r269157
(1 day ago)
by kib
Affects: 
(3 files)
/stable/9/sys/fs/nullfs/null_vnops.c
MFC r269081:
Fix typo.
18:08:47 - r269156
(1 day ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/nullfs/null_vnops.c
MFC r269081:
Fix typo.
17:34:49 - r269155
(1 day ago)
by peter
Affects:  /head/UPDATING
Forced commit - testing commit mail etc pipelines.
16:29:57 - r269154
(1 day 1 hour ago)
by marcel
Affects:  /head/sys/boot/i386/libi386/pxe.c
1.  Suppress output for the TFTP-based PXE loader, but leave it in
    place for the NFS-based PXE loader. Information like rootpath
    or rootip aren't that useful for TFTP and the gateway IP is
    typically already printed by the firmware.
2.  Only set boot.nfsroot.* environment variables for NFS. This
    makes it possible for the OS to work either way by checking
    for the presence or absence of environment variables.
3.  Set boot.netif.server when using TFTP so that the OS can fetch
    files as well. A typical use case for this is network-based
    installations with the installation process implemented on
    top of FreeBSD.
4.  The pxelinux loader has a set of alternative names it tries
    for configuration files. Make it easier to do something
    similar in Forth by providing the IP address as a 32-bit hex
    number in the pxeboot.ip variable and the MAC address with
    dashes in the pxeboot.hwaddr environment variable.

Obtained from:  Juniper Networks, Inc.
16:12:51 - r269153
(1 day 2 hours ago)
by marcel
Affects: 
(14 files)
/head/sys/boot/*
Give loaders more control over the Forth initialization process. In
particular, allow loaders to define the name of the RC script the
interpreter needs to use. Use this new-found control to have the
PXE loader (when compiled with TFTP support and not NFS support)
read from ${bootfile}.4th, where ${bootfile} is the name of the
file fetched by the PXE firmware.

The normal startup process involves reading the following files:
1.  /boot/boot.4th
2.  /boot/loader.rc or alternatively /boot/boot.conf

When these come from a FreeBSD-defined file system, this is all
good. But when we boot over the network, subdirectories and fixed
file names are often painful to administrators and there's really
no way for them to change the behaviour of the loader.

Obtained from:  Juniper Networks, Inc.
08:44:15 - r269152
(1 day 9 hours ago)
by adrian
Affects:  /head/sys/dev/sound/pci/hda/hdaa_patches.c
/head/sys/dev/sound/pci/hda/hdac.h
Add support for my Lenovo T400.

Tested:

* Lenovo T400, model w/ P8700 Intel CPU on-board
08:02:24 - r269151
(1 day 10 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_backend_ramdisk.c
MFC r269058:
Fix build with QUEUE_MACRO_DEBUG.
07:07:12 - r269150
(1 day 11 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap13.sh
Added a v_wire_count test scenario.

Sponsored by:    EMC / Isilon storage division
06:49:55 - r269149
(1 day 11 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Fix several cases of NULL dereference when INQUIRY sent to absent LUN.

MFC after:      3 days
05:44:42 - r269148
(1 day 12 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/uart_dev_ar933x.c
Commit some sins in the name of "oh god oh god I don't really want to
be able to claim I know how the UART code works."

* Just return 115200 as the current baud rate. I should cache it in the
  device struct and return that but I'm lazy right now.
* don't error out on other ioctl settings for now, just silently ignore them.
* remove some code that was copied from the 8250 driver that isn't needed
  any longer.

Tested:

* AR9331, Carambola-2 board.
2014 - 07 - 26   (2 days ago)
21:33:17 - r269147
(1 day 20 hours ago)
by adrian
Affects:  /head/sys/dev/etherswitch/arswitch/arswitch.c
Add another revision of the AR8327.
21:32:03 - r269146
(1 day 20 hours ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_interrupts.c
store the AR9300 interrupts away when doing interrupt debugging.
20:42:54 - r269145
(1 day 21 hours ago)
by gnn
Affects:  /head/cddl/contrib/dtracetoolkit/rwsnoop
Update the header printing to match the rest of the output.

Pointed out by: mdf
20:11:36 - r269144
(1 day 22 hours ago)
by gnn
Affects:  /head/cddl/contrib/dtracetoolkit/rwsnoop
Since we cannot yet display the name print the file descriptor so that
it can be looked up manually using procstat(1).
19:44:46 - r269143
(1 day 22 hours ago)
by andreast
Affects:  /head/usr.bin/elfdump/elfdump.c
Further improvements on elfdump, to follow up r269092:

- Add ARM specific section header types.
- Add SHT_GNU_HASH section header type.
- Improve reporting of undefined tags in d_tags.
- Add DT_GNU_HASH tag.

Reviewed by:    emaste
19:27:34 - r269142
(1 day 22 hours ago)
by marcel
Affects: 
(4 files)
/head/sys/conf/files
/head/sys/kern/*
/head/sys/netinet/in_proto.c
The accept filter code is not specific to the FreeBSD IPv4 network stack,
so it really should not be under "optional inet". The fact that uipc_accf.c
lives under kern/ lends some weight to making it a "standard" file.

Moving kern/uipc_accf.c from "optional inet" to "standard" eliminates the
need for #ifdef INET in kern/uipc_socket.c.

Also, this meant the net.inet.accf.unloadable sysctl needed to move, as
net.inet does not exist without networking compiled in (as it lives in
netinet/in_proto.c.) The new sysctl has been named net.accf.unloadable.

In order to support existing accept filter sysctls, the net.inet.accf node
has been added netinet/in_proto.c.

Submitted by:   Steve Kiernan <stevek@juniper.net>
Obtained from:  Juniper Networks, Inc.
19:25:52 - r269141
(1 day 23 hours ago)
by gnn
Affects:  /head/cddl/contrib/dtracetoolkit/rwsnoop
Remove debugging options from the rwsnoop script.
19:21:53 - r269140
(1 day 23 hours ago)
by gnn
Affects:  /head/cddl/contrib/dtracetoolkit/rwsnoop
Port the rwsnoop DTrace Toolkit script to FreeBSD.
Remove dependency on the Korn Shell.
Remove Zones in favor of Jails.
Remove support (for now) for filename printing.
19:08:52 - r269139
(1 day 23 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/xhci.c
/head/sys/dev/usb/controller/xhci.h
Split the XHCI TRB allocations into smaller parts, so that we don't
end up allocating contiguous busdma buffers above PAGE_SIZE bytes.

MFC after:      1 week
Tested by:      Ruslan Bukin <br@bsdpad.com>
19:07:08 - r269138
(1 day 23 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
Add two sysctls for newly added tunables.

MFC after:      2 weeks
18:52:23 - r269137
(1 day 23 hours ago)
by marcel
Affects:  /head/sys/mips/include/elf.h
Add missing definition of ELF_MACHINE_OK, now used by gcore(1).
18:19:43 - r269136
(2 days ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Pull in the armv4 "fast out" code for checking whether busdma can bounce
due to an excluded region of physical memory.
18:14:16 - r269135
(2 days ago)
by ian
Affects:  /head/sys/arm/arm/busdma_machdep-v6.c
Remove completely bogus alignment check -- it's the physical address that
needs to be aligned, not the virtual, and it doesn't seem worth the cost
of a vtophys() call just to see if kmem_alloc_contig() works properly.
18:10:18 - r269134
(2 days ago)
by alc
Affects: 
(5 files)
/head/sys/vm/*
When unwiring a region of an address space, do not assume that the
underlying physical pages are mapped by the pmap.  If, for example, the
application has performed an mprotect(..., PROT_NONE) on any part of the
wired region, then those pages will no longer be mapped by the pmap.
So, using the pmap to lookup the wired pages in order to unwire them
doesn't always work, and when it doesn't work wired pages are leaked.

To avoid the leak, introduce and use a new function vm_object_unwire()
that locates the wired pages by traversing the object and its backing
objects.

At the same time, switch from using pmap_change_wiring() to the recently
introduced function pmap_unwire() for unwiring the region's mappings.
pmap_unwire() is faster, because it operates a range of virtual addresses
rather than a single virtual page at a time.  Moreover, by operating on
a range, it is superpage friendly.  It doesn't waste time performing
unnecessary demotions.

Reported by:    markj
Reviewed by:    kib
Tested by:      pho, jmg (arm)
Sponsored by:   EMC / Isilon Storage Division
17:59:25 - r269133
(2 days ago)
by marcel
Affects: 
(2 files)
/head/sys/modules/tsec/Makefile
Build tsec(4) as a module.

Obtained from:  Juniper Networks, Inc.
17:57:13 - r269132
(2 days ago)
by marcel
Affects:  /head/sys/dev/tsec/if_tsec_fdt.c
Remove bogus module dependencies.
17:49:40 - r269131
(2 days ago)
by marcel
Affects:  /head/sys/dev/uart/uart_cpu_powerpc.c
Do not fail the low-level device probe simply because the kernel
doesn't have support for the Z8530. Embedded PowerPC platforms
typically don't. Fail when the device class we actually need is
not present.

Obtained from:  Juniper Networks, Inc.
17:24:58 - r269130
(2 days 1 hour ago)
by marcel
Affects:  /head/sys/modules/bxe/Makefile
/head/sys/modules/dtrace/fasttrap/Makefile
/head/sys/modules/zfs/Makefile
Avoid using ${.CURDIR} so that the module can be built from multiple
directories.

Obtained from:  Juniper Networks, Inc.
17:07:32 - r269129
(2 days 1 hour ago)
by marcel
Affects:  /head/sys/powerpc/powerpc/elf32_machdep.c
Fix relocations related to dpcpu and vnet sets. The address is
rebased to point to the allocated memory, but for architectures
that have non-zero relocation addends, the address comparison
happens on the "unfinalized" address.
After the addend is taken into account, call elf_relocaddr() to
make sure we rebase properly.
16:45:11 - r269128
(2 days 1 hour ago)
by marcel
Affects:  /head/usr.bin/gcore/Makefile
/head/usr.bin/gcore/elf32core.c
/head/usr.bin/gcore/elfcore.c
Create 32-bit core files for 32-bit processes on 64-bit machines.
The 64-bit machine supported right now is amd64, but it's not too
hard to add powerpc64.

Obtained from:  Juniper Networks, Inc.
16:06:01 - r269127
(2 days 2 hours ago)
by hselasky
Affects: 
(4 files)
/head/sys/dev/usb/wlan/*
Fix for division by zero.

MFC after:      3 days
15:46:41 - r269126
(2 days 2 hours ago)
by marcel
Affects:  /head/sys/kern/tty.c
Don't return ERESTART when the device is gone. In ttydev_leave() ERESTART
is the indication that draining got interrupted due to a revoke(2) and
that tty_drain() is to be called again for draining to complete. If the
device is flagged as gone, then waiting/draining is not possible. Only
return ERESTART when waiting is still possible.

Obtained from:  Juniper Networks, Inc.
15:33:20 - r269125
(2 days 2 hours ago)
by dim
Affects:  /head/lib/libarchive/config_freebsd.h
/head/rescue/rescue/Makefile
In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h
header with archive_crypto_private.h, and its ARCHIVE_HASH_xxx macros
were renamed to ARCHIVE_CRYPTO_xxx.

Rename these macros in lib/libarchive/config_freebsd.h, to re-enable the
hashes for libarchive again.  This affects the mtree format writer, and
the xar format reader and writer modules.

This also requires changes in the library order for statically linking
rescue, otherwise ld would complain about redefined symbols.  Thanks to
jkim for pointing out the solution.

Reviewed by:    kientzle
MFC after:      1 week
14:24:13 - r269124
(2 days 4 hours ago)
by pfg
Affects:  /head/lib/libc/stdtime/strftime.c
strftime() xlocale cleanups.

Replace fprintf_l with fputs when output is unformatted.
Use locale_t in _conv() since it was using sprintf (now sprintf_l)
Use locale_t on _yconv() sinci it calls _conv()

Obtained from:  Apple Inc. (Libc 997.90.3)
CR:             D482
Reviewed by:    theraven
MFC after:      1 week
13:56:50 - r269123
(2 days 4 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_backend_block.c
Implement separate I/O dispatch method for ZVOLs in "dev" mode.

Unlike disk devices ZVOLs process all requests synchronously.  That makes
impossible sending multiple requests to them from single thread.  From the
other side ZVOLs have real d_read/d_write methods, which unlike d_strategy
can handle uio scatter/gather and have no strict I/O size limitations.

So, if ZVOL in "dev" mode is detected, use of d_read/d_write methods instead
of d_strategy allows to avoid pointless splitting of large requests into
MAXPHYS (128K) sized chunks.

MFC after:      1 week
13:43:25 - r269122
(2 days 4 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_backend_block.c
Fix infinite loop, when doing WRITE SAME on file-backed LUN.

MFC after:      3 days
13:37:25 - r269121
(2 days 4 hours ago)
by melifaro
Affects: 
(5 files)
/projects/ipfw/sbin/ipfw/tables.c
/projects/ipfw/sys/netpfil/ipfw/*
* Require explicit table creation before use on kernel side.
* Add resize callbacks for upcoming table-based algorithms.

Kernel changes:
* s/ipfw_modify_table/ipfw_manage_table_ent/
* Simplify add_table_entry(): make table creation a separate piece of code.
  Do not perform creation if not in "compat" mode.
* Add ability to perform modification of algorithm state (like table resize).
  The following callbacks were added:
 - prepare_mod (allocate new state, without locks)
 - fill_mod (UH_WLOCK, copy old state to new one)
 - modify (UH_WLOCK + WLOCK, switch state)
 - flush_mod (no locks, flushes allocated data)
 Given callbacks are called if table modification has been requested by add or
   delete callbacks. Additional u64 tc->'flags' field was added to pass these
   requests.
* Change add/del table ent format: permit adding/removing multiple entries
   at once (only 1 supported at the moment).

Userland changes:
* Auto-create tables with warning
13:14:28 - r269120
(2 days 5 hours ago)
by se
Affects:  /head/usr.sbin/kbdcontrol/kbdcontrol.c
The previous commit (r269119) introduced a regression: It removed the
ability to specify the the full path name of the keymap file.

Instead leave the original search order intact, but insert the path for
newcons-specific fonts (if run on a system using newcons):

        - KEYMAP_PATH in environment
        - full path name
        - /usr/share/vt/keymaps         (only if newcons is in use!)
        - /usr/share/syscons/keymaps    (also as fall-back for newcons)

MFC after:      1 week
12:17:26 - r269119
(2 days 6 hours ago)
by se
Affects:  /head/usr.sbin/kbdcontrol/kbdcontrol.c
Fix obvious off by one error: prefix[1] should be set to the path of the
newcons specific keymap files, not prefix[2]. The result of this bug was
that kbdcontrol ignored the files in the syscons keymap directory, which
apparently still work under newcons, for most locales.

MFC after:      1 week
10:20:48 - r269118
(2 days 8 hours ago)
by delphij
Affects: 
(19 files)
/head/cddl/contrib/opensolaris/cmd/*
/head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
/head/sys/cddl/contrib/opensolaris/*
MFV r269010:

Import Illumos changes to address the following Illumos issues:
  4976 zfs should only avoid writing to a failing non-redundant
       top-level vdev
  4978 ztest fails in get_metaslab_refcount()
  4979 extend free space histogram to device and pool
  4980 metaslabs should have a fragmentation metric
  4981 remove fragmented ops vector from block allocator
  4982 space_map object should proactively upgrade when feature
       is enabled
  4984 device selection should use fragmentation metric

MFC after:      2 weeks
09:09:14 - r269117
(2 days 9 hours ago)
by mav
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c
Make sysctls under vfs.zfs.zfetch writeable.

I don't see any reason for them to be read-only, while tuning them without
reboot is much more convenient for experiments.

MFC after:      2 weeks
08:41:03 - r269116
(2 days 9 hours ago)
by ache
Affects:  /head/lib/libc/stdio/freopen.c
In the "Too many open files" edge cases don't try to preserve old
number for non-std* descriptors, but close old file and retry.

Obtained from:  inspired by Apple's change from pfg@
MFC after:      2 weeks
07:40:31 - r269115
(2 days 10 hours ago)
by des
Affects:  /head/lib/libpam/modules/pam_lastlog/pam_lastlog.c
Remove useless getpwnam() call.

Submitted by:   Arthur Mesh <amesh@juniper.net>
MFC after:      1 week
04:38:09 - r269114
(2 days 13 hours ago)
by sjg
Affects: 
(6 files)
/head/lib/csu/i386-elf/Makefile
/head/share/mk/sys.mk
/head/sys/*
Reviewed by: imp

LDFLAGS is supposed to be given to CC not LD.
Define _LDFLAGS as a filtered version of LDFLAGS safe to give to LD
04:16:04 - r269113
(2 days 14 hours ago)
by ian
Affects:  /head/sys/boot/arm/at91/libat91/mci_device.h
/head/sys/boot/arm/at91/libat91/sd-card.c
/head/sys/boot/arm/at91/libat91/sd-card.h
Enable at91 systems to boot from high capacity SD cards.

This also fixes a few minor violations of the SD protocol, such as running
the bus at high speed during the card identification sequence.

The sdcard_init() routine now probes for SDHC cards so that later read
requests can make needed adjustments between block and byte offsets based
on card type.

There is a new MCI_readblocks() function that takes block number and block
count parameters instead of byte-offset values.  Using this routine, boot
loader code can load a kernel from any location on an SDHC or standard SD.

The old MCI_read() interface remains unchanged so that existing customized
boot loader code will still keep working without changes.  Using this
routine, boot loaders can load a kernel from anywhere in the first 4GB of
an SDHC card (or of course any location on a standard SD card).

A new sdcard_use4wire() routine allows boot loaders to request 4-bit
transfers; it should be called after sdcard_init().  The sdcard_init()
routine no longer assumes the hardware is 4-wire capable and by default
sets things up for 1-bit transfers.  (4-wire mode is unreliable on
at91rm9200, works on later SoCs.)

PR:             155894
Submitted by:   me.  years ago.
04:09:43 - r269112
(2 days 14 hours ago)
by ian
Affects:  /head/sys/boot/arm/at91/boot2/boot2.c
The 'flags' variable is conflicting with some inline code in a header file
("variable flags shadows a global..."), just rename this variable to
wish away the problem.
03:33:20 - r269111
(2 days 14 hours ago)
by ian
Affects: 
(6 files)
/head/sys/boot/arm/at91/*
Eliminate "no previous prototype for main" warnings.
03:19:13 - r269110
(2 days 15 hours ago)
by ian
Affects:  /head/sys/boot/arm/at91/libat91/emac.c
Silence a clang warning about a while loop with an empty body.
02:53:51 - r269109
(2 days 15 hours ago)
by neel
Affects:  /head/sys/amd64/include/vmm.h
/head/sys/amd64/vmm/intel/vmx.c
/head/sys/amd64/vmm/vmm.c
If a vcpu has issued a HLT instruction with interrupts disabled then it sleeps
forever in vm_handle_hlt().

This is usually not an issue as long as one of the other vcpus properly resets
or powers off the virtual machine. However, if the bhyve(8) process is killed
with a signal the halted vcpu cannot be woken up because it's sleep cannot be
interrupted.

Fix this by waking up periodically and returning from vm_handle_hlt() if
TDF_ASTPENDING is set.

Reported by:    Leon Dang
Sponsored by:   Nahanni Systems
02:51:46 - r269108
(2 days 15 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/vmm_instruction_emul.c
Don't return -1 from the push emulation handler. Negative return values are
interpreted specially on return from sys_ioctl() and may cause undesirable
side-effects like restarting the system call.
02:41:18 - r269107
(2 days 15 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libedit/TEST/tc1.c
MFC     r269016:
Fix mismatch.
00:51:45 - r269106
(2 days 17 hours ago)
by np
Affects:  /head/tools/tools/cxgbetool/cxgbetool.c
Add a 'raw' parameter to the 'modinfo' subcommand.  This is handy when
trying to figure out why a QSFP+/SFP+ connector or cable wasn't
identified correctly by cxgbe(4).  Its output looks like this:

# cxgbetool t5nex0 modinfo 0 raw
00:  03 04 21 00  00 00 00 00  ..!. ....
08:  04 00 00 00  67 00 00 00  .... g...
10:  00 00 05 00  41 6d 70 68  .... Amph
18:  65 6e 6f 6c  20 20 20 20  enol
20:  20 20 20 20  00 41 50 48       .APH
28:  35 37 31 35  34 30 30 30  5715 4000
30:  33 20 20 20  20 20 20 20  3
38:  4b 20 20 20  01 00 00 fa  K    ....
40:  00 00 00 00  41 50 46 31  .... APF1
48:  30 30 34 30  30 33 30 30  0040 0300
50:  30 33 20 20  31 30 30 31  03   1001
58:  33 30 20 20  00 00 00 97  30   ....

MFC after:      3 days
2014 - 07 - 25   (3 days ago)
23:52:53 - r269105
(2 days 18 hours ago)
by gavin
Affects: 
(7 files)
/head/sys/*
Add error return to dumpsys(), and use it in doadump().

This commit does not add error returns to minidumpsys() or
textdump_dumpsys(); those can also be added later.

Submitted by:   Conrad Meyer (EMC / Isilon storage division)
23:36:39 - r269104
(2 days 18 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/freescale/imx/imx51_gpio.c
/stable/10/sys/arm/freescale/imx/imx6_mp.c
MFC r268401, r268495:

  Pending interrupt status is cleared by writing to the ISR, not the data reg.

  Use named constant rather than '0' to access the reset controller register.
23:29:55 - r269103
(2 days 18 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/pmap-v6.c
MFC r266565, r266651:

  Map device memory using PTE_DEVICE attributes, and also ensure that the
  shared flag is set on normal-memory mappings made via pmap_kenter() for SMP.

  The "shared flag" part of this change isn't obvious from the diff, here's
  the deal... by using the array of preformatted page table entry templates
  instead of constructing the PTE from scratch, we automatically get the
  right attribute bits set for both caching and shared.

  Fix whitespace glitches.
23:21:36 - r269102
(2 days 19 hours ago)
by ian
Affects: 
(3 files)
/stable/10/share/examples/etc/make.conf
/stable/10/share/mk/bsd.cpu.mk
MFC r263373, r268402

  Add a way to apply CFLAGS only when building the given architecture.  This
  is useful primarily on a system used for cross-building, when you have a
  set of flags to apply to the TARGET_ARCH being cross-built but don't want
  those settings applied to building the cross-tools or other components that
  run on the build host machine.

  Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS.  This allows different
  C++ options for toolchain versus target when cross-building.
23:12:22 - r269101
(2 days 19 hours ago)
by ian
Affects: 
(5 files)
/stable/10/lib/libstand/*
MFC r261530

  Set the malloc alignment to 64 bytes on platforms that use the U-Boot API
  device drivers.  Recent versions of u-boot run with the MMU enabled, and
  require DMA-based I/O to be aligned to cache line boundaries.
22:58:55 - r269100
(2 days 19 hours ago)
by delphij
Affects:  /head/cddl/contrib/opensolaris/cmd/zpool/zpool.8
/head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
Diff reduction against Illumos.

MFC after:      2 weeks
21:10:30 - r269099
(2 days 21 hours ago)
by imp
Affects:  /head/share/mk/bsd.README
Document an important, but easy to overlook without grepping the
entire tree, detail about LDFLAGS.
20:54:10 - r269098
(2 days 21 hours ago)
by delphij
Affects:  /head/tools/regression/net80211/ccmp/test_ccmp.c
/head/tools/regression/net80211/wep/test_wep.c
Use the right lengths.

Submitted by:   Sascha Wildner
MFC after:      2 weeks
20:50:00 - r269097
(2 days 21 hours ago)
by delphij
Affects:  /head/tools/test/netfibs/reflect.c
Use the right length.

Submitted by:   Sascha Wildner
MFC after:      2 weeks
20:44:04 - r269096
(2 days 21 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/local.sys.mk
Crude cross-build support thanks to clang
20:21:02 - r269095
(2 days 22 hours ago)
by deischen
Affects:  /head/sys/kern/kern_thread.c
Insert new threads at the end of the thread list in the process
instead of at the beginning.  This allows an intra process signal
to be sent to the oldest thread with the signal unmasked - which,
if it still exists, is the main thread.  This mimics behavior
found in Linux and Solaris.
20:18:35 - r269094
(2 days 22 hours ago)
by neel
Affects: 
(6 files)
/head/usr.sbin/bhyve/*
Simplify the meaning of return values from the inout handlers. After this
change 0 means success and non-zero means failure.

This also helps to eliminate VMEXIT_POWEROFF and VMEXIT_RESET as return values
from VM-exit handlers.

CR:             D480
Reviewed by:    grehan, jhb
18:41:56 - r269093
(2 days 23 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
Transform the I/O when vdev_physical_ashift is greater than
SPA_MINBLOCKSHIFT.

MFC after:      2 weeks
18:20:56 - r269092
(3 days ago)
by emaste
Affects:  /head/usr.bin/elfdump/elfdump.c
elfdump: Improve section type reporting

The SHT range 0x70000000-0x7fffffff is processor-specific.  Pass the
ELF machine type header to sh_types so the section header type name can
be reported correctly for the given processor.

For all ranges report the actual value for unknown types.

Add MIPS-specific type SHT_MIPS_OPTIONS.

CR:             D483
Reviewed by:    sbruno, marcel
Sponsored by:   DARPA, AFRL
17:09:48 - r269091
(3 days 1 hour ago)
by wblock
Affects:  /head/sbin/setkey/setkey.8
Fix spelling of Camellia algorithm.  While here, replace blank lines
between examples with actual .Pp breaks.

PR:             192067
Submitted by:   dmitry2004@yandex.ru
MFC after:      1 week
15:07:07 - r269090
(3 days 3 hours ago)
by kib
Affects:  /stable/9/sys/kern/kern_proc.c
Partial MFC of r268466:
Add a knob to disable the residency calculation for kern.proc.vmmap.

Tested by:      "Ivan A. Kosarev" <ikosarev@accesssoftek.com>
14:47:44 - r269089
(3 days 3 hours ago)
by allanjude
Affects:  /head/games/fortune/datfiles/freebsd-tips
Update the freebsd-tips example to use drill instead of dig since bind is no
longer in base

CR:             D460
Approved by:    bcr (mentor)
11:29:45 - r269088
(3 days 6 hours ago)
by trasz
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Fix ctl(4) kldload failure that manifested like this:

link_elf_obj: symbol icl_pdu_new_bhs undefined

PR:             192031
Submitted by:   Nils Beyer (earlier version)
MFC after:      3 days
Sponsored by:   FreeBSD Foundation
10:27:36 - r269087
(3 days 7 hours ago)
by kevlo
Affects:  /head/share/man/man7/hier.7
Add net80211 and minor cleanup.
06:53:20 - r269086
(3 days 11 hours ago)
by delphij
Affects: 
(4 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
As of r268075, the responsibility of rounding up buffer to optimal size have
been transferred from zio_compress_data to its caller.  Therefore, passing
the 'minblocksize' down will be a no-op.

Eliminate the parameter to reduce diff against upstream.

MFC after:      2 weeks
03:24:00 - r269085
(3 days 15 hours ago)
by pfg
Affects: 
(5 files)
/stable/10/lib/libc/stdio/*
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.
01:29:22 - r269084
(3 days 16 hours ago)
by jmmv
Affects: 
(4 files)
/head/tools/build/mk/OptionalObsoleteFiles.inc
/head/usr.bin/units/tests/*
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.
00:35:43 - r269083
(3 days 17 hours ago)
by np
Affects: 
(6 files)
/stable/9/sys/dev/cxgbe/common/*
/stable/9/sys/dev/cxgbe/t4_main.c
/stable/9/sys/dev/cxgbe/t4_sge.c
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.
00:30:55 - r269082
(3 days 17 hours ago)
by np
Affects: 
(5 files)
/stable/10/sys/dev/cxgbe/common/*
/stable/10/sys/dev/cxgbe/t4_main.c
/stable/10/sys/dev/cxgbe/t4_sge.c
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.
2014 - 07 - 24   (4 days ago)
23:14:03 - r269081
(3 days 19 hours ago)
by kib
Affects:  /head/sys/fs/nullfs/null_vnops.c
Fix typo.

MFC after:      3 days
23:01:53 - r269080
(3 days 19 hours ago)
by neel
Affects:  /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.
20:44:30 - r269079
(3 days 21 hours ago)
by jhb
Affects:  /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
20:16:45 - r269078
(3 days 22 hours ago)
by dim
Affects: 
(2 files)
/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.
19:06:15 - r269077
(3 days 23 hours ago)
by sbruno
Affects:  /head/lib/libstand/qdivrem.c
/head/lib/libstand/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
18:39:08 - r269076
(3 days 23 hours ago)
by np
Affects: 
(5 files)
/head/sys/dev/cxgbe/offload.h
/head/sys/dev/cxgbe/t4_main.c
/head/sys/dev/cxgbe/tom/*
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.
18:06:18 - r269075
(4 days ago)
by tuexen
Affects:  /head/sys/netinet/sctputil.c
Initialize notification strucuture. This was missed in an earlier commit

MFC after: 3 days
17:43:42 - r269074
(4 days ago)
by des
Affects:  /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
16:33:29 - r269073
(4 days 1 hour ago)
by kib
Affects: 
(2 files)
/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.
16:29:44 - r269072
(4 days 1 hour ago)
by kib
Affects: 
(8 files)
/stable/10/sys/*
MFC r267213 (by alc):
Add a page size field to struct vm_page.

Approved by:    alc
15:49:28 - r269071
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/ctladm/ctladm.8
MFC r268457 (by pluknet):
Fix typos.
15:48:18 - r269070
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/ctladm/ctladm.c
MFC r268289:
Fix minor copy-paste bug in r268284.
15:42:32 - r269069
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/iscsid/login.c
MFC r267612 (by trasz):
Get rid of unneccessary argument.
15:41:16 - r269068
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/iscsid/login.c
MFC r267609 (by trasz):
Improve code a little; no functional changes.
15:38:49 - r269067
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/iscsid/login.c
MFC r267608 (by trasz):
Use proper term in debug messages.
15:37:31 - r269066
(4 days 2 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/iscsid/login.c
MFC r266169 (by trasz):
Remove unused variable.
15:31:45 - r269065
(4 days 2 hours ago)
by mav
Affects: 
(5 files)
/stable/10/sys/dev/iscsi/*
/stable/10/usr.sbin/iscsid/iscsid.c
/stable/10/usr.sbin/iscsid/login.c
MFC r267613 (by trasz):
Implement redirection handling in initiator.
15:18:19 - r269064
(4 days 3 hours ago)
by emaste
Affects: 
(3 files)
/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
15:16:03 - r269063
(4 days 3 hours ago)
by emaste
Affects:  /head/usr.bin/vtfontcvt/vtfontcvt.8
vtfontcvt will first ship in FreeBSD 10.1
14:57:58 - r269062
(4 days 3 hours ago)
by mav
Affects: 
(4 files)
/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.
14:55:45 - r269061
(4 days 3 hours ago)
by mav
Affects: 
(2 files)
/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.
14:24:27 - r269060
(4 days 4 hours ago)
by emaste
Affects: 
(2 files)
/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
14:11:33 - r269059
(4 days 4 hours ago)
by bapt
Affects:  /head/sys/sys/event.h
Fix a typo in a comment

Reported by:    jhb
14:10:58 - r269058
(4 days 4 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_backend_ramdisk.c
Fix build with QUEUE_MACRO_DEBUG.

Submitted by:   benno@
MFC after:      3 days
11:17:26 - r269057
(4 days 7 hours ago)
by kib
Affects: 
(2 files)
/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.
10:45:52 - r269056
(4 days 7 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/pmap.c
MFC r268660:
Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP.
10:43:15 - r269055
(4 days 7 hours ago)
by kib
Affects: 
(2 files)
/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.
10:42:47 - r269054
(4 days 7 hours ago)
by hrs
Affects:  /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().
10:25:42 - r269053
(4 days 8 hours ago)
by kib
Affects:  /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
10:14:51 - r269052
(4 days 8 hours ago)
by marius
Affects:  /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
10:12:22 - r269051
(4 days 8 hours ago)
by marius
Affects:  /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
10:08:02 - r269050
(4 days 8 hours ago)
by marius
Affects:  /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
09:40:31 - r269049
(4 days 8 hours ago)
by erwin
Affects:  /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
06:16:51 - r269048
(4 days 12 hours ago)
by imp
Affects:  /head/Makefile
/head/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.
06:03:45 - r269047
(4 days 12 hours ago)
by kevlo
Affects: 
(2 files)
/stable/10/sys/sys/mbuf.h
MFC r268825:

Remove deprecated definition "m_act".

Suggested by:   adrian, glebius
06:02:03 - r269046
(4 days 12 hours ago)
by kevlo
Affects: 
(4 files)
/stable/10/sys/kern/uipc_usrreq.c
/stable/10/sys/net/if.c
/stable/10/sys/net/if_spppsubr.c
MFC r268787:

Deprecate m_act.  Use m_nextpkt always.
05:59:32 - r269045
(4 days 12 hours ago)
by kevlo
Affects: 
(2 files)
/stable/10/lib/libc/sys/listen.2
MFC r268643:

Document that listen(2) can fail with EDESTADDRREQ.
05:57:33 - r269044
(4 days 12 hours ago)
by kevlo
Affects: 
(2 files)
/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
05:31:57 - r269043
(4 days 12 hours ago)
by neel
Affects:  /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).
01:38:11 - r269042
(4 days 16 hours ago)
by neel
Affects: 
(7 files)
/head/lib/libvmmapi/*
/head/sys/amd64/*
/head/usr.sbin/bhyve/*
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 *'.
01:35:41 - r269041
(4 days 16 hours ago)
by emaste
Affects: 
(8 files)
/stable/10/tools/tools/vt/fontcvt/*
/stable/10/usr.bin/Makefile
/stable/10/usr.bin/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.

  Our version of the file format supports comments at the top of the file
  to set the height and width:

  Each row of bitmap data is rounded up to byte width - for example, a
  10-pixel wide font uses 4 characters per row.

  See http://czyborra.com/unifont/ for more background on the original
  format.

r267126: Accept space after BITMAP in .bdf parser

  The Unifont BDF generator incorrectly adds a space after BITMAP, and
  and that error has been widely propagated.

r267173: use -h height and -w width args

r267298: Hide stats by default and improve error handling

  The font stats are interesting, but rather verbose.

r267301: Speed up bold glyph map deduplication

  Perform an O(n) deduplication pass over the bold maps at the end, rather
  than walking the normal map list to look for a duplicate glyph each time
  a bold mapping entry is added.

r267324: handle failure writing output font

r267337: move to usr.bin/vtfontcvt

  vtfontcvt is useful for end users to convert arbitrary bitmap fonts
  for use by vt(4).  It can also be used as a build tool, allowing us
  to keep the source font data in the src tree rather than uuencoded
  binaries.

  Reviewed by:  ray, wblock (D183)

r267366: Avoid leaking file pointer on error

  CID:          1222506, 1222505

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

r268172: correct width calculation (.hex files and commandline)

r268948: Use the standard way of printing the usage string

r268949: Remove redundant return statement after errx

Also update vtfontcvt(8), based on inclusion in FreeBSD 10.1

Sponsored by:   The FreeBSD Foundation
01:08:02 - r269040
(4 days 17 hours ago)
by markj
Affects: 
(9 files)
/stable/9/cddl/contrib/opensolaris/*
/stable/9/sys/cddl/compat/opensolaris/sys/kmem.h
/stable/9/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.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@6fb4854bed54ce82bd8610896b64ddebcd4af706
00:25:25 - r269039
(4 days 18 hours ago)
by sbruno
Affects:  /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
00:02:39 - r269038
(4 days 18 hours ago)
by jhb
Affects: 
(5 files)
/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.
2014 - 07 - 23   (5 days ago)
23:01:54 - r269037
(4 days 19 hours ago)
by dteske
Affects:  /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
22:58:00 - r269036
(4 days 19 hours ago)
by sbruno
Affects:  /head/sys/boot/libstand32/Makefile
Delete the entire cleandepend/cleanmachine target thing now that its been
cleared out in r269029

Reviewed by:    emaste@freebsd.org
22:47:00 - r269035
(4 days 19 hours ago)
by dteske
Affects: 
(2 files)
/stable/10/etc/network.subr
MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
work if ifname has any of [.-/+].

While here, also perform the following to reduce diff size between major
branches for etc/network.subr:

MFC r266475 (rea): Fix warning messages after r252015

$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.

Other fixes:
 - eliminate unneeded double spaces;
 - tell user where inet/inet6 keywords are expected to be.

Reviewed by:    hrs
Spotted by:     jhay
PR:             conf/191961
22:41:07 - r269034
(4 days 19 hours ago)
by dteske
Affects: 
(2 files)
/stable/9/etc/network.subr
MFC r266475 (rea): Fix warning messages after r252015

$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.

Other fixes:
 - eliminate unneeded double spaces;
 - tell user where inet/inet6 keywords are expected to be.

Reviewed by:    hrs
22:35:23 - r269033
(4 days 19 hours ago)
by gjb
Affects:  /head/release/arm/release.sh
Fake out the deprecation of XDEV and XDEV_ARCH by
continuing to use the variables in the configuration
file, but switch XDEV= and XDEV_ARCH= to TARGET= and
TARGET_ARCH= appropriately.

Sponsored by:   The FreeBSD Foundation
22:29:22 - r269032
(4 days 19 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/adapter.h
/head/sys/dev/cxgbe/t4_main.c
/head/sys/dev/cxgbe/t4_sge.c
cxgbe(4):  Keep track of the clusters that have to be freed by the
custom free routine (rxb_free) in the driver.  Fail MOD_UNLOAD with
EBUSY if any such cluster has been handed up to the kernel but hasn't
been freed yet.  This prevents a panic later when the cluster finally
needs to be freed but rxb_free is gone from the kernel.

MFC after:      1 week
22:18:43 - r269031
(4 days 20 hours ago)
by sbruno
Affects:  /head/Makefile.inc1
Deprecate the use of XDEV and XDEV_ARCH and just use TARGET/TARGET_ARCH
for the xdev build target, which is awesome and totally works.

Reapply svn R268377 with correct name of libsupc++ here as this does
resolve one dependancy race when building the xdev target.

the xdev target builds for amd64, i386, mips, mips64 and armv6 with this commit,
must be built as root, must be built from /usr/src, must not have a /usr/obj and
places the xdev tools in /usr/$TARGET_ARCH-freebsd

the xdev target still leaves some assorted files strewn about your /usr/src when
this is done and needs to be investigated further.

Phabric:        https://phabric.freebsd.org/D385
Submitted by:   bsdimp
22:12:05 - r269030
(4 days 20 hours ago)
by sbruno
Affects:  /head/sys/boot/i386/loader/Makefile
Add .NOPATH to the machine target so that builds in sys/boot work and don't
error out building zfs loader.

Submitted by:   sjg@freebsd.org
22:11:04 - r269029
(4 days 20 hours ago)
by sbruno
Affects:  /head/sys/boot/libstand32/Makefile
Update so that clean target in sys/boot will delete the symlink
created for machine

Reviewed by:    emaste
22:10:34 - r269028
(4 days 20 hours ago)
by dteske
Affects: 
(2 files)
/stable/9/etc/network.subr
MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
work if ifname has any of [.-/+].

PR:             conf/191961
Spotted by:     jhay
MFC after:      3 days
21:08:04 - r269027
(4 days 21 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/dot/dot
/head/usr.sbin/bsdconfig/dot/include/messages.subr
Fix a bug where include file `networking/services.subr' was not being
properly clustered.

Change `fixedsize' to `fixedsize = true' to satisfy newer versions of dot(1)
generating error "Warning: <stdin>: syntax error in line 27 near ','".

Remove bounding cluster surrounding various include-groupings, allowing
groups of include files to float freely to the greatest consumer (reducing
the density of rendered diagrams).

While here, change the bgcolor of include clusters from white to X11 color
`thistle' (a light purple).

Also, add the word "Subroutines" after include cluster labels.

Do not terminate the digraph definition with a semi-colon [;] after the
ending brace to satisfy newer versions of dot(1) generating error "Warning:
<stdin>: syntax error in line 940 near ';'".

MFC after:      3 days
X-MFC-to:       stable/10, stable/9
19:38:29 - r269026
(4 days 22 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/contrib/llvm/tools/lldb/tools/driver/Platform.h
MFC r268527: Remove unused readline header
19:37:24 - r269025
(4 days 22 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy

  We previously sent SIGKILL to the debuggee in DoDestroy, but did not
  actually detach or kill via ptrace.  It seems that this somehow didn't
  matter on Linux, but did on FreeBSD.

  This would happen when quitting LLDB while stopped at a breakpoint, for
  example.  The debuggee remained stopped in ptrace (with the signal
  either pending or lost).  After a timeout of a second or two LLDB exits,
  which caused the debuggee to resume and dump core from an unhandled
  SIGTRAP.

  BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
  which is the desired behaviour from DoDestroy.

  http://llvm.org/pr18894

Sponsored by:   DARPA, AFRL
19:35:02 - r269024
(4 days 22 hours ago)
by emaste
Affects: 
(277 files)
/stable/10/contrib/llvm/tools/lldb/*
/stable/10/lib/clang/*
/stable/10/usr.bin/clang/lldb/Makefile
MFC r262528: Update LLDB snapshot to upstream r202189

  Highlights include (upstream revs in parens):

  - Improvements to the remote GDB protocol client
    (r196610, r197579, r197857, r200072, and others)

  - Bug fixes for big-endian targets
    (r196808)

  - Initial support for libdispatch (GCD) queues in the debuggee
    (r197190)

  - Add "step-avoid-libraries" setting
    (r199943)

  - IO subsystem improvements (including initial work on a curses gui)
    (r200263)

  - Support hardware watchpoints on FreeBSD
    (r201706)

  - Improved unwinding through hand-written assembly functions
    (r201839)

  - Handle DW_TAG_unspecified_parameters for variadic functions
    (r202061)

  - Fix Ctrl+C interrupting a running inferior process
    (r202086, r202154)

  - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler,
    ELF core files, DWARF debug info, and others.

Sponsored by:   DARPA, AFRL
19:33:49 - r269023
(4 days 22 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
/head/sys/kern/sys_capability.c
/head/sys/sys/capsicum.h
Prepare fget_unlocked for reading fd table only once.

Some capsicum functions accept fdp + fd and lookup fde based on that.
Add variants which accept fde.

Reviewed by:    pjd
MFC after:      1 week
18:54:18 - r269022
(4 days 23 hours ago)
by pluknet
Affects:  /head/share/man/man9/PCBGROUP.9
- Use Rs/Re mdoc macros.
- Remove duplicate and/or redundant content.
18:05:39 - r269021
(5 days ago)
by marcel
Affects:  /head/usr.bin/mkimg/vhd.c
Fix builds on older FreeBSD versions and/or non-FreeBSD machines:
don't use _Static_assert unconditionally.
18:04:52 - r269020
(5 days ago)
by mjg
Affects:  /head/sys/kern/uipc_usrreq.c
Cosmetic changes to unp_internalize

Don't throw away the result of fget_unlocked.
Move fdp increment to for loop to make it consistent with similar code
elsewhere.

MFC after:      1 week
16:18:54 - r269019
(5 days 2 hours ago)
by imp
Affects:  /head/sys/ufs/ufs/ufs_vnops.c
Simplify comment to remove multiple negative and passive voice.
16:18:51 - r269018
(5 days 2 hours ago)
by imp
Affects:  /head/sys/fs/nandfs/nandfs_vnops.c
Fix typo in comment: noone -> no one.
Fix minor style(9) nits.
15:53:29 - r269017
(5 days 2 hours ago)
by royger
Affects: 
(4 files)
/head/sys/amd64/acpica/acpi_wakecode.S
/head/sys/amd64/amd64/*
/head/sys/boot/i386/libi386/amd64_tramp.S
don't set CR4 PSE bit on amd64

Setting PSE together with PAE or in long mode just makes the PSE bit
completely ignored, so don't set it.

Sponsored by: Citrix Systems R&D
Reviewed by: kib
15:12:17 - r269016
(5 days 3 hours ago)
by pfg
Affects:  /head/lib/libedit/TEST/tc1.c
Fix mismatch.

MFC after:      3 days
14:57:15 - r269015
(5 days 3 hours ago)
by pfg
Affects:  /head/lib/libutil/fparseln.c
fparseln(3): Update from NetBSD sources.

-fix a condition so that fparseln() doesn't report spurious empty lines
 eg after 2 comment lines, or on EOF after a single comment line
-no escape character means no escaped characters

modify the previous fix so that no pointless realloc()s are done in
the case of multiple empty continuation lines, and comment the code
to make the logics obvious

fparseln is now part of libc in NetBSD so this changes the previous
revision numbering.

Obtained from:  NetBSD (CVS Rev. 1.6-1.7)
MFC after:      2 weeks
14:30:58 - r269014
(5 days 3 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.sbin/kldxref/ef.c
MFC r265157: kldxref: Clean up error reporting

  Omit "too many sections" warnings if the ELF file is not dynamically
  linked (and is therefore skipped anyway), and otherwise output it only
  once.  An errant core file would previously cause kldxref to output a
  number of warnings.

  Also introduce a MAXSEGS #define and replace literal 2 with it, to make
  comparisons clear.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
14:29:28 - r269013
(5 days 3 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/lib/libkvm/kvm_minidump_amd64.c
MFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump
14:27:04 - r269012
(5 days 3 hours ago)
by emaste
Affects: 
(103 files)
/stable/10/contrib/llvm/patches/*
MFC r266630 by dim:

  Add the clang patch for r265477.  While here, add a description to the
  patch for r263619, and unify all the URLs to point to svnweb
14:25:47 - r269011
(5 days 4 hours ago)
by emaste
Affects: 
(6 files)
/stable/10/contrib/llvm/tools/clang/include/clang/*
/stable/10/contrib/llvm/tools/clang/lib/*
MFC r265477: Merge -fstandalone-debug from Clang r198655:

  Implement a new -fstandalone-debug option. rdar://problem/15685848
  It controls everything that -flimit-debug-info used to, plus the
  vtable type optimization. The old -fno-limit-debug-info option is now an
  alias to -fstandalone-debug and vice versa.

  Standalone is the default on Darwin until dtrace is updated to work with
  non-standalone debug info (rdar://problem/15758808).

  Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind
  because NoStandaloneDebugInfo sounded even more confusing.
08:00:34 - r269010
(5 days 10 hours ago)
by delphij
Affects: 
(16 files)
/vendor-sys/illumos/dist/*
/vendor/illumos/dist/*
4976 zfs should only avoid writing to a failing non-redundant top-level vdev
4977 mdb error in ::spa_space from space_cb() if a metaslab's ms_sm is NULL
4978 ztest fails in get_metaslab_refcount()
4979 extend free space histogram to device and pool
4980 metaslabs should have a fragmentation metric
4981 remove fragmented ops vector from block allocator
4982 space_map object should proactively upgrade when feature is enabled
4983 need to collect metaslab information via mdb
4984 device selection should use fragmentation metric
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Adam Leventhal <adam.leventhal@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>

illumos/illumos-gate@2e4c998613148111f2fc5371085331ffb39122ff
05:40:28 - r269009
(5 days 12 hours ago)
by adrian
Affects:  /head/sys/dev/e1000/if_igb.c
Fix the igb(4) redirection table to correctly populate.

This is similar to the ixgbe(4) fix.

Tested:

* Intel I350 gigabit adapter
04:28:51 - r269008
(5 days 13 hours ago)
by neel
Affects: 
(11 files)
/head/lib/libvmmapi/*
/head/sys/amd64/*
/head/usr.sbin/bhyve/*
Emulate instructions emitted by OpenBSD/i386 version 5.5:
- CMP REG, r/m
- MOV AX/EAX/RAX, moffset
- MOV moffset, AX/EAX/RAX
- PUSH r/m
02:55:03 - r269007
(5 days 15 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libc/stdio/gets.c
MFC     r268928:
Const-ify a character string.

Obtained from:  Apple Inc. (Libc 997.90.3)
00:49:35 - r269006
(5 days 17 hours ago)
by delphij
Affects: 
(22 files)
/stable/10/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/stable/10/cddl/contrib/opensolaris/cmd/zhack/zhack.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r268473: MFV r268455:

Use reserved space for ZFS administrative commands.
00:46:56 - r269005
(5 days 17 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
MFC r260156: MFV r260152:

4208 Typo in zfs_main.c: "posxiuser"
00:41:11 - r269004
(5 days 17 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
MFC r268470: MFV r268454:

Refresh zpool list for each interval in order to produce fresh
output.

Illumos issue: 4966 zpool list iterator does not update output
00:38:23 - r269003
(5 days 17 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
MFC r268469: MFV r268453:

Diff reduction against Illumos.
00:35:06 - r269002
(5 days 17 hours ago)
by delphij
Affects: 
(8 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r268464: MFV r268452:

Explicitly mark file removal transactions as "presumed to result
in a net free of space" so they will not fail with ENOSPC.

Illumos issue:  4950 files sometimes can't be removed from a full
                filesystem
2014 - 07 - 22   (6 days ago)
23:29:54 - r269001
(5 days 18 hours ago)
by pfg
Affects:  /head/lib/libc/stdio/fputws.c
/head/lib/libc/stdio/putw.c
Avoid possible cast degradation.

For consistency with r268985 for fputs.c, assign iov_len
first, avoiding the cast to uio_resid (int in stdio)
from degrading the value.

We currently don't support lengths higher than INT_MAX so
this change is little more than cosmetic.

MFC after:      3 days
23:16:28 - r269000
(5 days 19 hours ago)
by emaste
Affects: 
(8 files)
/stable/10/contrib/llvm/*
MFC debug info for variadic functions

r264826: Merge LLVM r202188:

    Debug info: Support variadic functions.
    Variadic functions have an unspecified parameter tag after the last
    argument. In IR this is represented as an unspecified parameter in the
    subroutine type.

    Paired commit with CFE r202185.

    rdar://problem/13690847

    This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

  This merge includes a change to use the LLVM 3.4 API in
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:

  DwarfUnit -> CompileUnit

r264827: Merge Clang r202185:

    Debug info: Generate debug info for variadic functions.
    Paired commit with LLVM.

    rdar://problem/13690847

  This merege includes changes to use the Clang 3.4 API (revisions
  199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:

  getParamType  -> getArgType
  getNumParams  -> getNumArgs
  getReturnType -> getResultType

r264828: Add patches corresponding to r264826 and r264827

Sponsored by:   DARPA, AFRL
23:10:12 - r268999
(5 days 19 hours ago)
by dteske
Affects: 
(13 files)
/head/usr.sbin/bsdconfig/examples/*
/head/usr.sbin/bsdconfig/include/messages.subr
/head/usr.sbin/bsdconfig/share/*
Add example script `add_some_packages.sh', demonstrating how to install
a list of packages using the bsdconfig(8) API, providing dialog(8) based
user experience (versus plain console output were you to use pkg(8)
directly to install the same list of packages).

Remove example script `browse_packages_ftp.sh', made obsolete because
the digests.txz and packagesite.txz databases for pkg(8) are not
available via FTP (HTTP only to pkg.freebsd.org SRV hosts).

Update example script `browse_packages_http.sh', made to work with new
pkg(8) demonstrating how to generate a local package repository.

Fix a bug in `bsdconfig packages' where packages were listed twice. This
fix requires pkg(8) version 1.2.7_4 or higher.

NB: It is the introduction of pkg(8) 1.2.7_4 wherein I am also able to
drastically reduce the generation time of package dependencies prior to
the dialog display (by utilizing the new `-I' flag to pkg-rquery(8)).

While here, fix a positional argument nit for f_index_initialize() of
`packages/index.subr' include (the one and only argument is positional
argument 1 to state the by-ref handle, indicating the variable to set
in the caller's namespace; the nit I'm fixing here is that we were
querying positional argument 2 for this information incorrectly; caused
by a missing hunk back around SVN r257795).

Fix a bug in sysrc(8) described by PR bin/187458 "sysrc(8) silently and
unexpectedly bootstraps pkg". This was caused by an explicit entry in
`/usr/share/bsdconfig/common.subr' (used by sysrc(8)) that called pkg(8)
to populate the $PKG_ABI global (called in a way that allows implicit
bootstrap of pkg(8)). The solution to which was to find every place in
bsdconfig(8) that requires the $PKG_ABI global and add a layer of
protection by way of introducing the new API call f_musthavepkg_init()
(provided by new include, `/usr/share/bsdconfig/packages/musthavepkg.subr'
intented to mirror `/usr/share/bsdconfig/mustberoot.subr'). When the
$PKG_ABI global is required, you can use `f_musthavepkg_init' to cause
graceful premature termination in the event that pkg(8) has not yet been
bootstrapped, and thus cannot be used to populate $PKG_ABI.

NB: If running interactively ($nonInteractive is NULL or unset), the
f_musthavepkg_init() API call will attempt to bootstrap pkg(8), but only
if the user chooses "Yes" to a Yes/No dialog confirming it is ok to
bootstrap.

While here, simplify an if-conditional in `media/http.subr' include to
use sh(1) inline assignment-with-break.

Also, fix a bug in `media/http.subr' and `media/httpproxy.subr' wherein
the error messages for various HTTP failures were not finding their way
to the console (needed to pass stdout to pass-thru descriptor).

While here, remove the executable bit from `packages/categories.subr',
`packages/index.subr', and `packages/packages.subr' includes.

Fix issues where pkg(8) complains about PACKAGESITE being defined.
Previously, we would set $PACKAGESITE and export it. Now we only set
$PACKAGESITE for invocations of "pkg update" -- getting rid of all the
spurious warnings about PACKAGESITE being deprecated (it's still used
in the case of "pkg update" for simplicity versus having to configure
a config-file).

Remove the leading argument from invocations of f_index_initialize() in
`packages/packages.subr' include. The leading argument no longer means
what it used to, pre SVN r257995).

PR:             bin/187458
Reviewed by:    nwhitehorn
MFC after:      1 week
X-MFC-to:       stable/10, stable/9
22:57:26 - r268998
(5 days 19 hours ago)
by gavin
Affects:  /head/ObsoleteFiles.inc
/usr/bin/sendbug and the sendbug(1) man page were part of send-pr and
are no longer installed since r267486.  Add them to ObsoleteFiles.inc1,
which should have been done in r267486.

PR:             192010
Submitted by:   Vick Khera
Pointyhat to:   gavin
MFC after:      3 days
22:49:37 - r268997
(5 days 19 hours ago)
by ache
Affects:  /head/lib/libc/stdio/ftell.c
For "a"-mode files and rewind/fseek + fwrite combination return meaningful
value now, like Apple does, but avoid their __sflush physical write
performance degradation as much as possible.
22:39:59 - r268996
(5 days 19 hours ago)
by pluknet
Affects:  /head/share/man/man9/PCBGROUP.9
Re-sort synopsis, add includes.
22:16:23 - r268995
(5 days 20 hours ago)
by pluknet
Affects: 
(4 files)
/head/ObsoleteFiles.inc
/head/share/man/man9/*
s/PCBGROUPS/PCBGROUP/ manpage to match "options PCBGROUP".
20:49:58 - r268994
(5 days 21 hours ago)
by ian
Affects:  /head/contrib/gcc/config/arm/unwind-arm.h
Add FreeBSD to the list of environments that needs to handle R_ARM_TARGET2
relocations in unwind data as pc-relative indirect references.

MFC after:      1 week
20:32:24 - r268993
(5 days 21 hours ago)
by ian
Affects:  /head/contrib/libstdc++/libsupc++/unwind-cxx.h
Fix EABI unwind function declarations to match the function definitions.
The mismatch was noticed by clang, when using it to compile the in-tree
gcc and libstdc++.
20:13:46 - r268992
(5 days 22 hours ago)
by ache
Affects:  /head/lib/libc/stdio/ftell.c
Back the whole change out until I figure out how to obtain O_APPEND,
it can't be used in this field at all.
19:55:25 - r268991
(5 days 22 hours ago)
by ache
Affects:  /head/lib/libc/stdio/ftell.c
Checking for __SAPP alone is not enough because it is emulated O_APPEND
only, so works for only special fdopen() case. Add real O_APPEND too.
19:54:22 - r268990
(5 days 22 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_uio.h
Cleanup the definition of two structures which are
exposed to userland. Therefore no MFC.
19:48:21 - r268989
(5 days 22 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_sge.c
Add missing newline to an error message.

MFC after:      3 days
19:37:38 - r268988
(5 days 22 hours ago)
by pluknet
Affects:  /head/share/man/man4/ddb.4
Grammar and spelling fixes.
18:37:59 - r268987
(5 days 23 hours ago)
by pfg
Affects:  /head/lib/libc/stdio/ftell.c
Revert  r268984:
Check for __SAPP flag before calling sflush.   This avoids
performance degradation compared to the previous approach.

Submitted by:   ache
MFC after:      2 weeks
17:30:05 - r268986
(6 days ago)
by marcel
Affects:  /head/sys/geom/uzip/g_uzip.c
In r264504, we prevented doing I/O for more than MAXPHYS by making
the assumption that consumers would respect bio_completed and/or
bio_resid to detect short reads. This assumption proved false and
file corruption was the result.
Create as many bios as we need to satisfy the original request.
Check the cached chunk every time we need to do I/O to increase the
hit rate.

Obtained from:  junipre Networks, Inc.
MFC after:      1 week
16:39:11 - r268985
(6 days 1 hour ago)
by pfg
Affects:  /head/lib/libc/stdio/fputs.c
/head/lib/libc/stdio/puts.c
Mostly cosmetic cleanups.

In fputs() avoid implcit casting on iov.iov_len.

MFC after:      3 days
16:19:01 - r268984
(6 days 2 hours ago)
by pfg
Affects:  /head/lib/libc/stdio/ftell.c
ftello: return 1 when seeking offset on an append stream.

Obtained from:  Apple Inc. (Libc 997.90.3)
Phabric:        D442
MFC after:      2 weeks
16:10:56 - r268983
(6 days 2 hours ago)
by pfg
Affects:  /head/lib/libc/stdio/rewind.c
rewind: always clear error indicator.

Required by POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/functions/rewind.html

Obtained from:  Apple Inc. (Libc 997.90.3)
MFC after:      1 week
13:58:33 - r268982
(6 days 4 hours ago)
by emaste
Affects:  /head/sys/amd64/amd64/machdep.c
Don't pass null kmdp to preload_search_info

On Xen PVH guests kmdp == NULL.

Submitted by:   royger
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
08:52:49 - r268981
(6 days 9 hours ago)
by ray
Affects:  /head/sys/dev/drm2/drm_fb_helper.c
Remove #ifdef-s to reduce difference to upstream.

Pointed by:     kib

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
08:37:01 - r268980
(6 days 9 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
Correct typo introduced with r268855.

MFC after:      10 days
X-MFC with:     r268855
06:40:27 - r268979
(6 days 11 hours ago)
by delphij
Affects:  /head/libexec/save-entropy/save-entropy.sh
Don't save entropy inside jails.

As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.

PR:             conf/126744
Submitted by:   Eugene Grosbein <eugen grosbein net> (with minor changes)
MFC after:      1 week
Approved by:    so (des)
04:47:19 - r268978
(6 days 13 hours ago)
by sbruno
Affects:  /head/sys/boot/userboot/test/test.c
copyin/copyout should return 0 if they are truly emulating copyin/copyout
behavior.

remove stray %s in printf

rewrite printf to display 64bit type without warning.
04:39:32 - r268977
(6 days 13 hours ago)
by br
Affects: 
(4 files)
/head/sys/arm/conf/IMX6
/head/sys/arm/freescale/imx/*
/head/sys/boot/fdt/dts/arm/imx6.dtsi
Enable Freescale i.MX I2C driver for i.MX6.
04:39:16 - r268976
(6 days 13 hours ago)
by jhb
Affects: 
(18 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/amd64/*
/stable/10/usr.sbin/bhyve/*
MFC 266424,266476,266524,266573,266595,266626,266627,266633,266641,266642,
266708,266724,266934,266935,268521:
Emulation of the "ins" and "outs" instructions.

Various fixes for translating guest linear addresses to guest physical
addresses.
04:38:28 - r268975
(6 days 13 hours ago)
by sbruno
Affects:  /head/sys/boot/amd64/boot1.efi/Makefile
Remove boot1.efi during clean target.
04:37:47 - r268974
(6 days 13 hours ago)
by sbruno
Affects:  /head/sys/boot/efi/libefi/Makefile
/head/sys/boot/i386/libi386/Makefile
Supress clang warning for FreeBSD printf %b and %D formats

MFC after:      2 weeks
03:59:14 - r268973
(6 days 14 hours ago)
by br
Affects: 
(6 files)
/head/sys/arm/freescale/imx/*
/head/sys/arm/freescale/vybrid/vf_i2c.c
Rename i.MX I2C driver file.
03:14:37 - r268972
(6 days 15 hours ago)
by jhb
Affects: 
(20 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/amd64/*
/stable/10/usr.sbin/bhyve/*
MFC 266125:
Implement a PCI interrupt router to route PCI legacy INTx interrupts to
the legacy 8259A PICs.
02:02:39 - r268971
(6 days 16 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/adapter.h
/head/sys/dev/cxgbe/t4_sge.c
Simplify r267600, there's no need to distinguish between allocated and
inlined mbufs.

MFC after:      1 week
00:42:55 - r268970
(6 days 17 hours ago)
by sjg
Affects:  /head/share/mk/bsd.lib.mk
/head/share/mk/bsd.obj.mk
bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically
get them flagged as .NOPATH.  This hurts people who don't use obj dirs.
Since its clean target seprate rm's for things, use NOPATH_FILES as list
to collect things that need .NOPATH.

bsd.obj.mk will add CLEANFILES to NOPATH_FILES and do the deed if needed.

Reviewed by: sbruno
00:33:41 - r268969
(6 days 17 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/share/man/man4/ddb.4
MFC r268715,r268722:

    Document the 'show bio' command added in 2009.
    Also link 'show bio' to g_bio(9.)

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 20 ms, 226 revisions printed. Current time is 2014-07-28 18:26:21. All times are in UTC/GMT.