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 - 12 - 20   (today)
04:57:45 - r275952
(7 hours 54 minutes ago)
by neel
Affects:  /head/sys/amd64/vmm/io/vatpic.c
Various 8259 device model improvements:

- implement 8259 "polled" mode.
- set 'atpic->sfn' if bit 4 in ICW4 is set during master initialization.
- report error if guest tries to enable the "special mask" mode.

Differential Revision:  https://reviews.freebsd.org/D1328
Reviewed by:            tychon
Reported by:            grehan
Tested by:              grehan
MFC after:              1 week
04:24:40 - r275951
(8 hours 27 minutes ago)
by ian
Affects:  /head/sys/dev/mmc/mmc.c
Log mmc and sd command failures.  Reporting of routine expected errors,
such as timeouts while probing a bus or testing for a feature, is
squelched.  Also, error reporting is limited to 5 events per second,
because when an sdcard goes bad on a low-end embedded board, flooding
the console at high speed isn't helpful.

Original logging code contributed by Michal Meloun, but then I fancied
it up with squelching and ppsratecheck.
01:13:13 - r275950
(11 hours 38 minutes ago)
by ian
Affects:  /head/sys/arm/ti/ti_sdhci.c
/head/sys/dev/sdhci/sdhci.c
/head/sys/dev/sdhci/sdhci.h
Add a new sdhci quirk, SDHCI_QUIRK_WAITFOR_RESET_ASSERTED, to work around
TI OMAP controllers which will return the reset-in-progress bit as zero if
you read the status register too fast after setting the reset bit.

The zero is apparently from a stale snapshot of the internal state presented
in the interface register, and leads to a false indication that the reset
is complete when it either hasn't started yet or is in-progress.  The
workaround is to first loop until the bit is seen as asserted, then do the
normal loop waiting to see it de-asserted.

Submitted by:   Michal Meloun <meloun@miracle.cz>
00:37:56 - r275949
(12 hours 14 minutes ago)
by ian
Affects:  /head/sys/dev/sdhci/sdhci.c
/head/sys/dev/sdhci/sdhci.h
When command and data interrupts have been aggregated together, don't do
the data-completed processing if a command-error interrupt is also asserted.

Reviewed by:    Michal Meloun <meloun@miracle.cz>
00:07:53 - r275948
(12 hours 44 minutes ago)
by imp
Affects:  /head/sys/modules/geom/geom_sched/gsched_rr/Makefile
Remove comments relevant to 6.x only.
00:04:01 - r275947
(12 hours 48 minutes ago)
by imp
Affects: 
(6 files)
/head/sys/geom/sched/*
/head/sys/modules/geom/geom_sched/gs_sched/Makefile
Remove support for FreeBSD 7 and really old FreeBSD 8. The classifiers
have been in the base for a while, so the gymnastics here aren't
needed. In addition, the bugs in subr_disk.c have been fixed since
2009, so there's no need for an identical copy of it in the tree
anymore. There's really no need to binary patch g_io_request, so let's
get rid of the code (not compiled in anymore) lest others think it is
a good idea.
2014 - 12 - 19   (yesterday)
23:24:54 - r275946
(13 hours 27 minutes ago)
by ian
Affects:  /head/sys/arm/ti/ti_sdhci.c
Rewrap long lines; no functional changes.

Submitted by:   Michal Meloun <meloun@miracle.cz>
23:18:22 - r275945
(13 hours 33 minutes ago)
by brueffer
Affects: 
(2 files)
/stable/10/usr.bin/elfdump/elfdump.c
MFC: r274960 (slightly modified)

Limit descriptors and enter capability mode.  Since the header was renamed in
HEAD, this
commit includes sys/capability.h.

Differential:   D1009
Reviewed by:    jonathan, pjd
Relnotes:       yes
23:13:46 - r275944
(13 hours 38 minutes ago)
by ian
Affects:  /head/sys/arm/ti/ti_sdhci.c
Add code to set and reset open-drain mode on the bus when requested.

Submitted by:   Michal Meloun <meloun@miracle.cz>
20:51:54 - r275943
(16 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Constify some static data.

MFC after:      2 weeks
20:35:06 - r275942
(16 hours 17 minutes ago)
by mav
Affects: 
(7 files)
/head/sys/cam/ctl/*
Reduce number of places where global control_softc is used.

At some point we may want to have several CTL instances, and that is not
really impossible.

MFC after:      2 weeks
19:09:22 - r275941
(17 hours 42 minutes ago)
by benno
Affects:  /head/sys/fs/nfs/nfs_commonsubs.c
Adjust the test of a KASSERT to better match the intent.

This assertion was added in r246213 as a guard against corrupted mbufs
arriving from drivers, the key distinguishing factor of said mbufs being
that they had a negative length. Given we're in a while loop specifically
designed to skip over zero-length mbufs, panicking on a zero-length mbuf
seems incorrect.

No objection from:      kib
18:45:52 - r275940
(18 hours 6 minutes ago)
by imp
Affects:  /head/usr.sbin/kldxref/kldxref.c
Bump the largest record we can cope with from 1k to 8k. Other users of
the hints file don't have any real limits, and longer records will
need to be written shortly.
13:24:52 - r275939
(23 hours 27 minutes ago)
by ae
Affects: 
(2 files)
/stable/9/usr.sbin/syslogd/syslogd.c
MFC r275729:
  Increase the buffer size to keep the list of programm names when
  parsing programm specification. It is safe to not check out of bounds
  access, because !isprint(p[i]) check will stop reading, when '\0'
  character will be read from the input string.

Sponsored by:   Yandex LLC
13:22:02 - r275938
(23 hours 30 minutes ago)
by ae
Affects: 
(2 files)
/stable/10/usr.sbin/syslogd/syslogd.c
MFC r275729:
  Increase the buffer size to keep the list of programm names when
  parsing programm specification. It is safe to not check out of bounds
  access, because !isprint(p[i]) check will stop reading, when '\0'
  character will be read from the input string.

Sponsored by:   Yandex LLC
13:07:36 - r275937
(23 hours 44 minutes ago)
by andrew
Affects:  /head/sys/dev/fdt/fdt_common.c
Add support for empty ranges properties within the tree, some vendor
device trees have these, for example the ARM AArch64 Foundation Model.

Sponsored by:   The FreeBSD Foundation
12:09:29 - r275936
(1 day ago)
by br
Affects:  /head/sys/mips/beri/beri_machdep.c
Correct the end address of the memory regions.

Pointed out by: ian
09:52:21 - r275935
(1 day 2 hours ago)
by kib
Affects: 
(3 files)
/stable/8/sys/amd64/amd64/exception.S
MFC r275833:
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.
09:42:40 - r275934
(1 day 3 hours ago)
by kib
Affects: 
(2 files)
/stable/9/sys/amd64/amd64/exception.S
MFC r275833:
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.
09:36:59 - r275933
(1 day 3 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/exception.S
MFC r275833:
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.
09:34:14 - r275932
(1 day 3 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/subr_clock.c
MFC r275727:
For architectures where time_t is wide enough, in particular, 64bit
platforms, avoid overflow after year 2038 in clock_ct_to_ts().

PR:     195868
06:51:01 - r275931
(1 day 6 hours ago)
by lwhsu
Affects:  /head/sys/modules/cryptodev/Makefile
Fix `make depend` in sys/modules

Differential Revision:  https://reviews.freebsd.org/D1338
Reviewed by:    delphij
Approved by:    delphij
06:48:47 - r275930
(1 day 6 hours ago)
by delphij
Affects:  /head/lib/libc/regex/regcomp.c
Plug a memory leak.

Obtained from:  DragonFlyBSD (commit 5119ece)
MFC after:      2 weeks
01:41:51 - r275929
(1 day 11 hours ago)
by adrian
Affects:  /head/sys/dev/iwn/if_iwn.c
Remove a private copy of ieee80211_add_ssid().

PR:             kern/196116
Submitted by:   Andriy Voskoboinyk <s3erios@gmail.com>
01:39:58 - r275928
(1 day 11 hours ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_output.c
/head/sys/net80211/ieee80211_proto.h
Make ieee80211_add_ssid() public.

Some drivers use private copies of this.

PR:             kern/196116
Submitted by:   Andriy Voskoboinyk <s3erios@gmail.com>
01:14:41 - r275927
(1 day 11 hours ago)
by mav
Affects: 
(4 files)
/stable/9/sys/geom/raid/md_nvidia.c
/stable/9/sys/geom/raid/md_sii.c
MFC r275503:
Avoid unneeded malloc/memcpy/free if there is no metadata on disk.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
01:13:41 - r275926
(1 day 11 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/geom/raid/md_nvidia.c
/stable/10/sys/geom/raid/md_sii.c
MFC r275503:
Avoid unneeded malloc/memcpy/free if there is no metadata on disk.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
01:12:22 - r275925
(1 day 11 hours ago)
by mav
Affects:  /head/sys/dev/iscsi/iscsi.c
/head/usr.sbin/ctld/login.c
/head/usr.sbin/iscsid/login.c
Slightly polish iSCSI parameters negotiation.

MFC after:      1 week
00:34:10 - r275924
(1 day 12 hours ago)
by ngie
Affects:  /projects/building-blocks/Makefile.inc1
Put all of gnu/usr.bin/groff back

Forgot about those pesky definitions files..
00:20:29 - r275923
(1 day 12 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
Add missing continue: we can't proceed further if the
kernel does not panic with zfs_panic_recover.

Illumos issue:
    5438 zfs_blkptr_verify should continue after zfs_panic_recover

Reported by:    Coverity
CID:            1232014
2014 - 12 - 18   (2 days ago)
23:45:26 - r275922
(1 day 13 hours ago)
by delphij
Affects: 
(2 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c
MFV r275914:

As of r270383, the dbuf_compare comparator compares the dbuf
attributes in the following order:

        db_level (indirect level)
        db_blkid (block number)
        db_state (current state)
        the address of the element

Because db_state is being considered before the element's state,
changing of db_state would affect balancedness of the AVL tree,
even when the address of element compares differently.  For
instance, in dbuf_create, db_state may be altered after the
node is inserted into the AVL tree and may break AVL tree
balancedness.

Instead of using db_state as a comparision critera (introduced
in r270383), consider it only when we are doing a lookup, that
is one of the two dbuf pointers contains DB_SEARCH.

Illumos issue:
    5422 preserve AVL invariants in dn_dbufs

MFC after:      2 weeks
23:00:17 - r275921
(1 day 13 hours ago)
by jhb
Affects: 
(2 files)
/stable/10/sys/i386/i386/machdep.c
MFC 273871:
Skip the smap sysctl instead of panicing if no kernel metadata can be
found.
22:32:22 - r275920
(1 day 14 hours ago)
by mav
Affects: 
(4 files)
/head/sys/cam/ctl/*
Pass real optimal transfer size supported by backend.

For files and ZVOLs that is 1MB now, not 128K.

MFC after:      1 week
21:22:23 - r275919
(1 day 15 hours ago)
by ngie
Affects:  /projects/building-blocks/Makefile.inc1
Parallelize bootstrap-tools

Based on a patch submitted via -arch:
https://lists.freebsd.org/pipermail/freebsd-arch/2014-December/016493.html

MFC after: 1 week
Submitted by: Jia-Shiun Li <jiashiun@gmail.com>
Sponsored by: EMC / Isilon Storage Division
20:23:19 - r275918
(1 day 16 hours ago)
by delphij
Affects:  /head/usr.bin/seq/seq.1
/head/usr.bin/seq/seq.c
Sync with NetBSD, mainly address NetBSD bug #43355:

Fix valid_format() to be more careful about allowing only valid
printf formats.

Obtained from:  NetBSD
MFC after:      2 weeks
19:33:28 - r275917
(1 day 17 hours ago)
by delphij
Affects: 
(13 files)
/user/cperciva/freebsd-update-build/patches/*
Add patches for recent patch batches.
19:09:59 - r275916
(1 day 17 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/elfcopy/sections.c
Include section name in strip warning message
19:02:25 - r275915
(1 day 17 hours ago)
by ngie
Affects:  /projects/building-blocks/rescue/rescue/Makefile
Conditionally build ex, routed, rtquery, and vi support into rescue, based on
their respective MK_ flags
18:59:26 - r275914
(1 day 17 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/dnode.c
5422 preserve AVL invariants in dn_dbufs
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Alex Reece <alex@delphix.com>

illumos/illumos-gate@a846f19d279fdfb0e0d63f78ccaf0205a88274d2
18:46:08 - r275913
(1 day 18 hours ago)
by ngie
Affects: 
(402 files)
/projects/building-blocks/*
MFhead @ r275911 (also, sort out MK_* flags in BMAKE, etc on this branch)
18:44:22 - r275912
(1 day 18 hours ago)
by dim
Affects: 
(219 files)
/projects/clang350-import/*
Merge ^/head r275759 through r275911.
18:35:47 - r275911
(1 day 18 hours ago)
by ngie
Affects:  /projects/building-blocks/Makefile.inc1
Try building a little less groff for build-tools
18:30:33 - r275910
(1 day 18 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Fix accidental MK_DEBUG_FILES=no addition to NXBMAKE in r275909

X-MFC with: r275909
Sponsored by: EMC / Isilon Storage Division
18:26:10 - r275909
(1 day 18 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Don't build full clang toolchain or clang extras in stages 1-3 of buildworld

MFC after: 1 week
Reviewed by: dim (as part of a "larger" diff)
Phabric: D1336
Sponsored by: EMC / Isilon Storage Division
18:20:33 - r275908
(1 day 18 hours ago)
by ngie
Affects:  /head/share/man/man7/build.7
Document STRIP_CMD in build(7) and note its importance with LOCAL_ITOOLS

MFC after: 1 week
Phabric: D1335
Reviewed by: brueffer
Sponsored by: EMC / Isilon Storage Division
18:16:00 - r275907
(1 day 18 hours ago)
by ngie
Affects: 
(6 files)
/head/Makefile.inc1
/head/etc/*
/head/tools/build/mk/OptionalObsoleteFiles.inc
Fix building/installing tests when TESTSBASE != /usr/tests

The work in r258233 hardcoded the assumption that tests was the last component
of the tests tree by pushing tests as an explicit prefix for the paths in
BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

One thing that r258233 did properly though was remove "/usr/tests" creation
from BSD.usr.dist -- that should have not been there in the first place. That
was an "oops" on my part for the work that was originally committed in r241823

MFC after: 2 weeks
Phabric: D1301
Reviewed by: imp
Sponsored by: EMC / Isilon Storage Division
18:10:39 - r275906
(1 day 18 hours ago)
by jamie
Affects:  /head/usr.sbin/jail/command.c
Setgid before running a command as a specified user.  Previously only
initgroups(3) was called, what isn't quite enough.  This brings jail(8)
in line with jexec(8), which was already doing the right thing.

PR:             195984
MFC after:      1 week
16:57:22 - r275905
(1 day 19 hours ago)
by imp
Affects:  /head/sys/dev/mmc/mmc.c
Don't deselect the card too soon. To set the block size or switch the
function parameters, the card has to be in transfer state. If it is in
the idle state, the commands are ignored. This caused us not to set
the proper parameters that we later assume to be present, leading to
downstream failures of the card / interface as our state machine
mismatches the card's.

Submitted by: Svatopluk Kraus <onwahe at gmail.com>, Michal Meloun
<meloun at miracle.cz>
16:57:19 - r275904
(1 day 19 hours ago)
by imp
Affects:  /head/usr.sbin/kldxref/Makefile
Remove -fno-strict-alias, as it is no longer needed.
14:31:30 - r275903
(1 day 22 hours ago)
by andrew
Affects:  /head/sys/sys/elf_common.h
Add AArch64 64-bit relocation values. These will be needed by rtld when
we import it along with utilities in elftoolchain.

Differential Revision:  https://reviews.freebsd.org/D1330
Reviewed by:    emaste
Sponsored by:   The FreeBSD Foundation
13:46:32 - r275902
(1 day 23 hours ago)
by avg
Affects: 
(4 files)
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
MFC r275401: zfs_putpages: actually update mtime and ctime
13:46:11 - r275901
(1 day 23 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
MFC r275401: zfs_putpages: actually update mtime and ctime
11:36:14 - r275900
(2 days 1 hour ago)
by kib
Affects: 
(2 files)
/stable/10/lib/libc/sys/kqueue.2
MFC r271315 (by joel):
Minor mdoc nit.

MFC r275806:
Markup fixes for kqueue(2), no content changes.
11:30:51 - r275899
(2 days 1 hour ago)
by kib
Affects: 
(4 files)
/stable/10/lib/libc/sys/kqueue.2
/stable/10/sys/kern/kern_event.c
/stable/10/sys/sys/event.h
MFC r268843 (by bapt):
Extend kqueue's EVFILT_TIMER by adding precision unit flags support.
11:10:15 - r275898
(2 days 1 hour ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_event.c
MFC r259609 (by se):
Fix overflow for timeout values of more than 68 years, which is the maximum
covered by sbintime (LONG_MAX seconds).

MFC r259633 (by se):
Fix compilation on 32 bit architectures and use INT64_MAX instead of
LONG_MAX for the upper bound check.
10:01:12 - r275897
(2 days 2 hours ago)
by kib
Affects: 
(17 files)
/head/sys/*
The VOP_LOOKUP() implementations for CREATE op do not put the name
into namecache, to avoid cache trashing when doing large operations.
E.g., tar archive extraction is not usually followed by access to many
of the files created.

Right now, each VOP_LOOKUP() implementation explicitely knowns about
this quirk and tests for both MAKEENTRY flag presence and op != CREATE
to make the call to cache_enter().  Centralize the handling of the
quirk into VFS, by deciding to cache only by MAKEENTRY flag in VOP.
VFS now sets NOCACHE flag for CREATE namei() calls.

Note that the change in semantic is backward-compatible and could be
merged to the stable branch, and is compatible with non-changed
third-party filesystems which correctly handle MAKEENTRY.

Suggested by:   Chris Torek <torek@pi-coral.com>
Reviewed by:    mckusick
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
08:49:50 - r275896
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/ctladm/ctladm.8
MFC r275482: Document r275481 changes.
08:46:53 - r275895
(2 days 4 hours ago)
by mav
Affects: 
(7 files)
/stable/10/sys/cam/ctl/*
/stable/10/usr.sbin/ctladm/ctladm.8
MFC r275568:
Count consecutive read requests as blocking in CTL for files and ZVOLs.

Technically read requests can be executed in any order or simultaneously
since they are not changing any data.  But ZFS prefetcher goes crasy when
it receives consecutive requests from different threads.  Since prefetcher
works on level of separate blocks, instead of two consecutive 128K requests
it may receive 32 8K requests in mixed order.

This patch is more workaround then a real fix, and it does not fix all of
prefetcher problems, but it improves sequential read speed by 3-4x times
in some configurations.  On the other side it may hurt performance if
some backing store has no prefetch, that is why it is disabled by default
for raw devices.
08:45:28 - r275894
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r275512:
In addition to r275481 allow threshold notifications work without UNMAP.

While without UNMAP support there is not much initiator can do about it,
the administrator still better be notified about the storage overflow.

Sponsored by:   iXsystems, Inc.
08:43:36 - r275893
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_backend_block.c
MFC r275481:
Add to CTL support for threshold notifications for file-backed LUNs.

Previously it was supported only for ZVOL-backed LUNs, but now should work
for file-backed LUNs too.  Used value in this case is a space occupied by
the backing file, while available value is an available space on file
system.  Pool thresholds are still not implemented in this case.

Sponsored by:   iXsystems, Inc.
08:38:07 - r275892
(2 days 4 hours ago)
by mav
Affects: 
(9 files)
/stable/10/sys/cam/ctl/*
/stable/10/sys/cam/scsi/scsi_all.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
MFC r275474: Add GET LBA STATUS command support to CTL.

It is implemented for LUNs backed by ZVOLs in "dev" mode and files.
GEOM has no such API, so for LUNs backed by raw devices all LBAs will
be reported as mapped/unknown.

Sponsored by:   iXsystems, Inc.
08:37:09 - r275891
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_ioctl.h
MFC r275461:
Increase CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024.

After recent optimizations this change is no longer blocked by CTL memory
consumption.  Those limits are still not free, but much cheaper now.

Relnotes:       yes
Sponsored by:   iXsystems, Inc.
08:36:19 - r275890
(2 days 4 hours ago)
by erwin
Affects: 
(365 files)
/stable/9/contrib/bind9/*
/stable/9/lib/bind/*
Update BIND to 9.9.6-P1

Most notable changes in 9.9.6 and includes the latest SA:
https://lists.isc.org/pipermail/bind-announce/2014-September/000928.html

Note this is a direct commit to stable/9 as BIND is no longer in head.

Sponsored by:   DK Hostmaster A/S
08:32:56 - r275889
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r275459: Unify function names after r275458.
08:32:06 - r275888
(2 days 4 hours ago)
by mav
Affects: 
(5 files)
/stable/10/sys/cam/ctl/*
MFC r275458:
Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator.

Abusing ability of major UAs cover minor ones we may not account UAs for
inactive ports.  Allocate UAs storage for port and start accounting only
after some initiator from that port fetched its first POWER ON OCCURRED.

This reduces per-LUN CTL memory usage from >1MB to less then 100K.
08:31:13 - r275887
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r275455: Remove some unused code.
08:30:28 - r275886
(2 days 4 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/cam/ctl/ctl.c
/stable/10/sys/cam/ctl/ctl_private.h
MFC r275447:
Do not pre-allocate reservation keys memory for every possible initiator.

In configurations with many ports, like iSCSI, each LUN is typically
accessed only by limited subset of ports.  Allocating that memory on
demand allows to reduce CTL memory usage from 5.3MB/LUN to 1.3MB/LUN.
08:28:44 - r275885
(2 days 4 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/cam/ctl/ctl.c
/stable/10/sys/cam/ctl/ctl_private.h
MFC r275405: Convert persis_offset from global variable to softc field.
08:27:46 - r275884
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r275404: Reduce code duplication by creating ctl_set_res_ua() helper.
08:27:00 - r275883
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r275403: Removed unused variable and unify some names.
08:26:11 - r275882
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/scsi_ctl.c
MFC r275365: Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.
08:25:00 - r275881
(2 days 4 hours ago)
by mav
Affects: 
(8 files)
/stable/10/sys/cam/ctl/*
MFC r275058: Coalesce last data move and command status for read commands.

Make CTL core and block backend set success status before initiating last
data move for read commands.  Make CAM target and iSCSI frontends detect
such condition and send command status together with data.  New I/O flag
allows to skip duplicate status sending on later fe_done() call.

For Fibre Channel this change saves one of three interrupts per read command,
increasing performance from 126K to 160K IOPS.  For iSCSI this change saves
one of three PDUs per read command, increasing performance from 1M to 1.2M
IOPS.

Sponsored by:   iXsystems, Inc.
08:23:59 - r275880
(2 days 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/scsi_ctl.c
MFC r275032: Decouple datamove/done logic from CTL status set.
08:23:04 - r275879
(2 days 4 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/cam/ctl/ctl.c
/stable/10/sys/cam/ctl/ctl_backend_ramdisk.c
MFC r275009: Use ctl_set_success() instead of direct inlining.
08:22:16 - r275878
(2 days 4 hours ago)
by mav
Affects: 
(10 files)
/stable/10/sys/cam/ctl/*
MFC r274962:  Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

Sponsored by:   iXsystems, Inc.
07:38:41 - r275877
(2 days 5 hours ago)
by mav
Affects: 
(3 files)
/stable/9/sys/geom/raid/md_intel.c
MFC r275475: Decode some binary fields of Intel metadata.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
07:37:21 - r275876
(2 days 5 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/geom/raid/md_intel.c
MFC r275475:
Decode some binary fields of Intel metadata.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
05:17:18 - r275875
(2 days 7 hours ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_scan_sta.c
Fix the scan handling for 11b->11g upgrades in a world where, well,
it's not just 11b/11g.

The following was happening, and it's quite .. annoyingly grr-y.

* create vap, setup wpa_supplicant with no bgscanning, etc - there's
  no call to ieee80211_media_change, so vap->iv_des_mode is
  IEEE80211_MODE_AUTO;
* do ifconfig wlan0 scan - same thing, media_change doesn't get called,
  iv_des_mode stays as auto.
* But then, run wpa_cli and do 'scan' - it'll do a media change.
* if you're on 11ng, vap->iv_des_mode gets changed to IEEE80211_MODE_11NG
* Then makescanlist() is called.  There's a block of code that gets
  called if iv_des_mode != IEEE80211_MODE_AUTO, and it does this:

                if (vap->iv_des_mode != IEEE80211_MODE_11G ||
                            mode != IEEE80211_MODE_11B)
                        continue;
                mode = IEEE80211_MODE_11G;      /* upgrade */

* .. now, iv_des_mode is not IEEE80211_MODE_11G, so it always runs
  'continue'
* .. and thus the scan list stays empty and no further channel
  scans occur. Ever.(1)

If you then disassociate and try associating to something, your
scan table has likely been purged / aged out and you'll never
see anything in the scan list.

(1) You need to do 'ifconfig wlan0 mode auto' or just destroy/re-create
    the VAP to get working wireless again.

Tested:

* iwn(4) - intel 5300 wifi; STA mode; using wpa_supplicant; bgscan
  enabled -and- wpa_supplicant scanning.

Thanks to:

* Everyone who kept poking me about this and wondering why the hell
  their wifi would eventually stop seeing scan lists.  Grr.
  I eventually snapped this evening and dug back into this code.
03:51:09 - r275874
(2 days 9 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdinstall/distextract/Makefile
/head/usr.sbin/bsdinstall/distextract/distextract.c
In bsdinstall's distextract, replace mixed_gauge() of dialog(3) with
new dpv(3) wrapper to dialog(3) dialog_gauge(). The dpv(3) library provides
a more flexible and refined interface similar to dialog_mixedgauge() however
is implemented atop the more generalized dialog_gauge() for portability.
Noticeable improvements in bsdinstall's distextract will be a status line
showing data rate information (with support for localeconv(3) to format
numbers according to $LANG or $LC_ALL conversion information), i18n support,
improved auto-sizing of gauge widget, a ``wheel barrow'' to keep the user
informed that things are moving (even if status/progress has not changed),
improved color support (mini-progress bars use the same color, if enabled,
as the main gauge bar), and several other improvements (some not visible).
dpv stands for "dialog progress view" (dpv was introduced in SVN r274116).

Differential Revision:  https://reviews.freebsd.org/D714
Discussed on:   -current
Reviewed by:    julian
MFC after:      3 days
X-MFC-to:       stable/10
Relnotes:       Improved installer feedback from bsdinstall distextract
03:12:46 - r275873
(2 days 9 hours ago)
by jhibbits
Affects:  /head/contrib/binutils/gas/config/tc-ppc.c
Make gas parse '__tls_get_addr(foo@tlsgd)'.

Corresponds to 727fc41e077139570ea8b8ddfd6c546b2a55627c.

This allows us to use -no-integrated-as with clang, if we prefer.

Obtained from:  binutils-gdb (Relicensed from Alan Modra as GPLv2)
MFC after:      2 weeks
X-MFC-with:     r275718
2014 - 12 - 17   (3 days ago)
21:36:45 - r275872
(2 days 15 hours ago)
by dim
Affects: 
(5 files)
/stable/10/contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp
/stable/9/contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp
MFC r275759:

Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by:    jhibbits
Differential Revision: https://reviews.freebsd.org/D1308
21:27:27 - r275871
(2 days 15 hours ago)
by adrian
Affects:  /head/sys/dev/malo/if_malo_pci.c
Update the use of bus space macros to be more correct.

This was a problem on i386 PAE builds.
21:26:25 - r275870
(2 days 15 hours ago)
by adrian
Affects:  /head/sys/dev/mwl/if_mwl_pci.c
Use the correct macro for listing the maximum bus space size.

Without this, it fails to compile on i386 PAE builds.
20:34:38 - r275869
(2 days 16 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_pcb.c
Add a missing break.

Reported by:    Coverity
CID:            1232014
MFC after:      3 days
20:19:57 - r275868
(2 days 16 hours ago)
by tuexen
Affects:  /head/sys/netinet6/sctp6_usrreq.c
Plug a memory leak in an error code path.

Reported by:    Coverity
CID:            1018936
MFC after:      3 days
20:02:07 - r275867
(2 days 16 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Fix sporadic build failures due to race when running make installworld
when strip gets replaced at install time by adding it to ITOOLS for the
default usr.bin/xinstall STRIP_CMD

This will fix the failure noted in this Jenkins build step:
https://jenkins.freebsd.org/job/Build-UFS-image/688/

This will also fix the issue reported by alfred@ dealing with installing on
targets that differ from build hosts (e.g. installing on i386/i386 when built
on amd64/amd64)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
19:46:12 - r275866
(2 days 17 hours ago)
by ngie
Affects: 
(7 files)
/head/gnu/usr.bin/groff/Makefile
/head/gnu/usr.bin/groff/src/*
Parallelize building gnu/usr.bin/groff

This speeds up building the directory from the bootstrap-tools stage in
buildworld as well as building from the subdirectory

Based on a patch submitted via -arch:
https://lists.freebsd.org/pipermail/freebsd-arch/2014-December/016493.html

MFC after: 1 week
Submitted by: Jia-Shiun Li <jiashiun@gmail.com>
Sponsored by: EMC / Isilon Storage Division
17:30:54 - r275865
(2 days 19 hours ago)
by mav
Affects: 
(5 files)
/head/sys/cam/ctl/*
/head/usr.sbin/ctladm/ctladm.8
Add configuration options to override physical and UNMAP blocks geometry.

While in most cases CTL should correctly fetch those values from backing
storages, there are some initiators (like MS SQL), that may not like large
physical block sizes, even if they are true.  For such cases allow override
fetched values with supported ones (like 4K).

MFC after:      1 week
15:13:21 - r275864
(2 days 21 hours ago)
by mav
Affects: 
(8 files)
/head/sys/*
/head/usr.sbin/*
Make sequence numbers checks more strict.

While we don't support MCS, hole in received sequence numbers may mean
only PDU loss.  While we don't support lost PDU recovery, terminate the
connection to avoid stuck commands.

While there, improve handling of sequence numbers wrap after 2^32 PDUs.

MFC after:      2 weeks
14:50:57 - r275863
(2 days 22 hours ago)
by pfg
Affects: 
(3 files)
/stable/9/sys/fs/ext2fs/ext2_inode.c
MFC     r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID:            1007665
Discussed with: bde
14:46:21 - r275862
(2 days 22 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/elfcopy/main.c
Do not strip all when stripping an explicit symbol

When requested to strip specific symbols (-N flag) the default should be
to strip nothing (other than the requested symbols). This is consistent
with binutils strip(1).

PR:             196038
Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1327
11:36:31 - r275861
(3 days 1 hour ago)
by br
Affects:  /head/sys/boot/fdt/dts/mips/beripad-sockit.dts
/head/sys/mips/beri/files.beri
/head/sys/mips/conf/BERI_SOCKIT
Add configuration files for BERI soft-core synthesized on
Terasic SoCKit board (Altera FPGA).

Use virtio block as root filesystem device.

Sponsored by:   DARPA, AFRL
11:05:44 - r275860
(3 days 1 hour ago)
by br
Affects:  /head/sys/boot/fdt/dts/mips/beri-netfpga.dts
/head/sys/boot/fdt/dts/mips/beri-sim.dts
/head/sys/boot/fdt/dts/mips/beripad-de4.dts
Move memory node to the root, so fdt_get_mem_regions() can find it.
10:48:53 - r275859
(3 days 2 hours ago)
by br
Affects:  /head/sys/boot/fdt/dts/arm/socfpga-sockit-beri.dts
o Add PIO[2,3] devices information
o Enable Virtio Block
09:34:54 - r275858
(3 days 3 hours ago)
by br
Affects:  /head/sys/mips/beri/beri_machdep.c
Use memory regions information provided in FDT.

Reviewed by:    brooks
Sponsored by:   DARPA, AFRL
07:47:25 - r275857
(3 days 5 hours ago)
by tuexen
Affects:  /head/lib/libc/net/sctp_sys_calls.c
Initilize the msg_flags field consistently in all code paths.

Reported by:    Coverity
CID:            1018726
07:27:19 - r275856
(3 days 5 hours ago)
by gleb
Affects: 
(11 files)
/head/sys/*
Adjust printf format specifiers for dev_t and ino_t in kernel.

ino_t and dev_t are about to become uint64_t.

Reviewed by:    kib, mckusick
07:10:48 - r275855
(3 days 5 hours ago)
by gleb
Affects: 
(4 files)
/head/sbin/ffsinfo/ffsinfo.c
/head/usr.bin/*
/head/usr.sbin/lpr/lpr/lpr.c
Adjust printf format specifiers for dev_t and ino_t in user space.

ino_t and dev_t are about to become uint64_t.

Reviewed by:    kib, mckusick
06:59:47 - r275854
(3 days 5 hours ago)
by delphij
Affects: 
(8 files)
/releng/10.0/*
/releng/10.1/*
Fix unbound remote denial of service vulnerability.

Security:       FreeBSD-SA-14:30.unbound
Security:       CVE-2014-8602
Approved by:    so
06:58:00 - r275853
(3 days 5 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/contrib/unbound/iterator/iterator.c
/stable/10/contrib/unbound/iterator/iterator.h
MFC r275852: MFV r275844:

Fix unbound remote denial of service vulnerability.

Security:       FreeBSD-SA-14:30.unbound
Security:       CVE-2014-8602
Approved by:    so
06:55:44 - r275852
(3 days 5 hours ago)
by delphij
Affects: 
(3 files)
/head/contrib/unbound/iterator/iterator.c
/head/contrib/unbound/iterator/iterator.h
MFV r275844:

Fix unbound remote denial of service vulnerability.

Security:       FreeBSD-SA-14:30.unbound
Security:       CVE-2014-8602
05:36:34 - r275851
(3 days 7 hours ago)
by bryanv
Affects: 
(4 files)
/head/sbin/ifconfig/*
/head/share/man/man4/vxlan.4
Prefix all the vxlan ifconfig commands so they are unique

And rehook ifvxlan back into the build.
03:04:43 - r275850
(3 days 9 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/io/vatpic.c
Fix 8259 IRQ priority resolver.
Initialize the 8259 such that IRQ7 is the lowest priority.

Reviewed by:            tychon
Differential Revision:  https://reviews.freebsd.org/D1322
MFC after:              1 week
01:48:32 - r275849
(3 days 11 hours ago)
by ngie
Affects:  /projects/building-blocks/Makefile.inc1
Remove leftover MK_VI == no from previous work that's no longer needed
01:48:02 - r275848
(3 days 11 hours ago)
by ngie
Affects:  /projects/building-blocks/Makefile.inc1
Do not enable DEBUG_FILES in stages 1. through 3. of the build

Blindly building debugging symbols into the toolchain slows down builds
considerably and eats up a lot more resources than required, both in
terms of memory and disk I/O

This change has no noticeable effect for those who do not build with
MK_DEBUG_FILES=no (which is the default)

Sponsored by: EMC / Isilon Storage Division
01:36:00 - r275847
(3 days 11 hours ago)
by bdrewery
Affects:  /head/lib/libc/sys/procctl.2
Bump Dd for r275846

MFC after:      3 weeks
01:32:27 - r275846
(3 days 11 hours ago)
by mckusick
Affects:  /head/lib/libc/sys/procctl.2
Add some additional clarification and fix a few gammer nits.

Reviewed by: kib
MFC after:   3 weeks
00:22:41 - r275845
(3 days 12 hours ago)
by will
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
Initialize an argument to NULL instead of expecting dlinfo() to do it.

dlinfo() is a weak reference that may not be initialized at the time of
execution. The default implementation (in lib/libc/gen/dlfcn.c) neither
modifies the address pointed to by the third argument nor returns an error.

Differential Revision:  https://reviews.freebsd.org/D1326
Reviewed by:            markj
MFC after:              1 week
2014 - 12 - 16   (4 days ago)
23:25:12 - r275844
(3 days 13 hours ago)
by delphij
Affects:  /vendor/unbound/dist/iterator/iterator.c
/vendor/unbound/dist/iterator/iterator.h
Bring in unbound fixes for CVE-2014-8602 to ease future code import.
21:57:55 - r275843
(3 days 14 hours ago)
by jhb
Affects: 
(5 files)
/stable/10/usr.bin/kdump/*
/stable/10/usr.bin/truss/*
MFC 273053:
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.
21:51:21 - r275842
(3 days 15 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_cmd_table.c
Do not count RCTD bit set as an error.

We can not really implement it, but specification tells that it "shall"
work, so it can be safely ignored.

MFC after:      1 week
21:13:55 - r275841
(3 days 15 hours ago)
by pfg
Affects: 
(3 files)
/stable/10/usr.bin/patch/common.h
/stable/10/usr.bin/patch/pch.c
MFC     r275553, r275612;

patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:             195436
Obtained from:  OpenBSD
21:05:28 - r275840
(3 days 15 hours ago)
by pfg
Affects: 
(3 files)
/stable/10/usr.bin/patch/patch.c
/stable/10/usr.bin/patch/pch.c
MFC     r275531, r275581, r275582;

patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from:  OpenBSD
20:45:17 - r275839
(3 days 16 hours ago)
by brooks
Affects:  /head/Makefile.inc1
/head/UPDATING
Add an UPDATING entry and warning about the change in r274807 to help users
transition to the new behavior.

Discussed with: jmallett
Sponsored by:   DARPA, AFRL
20:26:11 - r275838
(3 days 16 hours ago)
by pfg
Affects:  /head/usr.bin/sed/compile.c
sed: Bounds check the file path used in the 'w' command.

Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.

Obtained from:  OpenBSD (CVS Rev. 1.37)
MFC after:      1 week
20:05:10 - r275837
(3 days 16 hours ago)
by jhb
Affects: 
(2 files)
/stable/10/lib/libc/sys/mmap.2
MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.
19:45:56 - r275836
(3 days 17 hours ago)
by jhb
Affects: 
(6 files)
/stable/10/sys/dev/e1000/if_igb.c
/stable/9/sys/dev/e1000/if_igb.c
MFC 272897:
Various fixes to stats:
- Read the counts of received, dropped, and transmitted management
  packets and add sysctl nodes for them.
- Fix the total octets received/transmitted to read all 64 bits of
  the counters.
- Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot.
- Remove spurious spaces.
18:57:42 - r275835
(3 days 17 hours ago)
by bryanv
Affects:  /projects/paravirt
Create projects branch for paravirt work

This branch will initially be used to develop support for KVM
paravirtualization - KVM clock, EIO, and async page fault -
and then hopefully pvops infrastructure and support for other
hypervisors.
18:45:31 - r275834
(3 days 18 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/fs/ext2fs/ext2_inode.c
MFC     r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID:            1007665
Discussed with: bde
18:28:33 - r275833
(3 days 18 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/exception.S
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
17:59:05 - r275832
(3 days 18 hours ago)
by will
Affects:  /head/tools/tools/nanobsd/defaults.sh
/head/tools/tools/nanobsd/nanobsd.sh
Make NanoBSD source-able from other scripts.

Summary:
This change converts NanoBSD into a two-script bundle.
- defaults.sh contains all non-CLI code.  Most NanoBSD code is moved into
  this file.
- nanobsd.sh now consists just of a command line interface that calls into
  functions in defaults.sh.

Test Plan: Run NanoBSD using a previously-working configuration.

Reviewers: imp

Reviewed By: imp

Differential Revision: https://reviews.freebsd.org/D1321
16:23:54 - r275831
(3 days 20 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/readelf
Copy elftoolchain readelf from vendor branch
14:59:20 - r275830
(3 days 21 hours ago)
by ae
Affects:  /head/sbin/ping6/ping6.c
Add ability to not specify a zone identifier twice, when both source and
destination addresses are specified.
For example:
        # ping6 -S fe80::1%ix0 ff02::1
or
        # ping6 -S fe80::1 fe80::2%ix0

Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
14:50:33 - r275829
(3 days 22 hours ago)
by brd
Affects:  /head/usr.sbin/pw/tests/pw_useradd.sh
/head/usr.sbin/pw/tests/pw_usermod.sh
Add tests for pw -N

PR:             150449
Submitted by:   Robert O'Neil <oneil.rs@gmail.com>
Approved by:    will
11:53:45 - r275828
(4 days ago)
by ae
Affects: 
(3 files)
/stable/10/sys/net/if_stf.c
/stable/10/sys/netinet6/icmp6.c
MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:   Yandex LLC
11:52:15 - r275827
(4 days ago)
by ae
Affects: 
(4 files)
/stable/9/sys/net/if_stf.c
/stable/9/sys/netinet6/icmp6.c
MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:   Yandex LLC
11:49:35 - r275826
(4 days 1 hour ago)
by ae
Affects: 
(2 files)
/stable/9/sys/netipsec/keysock.c
MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by:   Yandex LLC
11:45:33 - r275825
(4 days 1 hour ago)
by ae
Affects: 
(2 files)
/stable/10/sys/netipsec/keysock.c
MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by:   Yandex LLC
11:30:29 - r275824
(4 days 1 hour ago)
by ae
Affects: 
(2 files)
/stable/9/sys/netipsec/key.c
MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by:   Yandex LLC
11:25:12 - r275823
(4 days 1 hour ago)
by pho
Affects:  /user/pho/stress2/misc/pcatch.sh
Added a regression test.

Sponsored by:    EMC / Isilon storage division
11:24:07 - r275822
(4 days 1 hour ago)
by ae
Affects: 
(2 files)
/stable/10/sys/netipsec/key.c
MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by:   Yandex LLC
09:49:07 - r275821
(4 days 3 hours ago)
by kib
Affects:  /head/sys/kern/kern_procctl.c
Add missed break.

CID:    1258587
Sponsored by:   The FreeBSD Foundation
MFC after:      20 days
09:48:23 - r275820
(4 days 3 hours ago)
by kib
Affects:  /head/sys/kern/kern_thread.c
Add missed break.

CID:    1258586
Sponsored by:   The FreeBSD Foundation
MFC after:      4 days
09:21:56 - r275819
(4 days 3 hours ago)
by ed
Affects: 
(24 files)
/head/lib/msun/ld128/k_expl.h
/head/lib/msun/ld80/k_expl.h
/head/lib/msun/src/*
Rename cpack*() to CMPLX*().

The C11 standard introduced a set of macros (CMPLX, CMPLXF, CMPLXL) that
can be used to construct complex numbers from a pair of real and
imaginary numbers. Unfortunately, they require some compiler support,
which is why we only define them for Clang and GCC>=4.7.

The cpack() function in libm performs the same task as CMPLX(), but
cannot be used to generate compile-time constants. This means that all
invocations of cpack() can safely be replaced by C11's CMPLX(). To keep
the code building with GCC 4.2, provide copies of CMPLX() that can at
least be used to generate run-time complex numbers.

This makes it easier to build some of the functions outside of libm.
08:29:02 - r275818
(4 days 4 hours ago)
by gleb
Affects:  /head/sbin/shutdown/shutdown.8
/head/sbin/shutdown/shutdown.c
sbin/shutdown: Support time units as in 'shutdown -r +5sec'

Units supported: s, sec, m, min, h, hour.

Differential Revision:  https://reviews.freebsd.org/D1272
06:33:57 - r275817
(4 days 6 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/io/vatpic.c
For level triggered interrupts clear the PIC IRR bit when the interrupt pin
is deasserted. Prior to this change each assertion on a level triggered irq
pin resulted in two interrupts being delivered to the CPU.

Differential Revision:  https://reviews.freebsd.org/D1310
Reviewed by:    tychon
MFC after:      1 week
06:13:30 - r275816
(4 days 6 hours ago)
by yongari
Affects:  /head/sys/dev/sis/if_sis.c
Fix a bug introdiced in r217548.  According to NS DP83815 data
sheet, RX filter should be disabled before programming.
Previously it was clearing wrong bits so RX filter was not
disabled in RX filter configuration.

Reported by:    brad@OpenBSD.org
2014 - 12 - 15   (5 days ago)
22:20:14 - r275815
(4 days 14 hours ago)
by emaste
Affects:  /head/sys/dev/ofw/ofw_cpu.c
Use standard BSD license disclaimer text

Approved by:    benno, nwhitehorn
21:22:42 - r275814
(4 days 15 hours ago)
by sbruno
Affects:  /stable/10/UPDATING
Correct to the stable/10 commit in UPDATING and specify the correct
ports/UPDATING
note.
20:48:06 - r275813
(4 days 16 hours ago)
by dchagin
Affects:  /head/share/man/man9/rmlock.9
/head/share/man/man9/sx.9
Properly sort Xr to silence mandoc warnings.

Differential Revision:  https://reviews.freebsd.org/D1314
Reviewed by:    wblock
MFC after:      1 Month
18:28:22 - r275812
(4 days 18 hours ago)
by delphij
Affects: 
(3 files)
/head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_iter.c
MFV r275784:

Plug a memory leak in libzfs.  In zfs_iter_bookmarks, an nvlist is allocated
before calling lzc_get_bookmarks, which allocates the nvlist again (and
overwrites the pointer to previously allocated list).

Illumos issue:
    5427 memory leak in libzfs when doing rollback

MFC after:      2 weeks
18:22:45 - r275811
(4 days 18 hours ago)
by delphij
Affects: 
(13 files)
/head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFV r275783:

Convert ARC flags to use enum.  Previously, public flags are defined in
arc.h and private flags are defined in arc.c which can lead to confusion
and programming errors.

Consistently use 'hdr' (when referencing arc_buf_hdr_t) instead of 'buf'
or 'ab' because arc_buf_t are often named 'buf' as well.

Illumos issue:
    5369 arc flags should be an enum
    5370 consistent arc_buf_hdr_t naming scheme

MFC after:      2 weeks
18:18:57 - r275810
(4 days 18 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/elfcopy/segments.c
Correct elftoolchain strip(1) memory size calculation

Calculate the segment's memory size (p_memsz) using the virtual
addresses, not the file offsets. Otherwise padding preceeding SHT_NOBITS
sections may be excluded from the calculation, resulting in a segment
that is too small.

PR:             195653
Sponsored by:   The FreeBSD Foundation
18:13:03 - r275809
(4 days 18 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/share/mk/bsd.cpu.mk
Revert r275778, gcc 4.2.1 doesn't handle -march=armv7.
17:52:08 - r275808
(4 days 19 hours ago)
by jhb
Affects:  /head/sys/dev/cxgbe/tom/t4_ddp.c
/head/sys/kern/uipc_socket.c
Check for SS_NBIO in so->so_state instead of sb->sb_flags in
soreceive_stream().

Differential Revision:  https://reviews.freebsd.org/D1299
Reviewed by:    bz, gnn
MFC after:      1 week
16:14:49 - r275807
(4 days 20 hours ago)
by sbruno
Affects: 
(3 files)
/stable/10/UPDATING
/stable/10/sys/compat/linux/linux_mib.c
MFC r271982 and r271990 to support CentOS 6 ports.
14:58:10 - r275806
(4 days 21 hours ago)
by kib
Affects:  /head/lib/libc/sys/kqueue.2
Markup fixes for kqueue(2), no content changes.

Reviewed by:    brueffer (previous version)
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
14:36:04 - r275805
(4 days 22 hours ago)
by kuriyama
Affects:  /head/lib/libc/iconv/iconv.3
Fix incorrect type of "invalids" argument in __iconv() prototype.
14:25:42 - r275804
(4 days 22 hours ago)
by emaste
Affects:  /head/gnu/usr.bin/cc/cc1plus/Makefile
Remove empty generated file upon gperf failure

Prior to this change the build could fail as follows, if gperf is not
available (or fails):

  - make(1) stops due to the gperf error, but an empty target file
    (cfns.h) is still created
  - the empty cfns.h is newer than the source cfns.gperf so it is not
    regenerated on subsequent builds
  - the gcc build fails (undefined reference to libc_name_p)

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
12:16:09 - r275803
(5 days ago)
by erwin
Affects:  /vendor/bind9/9.9.6-P1
Tag the 9.9.6-P1 release

Sponsored by:   DK Hostmaster A/S
12:15:18 - r275802
(5 days ago)
by br
Affects:  /head/sys/arm/mv/mv_pci.c
Fix typo.
12:14:41 - r275801
(5 days ago)
by erwin
Affects: 
(356 files)
/vendor/bind9/dist/*
Vendor import of BIND 9.9.6-P1

Sponsored by:   DK Hostmaster A/S
12:01:42 - r275800
(5 days ago)
by kib
Affects: 
(11 files)
/head/lib/libc/sys/procctl.2
/head/sys/*
Add a facility for non-init process to declare itself the reaper of
the orphaned descendants.  Base of the API is modelled after the same
feature from the DragonFlyBSD.

Requested by:   bapt
Reviewed by:    jilles (previous version)
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      3 weeks
11:57:39 - r275799
(5 days ago)
by br
Affects:  /head/sys/arm/mv/mv_common.c
/head/sys/arm/mv/mv_pci.c
Follow r275792 eliminating fdt_data_verify().
11:05:53 - r275798
(5 days 1 hour ago)
by kib
Affects: 
(3 files)
/stable/10/sys/kern/vfs_subr.c
/stable/10/sys/sys/mount.h
MFC r275620:
Add functions syncer_suspend() and syncer_resume().

MFC r275637:
Remove local variable for real.
11:00:56 - r275797
(5 days 1 hour ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_bio.c
MFC r275619:
Check for bo_bufobj->bo_object for NULL and cache the value in local
variable to avoid NULL dereference in getnewbuf_reuse_bp(). The vnode
owning the buffer is not locked there.
10:58:02 - r275796
(5 days 1 hour ago)
by kib
Affects: 
(2 files)
/stable/10/sys/rpc/svc.c
MFC r275618:
Check for stop condition in nfsd threads.
10:50:26 - r275795
(5 days 2 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_thread.c
MFC r275617:
Do some refactoring and minor cleanups of the thread_single() code.
10:46:07 - r275794
(5 days 2 hours ago)
by kib
Affects: 
(6 files)
/stable/10/sys/kern/*
/stable/10/sys/powerpc/*
/stable/10/sys/sys/proc.h
MFC r275616:
Thread waiting for the vfork(2)-ed child to exec or exit, must allow
for the suspension.

MFC r275683 (by andreast):
Fix build for powerpc(32|64) kernels.

MFC r275686 (by andreast):
Fix kernel build for booke.

r275639 (by andrew) is not merged, since arm/arm/syscall.c is not
present on the stable/10 branch, and arm/arm/trap.c already includes
sys/kernel.h.
10:29:02 - r275793
(5 days 2 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_exit.c
MFC r275615:
When process is exiting, check for suspension regardless of
multithreaded status of the process.
09:40:25 - r275792
(5 days 3 hours ago)
by br
Affects:  /head/sys/dev/fdt/fdt_common.c
/head/sys/dev/fdt/fdt_common.h
Eliminate fdt_data_verify(). The verification it proceed is wrong
disallowing us to encode 64-bit register numbers.

Discussed with: nwhitehorn, andrew
09:35:46 - r275791
(5 days 3 hours ago)
by hselasky
Affects:  /head/etc/devd/usb.conf
Regenerate usb.conf .

MFC after:      1 week
09:23:40 - r275790
(5 days 3 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/net/if_urndis.c
/head/sys/dev/usb/serial/umodem.c
Resolve USB driver identification conflict.

Reported by:    Anish Mistry <amistry@am-productions.biz>
MFC after:      1 week
08:35:07 - r275789
(5 days 4 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/serial/u3g.c
/stable/10/sys/dev/usb/usbdevs
MFC r275606:
Add more U3G USB IDs.
08:33:53 - r275788
(5 days 4 hours ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/serial/u3g.c
/stable/9/sys/dev/usb/usbdevs
MFC r275606:
Add more U3G USB IDs.
08:31:58 - r275787
(5 days 4 hours ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/controller/xhci_pci.c
MFC r275624:
Add port routing support for Wildcat Point.

PR:             195793
08:28:00 - r275786
(5 days 4 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/usb/controller/xhci_pci.c
MFC r275624:
Add port routing support for Wildcat Point.

PR:             195793
08:26:36 - r275785
(5 days 4 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/controller/xhci_pci.c
MFC r275624:
Add port routing support for Wildcat Point.

PR:             195793
08:02:22 - r275784
(5 days 4 hours ago)
by delphij
Affects:  /vendor/illumos/dist/lib/libzfs/common/libzfs_iter.c
5427 memory leak in libzfs when doing rollback
Reviewed by: Michael Tsymbalyuk <mtzaurus@gmail.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Jan Kryl <jan.kryl@nexenta.com>

illumos/illumos-gate@b7070b7dbcc2758a7f87cefb69ad42887a287152
07:59:33 - r275783
(5 days 4 hours ago)
by delphij
Affects: 
(11 files)
/vendor-sys/illumos/dist/uts/common/fs/zfs/*
/vendor/illumos/dist/cmd/zdb/zdb.c
5369 arc flags should be an enum
5370 consistent arc_buf_hdr_t naming scheme
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Alex Reece <alex.reece@delphix.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: George Wilson <george.wilson@delphix.com>

illumos/illumos-gate@7adb730b589e553bf3b1ccfd9bae2df91c5c1061
07:52:23 - r275782
(5 days 4 hours ago)
by delphij
Affects: 
(34 files)
/head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFV r275551:

Remove "dbuf phys" db->db_data pointer aliases.

Use function accessors that cast db->db_data to the appropriate
"phys" type, removing the need for clients of the dmu buf user
API to keep properly typed pointer aliases to db->db_data in order
to conveniently access their data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
        In zap_leaf() and zap_leaf_byteswap, now that the pointer alias
        field l_phys has been removed, use the db_data field in an on
        stack dmu_buf_t to point to the leaf's phys data.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
        Remove the db_user_data_ptr_ptr field from dbuf and all logic
        to maintain it.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
        Modify the DMU buf user API to remove the ability to specify
        a db_data aliasing pointer (db_user_data_ptr_ptr).

cddl/contrib/opensolaris/cmd/zdb/zdb.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_diff.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deadlist.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_deleg.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_destroy.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_synctask.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_userhold.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_leaf.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Create and use the new "phys data" accessor functions
        dsl_dir_phys(), dsl_dataset_phys(), zap_m_phys(),
        zap_f_phys(), and zap_leaf_phys().

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dataset.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_dir.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_impl.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zap_leaf.h:
        Remove now unused "phys pointer" aliases to db->db_data
        from clients of the DMU buf user API.

Illumos issue:
    5314 Remove "dbuf phys" db->db_data pointer aliases in ZFS

MFC after:      2 weeks
05:10:55 - r275781
(5 days 7 hours ago)
by delphij
Affects: 
(5 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFV r275550:

In addition to r273158, make the code in spa_sync() that checks if the
current TXG is a no-op TXG less fragile.

Illumos issue:
    5347 idle pool may run itself out of space

MFC after:      2 weeks
04:51:36 - r275780
(5 days 8 hours ago)
by delphij
Affects: 
(2 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
MFV r275549:

Add a loader tunable, vfs.zfs.arc_meta_min, which controls how much metadata
ZFS should keep in ARC at minimum.

In arc_evict(), when doing recycle, take more factors into account by
applying the following policy:

  1. If no evictable data, evict metadata;
  2. If no evictable metadata, evict data;
  3. If we hit arc_meta_limit, evict metadata;
  4. If we haven't hit arc_meta_min, evict data;
  5* (Illumos only, not present in new FreeBSD code, yet) evict the oldest
     cached element from data and metadata.
     (FreeBSD) evict the data type specified by caller, which is the
     existing behavior.

Note that because of our splitted locks (implemented in r205231 to improve
scalability by reducing lock contention), implementing the fifth Illumos
behavior will not be cheap, so for now just implement the 1-4 and fall back
to current behavior for 5.

Illumos issue:
    5368 ARC should cache more metadata

MFC after:      2 months (assuming we didn't found better solution)
2014 - 12 - 14   (6 days ago)
22:41:08 - r275779
(5 days 14 hours ago)
by rpaulo
Affects:  /head/sys/conf/files.powerpc
/head/sys/dev/ofw/ofw_cpu.c
/head/sys/powerpc/ofw/ofw_cpu.c
Move ofw_cpu.c to sys/dev/ofw so that it can be used by other
architectures.

Differential Revision:  https://reviews.freebsd.org/D1307
Reviewed by:    jhibbits
18:51:13 - r275778
(5 days 18 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/share/mk/bsd.cpu.mk
MFC 275379:
Set the correct architecture when targeting ARMv7

Sponsored by:   ABT Systems Ltd
18:30:30 - r275777
(5 days 18 hours ago)
by jilles
Affects: 
(4 files)
/stable/10/bin/sh/expand.c
/stable/10/bin/sh/tests/parameters/Makefile
/stable/10/bin/sh/tests/parameters/positional5.0
MFC r268576: sh: Correctly handle positional parameters beyond INT_MAX on
64-bit systems.

Currently, there can be no more than INT_MAX positional parameters. Make
sure to treat all higher ones as unset to avoid incorrect results and
crashes.

On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and
sign-extends them.

On 32-bit systems, the call to atoi() returned INT_MAX for too high values
and there is not enough address space for so many positional parameters, so
there was no issue.

PR:             195918
18:28:01 - r275776
(5 days 18 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/arm/arm/stdatomic.c
MFC 275564:

Use the unified syntax when generating assembly for clang. The clang 3.5
integrated assembler only accepts it.

Sponsored by:   ABT Systems Ltd
18:23:30 - r275775
(5 days 18 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/arm/include/asm.h
MFC 275378:

Pull in the NetBSD global offset table handling code. Clang 3.5 creates
relocations the linker complains about.

Obtained from:  NetBSD
18:21:03 - r275774
(5 days 18 hours ago)
by dim
Affects:  /projects/clang350-import/contrib/llvm/patches/patch-23-llvm-r221170-ppc-vaarg.diff
Add clang patch corrsponding to r275773.
18:20:03 - r275773
(5 days 18 hours ago)
by dim
Affects:  /projects/clang350-import/contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp
Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.
18:16:49 - r275772
(5 days 18 hours ago)
by dim
Affects:  /head/contrib/llvm/patches/patch-r275759-clang-r221170-ppc-vaarg.diff
Update clang patch for r275759 to use correct test cases.
18:01:09 - r275771
(5 days 18 hours ago)
by andrew
Affects: 
(3 files)
/stable/10/contrib/gcc/config/arm/lib1funcs.asm
/stable/10/contrib/gcc/config/arm/libunwind.S
MFC 275337:

There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
are aliases.

Sponsored by:   ABT Systems Ltd

MFC 275380:

Use the floating-point instruction on ARMv7 as the clang 3.5 integrated
assembler doesn't allow these two instructions to use co-processor 11.

Sponsored by:   ABT Systems Ltd
17:38:43 - r275770
(5 days 19 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/contrib/binutils/gas/config/tc-arm.c
MFC 275415:

Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
integrated assembler only allows these forms so binutils will need to
support them.

Sponsored by:   ABT Systems Ltd

MFC 275584:

Fix mrc and mrc2 with APSR_nzcv. Binutils encodes it internally as 0 where
we need it to be set to 15 for it to be equivalent to r15.

Sponsored by:   ABT Systems Ltd
17:28:02 - r275769
(5 days 19 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/contrib/binutils/bfd/elf32-arm.c
MFC 275336:

Use llabs when getting the absolute value of a long long.

Sponsored by:   ABT Ststems Ltd
16:40:46 - r275768
(5 days 20 hours ago)
by des
Affects: 
(5 files)
/head/usr.sbin/Makefile
/head/usr.sbin/vigr/*
Add a vigr(8) utility which does for /etc/group what vipw(8) does for
/etc/master.passwd.
16:28:53 - r275767
(5 days 20 hours ago)
by andrew
Affects: 
(22 files)
/stable/10/lib/libc/arm/string/*
/stable/10/sys/arm/*
/stable/10/sys/libkern/arm/ffs.S
Clean up our ARM assembly:

MFC 275256:

Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by:   ABT Systems Ltd

MFC 275264:

Update _ENTRY to use _EENTRY to reduce the common code.

MFC 275321:

Remove extra labels, ENTRY_NP already provides them.

Sponsored by:   ABT Systems Ltd

MFC 275322:

Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND

Sponsored by:   ABT Systems Ltd

MFC 275416:

Fix the name of the coprocessor to include the "p" prefix, the clang
integrated assembler expects this.

Sponsored by:   ABT Systems Ltd

MFC 275418:

Switch to unified syntax so these can be built with clang 3.5.

Sponsored by:   ABT Systems Ltd

MFC 275519:

Add missing END macros to some of the xscale functions.

Sponsored by:   ABT Systems Ltd

MFC 275520:

Use the unified syntax in a few more assembly files

Sponsored by:   ABT Systems Ltd

MFC 275521:

Set the alignment to 4-bytes after a string as clang 3.5 can switch to
thumb mode if this is incorrect.

Sponsored by:   ABT Systems Ltd

MFC 275522:

Place the literal pool after a RET otherwise clang 3.5 tries to put it too
far away from a ldr psuedo instruction. With this clang will place the
literal value here where it's close enough to be loaded.

Sponsored by:   ABT Systems Ltd

MFC 275523:

Switch to an armv6k cpu, without this clang 3.5 complains "bx lr" is
unsupported as it needs a newer cpu.

Sponsored by:   ABT Systems Ltd

MFC 275524:

Switch to a .cpu directive. These will work when clang 3.5 is imported
where the .arch directive is a nop.

Sponsored by:   ABT Systems Ltd
16:26:19 - r275766
(5 days 20 hours ago)
by jilles
Affects:  /head/bin/sh/output.c
/head/bin/sh/tests/execution/Makefile
/head/bin/sh/tests/execution/set-x4.0
sh: Make sure output suitable as shell input is also printable.

Commands like 'export -p', 'set' and 'trap', and tracing enabled via 'set
-x' generate output suitable as shell input by adding quotes as necessary.

If there are control characters other than newline or invalid UTF-8
sequences, use $'...' and \OOO to display them safely.

The resulting output is not parsable by a strict POSIX.1-2008 shell but sh
from FreeBSD 9.0 and newer and many other shells can parse it.
16:17:48 - r275765
(5 days 20 hours ago)
by des
Affects:  /head/usr.sbin/chkgrp/chkgrp.c
Clean up, reindent, add a special case for NIS / LDAP line

MFC after:      1 week
15:41:56 - r275764
(5 days 21 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/arm/arm/generic_timer.c
MFC 275207:

We don't use the hypervisor interrupt, make it optional in the device tree.

Submitted by:   Julien Grall <julien.grall AT linaro.org>

MFC 275208:

Some device tree configurations place the generic timer under the root
of the tree and not under simplebus. Update the driver to handle this.

Submitted by:   Julien Grall <julien.grall AT linaro.org>
15:33:45 - r275763
(5 days 21 hours ago)
by andrew
Affects: 
(13 files)
/stable/10/sys/boot/*
MFC 273927:

Move the definitions of the fdt functions from a uboot header to a new fdt
header. There is nothing in the fdt spec that ties it to U-Boot.

While here sort and fix the signature of fdt_setup_fdtp.

MFC 273934:

Start to allow platforms other than U-Boot to use the FDT code in loader by
moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This
needs to be a new library for linking to work correctly.

Differential Revision:  https://reviews.freebsd.org/D1054
Reviewed by:    ian, rpaulo (earlier version)
15:03:11 - r275762
(5 days 21 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/boot/fdt/fdt_loader_cmd.c
MFC r273913:

Clean up the types of a few strings to make them const when they are never
written to.

MFC r273914:

The command name is a constant, use the correct type.
14:03:40 - r275761
(5 days 22 hours ago)
by dim
Affects: 
(23 files)
/projects/clang350-import/*
Merge ^/head r275749 through r275758.
13:40:42 - r275760
(5 days 23 hours ago)
by dim
Affects:  /head/contrib/llvm/patches/patch-r275759-clang-r221170-ppc-vaarg.diff
Add clang patch corresponding to r275759.
13:38:10 - r275759
(5 days 23 hours ago)
by dim
Affects:  /head/contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp
Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by:    jhibbits
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D1308
13:32:14 - r275758
(5 days 23 hours ago)
by dim
Affects:  /head/contrib/llvm/patches/patch-r274286-llvm-r201784-asm-dollar.diff
Update patch-r274286-llvm-r201784-asm-dollar.diff, so
test/MC/AsmParser/macros.s is properly deleted when patching.
11:03:22 - r275757
(6 days 1 hour ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.bin/mkimg/mkimg.1
MFC r274495:

Add missing commas to .Xr.

Sponsored by:   The FreeBSD Foundation
10:49:22 - r275756
(6 days 2 hours ago)
by trasz
Affects:  /head/usr.sbin/autofs/common.c
Fix bug that made automount(8) never unmount stale autofs(5) mounts,
ie mounts for entries that were there in auto_master(5), and then
got removed.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
10:37:17 - r275755
(6 days 2 hours ago)
by trasz
Affects:  /head/usr.sbin/autofs/automountd.c
Fix spurious "child process X terminated with exit status 1" messages
from automountd(8).

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:34:55 - r275754
(6 days 3 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/vm/uma_core.c
MFC r275347:
Provide mutual exclusion between zone allocation/destruction and
uma_reclaim().
08:43:13 - r275753
(6 days 4 hours ago)
by kib
Affects:  /head/sys/kern/kern_proc.c
Fix gcc build.

Sponsored by:   The FreeBSD Foundation
MFC after:      13 days

 


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

Page generated in 18 ms, 200 revisions printed. Current time is 2014-12-20 12:52:12. All times are in UTC/GMT.