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 - 10 - 31   (today)
12:21:43 - r273905
( 16 minutes ago)
by markm
Affects: 
(29 files)
/projects/random_number_generator/*
Retire the /dev/random development branch.
12:19:22 - r273904
( 19 minutes ago)
by ae
Affects:  /head/sys/netipsec/key.c
Use in_localip() instead of handmade implementation.

MFC after:      1 week
Sponsored by:   Yandex LLC
11:40:49 - r273903
( 57 minutes ago)
by ae
Affects:  /head/sys/netinet/tcp_syncache.c
Fix typo.
10:45:34 - r273902
(1 hour 53 minutes ago)
by tijl
Affects:  /head/sys/modules/drm2/drm2/Makefile
Build ttm_agp_backend.c.

Reported by:    dumbbell
MFC after:      1 month
10:35:01 - r273901
(2 hours 3 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: drop retval argument from do_dup

It was almost always td_retval anyway.

For the one case where it is not, preserve the old value across the call.
10:25:31 - r273900
(2 hours 13 minutes ago)
by glebius
Affects: 
(2273 files)
/projects/ifnet/*
Merge head r256150 through r273898.
10:18:58 - r273899
(2 hours 19 minutes ago)
by hselasky
Affects:  /head/sys/sys/sysctl.h
Only put one CTASSERT() inside each macro to avoid compile issues.
The problem is that the __LINE__ macro is constant inside a macro and
results in identical assert statements when the compiler does not
support the static builtin assert function.

MFC:            3 days
Sponsored by:   Mellanox Technologies
10:07:56 - r273898
(2 hours 30 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/wlan/if_rsu.c
MFC 258028:
Unbreak build of RSU module.
Use the real product name for Edimax rsu(4) id.
09:56:00 - r273897
(2 hours 42 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
/head/sys/kern/kern_exec.c
filedesc: fix missed comments about fdsetugidsafety

While here just note that both fdsetugidsafety and fdcheckstd take sleepable
locks.
09:51:54 - r273896
(2 hours 46 minutes ago)
by trasz
Affects:  /head/sbin/mount_nfs/Makefile
/head/sbin/mount_nfs/mount_nfs.c
Build mount_nfs(8) with WARNS=6.

Reviewed by:    rmacklem@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:25:28 - r273895
(3 hours 13 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: make fdinit return with source filedesc locked and new one sized
appropriately

Assert FILEDESC_XLOCK_ASSERT only for already used tables in fdgrowtable.
We don't have to call it with the lock held if we are just creating new
filedesc.

As a side note, strictly speaking processes can have fdtables with
fd_lastfile = -1, but then they cannot enter fdgrowtable. Very first file
descriptor they get will be 0 and the only syscall allowing to choose fd number
requires an active file descriptor. Should this ever change, we can add an
'init'
(or similar) parameter to fdgrowtable.
09:19:46 - r273894
(3 hours 18 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: iterate over fd table only once in fdcopy

While here add 'fdused_init' which does not perform unnecessary work.

Drop FILEDESC_LOCK_ASSERT from fdisused and rely on callers to hold
it when appropriate. This function is only used with INVARIANTS.

No functional changes intended.
09:15:59 - r273893
(3 hours 22 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: tidy up fdfree

Implement fdefree_last variant and get rid of 'last' parameter.

No functional changes.
08:14:13 - r273892
(4 hours 24 minutes ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/dev/usb/serial/u3g.c
/stable/9/sys/dev/usb/serial/uftdi.c
/stable/9/sys/dev/usb/usbdevs
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.
08:12:04 - r273891
(4 hours 26 minutes ago)
by hselasky
Affects: 
(7 files)
/stable/9/sys/dev/usb/*
MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR:             145319
08:10:26 - r273890
(4 hours 28 minutes ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/dev/usb/usb_device.c
/stable/9/sys/dev/usb/usb_hub.c
/stable/9/sys/dev/usb/usb_msctest.c
MFC r250986:
Fix some statical clang analyzer warnings.
08:06:21 - r273889
(4 hours 32 minutes ago)
by hselasky
Affects: 
(6 files)
/stable/9/sys/dev/usb/*
MFC r246360:
Fix some nits.
08:00:22 - r273888
(4 hours 38 minutes ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/serial/uftdi.c
/stable/9/sys/dev/usb/serial/uftdi_reg.h
MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.
07:59:07 - r273887
(4 hours 39 minutes ago)
by hselasky
Affects: 
(6 files)
/stable/9/sys/dev/usb/controller/ehci.c
/stable/9/sys/dev/usb/serial/*
/stable/9/sys/dev/usb/wlan/if_upgt.c
MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR:             145319
07:55:42 - r273886
(4 hours 42 minutes ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/usb/serial/u3g.c
/stable/10/sys/dev/usb/serial/uftdi.c
/stable/10/sys/dev/usb/usbdevs
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.
07:51:05 - r273885
(4 hours 47 minutes ago)
by hselasky
Affects: 
(6 files)
/stable/10/sys/dev/usb/*
MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR:             145319
07:41:28 - r273884
(4 hours 57 minutes ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/serial/uftdi.c
/stable/10/sys/dev/usb/serial/uftdi_reg.h
MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.
07:38:49 - r273883
(4 hours 59 minutes ago)
by hselasky
Affects: 
(5 files)
/stable/10/sys/dev/usb/controller/ehci.c
/stable/10/sys/dev/usb/serial/*
/stable/10/sys/dev/usb/wlan/if_upgt.c
MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR:             145319
07:33:56 - r273882
(5 hours 4 minutes ago)
by hselasky
Affects: 
(11 files)
/stable/10/share/man/man4/*
/stable/10/sys/*
MFC r271159, r271168 and r271680:
Add USB LED driver for the Dream Cheeky WebMail Notifier.
07:18:27 - r273881
(5 hours 20 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/drivers/net/mlx4/en_netdev.c
MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by:   Mellanox Technologies
07:08:32 - r273880
(5 hours 30 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/net/mlx4/mcg.c
MFC r273867:
Fix compile warning by removing unused variable.

Sponsored by:   Mellanox Technologies
07:04:25 - r273879
(5 hours 34 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c
MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by:   Mellanox Technologies
05:41:27 - r273878
(6 hours 57 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: tidy up fdcopy a little bit

Test for file availability by fde_file != NULL instead of fdisused, this is
consistent with similar checks later.

Drop badfileops check. badfileops don't have DFLAG_PASSABLE set, so it was never
reached in practice.

fdiused is now only used in some KASSERTS, so ifdef it under INVARIANTS.

No functional changes.
04:01:10 - r273877
(8 hours 37 minutes ago)
by araujo
Affects: 
(2 files)
/stable/10/sys/fs/nfsserver/nfs_nfsdsubs.c
MFC r273159:
Add two sysctl(8) to enable/disable NFSv4 server to check when setting
user nobody and/or setting group nogroup as owner of a file or directory.
Usually at the client side, if there is an username that is not in the
client's passwd database, some clients will send 'nobody@<your.dns.domain>'
in the wire and the NFSv4 server will treat it as an ERROR.
However, if you have a valid user nobody in your passwd database,
the NFSv4 server will treat it as a NFSERR_BADOWNER as its believes the
client doesn't has the username mapped.

Submitted by:   Loic Blot <loic.blot@unix-experience.fr>
Reviewed by:    rmacklem
Approved by:    rmacklem
Sponsored by:   QNAP Systems Inc.
2014 - 10 - 30   (yesterday)
23:47:28 - r273876
(12 hours 51 minutes ago)
by hiren
Affects:  /head/sys/mips/conf/PICOSTATION_M2HP.hints
Use search method instead of fixed offsets for finding rootfs. This unbreaks
recent images for picostation by allowing to find rootfs at correct location.

Suggested by: loos
MFC after:      1 month
22:47:32 - r273875
(13 hours 51 minutes ago)
by mjg
Affects:  /head/sys/sys/param.h
Bump FreeBSD_version due to syscall*_register API changes in r273707
22:21:12 - r273874
(14 hours 17 minutes ago)
by gjb
Affects:  /releng/10.1/sys/conf/newvers.sh
Update releng/10.1 to -RC4 as part of the 10.1-RELEASE cycle.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
22:07:29 - r273873
(14 hours 31 minutes ago)
by jmmv
Affects:  /head/share/mk/bsd.progs.mk
Use the right depend file for each program.

bsd.progs.mk generates a separate depend file for every program being
built, but then it does not properly tell each submake to use those
individual files.  Properly propagate the depend file to use.

Discovered while preparing the update of atf to 0.21 and noticing that
the test programs were not being relinked to the new library.

This change is "make tinderbox" clean.
21:21:53 - r273872
(15 hours 16 minutes ago)
by markm
Affects: 
(52 files)
/head/*
This is the much-discussed major upgrade to the random(4) device, known to you
all as /dev/random.

This code has had an extensive rewrite and a good series of reviews, both by
the author and other parties. This means a lot of code has been simplified.
Pluggable structures for high-rate entropy generators are available, and it is
most definitely not the case that /dev/random can be driven by only a hardware
souce any more. This has been designed out of the device. Hardware sources are
stirred into the CSPRNG (Yarrow, Fortuna) like any other entropy source.
Pluggable modules may be written by third parties for additional sources.

The harvesting structures and consequently the locking have been simplified.
Entropy harvesting is done in a more general way (the documentation for this
will follow). There is some GREAT entropy to be had in the UMA allocator, but
it is disabled for now as messing with that is likely to annoy many people.

The venerable (but effective) Yarrow algorithm, which is no longer supported by
its authors now has an alternative, Fortuna. For now, Yarrow is retained as the
default algorithm, but this may be changed using a kernel option. It is
intended to make Fortuna the default algorithm for 11.0. Interested parties are
encouraged to read ISBN 978-0-470-47424-2 "Cryptography Engineering" By
Ferguson, Schneier and Kohno for Fortuna's gory details. Heck, read it anyway.

Many thanks to Arthur Mesh who did early grunt work, and who got caught in the
crossfire rather more than he deserved to.

My thanks also to folks who helped me thresh this out on whiteboards and in the
odd "Hallway track", or otherwise.

My Nomex pants are on. Let the feedback commence!

Reviewed by:    trasz,des(partial),imp(partial?),rwatson(partial?)
Approved by:    so(des)
17:58:57 - r273871
(18 hours 39 minutes ago)
by jhb
Affects:  /head/sys/i386/i386/machdep.c
Skip the smap sysctl instead of panicing if no kernel metadata can be
found.

Submitted by:   bde
MFC after:      3 days
17:14:51 - r273870
(19 hours 23 minutes ago)
by jmmv
Affects:  /vendor/atf/atf-0.21
Tag import of atf-0.21.
17:14:07 - r273869
(19 hours 24 minutes ago)
by jmmv
Affects: 
(200 files)
/vendor/atf/dist/*
Import atf-0.21:

Released on October 23rd, 2014.

* Restored the atf(7) manual page to serve as a reference to all the other
  manual pages shipped by ATF.

* Added the -s flag to atf-sh to support specifying the shell interpreter
  to be used.

* Removed ATF_WORKDIR.  The only remaining consumers have been converted to
  use the standard TMPDIR environment variable.  As a benefit, and because
  Kyua forces the TMPDIR to live within the test case's work directory,
  any stale files left behind by ATF will be automatically cleaned up.

* Documented the environment variables recognized by each component in the
  relevant manual pages.  This information was lost with the atf-config(1)
  removal.

* Added a new "require.diskspace" metadata property to test cases so that
  they can specify the minimum amount of disk space required for the test
  to run.

* Renamed the atf-{c,c++,sh}-api(3) manual pages to atf-{c,c++,sh}(3) for
  discoverability purposes.  Symbolic links are provided for the time
  being to still make the old names visible.

* Issue #5: Recommend the (expected, actual) idiom for calls to the test
  macros in the manual pages.

* Issue #7: Stopped catching unhandled exceptions in atf-c++ tests.  This
  propagates the crash to the caller, which in turn allows it to obtain
  proper debugging information.  In particular, Kyua should now be able to
  extract a stacktrace pinpointing the problem.

* Issue #8: Fixed atf-c/macros_test:use test failures spotted by the clang
  that ships with FreeBSD 11.0-CURRENT.

* Issue #12: Improved documentation of atf-sh(3) and atf-check(1) by better
  explaining how they relate to each other.

* Issue #14: Stopped setting 'set -e' in atf-sh.  This setting was
  initially added as a way to enable a "strict" mode in the library and to
  make test cases fail fast when they run unprotected commands.  However,
  doing so in the library is surprising as the responsibility of enabling
  'set -e' should be on the user's code.  Also, 'set -e' introduces
  inconsistent behavior on subshells and users do not expect that.

* Issue #15: Fixed atf_utils_{fork,wait} to support nested calls.

* Issue #16: Fixed test failures (by removing a long-standing hack) on
  systems that lack \e support in printf(1).

* Issue #19: Removed stale references to atf-config and atf-run.
17:05:32 - r273868
(19 hours 33 minutes ago)
by hselasky
Affects: 
(36 files)
/stable/9/sys/contrib/rdma/krping/krping.c
/stable/9/sys/dev
/stable/9/sys/ofed/*
MFC r273135 and r273867:
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard.
- Fix compile warnings regarding unsigned enums.
- Fix compile warning regarding unused variable.
- Add two new sysctl nodes.
- Remove all empty linux header files.
- Make an error printout more verbose.
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.
- Don't forget to add "options OFED" to
  the kernel configuration file before
  using infiniband.

Sponsored by:   Mellanox Technologies
16:57:56 - r273867
(19 hours 40 minutes ago)
by hselasky
Affects:  /head/sys/ofed/drivers/net/mlx4/mcg.c
Fix compile warning by removing unused variable.

MFC:            3 days
Sponsored by:   Mellanox Technologies
16:26:17 - r273866
(20 hours 12 minutes ago)
by jpaetzel
Affects:  /head/sys/sys/buf_ring.h
Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:   oleg
Reviewed by:    kmacy
MFC after:      2 weeks
Tested by:      kmacy,rpaulo
15:52:01 - r273865
(20 hours 46 minutes ago)
by ambrisko
Affects:  /head/sbin/fsck_msdosfs/boot.c
/head/sbin/fsck_msdosfs/dosfs.h
/head/sys/boot/amd64/boot1.efi/boot1.c
Make UEFI booting of 4Kn disks work:
      - convert boot1.efi to corrrectly calculate the lba for what the
        media reports and convert the size based on what FreeBSD uses.
        The existing code would use the 512 byte lba and convert the
        size using 4K byte size.
      - make fsck_msdosfs read the boot block as 4K so the read doesn't
        fail on a 4Kn drive since FreeBSD will error out parition reads
        of a block.  Make the bpbBytesPerSec check a multiple of 512 since
        it can be 512 or 4K depending on the disk.  This allows fsck to
        pass checking the EFI partition on a 4Kn disk.

To create the EFI file system I used:
        newfs_msdos -F 32 -S 4096 -c 1 -m 0xf8 <partition>
This works for booting 512 and 4Kn disks.

Caveat is that loader.efi cannot read the 4Kn EFI partition.  This isn't
critical right now since boot1.efi will read loader.efi from the ufs
partition.  It looks like loader.efi can be fixed via making some of the
512 bytes reads more flexible.  loader.efi doesn't have trouble reading
the ufs partition.  This is probably a simple fix.

I now have FreeBSD installed on a system with 4Kn drives and tested the
same code works on 512.

MFC after:      1 week
15:41:25 - r273864
(20 hours 57 minutes ago)
by hselasky
Affects: 
(232 files)
/stable/9/contrib/ofed/*
/stable/9/sys/*
MFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
  r255969, r256179, r230135, r254121, r255932, r255972, r255973, r256281,
  r256470, r257867, r259608, r269862, r271127, r272407, r257864, r256682,
  r258276, r254734, r247675, r254735 and r272683:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by:   Mellanox Technologies
14:36:27 - r273863
(22 hours 2 minutes ago)
by tijl
Affects:  /head/sys/dev/agp/agp.c
Avoid possible overflow in agp_generic_alloc_memory.

MFC after:      1 week
14:26:36 - r273862
(22 hours 12 minutes ago)
by tijl
Affects: 
(7 files)
/head/sys/dev/drm2/drm_agpsupport.c
/head/sys/dev/drm2/radeon/*
/head/sys/dev/drm2/ttm/*
Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support
in the radeonkms driver.

Note: In PCI mode virtual addresses on the graphics card that map to system
RAM are translated to physical addresses by the graphics card itself.   In
AGP mode address translation is done by the AGP chipset so fictitious
addresses appear on the system bus.  For the CPU cache management to work
correctly when the CPU accesses this memory it needs to use the same
fictitious addresses (and let the chipset translate them) instead of using
the physical addresses directly.

Reviewed by:    kib
MFC after:      1 month
14:05:48 - r273861
(22 hours 32 minutes ago)
by trasz
Affects:  /head/sbin/mount_nfs/mount_nfs.c
Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
13:59:28 - r273860
(22 hours 39 minutes ago)
by ae
Affects: 
(4 files)
/stable/9/sys/net/if_gif.c
/stable/9/sys/netinet/ip_gre.c
MFC r272770 (modified version):
  When tunneling interface is going to insert mbuf into netisr queue after
stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR:             174602
Sponsored by:   Yandex LLC
13:53:57 - r273859
(22 hours 44 minutes ago)
by ae
Affects: 
(3 files)
/stable/10/sys/net/if_gif.c
/stable/10/sys/netinet/ip_gre.c
MFC r272770:
  When tunneling interface is going to insert mbuf into netisr queue after
stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR:             174602
Sponsored by:   Yandex LLC
12:44:46 - r273858
(23 hours 53 minutes ago)
by ae
Affects:  /head/sys/netinet6/in6_ifattach.c
Remove redundant code.
if_detach already did these steps. Also, now we didn't keep routes to link-local
addresses.

Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
11:34:07 - r273857
(1 day 1 hour ago)
by ae
Affects:  /head/sys/netinet6/in6_mcast.c
Move ifq drain into in6m_purge().

Suggested by:   bms
MFC after:      1 week
Sponsored by:   Yandex LLC
11:27:03 - r273856
(1 day 1 hour ago)
by tijl
Affects:  /head/sys/dev/agp/agp.c
/head/sys/dev/agp/agpvar.h
Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
of pages into the GTT.

Reviewed by:    kib
MFC after:      1 month
10:59:57 - r273855
(1 day 1 hour ago)
by ae
Affects:  /head/sys/netinet6/in6_mcast.c
Fix mbuf leak in IPv6 multicast code.
When multicast capable interface goes away, it leaves multicast groups,
this leads to generate MLD reports, but MLD code does deffered send and
MLD reports are queued in the in6_multi's in6m_scq ifq. The problem is
that in6_multi structures are freed when interface leaves multicast groups
and thread that does deffered send will not take these queued packets.

PR:             194577
MFC after:      1 week
Sponsored by:   Yandex LLC
10:56:38 - r273854
(1 day 1 hour ago)
by trasz
Affects:  /head/lib/libc/posix1e/acl.3
Update acl(3) to expand on NFSv4 ACL support.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
10:49:50 - r273853
(1 day 1 hour ago)
by trasz
Affects: 
(7 files)
/head/lib/libc/posix1e/*
Make it clear that ACL flags are NFSv4-only.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:25:03 - r273852
(1 day 3 hours ago)
by trasz
Affects:  /head/sys/fs/nfsclient/nfs_clvfsops.c
Fix handling of "conn" mount_nfs(8) option.

Reviewed by:    rmacklem@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:06:52 - r273851
(1 day 3 hours ago)
by trasz
Affects:  /head/sbin/mount_nfs/mount_nfs.8
Note that the "timeout" nfs option is in tenths of a second.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
08:53:56 - r273850
(1 day 3 hours ago)
by jch
Affects: 
(5 files)
/head/sys/netinet/*
Fix a race condition in TCP timewait between tcp_tw_2msl_reuse() and
tcp_tw_2msl_scan().  This race condition drives unplanned timewait
timeout cancellation.  Also simplify implementation by holding inpcb
reference and removing tcptw reference counting.

Differential Revision:  https://reviews.freebsd.org/D826
Submitted by:           Marc De la Gueronniere <mdelagueronniere@verisign.com>
Submitted by:           jch
Reviewed By:            jhb (mentor), adrian, rwatson
Sponsored by:           Verisign, Inc.
MFC after:              2 weeks
X-MFC-With:             r264321
08:50:01 - r273849
(1 day 3 hours ago)
by trasz
Affects:  /head/sbin/mount_nfs/mount_nfs.8
/head/sbin/mount_nfs/mount_nfs.c
/head/sys/fs/nfsclient/nfs_clvfsops.c
Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Reviewed by:    rmacklem@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
08:05:51 - r273848
(1 day 4 hours ago)
by trasz
Affects:  /head/sbin/mount_nfs/mount_nfs.c
Get rid of obsolete code in mount_nfs(8).

Reviewed by:    rmacklem@
Sponsored by:   The FreeBSD Foundation
08:04:48 - r273847
(1 day 4 hours ago)
by hselasky
Affects: 
(9 files)
/stable/10/sys/*
MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

Sponsored by:   Mellanox Technologies
08:03:26 - r273846
(1 day 4 hours ago)
by matthew
Affects:  /svnadmin/conf/access
Take kientzle's commit bit in for safe keeping at his request.

Approved by:    core
07:21:38 - r273845
(1 day 5 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: make sure to force table reload in fget_unlocked when count == 0

This is a fixup to r273843.
06:54:25 - r273844
(1 day 5 hours ago)
by jmg
Affects:  /head/usr.bin/hexdump/hexdump.1
fix spelling of offset since that is what is used in the body...
05:21:12 - r273843
(1 day 7 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
filedesc: microoptimize fget_unlocked by retrying obtaining reference count
without restarting whole lookup

Restart is only needed when fp was closed by current process, which is a much
rarer event than ref/deref by some other thread.
05:10:33 - r273842
(1 day 7 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
/head/sys/sys/filedesc.h
filedesc: get rid of atomic_load_acq_int from fget_unlocked

A read barrier was necessary because fd table pointer and table size were
updated separately, opening a window where fget_unlocked could read new size
and old pointer.

This patch puts both these fields into one dedicated structure, pointer to which
is later atomically updated. As such, fget_unlocked only needs data a dependency
barrier which is a noop on all supported architectures.

Reviewed by:    kib (previous version)
MFC after:      2 weeks
2014 - 10 - 29   (2 days ago)
23:10:48 - r273841
(1 day 13 hours ago)
by jilles
Affects: 
(2 files)
/stable/10/sys/netinet/in.h
MFC r266842: netinet/in.h: Expose htonl(), htons(), ntohl() and ntohs() in
strict POSIX mode.

Put the htonl(), htons(), ntohl() and ntohs() declarations under
__POSIX_VISIBLE >= 200112. POSIX.1-2001 and newer require these to be
exposed from <netinet/in.h> (as well as <arpa/inet.h>).

Note that it may be unnecessary to check __POSIX_VISIBLE >= 200112 because
older versions of POSIX and the C standard do not define this header.
However, other places in the same file already perform the check.

PR:             188316
Submitted by:   Christian Neukirchen
22:55:16 - r273840
(1 day 13 hours ago)
by jilles
Affects: 
(2 files)
/stable/10/sys/sys/fcntl.h
MFC r264628: fcntl.h: Make visible various POSIX.1-2008 features.

Also, remove #if __BSD_VISIBLE where it is redundant. When __BSD_VISIBLE is
defined to 1, __POSIX_VISIBLE, __XSI_VISIBLE and __ISO_C_VISIBLE are also
defined to the newest supported version.

PR:             188173
22:22:24 - r273839
(1 day 14 hours ago)
by delphij
Affects:  /head/ObsoleteFiles.inc
.a's are installed in /usr/lib, don't delete them.
22:17:45 - r273838
(1 day 14 hours ago)
by sbruno
Affects: 
(5 files)
/stable/10/share/man/man4/tcp.4
/stable/10/sys/netinet/*
MFC r272720, 273061, 273062, 273063, 273064

Implement PLPMTUD blackhole detection (RFC 4821), inspired by code
from xnu sources.  If we encounter a network where ICMP is blocked
the Needs Frag indicator may not propagate back to us.  Attempt to
downshift the mss once to a preconfigured value.

Note, this is turned off by default.
20:18:37 - r273837
(1 day 16 hours ago)
by dim
Affects:  /head/lib/libutil/login_class.c
Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by:    kib
MFC after:      3 days
19:44:34 - r273836
(1 day 16 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/amd64/mk-openstack.sh
/projects/release-vmimage/release/i386/mk-openstack.sh
Fix output file name for openstack images.
No further conversion is necessary for this
VM file target, so there is no need to append
the '.raw' suffix here.

Sponsored by:   The FreeBSD Foundation
19:21:20 - r273835
(1 day 17 hours ago)
by jkim
Affects:  /head/usr.bin/top/machine.c
Replace a magic number with the proper definition.  This change actually
fixes broken state field after r273266, i.e., "CPU-1" was displayed in place
of "RUN".
18:01:09 - r273834
(1 day 18 hours ago)
by jhb
Affects:  /head/usr.sbin/etcupdate/etcupdate.8
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

Reviewed by:    adrian
MFC after:      3 days
17:04:09 - r273833
(1 day 19 hours ago)
by gjb
Affects: 
(4 files)
/projects/release-vmimage/release/*
Initial commit providing a mechanism to create
openstack images as part of the release build.

This mimics the way Microsoft Azure images are
built, with the addition of installing the
net/cloud-init package and adding a (commented)
rc.conf(5) entry for cloudinit.

Sponsored by:   The FreeBSD Foundation
16:49:28 - r273832
(1 day 19 hours ago)
by neel
Affects: 
(3 files)
/releng/10.1/sys/amd64/amd64/pmap.c
/releng/10.1/sys/amd64/vmm/vmm_ioport.c
MFS10 r273573, MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.

MFS10 r273807, MFC r273666:
Don't pass the 'error' return from an I/O port handler directly to vm_run().

Approved by:    re (kib)
16:48:18 - r273831
(1 day 19 hours ago)
by nwhitehorn
Affects: 
(13 files)
/stable/10/usr.sbin/bsdinstall/partedit/*
/stable/10/usr.sbin/bsdinstall/scripts/*
MFC r271539,273003,273005:

Add ZFS support to the bsdinstall partition editor and sade

Submitted by:   Kurt Lidl (original version)
16:41:20 - r273830
(1 day 19 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/arm/arm/locore.S
MFC r273288:

 Allow the armv6 kernel to be build with PHYSADDR undefined. The kernel
 will now find the virtual to physical mapping for libkvm to use at
 runtime. This makes PHYSADDR redundant, however keep it around to give
 everyone a chance to update their libkvm.
16:38:13 - r273829
(1 day 20 hours ago)
by andrew
Affects: 
(2 files)
/stable/10/sys/conf/Makefile.arm
MFC r273287:

 Only build the ARM tranpoline when KERNPHYSADDR is defined as it is
 otherwise unneeded in armv6 kernels.
16:36:08 - r273828
(1 day 20 hours ago)
by andrew
Affects: 
(4 files)
/stable/10/lib/libkvm/kvm_arm.c
/stable/10/sys/arm/arm/dump_machdep.c
/stable/10/sys/sys/elf_common.h
MFC r273284:

 Allow libkvm to get the kernel va to pa delta without the need for
 physaddr. This should allow for a kernel where PHYSADDR and KERNPHYSADDR
 are both undefined.

 For now libkvm will use the old method of reading physaddr and kernaddr
 to allow it to work with old kernels. This could be removed in the future
 when enough time has passed.
16:24:02 - r273827
(1 day 20 hours ago)
by andrew
Affects: 
(6 files)
/stable/10/lib/libc/arm/aeabi/aeabi_vfp.h
/stable/10/lib/msun/arm/fenv.c
/stable/10/sys/arm/*
MFC r269956:

 From https://sourceware.org/ml/newlib/2014/msg00113.html
 By Richard Earnshaw at ARM
 >
 >GCC has for a number of years provides a set of pre-defined macros for
 >use with determining the ISA and features of the target during
 >pre-processing.  However, the design was always somewhat cumbersome in
 >that each new architecture revision created a new define and then
 >removed the previous one.  This meant that it was necessary to keep
 >updating the support code simply to recognise a new architecture being
 >added.
 >
 >The ACLE specification (ARM C Language Extentions)
 >(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.set.swdev/index.html)
 >provides a much more suitable interface and GCC has supported this
 >since gcc-4.8.
 >
 >This patch makes use of the ACLE pre-defines to map to the internal
 >feature definitions.  To support older versions of GCC a compatibility
 >header is provided that maps the traditional pre-defines onto the new
 >ACLE ones.

 Stop using __FreeBSD_ARCH_armv6__ and switch to __ARM_ARCH >= 6 in the
 couple of places in tree. clang already implements ACLE. Add a define
 that says we implement version 1.1, even though the implementation
 isn't quite complete.
16:20:49 - r273826
(1 day 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/amd64/mk-azure.sh
/projects/release-vmimage/release/i386/mk-azure.sh
Remove a few vestiges of passing an exit code to
panic().

Sponsored by:   The FreeBSD Foundation
16:18:29 - r273825
(1 day 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile.vm
/projects/release-vmimage/release/amd64/mk-azure.sh
/projects/release-vmimage/release/i386/mk-azure.sh
Avoid hard-coding the Azure image file format.
While here, avoid using OSRELEASE for the output
file name.

Sponsored by:   The FreeBSD Foundation
15:52:17 - r273824
(1 day 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/Makefile.vm
Add glue to allow enabling building cloud provider
VM images by default.

When WITH_CLOUDWARE is not empty, add CLOUDTARGETS
to the release/Makefile 'release' target.

CLOUDTARGETS is generated from the contents of
CLOUDWARE, which should be a list of all supported
target providers.

Sponsored by:   The FreeBSD Foundation
14:57:30 - r273823
(1 day 21 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/Makefile.vm
Move virtual machine / cloud provider targets and
options from release/Makefile to their own Makefile.

Sponsored by:   The FreeBSD Foundation
12:22:32 - r273822
(2 days ago)
by trasz
Affects:  /head/usr.bin/iscsictl/token.l
/head/usr.sbin/ctld/token.l
Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
12:12:27 - r273821
(2 days ago)
by trasz
Affects:  /head/usr.sbin/ctld/parse.y
Keep the token list sorted.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
12:10:39 - r273820
(2 days ago)
by trasz
Affects:  /head/usr.sbin/ctld/parse.y
/head/usr.sbin/ctld/token.l
Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
        lun 0 { path /foo/bar; size 4G; }
}

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
11:47:04 - r273819
(2 days ago)
by ae
Affects: 
(4 files)
/stable/9/sbin/dumpon/dumpon.8
/stable/9/sys/geom/geom_dev.c
MFC r272746:
  Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.
11:11:54 - r273818
(2 days 1 hour ago)
by smh
Affects: 
(2 files)
/releng/10.1/sys/cam/ata/ata_da.c
MFS10 r273814
MFC r273704

Fix ATA CF ERASE breakage caused by 268205

PR:             194606
Approved by:    re (marius)
Sponsored by:   Multiplay
11:07:40 - r273817
(2 days 1 hour ago)
by ae
Affects: 
(3 files)
/stable/10/sbin/dumpon/dumpon.8
/stable/10/sys/geom/geom_dev.c
MFC r272746:
  Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.
09:36:02 - r273816
(2 days 3 hours ago)
by trasz
Affects:  /head/usr.sbin/ctld/ctld.c
/head/usr.sbin/ctld/ctld.h
/head/usr.sbin/ctld/parse.y
Simplify code; no functional changes.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:32:36 - r273815
(2 days 3 hours ago)
by pluknet
Affects: 
(2 files)
/stable/10/contrib/pf/authpf/authpf.8
MFC r261271:

  Ressurect the local change documenting
  authpf's requirement for a mounted fdescfs(5).

PR:             docs/186250
09:27:24 - r273814
(2 days 3 hours ago)
by smh
Affects: 
(2 files)
/stable/10/sys/cam/ata/ata_da.c
MFC: r273704

Fix CF ERASE breakage caused by 268205.

Sponsored by:   Multiplay
09:26:55 - r273813
(2 days 3 hours ago)
by trasz
Affects: 
(7 files)
/head/usr.sbin/ctld/*
Add discovery-filter.  This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.

Reviewed by:    mav@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:06:05 - r273812
(2 days 3 hours ago)
by markm
Affects: 
(69 files)
/projects/random_number_generator/*
MFC - tracking commit.
Merging r273783 through r273811.
06:24:12 - r273811
(2 days 6 hours ago)
by np
Affects:  /head/contrib/ofed/librdmacm/examples/rping.c
rping: make sure that the CQ event thread can never poll a CQ after it
has been destroyed.

Submitted by:   Hariprasad at Chelsio dot com
Sponsored by:   Chelsio Communications
04:32:46 - r273810
(2 days 8 hours ago)
by ngie
Affects:  /head/share/mk/bsd.test.mk
Fix the logic inversion in the previous commit by ensuring that the matched
expression (:M) is empty, not the not matched (:N) is empty. The former case
means we have not found the TEST_SUBDIR value in SUBDIR

Reported by: rodrigc
X-MFC with: r273803
Pointyhat to: me (did not use a clean install root)
Sponsored by: EMC / Isilon Storage Division
03:14:29 - r273809
(2 days 9 hours ago)
by mav
Affects: 
(4 files)
/head/sys/cam/ctl/*
/head/sys/cam/scsi/scsi_all.c
Implement better handling for ENOSPC error for both CTL and CAM.

This makes VMWare VAAI Thin Provisioning Stun primitive activate, pausing
the virtual machine, when backing storage (ZFS pool) is getting overflowed.

MFC after:      1 week
Sponsored by:   iXsystems, Inc.
02:23:50 - r273808
(2 days 10 hours ago)
by jmg
Affects:  /head/sys/dev/safe/safe.c
make this compile on arm...  bus_size_t is not size_t, and it has
different sizes on different arches...
01:54:37 - r273807
(2 days 10 hours ago)
by neel
Affects: 
(2 files)
/stable/10/sys/amd64/vmm/vmm_ioport.c
MFC r273666.
Don't pass the 'error' return from an I/O port handler directly to vm_run().
01:15:48 - r273806
(2 days 11 hours ago)
by np
Affects: 
(24 files)
/head/contrib/ofed/libcxgb4/*
/head/contrib/ofed/usr.lib/*
Userspace library for Chelsio's Terminator 5 based iWARP RNICs (pretty
much every T5 card that does _not_ have "-SO" in its name is RDMA
capable).

This plugs into the OFED verbs framework and allows userspace RDMA
applications to work over T5 RNICs.  Tested with rping.

Obtained from:  Chelsio Communications
Relnotes:       Yes
Sponsored by:   Chelsio Communications
00:27:02 - r273805
(2 days 12 hours ago)
by mav
Affects: 
(3 files)
/stable/10/share/man/man4/ada.4
/stable/10/share/man/man4/da.4
MFC r273457: Document sort_io_queue sysctls/tunables.
2014 - 10 - 28   (3 days ago)
23:32:05 - r273804
(2 days 13 hours ago)
by emaste
Affects:  /user/dchagin/lemul/sys/modules/linux64/Makefile
Add linux_timer.c from HEAD r271743
23:01:09 - r273803
(2 days 13 hours ago)
by ngie
Affects:  /head/share/mk/bsd.test.mk
Filter out TESTS_SUBDIRS already added to SUBDIR instead of blindly
appending the TESTS_SUBDIRS variable to SUBDIR

Duplicate directory entries can cause unexpected side effects, like
installing the same files multiple times. This can be easily
reproduced via the following testcase prior to this commit:

  SUBDIR= dir
  TESTS_SUBDIRS+= dir

  .include <bsd.test.mk>

Sponsored by: EMC / Isilon Storage Division
22:14:31 - r273802
(2 days 14 hours ago)
by jilles
Affects: 
(4 files)
/head/bin/sh/expand.c
/head/bin/sh/tests/parameters/*
Treat IFS separators in "$*" as quoted.

This makes a difference if IFS starts with *, ?, [ or a CTL* byte.
21:06:04 - r273801
(2 days 15 hours ago)
by emaste
Affects:  /user/dchagin/lemul/sys/amd64/linux/linux_sysvec.c
Apply r267563 to the 64-bit linuxolator

The "new ELF branding type" change originated in the lemul branch and
was later committed to HEAD and then reverted, leaving the 64-bit
linuxolator version of the change in the branch.  Revert it now.
19:17:44 - r273800
(2 days 17 hours ago)
by jhb
Affects: 
(7 files)
/head/sys/*
Rework virtual machine hypervisor detection.
- Move the existing code to x86/x86/identcpu.c since it is x86-specific.
- If the CPUID2_HV flag is set, assume a hypervisor is present and query
  the 0x40000000 leaf to determine the hypervisor vendor ID.  Export the
  vendor ID and the highest supported hypervisor CPUID leaf via
  hv_vendor[] and hv_high variables, respectively.  The hv_vendor[]
  array is also exported via the hw.hv_vendor sysctl.
- Merge the VMWare detection code from tsc.c into the new probe in
  identcpu.c.  Add a VM_GUEST_VMWARE to identify vmware and use that in
  the TSC code to identify VMWare.

Differential Revision:  https://reviews.freebsd.org/D1010
Reviewed by:    delphij, jkim, neel
18:33:59 - r273799
(2 days 18 hours ago)
by loos
Affects: 
(15 files)
/head/sys/arm/*
/head/sys/mips/*
/head/sys/powerpc/wii/wii_gpio.c
Make the GPIO children attach to the first unit available and not only to
unit 0.

It seems that this 'simplification' was copied to all GPIO drivers in tree.

This fix a bug where a GPIO controller could fail to attach its children
(gpioc and gpiobus) if another GPIO driver attach first.
18:19:22 - r273798
(2 days 18 hours ago)
by des
Affects: 
(2 files)
/stable/9/contrib/openpam/lib/libpam/openpam_readword.c
Merge upstream r825: fix line continuation in whitespace
18:10:57 - r273797
(2 days 18 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_cpl_io.c
Always request a completion for every work request for iWARP.  The
initial MPA exchange must be tracked this way so that t4_tom's state for
the tid is all clean at the time the tid transitions to RDMA mode.  Once
it does, t4_tom is out of the way and iw_cxgbe uses the qp endpoints
directly.

Sponsored by:   Chelsio Communications
17:52:26 - r273796
(2 days 18 hours ago)
by brooks
Affects: 
(6 files)
/head/contrib/mtree/*
Import in latest mtree from NetBSD to fix a bug in parsing group files
that jmg fixed upstream.

MFC after:      1 week
Sponsored by:   DARPA, AFRL
17:32:49 - r273795
(2 days 19 hours ago)
by emaste
Affects:  /user/dchagin/lemul/sys/modules/linux64/Makefile
Remove duplicated linux_time.c
17:13:48 - r273794
(2 days 19 hours ago)
by emaste
Affects:  /user/dchagin/lemul/sys/modules/linux/Makefile
Fix build by removing dangling \
17:11:51 - r273793
(2 days 19 hours ago)
by trasz
Affects:  /head/usr.sbin/ctld/ctl.conf.5
Document iSNS defaults.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
17:08:13 - r273792
(2 days 19 hours ago)
by markm
Affects: 
(9 files)
/projects/random_number_generator/ObsoleteFiles.inc
/projects/random_number_generator/etc/mtree/BSD.debug.dist
/projects/random_number_generator/usr.sbin/*
MFC - Tracking commit.
Merging r273776 through r273782.
16:27:29 - r273791
(2 days 20 hours ago)
by bapt
Affects:  /head/lib/libutil/gr_util.c
/head/usr.sbin/pw/tests/pw_modify.sh
Fix renaming a group via the gr_copy function

Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod

PR:             187189
Reported by:    mcdouga9@egr.msu.edu
Tested by:      mcdouga9@egr.msu.edu
Patch by:       Marc de la Gueronniere
16:24:44 - r273790
(2 days 20 hours ago)
by brooks
Affects:  /vendor/NetBSD/mtree/20141028
Tag 2014-10-28 import of NetBSD's mtree(8)
16:24:07 - r273789
(2 days 20 hours ago)
by brooks
Affects: 
(5 files)
/vendor/NetBSD/mtree/dist/*
Vendor import of NetBSD's mtree(8) at 2014-10-28
16:19:02 - r273788
(2 days 20 hours ago)
by jkim
Affects:  /head/share/man/man9/Makefile
Actually install casuword(9) to fix build.
15:46:22 - r273787
(2 days 20 hours ago)
by bapt
Affects:  /head/usr.sbin/pw/pw_user.c
/head/usr.sbin/pw/tests/pw_delete.sh
Ensure pw userdel -u <invalid> do not try to remove root

Check the uid passed is actually a number as early as possible

MFC after:      1 week
15:33:15 - r273786
(2 days 21 hours ago)
by bapt
Affects:  /head/usr.sbin/pw/tests/pw_delete.sh
Fix atf syntax
15:30:33 - r273785
(2 days 21 hours ago)
by kib
Affects:  /head/sys/kern/kern_umtx.c
Convert kern_umtx.c to use fueword() and casueword().

Also fix some mishandling of suword(9) errors as errno, which resulted
in spurious ERESTART.

Sponsored by:   The FreeBSD Foundation
Tested by:      pho
MFC after:      3 weeks
15:28:20 - r273784
(2 days 21 hours ago)
by kib
Affects: 
(6 files)
/head/sys/*
Replace some calls to fuword() by fueword() with proper error checking.

Sponsored by:   The FreeBSD Foundation
Tested by:      pho
MFC after:      3 weeks
15:22:13 - r273783
(2 days 21 hours ago)
by kib
Affects: 
(11 files)
/head/share/man/man9/*
/head/sys/*
Add fueword(9) and casueword(9) functions.  They are like fuword(9)
and casuword(9), but do not mix value read and indication of fault.

I know (or remember) enough assembly to handle x86 and powerpc.  For
arm, mips and sparc64, implement fueword() and casueword() as wrappers
around fuword() and casuword(), which means that the functions cannot
distinguish between -1 and fault.

On architectures where fueword() and casueword() are native, implement
fuword() and casuword() using fueword() and casuword(), to reduce
assembly code duplication.

Sponsored by:   The FreeBSD Foundation
Tested by:      pho
MFC after:      2 weeks (ia64 needs treating)
14:54:04 - r273782
(2 days 21 hours ago)
by bapt
Affects:  /head/usr.sbin/pw/pw_group.c
/head/usr.sbin/pw/tests/pw_delete.sh
Do not delete the group wheel when bad argument is passed to pw groupdel -g

Check that the -g argument is actually a number, if not report an error.
This argument is converted without checking with atoi(3) later so without this
check it converts any alpha entries into 0 meaning it deletes the group wheel

Add a regression test about it

PR:             90114
Reported by:    bkoenig@cs.tu-berlin.de
MFC after:      1 week
14:49:10 - r273781
(2 days 21 hours ago)
by dchagin
Affects: 
(6717 files)
/user/dchagin/lemul/*
MFH
14:48:52 - r273780
(2 days 21 hours ago)
by emaste
Affects:  /head/ObsoleteFiles.inc
/head/etc/mtree/BSD.debug.dist
Add missing /usr/lib/debug directories

Directories for /usr/lib{,32}/{i18n,private} were missing from the mtree
file, which caused installworld to install the files that should be in
the directory as the name of the directory.
14:19:17 - r273779
(2 days 22 hours ago)
by bapt
Affects:  /head/usr.sbin/pw/pw_user.c
/head/usr.sbin/pw/tests/pw_modify.sh
Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.
While here add a regression test about this bug

PR:             185666
Reported by:    sub.mesa@gmail.com
MFC after:      1 week
14:11:54 - r273778
(2 days 22 hours ago)
by nwhitehorn
Affects:  /head/usr.sbin/pkg/Makefile
Remove spurious libelf dependency.

Submitted by:   pluknet
14:03:22 - r273777
(2 days 22 hours ago)
by markm
Affects: 
(240 files)
/projects/random_number_generator/*
MFC - tracking commit.
Merging r273542 through r273775.
14:01:58 - r273776
(2 days 22 hours ago)
by mav
Affects: 
(3 files)
/releng/10.1/sys/geom/geom_disk.c
/releng/10.1/sys/kern/vfs_bio.c
MFS10 r273767 / MFC r273638:
Revert somewhat hackish geom_disk optimization, committed as part of r256880,
and the following r273143 commit, supposed to workaround introduced issue by
quite innocent-looking change.

While there is no clear understanding why, but r273143 is accused in data
corruption in some environments with high I/O load.  I personally don't see
any problem in that commit, and possibly it is just a trigger to some other
bug somewhere, but better safe then sorry for now.

Requested by:   scottl@
Approved by:    re (kib@)
13:38:30 - r273775
(2 days 23 hours ago)
by glebius
Affects: 
(288 files)
/projects/sendfile/*
Merge head r258543 through r273773.
13:38:10 - r273774
(2 days 23 hours ago)
by hselasky
Affects: 
(13 files)
/head/contrib/ofed/librdmacm/examples/build/*
/head/contrib/ofed/librdmacm/examples/rping.c
/head/contrib/ofed/usr.lib/Makefile.inc
Make some infiniband example utilities easily buildable:
- Add new Makefiles.
- Add more include directories when building.
- Fixed a printf() formatting string.

MFC after:      3 days
Sponsored by:   Mellanox Technologies
12:00:39 - r273773
(3 days ago)
by hselasky
Affects: 
(8 files)
/head/sys/*
The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

MFC after:      3 days
Sponsored by:   Mellanox Technologies
11:20:30 - r273772
(3 days 1 hour ago)
by bapt
Affects:  /head/usr.sbin/pw/pw_group.c
/head/usr.sbin/pw/tests/pw_modify.sh
When a group is renamed then the group has been invalidated for sure.
In that case get the group information using the new name.

Add a regression test about this bug

PR:             193704
Reported by:    az
10:39:41 - r273771
(3 days 1 hour ago)
by bapt
Affects: 
(5 files)
/head/etc/mtree/BSD.tests.dist
/head/usr.bin/timeout/Makefile
/head/usr.bin/timeout/tests/*
Add regression tests for the timeout(1) utility

They are modeled over the regression tests that are provided for the GNU
coreutils timeout(1) utility
10:39:29 - r273770
(3 days 1 hour ago)
by trasz
Affects:  /head/usr.sbin/ctld/parse.y
Fix build after previous commit.  While here, improve error messages.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
10:33:31 - r273769
(3 days 2 hours ago)
by bapt
Affects:  /head/usr.bin/timeout/timeout.1
/head/usr.bin/timeout/timeout.c
Improve compatibility with GNU timeout

According to the coreutils regression testsuite for timeout(1)
It is expect to exit with a status being:
125 in case an invalid duration or signal is passed in arguments
126 in case an invalid command is passed in arguments
127 in case the command passed in arguments does not exists.

While here document this behaviour in the man page
10:25:59 - r273768
(3 days 2 hours ago)
by trasz
Affects:  /head/usr.sbin/ctld/parse.y
/head/usr.sbin/ctld/token.l
Remove the distinction between strings and numbers from ctld(8) yacc parser.
This fixes problems with passing strings that look like numbers to clauses
that expect strings; previously it caused syntax errors and had to be worked
by user, using quotes.  The workaround introduced in r267833 is no longer
neccessary.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
08:00:28 - r273767
(3 days 4 hours ago)
by mav
Affects:  /stable/10/sys/geom/geom_disk.c
/stable/10/sys/kern/vfs_bio.c
MFC r273638:
Revert somewhat hackish geom_disk optimization, committed as part of r256880,
and the following r273143 commit, supposed to workaround introduced issue by
quite innocent-looking change.

While there is no clear understanding why, but r273143 is accused in data
corruption in some environments with high I/O load.  I personally don't see
any problem in that commit, and possibly it is just a trigger to some other
bug somewhere, but better safe then sorry for now.

Requested by:   scottl@
07:19:02 - r273766
(3 days 5 hours ago)
by araujo
Affects:  /head/sys/amd64/vmm/amd/vmcb.c
Reported by:    Coverity
CID:            1249760
Reviewed by:    neel
Approved by:    neel
Sponsored by:   QNAP Systems Inc.
06:17:25 - r273765
(3 days 6 hours ago)
by markj
Affects: 
(2 files)
/stable/10/cddl/lib/libdtrace/tcp.d
MFC r273370:
Correct the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
translator.
04:59:33 - r273764
(3 days 7 hours ago)
by mjg
Affects:  /head/sys/kern/kern_loginclass.c
Simplify sys_getloginclass.

Just use current thread credentials as they have the same accuracy as the
ones obtained from proc..
04:33:57 - r273763
(3 days 8 hours ago)
by mjg
Affects:  /head/sys/kern/kern_loginclass.c
Change loginclass mutex to an rwlock.

While here reduce nesting in loginclass_free.

Submitted by:   Tiwei Bie <btw mail.ustc.edu.cn>
X-Additional:   JuniorJobs project
MFC after:      2 weeks
04:18:09 - r273762
(3 days 8 hours ago)
by julian
Affects:  /head/sys/modules/dtrace/dtraceall/dtraceall.c
Allow loading of dtraceall without nfscl if what you really wnat is nfsclient

Obtained from:  Panzura tree
MFC after:      1 week
03:42:09 - r273761
(3 days 8 hours ago)
by araujo
Affects:  /head/sys/dev/uart/uart_subr.c
Drop __DECONST as well as few fixes of style(9).

Phabric:        D1012
Suggested by:   mjg, jhb
Reviewed by:    mjg, jhb
Sponsored by:   QNAP Systems Inc.
02:05:57 - r273760
(3 days 10 hours ago)
by kevlo
Affects:  /head/lib/libc/stdio/open_memstream.3
Fix prototypes.
01:34:01 - r273759
(3 days 11 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/conf/GENERIC64
Add CAPABILITIES and CAPABILITY_MODE to powerpc GENERIC64, missed with the
addition to
GENERIC

MFC after:      3 weeks
00:44:20 - r273758
(3 days 11 hours ago)
by yongari
Affects: 
(3 files)
/stable/9/sys/dev/re/if_re.c
MFC r273359:
  It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR:   193488
00:43:00 - r273757
(3 days 11 hours ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/re/if_re.c
MFC r273359:
  It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR:   193488
2014 - 10 - 27   (4 days ago)
23:43:25 - r273756
(3 days 12 hours ago)
by jmg
Affects:  /head/lib/libusb/Makefile
/head/lib/libz/Makefile
only install .pc files when we are not installing 32bit compat libs...

This fixes the problem of installing the .pc files multiple times...
23:31:07 - r273755
(3 days 13 hours ago)
by bapt
Affects:  /head/Makefile.inc1
Rename XFLAGS to XCFLAGS and XXFLAGS to XCXXFLAGS

This is less confusing names and actually more reflexting what they are intended
to.

Discussed with: brooks
23:19:51 - r273754
(3 days 13 hours ago)
by nwhitehorn
Affects:  /head/usr.sbin/pkg/Makefile
/head/usr.sbin/pkg/config.c
/head/usr.sbin/pkg/elf_tables.h
Use pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.
FreeBSD:11:amd64 instead of freebsd:11:x86:64) when bootstrapping pkg.
Thanks to portmgr for providing symlinks so both styles work.

Reviewed by:    bapt
MFC after:      3 weeks
23:11:48 - r273753
(3 days 13 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/iw_cxgbe/cm.c
iwcm_event status needs to be populated for close_complete_upcall

Submitted by:   Hariprasad at Chelsio dot com
Sponsored by:   Chelsio Communications
23:03:17 - r273752
(3 days 13 hours ago)
by jmg
Affects:  /head/lib/libnv/Makefile
fix typo, properly install a link to nv for nvlist_freev...
22:41:55 - r273751
(3 days 13 hours ago)
by np
Affects:  /head/sys/contrib/rdma/krping/krping.c
krping: In verbose mode print only first 128 bytes of krping data.

Submitted by:   Hariprasad at Chelsio dot com.
Sponsored by:   Chelsio Communications
22:22:46 - r273750
(3 days 14 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/iw_cxgbe/cm.c
Some cxgbe/iw_cxgbe fixes:
- Free rt in c4iw_connect only if it is allocated.
- Call soclose instead of so_shutdown if there is an abort from the peer.
- Close socket and return failure if TOE is not enabled.

Submitted by:   Hariprasad at Chelsio dot com
Sponsored by:   Chelsio Communications
22:20:51 - r273749
(3 days 14 hours ago)
by grehan
Affects:  /head/sys/amd64/vmm/amd/svm.c
Remove bhyve SVM feature printf's now that they are available in the
general CPU feature detection code.

Reviewed by:    neel
22:02:35 - r273748
(3 days 14 hours ago)
by grehan
Affects:  /head/sys/x86/x86/identcpu.c
Output a summary of optional SVM features in dmesg similar to CPU features.
If bootverbose is enabled, a detailed list is provided; otherwise, a
single-line summary is displayed.

Differential Revision:  https://reviews.freebsd.org/D1008
Reviewed by:    jhb, neel
MFC after:      1 week
21:29:42 - r273747
(3 days 15 hours ago)
by delphij
Affects: 
(4 files)
/head/contrib/hyperv/tools/hv_kvp_daemon.8
/head/share/man/man8/*
/head/tools/build/mk/OptionalObsoleteFiles.inc
Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by:    jmg [1]
Reviewed by:    jmg
MFC after:      2 weeks
20:20:05 - r273746
(3 days 16 hours ago)
by mjg
Affects:  /head/sys/kern/kern_resource.c
Tidy up functions related to uidinfo management.

- reference found uidinfo in uilookup
- reduce nesting by handling shorter cases first
20:18:30 - r273745
(3 days 16 hours ago)
by mjg
Affects:  /head/sys/kern/kern_resource.c
De-k&r-ify function definitions in kern/kern_resource.c

No functional changes.
18:37:11 - r273744
(3 days 18 hours ago)
by jhb
Affects:  /head/sys/modules/linux/Makefile
/head/sys/modules/vmm/Makefile
Add foo_genassym.c files to DPSRCS so dependencies for them are generated.
This ensures these objects are rebuilt to generate an updated header of
assembly constants if needed.
17:39:37 - r273743
(3 days 18 hours ago)
by pi
Affects: 
(5 files)
/head/bin/dd/*
bin/dd: revert 273734, as it fails on 32bit platforms

Revert: insufficient testing on 32bit platforms

PR:             191263
16:15:15 - r273742
(3 days 20 hours ago)
by ae
Affects:  /head/sys/netinet6/in6.c
Do not automatically install routes to link-local and interface-local multicast
addresses.

Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
16:13:51 - r273741
(3 days 20 hours ago)
by glebius
Affects:  /head/sys/sys/mbuf.h
Tiny comment fixup.
16:08:41 - r273740
(3 days 20 hours ago)
by hselasky
Affects:  /head/sys/netinet/cc/cc.c
Preserve limitation of "TCP_CA_NAME_MAX" when matching the algorithm
name.

MFC after:      3 days
Suggested by:   gnn @
15:50:47 - r273739
(3 days 20 hours ago)
by bapt
Affects:  /head/usr.sbin/pmcstat/pmcstat.8
Fix rendering

Submitted by:   brueffer
15:45:37 - r273738
(3 days 20 hours ago)
by jhb
Affects:  /head/share/man/man3/pthread_cleanup_pop.3
Correct a typo: this is the manpage for pthread_cleanup_pop, not push.

Submitted by:   ian
15:33:44 - r273737
(3 days 21 hours ago)
by bapt
Affects:  /head/usr.sbin/pmcstat/pmcstat.8
Clarify the documentation of pmcstat:
the -d argument should be passed before -p, -s, -P or -S to be taken in account

Differential Revision:  https://reviews.freebsd.org/D1011
Reviewed by:    adrian, gnn
MFC after:      1 week
14:38:00 - r273736
(3 days 22 hours ago)
by hselasky
Affects: 
(75 files)
/stable/10/sys/*
MFC r263710, r273377, r273378, r273423 and r273455:

- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by:   Mellanox Technologies
12:18:07 - r273735
(4 days ago)
by loos
Affects: 
(3 files)
/stable/10/sys/arm/ti/ti_i2c.c
/stable/10/sys/arm/ti/ti_i2c.h
MFC: r266336, r270230 and r273263

r266336:
Allow us to compile the Ti iic driver for both OMAP4 and AM335x.

r270230:
Rewrite of ti_i2c based on gonzo's patch, fix the following bugs/problems:

  . interrupt storm detected on "intr70:"; throttling interrupt source;

  . Added access serialization on iicbus_transfer(), previously there was
    no such protection and a new transfer could easily confuse the
    controller;

  . Add error checkings (i.e. stop the transfer when a error is detected
    and do _not_ overwrite the previous error);

  . On command done interrupt do not assume that the transfer was finished
    sucessfully as we will receive the command done interrupt even after
    errors;

  . Simplify the FIFO handling;

  . Reset the FIFO between the transfers as the FIFO may contain data from
    the last (failed) transfer;

  . Fix the iicbus speed for AM335x, which in turn will make better use of
    the I2C noise filter (set to one internal clock cycle);

  . Move the read and write handler to ithread instead of notifying the
    requesting thread with wakeup(9);

  . Fix the comments based on OMAP4 TRM.

The above changes allows me to read the EDID from my HDMI monitor on BBB
with gonzo's patches to support TDA19988 (which does 128 bytes reads) and
repeatedly scan the iicbus (with a modified i2c(8)) without lock up the bus.

r273263:
Fix the chan address for mtx_sleep() on bus wait.  Without this fix the
threads waiting for the bus would never wake.
11:38:17 - r273734
(4 days 1 hour ago)
by pi
Affects: 
(5 files)
/head/bin/dd/*
bin/dd: Fix incorrect casting of arguments

dd(1) casts many of its numeric arguments from uintmax_t to intmax_t
and back again to detect whether or not the original arguments were
negative. This caused wrong behaviour in some boundary cases:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count cannot be negative

After the fix:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count: Result too large

PR:             191263
Submitted by:   will@worrbase.com
Approved by:    cognet@
11:21:47 - r273733
(4 days 1 hour ago)
by hselasky
Affects:  /head/sys/netinet/cc/cc.c
Make assignments to "net.inet.tcp.cc.algorithm" work by fixing a bad
string comparison.

MFC after:      3 days
Reported by:    Jukka Ukkonen <jau789@gmail.com>
Sponsored by:   Mellanox Technologies
10:34:09 - r273732
(4 days 2 hours ago)
by ae
Affects:  /head/sys/netinet6/in6.c
/head/sys/netinet6/in6_var.h
Remove unused function.

Sponsored by:   Yandex LLC
09:30:57 - r273731
(4 days 3 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Remove comment obsoleted by r273730.

MFC after:      1 week
09:26:24 - r273730
(4 days 3 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl_cmd_table.c
/head/sys/cam/ctl/ctl_private.h
Reduce code duplication around Write Exclusive persistent reservation.

While there, allow some more commands to pass persistent reservation.

MFC after:      1 week
09:07:30 - r273729
(4 days 3 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/usb/usb_freebsd.h
/stable/10/sys/dev/usb/usb_freebsd_loader.h
/stable/10/sys/dev/usb/usb_hub.c
MFC r272733, r272807 and r272822:
Add support for disabling USB enumeration or USB port power
in general or on selected USB HUBs.
07:51:26 - r273728
(4 days 4 hours ago)
by kib
Affects:  /head/sys/dev/iicbus/iicbus.h
/head/sys/dev/iicbus/iiconf.c
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.  It simplifies porting code which assumes
such settings.

Discussed with: avg, llos, nwhitehorn
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
07:47:13 - r273727
(4 days 4 hours ago)
by kib
Affects:  /head/sys/fs/nfsserver/nfs_nfsdkrpc.c
Allow the vfs.nfsd knobs to be set from loader.conf (or using
kenv(8)).  This is useful when nfsd is loaded as module.

Reviewed by:    rmacklem
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
07:21:37 - r273726
(4 days 5 hours ago)
by mav
Affects: 
(5 files)
/stable/9/sys/dev/ata/ata-pci.h
/stable/9/sys/dev/ata/chipsets/ata-jmicron.c
MFC r273328: Add another PCI ID for JMB368 PATA controller.
07:20:39 - r273725
(4 days 5 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/dev/ata/ata-pci.h
/stable/10/sys/dev/ata/chipsets/ata-jmicron.c
MFC r273328: Add another PCI ID for JMB368 PATA controller.
06:14:13 - r273724
(4 days 6 hours ago)
by edwin
Affects: 
(10 files)
/stable/6/share/zoneinfo/*
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
06:13:22 - r273723
(4 days 6 hours ago)
by edwin
Affects: 
(10 files)
/stable/7/share/zoneinfo/*
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
06:12:41 - r273722
(4 days 6 hours ago)
by edwin
Affects: 
(10 files)
/stable/8/share/zoneinfo/*
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
06:12:29 - r273721
(4 days 6 hours ago)
by edwin
Affects:  /stable/9/contrib/tzdata/zone1970.tab
MFC of 267473,tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.
06:12:10 - r273720
(4 days 6 hours ago)
by edwin
Affects: 
(11 files)
/stable/9/contrib/tzdata/*
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
06:05:40 - r273719
(4 days 6 hours ago)
by edwin
Affects: 
(11 files)
/stable/10/contrib/tzdata/*
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
05:50:02 - r273718
(4 days 6 hours ago)
by edwin
Affects: 
(11 files)
/head/contrib/tzdata/*
Merge of 273518, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.
04:09:23 - r273717
(4 days 8 hours ago)
by markj
Affects:  /head/lib/libc/gen/getgrouplist.3
/head/lib/libc/gen/initgroups.3
getgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, so
this bug is no longer valid.

MFC after:      3 days
01:10:40 - r273716
(4 days 11 hours ago)
by alc
Affects:  /head/sys/sparc64/sparc64/mem.c
Simplify memrw().

MFC after:      10 days
00:47:55 - r273715
(4 days 11 hours ago)
by ian
Affects: 
(4 files)
/stable/10/Makefile.inc1
/stable/10/sys/conf/files
/stable/10/sys/tools/fdt/make_dtb.sh
MFC r262626, r262626, r264979, r265154, r265162, r265163, r267319, r270863,
    r270991, r271045:

  Enhancements related to compiling FDT data...

 - Use proper include path for dtc as well as cpp.
 - Call cpp with -P to avoid printing line markings.
 - Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in a
   kernel config file.
 - Add the dts include directory to the -I list when doing arm builds.
 - Invoke make_dtb with MACHINE defined for cross building friendliness.
 - Allow the make_dtb script to work outside of a "make buildkernel"
   context by setting MACHINE from uname -m if it's not set already.
 - Use sh -c '...' to launch the dtb build scripts with env prepended,
   otherwise it tries to treat the env var stuff as a script file name.
2014 - 10 - 26   (5 days ago)
23:45:33 - r273714
(4 days 12 hours ago)
by ian
Affects: 
(7 files)
/stable/10/sys/gnu/dts/arm/*
MFC r271143, r271151:  Reimport dts from vendor branch after proper trim.
23:39:15 - r273713
(4 days 12 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/gnu/dts/arm
MFC 271140:

  Delete old arm dts tree. This was created by cherry picking from a
  full vendor tree. This worked great until it was time to update, but
  now it is time to update. Hit the rest button by removing this branch
  and re-adding it by a full copy of whatever is in the vendor tree.
23:37:24 - r273712
(4 days 13 hours ago)
by ian
Affects: 
(115 files)
/stable/10/sys/contrib/dts
/stable/10/sys/gnu/dts/*
MFC r262606, r262607, r262608, r262609, r262610, r269528, r269609, r271133:

 - Move imported dts source from sys/contrib/dts/ to sys/gnu/dts.
 - Fix some missing properties.
 - Import dts-related header files.
 - Update everything to latest vendor branch representing 3.17-rc2
   level of Linux DTS API.
23:25:42 - r273711
(4 days 13 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl_private.h
Allocate buffer for READ BUFFER/WRITE BUFFER commands on demand.

These commands are rare, but consume additional 256KB RAM per LUN.

MFC after:      1 week
21:17:44 - r273710
(4 days 15 hours ago)
by neel
Affects:  /head/usr.sbin/bhyve/rtc.c
Add a comment explaining the intent behind the I/O reservation [0x72-0x77].
20:48:26 - r273709
(4 days 15 hours ago)
by mckusick
Affects:  /head/usr.bin/vmstat/vmstat.c
Replace update from -r271410 accidentally lost in -r273575.
20:13:46 - r273708
(4 days 16 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Fix support for LUN flat space addressing.

MFC after:      1 week
19:42:44 - r273707
(4 days 16 hours ago)
by mjg
Affects: 
(14 files)
/head/sys/*
Avoid dynamic syscall overhead for statically compiled modules.

The kernel tracks syscall users so that modules can safely unregister them.

But if the module is not unloadable or was compiled into the kernel, there is
no need to do this.

Achieve this by adding SY_THR_STATIC_KLD macro which expands to SY_THR_STATIC
during kernel build and 0 otherwise.

Reviewed by:    kib (previous version)
MFC after:      2 weeks
19:03:06 - r273706
(4 days 17 hours ago)
by neel
Affects: 
(7 files)
/head/sys/amd64/vmm/io/*
/head/sys/amd64/vmm/vmm_ioport.h
Change the type of the first argument to the I/O emulation handlers to
'struct vm *'. Previously it used to be a 'void *' but there is no reason
to hide the actual type from the handler.

Discussed with: tychon
MFC after:      1 week
18:46:03 - r273705
(4 days 17 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/kern/kern_event.c
/stable/10/sys/sys/event.h
MFC r272528:  Make kevent(2) periodic timer events more reliably periodic.
18:41:01 - r273704
(4 days 17 hours ago)
by smh
Affects:  /head/sys/cam/ata/ata_da.c
Fix CF ERASE breakage caused by 268205.

This prevents BIO_DELETE requests getting stuck in the TRIM queue which
results in a panic on shutdown due to outstanding requests.

PR:             194606
Reported by:    Guido Falsi
Reviewed by:    mav
MFC after:      3 days
Sponsored by:   Multiplay
18:30:35 - r273703
(4 days 18 hours ago)
by ian
Affects:  /head/sys/arm/arm/nexus.c
/head/sys/arm/at91/std.atmel
/head/sys/conf/options.arm
Remove the ARM_DEVICE_MULTIPASS option and make its effect be the default.

Multipass device attachment was tested on many arm platforms by users and
only success was reported on the arm@ mailing list.  This is just the
long-delayed followup of making it the default.

Multipass attachment is necessary when using vendor-supplied FDT data,
because our devices may need to be attached in a different order than they
are described in the FDT data.
17:56:58 - r273702
(4 days 18 hours ago)
by stefanf
Affects:  /head/tools/regression/lib/libc/nss/test-gethostby.c
Remove incorrect semicolon.
17:56:47 - r273701
(4 days 18 hours ago)
by alc
Affects:  /head/sys/amd64/amd64/pmap.c
/head/sys/arm/arm/pmap-v6.c
/head/sys/i386/i386/pmap.c
By the time that pmap_init() runs, vm_phys_segs[] has been initialized.
Obtaining
the end of memory address from vm_phys_segs[] is a little easier than obtaining
it
from phys_avail[].

Discussed with: Svatopluk Kraus
17:50:33 - r273700
(4 days 18 hours ago)
by jilles
Affects: 
(5 files)
/head/bin/sh/*
sh: Make getopts memory-safe if with changing arguments.

POSIX does not permit to continuing a getopts loop with different
arguments. For parsing the positional parameters, we handle this case by
resetting the getopts state when the positional parameters are changed in
any way (and the getopts state is local to a function). However, in the
syntax getopts <optstring> <var> <arg...>, changes could lead to invalid
memory access.

In the syntax getopts <optstring> <var> <arg...>, store a copy of the
arguments and continue to use them until getopts is reset.
17:17:08 - r273699
(4 days 19 hours ago)
by gjb
Affects: 
(2 files)
/releng/10.1/release/Makefile
MFstable10 r273698:
MFC r273653:
  Fix a few issues with creating VOLUME_LABEL for the
  installation ISOs:

   - TYPE, BRANCH, and REVISION are only defined if
     OSRELEASE is not defined, so in situations where
     one might set OSRELEASE for an in-house ISO build,
     VOLUME_LABEL would be empty.

   - makefs(8) limits the volume label to 32 characters,
     which for the powerpc64 case, OSRELEASE expands to
     FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
     removing the prefixing 'FreeBSD-', the string is 30
     characters long, leaving zero room for suffixing the
     type of ISO media (BO for bootonly, CD for cdrom, and
     DVD for dvdrom).

  Resolve these by defining VOLUME_LABEL when defining
  OSRELEASE if unset.  If OSRELEASE is defined by the
  builder, use the OSRELEASE from that definition as the
  VOLUME_LABEL.

  In addition, for cases where both TARGET and TARGET_ARCH
  are used for the VOLUME_LABEL, use TARGET_ARCH if it
  differs from TARGET.

  There are probably a few sharp edges here yet, but these
  problems are going to affect the powerpc/powerpc64 builds
  for 10.1-RELEASE, so the immediate concern is fixing the
  underlying problem at hand quickly, and less so about the
  elegance of the fix.

Approved by:    re (kib)
Sponsored by:   The FreeBSD Foundation
17:14:57 - r273698
(4 days 19 hours ago)
by gjb
Affects: 
(2 files)
/stable/10/release/Makefile
MFC r273653:
  Fix a few issues with creating VOLUME_LABEL for the
  installation ISOs:

   - TYPE, BRANCH, and REVISION are only defined if
     OSRELEASE is not defined, so in situations where
     one might set OSRELEASE for an in-house ISO build,
     VOLUME_LABEL would be empty.

   - makefs(8) limits the volume label to 32 characters,
     which for the powerpc64 case, OSRELEASE expands to
     FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
     removing the prefixing 'FreeBSD-', the string is 30
     characters long, leaving zero room for suffixing the
     type of ISO media (BO for bootonly, CD for cdrom, and
     DVD for dvdrom).

  Resolve these by defining VOLUME_LABEL when defining
  OSRELEASE if unset.  If OSRELEASE is defined by the
  builder, use the OSRELEASE from that definition as the
  VOLUME_LABEL.

  In addition, for cases where both TARGET and TARGET_ARCH
  are used for the VOLUME_LABEL, use TARGET_ARCH if it
  differs from TARGET.

  There are probably a few sharp edges here yet, but these
  problems are going to affect the powerpc/powerpc64 builds
  for 10.1-RELEASE, so the immediate concern is fixing the
  underlying problem at hand quickly, and less so about the
  elegance of the fix.

Insta-MFC ok:   re (kib)
Sponsored by:   The FreeBSD Foundation
16:31:25 - r273697
(4 days 20 hours ago)
by jceel
Affects: 
(2940 files)
/user/jceel/soc2014_evdev/head/*
MFC @r273692
16:21:41 - r273696
(4 days 20 hours ago)
by marcel
Affects:  /projects/llvm-ia64
Remove the llvm-ia64 projects branch.
16:09:59 - r273695
(4 days 20 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/pl310.c
MFC r273590: Accept documented compatible string for PL310 cache controller/
16:02:35 - r273694
(4 days 20 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/freescale/imx/imx6_machdep.c
MFC r273561:

  Install a temporary workaround to avoid problems in fdt data with linux's
  workaround for an imx6 chip erratum by using gpio1_6 as an interrupt.
15:28:07 - r273693
(4 days 21 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl.h
Fix printing non-terminated strings in devlist XML.

MFC after:      1 week
14:43:02 - r273692
(4 days 21 hours ago)
by jceel
Affects:  /user/jceel/soc2014_evdev/head/sys/dev/usb/input/uep.c
Unbreak uep(4) when compiled without EVDEV.
14:25:42 - r273691
(4 days 22 hours ago)
by mjg
Affects:  /head/sys/kern/kern_prot.c
Fix up an assertion in kern_setgroups, it should compare with ngroups_max + 1

Bug introdued in r273685.

Noted by: Tiwei Bie <btw mail.ustc.edu.cn>
13:30:53 - r273690
(4 days 23 hours ago)
by trasz
Affects:  /head/share/man/man4/ctl.4
Mention VAAI and ODX in ctl(4).

Reviewed by:    mav@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:29:12 - r273689
(5 days 3 hours ago)
by delphij
Affects: 
(2 files)
/head/contrib/file/magic/Magdir/filesystems
MFV r273688:

Update filesystems magic.  This fixes a regression introduced by
libmagic 5.19 which prevents file(1) to show more verbose information
about a MBR.

Submitted by:   madpilot
MFC after:      2 weeks
09:24:32 - r273688
(5 days 3 hours ago)
by delphij
Affects:  /vendor/file/dist/magic/Magdir/filesystems
Update filesystems magic to CVS version 1.106.

Submitted by:   madpilot
07:40:37 - r273687
(5 days 4 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/usr.sbin/ctladm/ctladm.8
Add "rpm" and "formfactor" LUN options to match istgt functionality.

MFC after:      1 week
07:07:54 - r273686
(5 days 5 hours ago)
by rpaulo
Affects: 
(2 files)
/stable/10/sys/arm/ti/ti_wdt.c
MFC r273281:
 Style changes as pointed out by stas@.
06:04:09 - r273685
(5 days 6 hours ago)
by mjg
Affects:  /head/sys/kern/kern_prot.c
Tidy up sys_setgroups and kern_setgroups.

- 'groups' initialization to NULL is always ovewrwriten before use, so plug it
- get rid of 'goto out'
- kern_setgroups's callers already validate ngrp, so only assert the condition
- ngrp  is an u_int, so 'ngrp < 1' is more readable as 'ngrp == 0'

No functional changes.
05:39:42 - r273684
(5 days 6 hours ago)
by mjg
Affects:  /head/sys/kern/kern_prot.c
Use a temporary buffer in sys_setgroups for requests with <= XU_NGROUPS groups.

Submitted by:   Tiwei Bie <btw mail.ustc.edu.cn>
X-Additional: JuniorJobs project
MFC after:      2 weeks
04:44:28 - r273683
(5 days 7 hours ago)
by neel
Affects: 
(8 files)
/head/sys/amd64/*
/head/sys/modules/vmm/Makefile
/head/usr.sbin/bhyve/*
Move the ACPI PM timer emulation into vmm.ko.

This reduces variability during timer calibration by keeping the emulation
"close" to the guest. Additionally having all timer emulations in the kernel
will ease the transition to a per-VM clock source (as opposed to using the
host's uptime keep track of time).

Discussed with: grehan
04:17:20 - r273682
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/freescale/imx/imx6_ccm.c
MFC r273353, r273514:

  Attach the imx6 CCM driver during BUS_PASS_CPU.

  Unconditionally enable the clocks for all imx6 devices that we have drivers
  for, or that are required to run the chip (such as busses).
04:15:27 - r273681
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/freescale/imx/imx_gpt.c
MFC r273352:  Ask for the fastest available clock for the GTP timecounter.
04:13:08 - r273680
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/boot/fdt/fdt_loader_cmd.c
MFC r273298:

  The U-Boot README says fdt_addr_r is the right env var for fdt data
  loaded into ram, but vendors also use fdtaddr and fdt_addr.  Check the
  recommended variable first and fall back to the others.
04:11:32 - r273679
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/freescale/imx/imx6_anatop.c
MFC r273283:

  Attach this driver during BUS_PASS_BUS and move the cpu init code to a
  bus_new_pass() handler so it doesn't happen until BUS_PASS_CPU.  This allows
  the anatop driver to outbid the generic simplebus driver (which the FDT
  data describes as compatible).
04:10:17 - r273678
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/dev/fdt/simplebus.c
MFC r273282:  Fail to probe on simplebus nodes that lack a "ranges" property.
04:08:34 - r273677
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/dev/uart/uart_dev_imx.c
MFC r272334, r273004:

  Return the actual baud rate programmed in the hardware rather than 115200.
  This allows the "3wire" entry in /etc/ttys (with no speed specified) to work.

  Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
  each byte sent or received.
04:06:29 - r273676
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/physmem.c
MFC r272333:  Honor exclusion flags when building the memory lists.
04:01:57 - r273675
(5 days 8 hours ago)
by ian
Affects: 
(10 files)
/stable/10/sys/dev/*
/stable/10/sys/mips/beri/beri_simplebus.c
/stable/10/sys/powerpc/*
MFC r272109, r272181:

  Replace multiple nearly-identical copies of code to walk through an FDT
  node's interrupts=<...> property creating resource list entries with a
  single common implementation.  This change makes ofw_bus_intr_to_rl() the
  one true copy of that code and removes the copies of it from other places.

  This also adds handling of the interrupts-extended property.
03:55:55 - r273674
(5 days 8 hours ago)
by ian
Affects: 
(3 files)
/stable/10/share/man/man4/man4.arm/Makefile
/stable/10/share/man/man4/man4.arm/cgem.4
MFC r271907:  Add a man page for the cgem(4) driver.
03:55:09 - r273673
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/mpcore_timer.c
MFC r271906:

  Make the ARM MPCore Timer driver work with published standard FDT bindings.
03:52:45 - r273672
(5 days 8 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/arm/arm/gic.c
/stable/10/sys/arm/freescale/imx/*
/stable/10/sys/arm/include/intr.h
MFC r271595, r271601, r271607, r271630:

  Add compat strings for all the flavors of GIC this driver should support.
  Also allow the driver to attach to ofwbus as well as simplebus, some FDT
  data puts the root interrupt controller on the root bus.

  Add a common routine for parsing FDT data describing an ARM GIC interrupt.

  Use gic_decode_fdt() rather than a local routine to parse fdt interrupt
  properties.  Move fdt_pic_table and fdt_fixup_table into imx6_machdep.c,
  which means imx6 doesn't need imx_common.c anymore.

  The private peripheral interrupts start at offset 16, not 0.  Also, use
  names rather than inline mystery constants for these offsets.
03:48:12 - r273671
(5 days 8 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/nexus.c
MFC r271594:

 Fix an undefined variable that was accidentally not causing an error.
03:44:19 - r273670
(5 days 8 hours ago)
by ian
Affects: 
(12 files)
/stable/10/sys/arm/freescale/imx/*
MFC r271550, r271591:

  Replace the imx5 and imx6 iomux drivers with a single common driver that
  uses the new fdt_pinctrl interface.
03:41:27 - r273669
(5 days 8 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/conf/files
/stable/10/sys/dev/fdt/*
MFC 271546:

  Create an interface and support routines for drivers that handle IO pin
  multiplexing and configuration based on FDT data.
03:29:06 - r273668
(5 days 9 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/conf/files
MFC r271535:

  Make inclusion of fdt clock support conditional on fdt_clock, not just fdt.
03:13:19 - r273667
(5 days 9 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/include/atomic.h
MFC r271310:

  Rename new to newval in inline asm code, to avoid clashes with C++ new.
03:03:41 - r273666
(5 days 9 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/vmm_ioport.c
Don't pass the 'error' return from an I/O port handler directly to vm_run().

Most I/O port handlers return -1 to signal an error. If this value is returned
without modification to vm_run() then it leads to incorrect behavior because
'-1' is interpreted as ERESTART at the system call level.

Fix this by always returning EIO to signal an error from an I/O port handler.

MFC after:      1 week
02:53:23 - r273665
(5 days 9 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/boot/arm/uboot/help.uboot
/stable/10/sys/boot/uboot/common/main.c
MFC r271285:

  Add a 'ubenv import' command to import environment variables from the
  u-boot env into the loader(8) env (which also gets them into the kernel
  env).
02:51:56 - r273664
(5 days 9 hours ago)
by ian
Affects: 
(3 files)
/stable/10/lib/libstand/printf.c
/stable/10/lib/libstand/stand.h
MFC r266878, r266879: Add support for snprintf() to libstand.
02:44:41 - r273663
(5 days 9 hours ago)
by ian
Affects: 
(17 files)
/stable/10/sys/arm/conf/*
/stable/10/sys/arm/freescale/imx/*
/stable/10/sys/boot/fdt/dts/arm/*
MFC r271097, r271100, r271101, r271102, r271124:

 - Add a basic iomux driver for imx6.
 - Implement the same public interface in imx51 and imx6 iomux
 - The iomux driver is no longer optional, remove it from kernel configs.
 - Implement the imx_iomux_get/set_gpr() interface for imx6.
 - Stop setting the iomux device status to disabled, now that we have a driver.
02:40:34 - r273662
(5 days 9 hours ago)
by ian
Affects: 
(9 files)
/stable/10/sys/arm/conf/IMX6
/stable/10/sys/arm/freescale/*
/stable/10/sys/boot/fdt/dts/arm/imx6.dtsi
MFC r268973, r268977: Rename i.MX I2C driver file, enable it on imx6.
02:37:42 - r273661
(5 days 10 hours ago)
by ian
Affects: 
(11 files)
/stable/10/sys/arm/conf/IMX6
/stable/10/sys/arm/freescale/imx/*
/stable/10/sys/boot/fdt/dts/arm/*
MFC r268834, r268835:

 o Enable GPIO device driver for i.MX6.
   It was originally written for i.MX5 and compatible with newer chip.
 o Extend device tree information
 o style(9) fixes
 o Rename gpio driver file.
02:27:10 - r273660
(5 days 10 hours ago)
by ian
Affects: 
(3 files)
/stable/10/etc/mtree/BSD.root.dist
/stable/10/share/man/man7/hier.7
MFC r271057: Create a /boot/dtb directory to house DTB blobs.
02:25:34 - r273659
(5 days 10 hours ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/freescale/imx/*
MFC r271055, r271084, r271094:

  Add a function to get the frequency of the AHB bus.  Another stopgap
  function until we have full clock support for imx6.

  The imx5x and imx6 chips have an onboard IOMUX device which also contains a
  few "general purpose registers" whose values control chip behavior in ways
  that have nothing to do with IO pin mux control.  Define a simple API that
  other soc-specific code can use to read and write the registers, and provide
  the imx51 implementation of them.

  Fix a typo.
02:21:54 - r273658
(5 days 10 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/boot/common/module.c
MFC r271054:

 When built with FDT support, add /boot/dtb to the list of search directories.
02:19:03 - r273657
(5 days 10 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/conf/files
/stable/10/sys/dev/fdt/*
MFC r270957, r270959:

  Create an interface for drivers to enable or disable their clocks as listed
  in the clocks=<...> properties of their FDT data.
02:09:58 - r273656
(5 days 10 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/freescale/fsl_ocotp.c
/stable/10/sys/arm/freescale/imx/imx6_anatop.c
MFC r270955,r270956: make the imx6 octop and anatop drivers early attachers.
01:58:18 - r273655
(5 days 10 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/dev/ofw/openfirm.c
/stable/10/sys/dev/ofw/openfirm.h
MFC r270953, r270958, r270960, r271190, r271199, r271202:

  Create a mechanism for looking up a device_t associated with an ofw/fdt
  xref handle, and for registering that association.  Also use the same data
  for faster translations between node and xref handles.

  Add OF_xref_from_device() so that there's no need to have an intermediate
  call to ofw_bus_get_node() to lookup info that's already in the xreflist.

  When registering an association between a device and an xref phandle, create
  an entry in the xref list if one doesn't already exist for the given handle.
01:47:55 - r273654
(5 days 10 hours ago)
by mjg
Affects:  /head/sys/kern/kern_sysctl.c
Now that sysctl_root is only called with sysctl lock in shared mode, update
its assertion to require that.

Update comment missed in r273400: sysctl_xlock/unlock -> sysctl_xlock/xunlock

Noted by: jhb
01:41:54 - r273653
(5 days 10 hours ago)
by gjb
Affects:  /head/release/Makefile
Fix a few issues with creating VOLUME_LABEL for the
installation ISOs:

 - TYPE, BRANCH, and REVISION are only defined if
   OSRELEASE is not defined, so in situations where
   one might set OSRELEASE for an in-house ISO build,
   VOLUME_LABEL would be empty.

 - makefs(8) limits the volume label to 32 characters,
   which for the powerpc64 case, OSRELEASE expands to
   FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
   removing the prefixing 'FreeBSD-', the string is 30
   characters long, leaving zero room for suffixing the
   type of ISO media (BO for bootonly, CD for cdrom, and
   DVD for dvdrom).

Resolve these by defining VOLUME_LABEL when defining
OSRELEASE if unset.  If OSRELEASE is defined by the
builder, use the OSRELEASE from that definition as the
VOLUME_LABEL.

In addition, for cases where both TARGET and TARGET_ARCH
are used for the VOLUME_LABEL, use TARGET_ARCH if it
differs from TARGET.

There are probably a few sharp edges here yet, but these
problems are going to affect the powerpc/powerpc64 builds
for 10.1-RELEASE, so the immediate concern is fixing the
underlying problem at hand quickly, and less so about the
elegance of the fix.

MFC after:      3 days
X-MFC-10.1:     yes, asap
Sponsored by:   The FreeBSD Foundation
01:30:46 - r273652
(5 days 11 hours ago)
by ian
Affects: 
(18 files)
/stable/10/sys/*
MFC r270945:

Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().
01:26:53 - r273651
(5 days 11 hours ago)
by ian
Affects: 
(4 files)
/stable/10/sys/arm/at91/at91_pinctrl.c
/stable/10/sys/arm/at91/at91_pio.c
/stable/10/sys/arm/at91/at91_piovar.h
MFC r270025:

Implement the FDT static pinctl/pinmux spec for Atmel.
01:15:16 - r273650
(5 days 11 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/rockchip/rk30xx_gpio.c
MFC r257200, r259121, r261410, r265853:

 - Remove #include <machine/frame.h>.
 - Add gpio parse routines according to sys/boot/fdt/dts/bindings-gpio.txt.
 - Follow r261352 by updating all drivers which are children of simplebus
   to check the status property in their probe routines.
 - Rename platform_gpio_init to be SoC specific, and make it static as it's
   only called from this file.

This is mostly catching up on some old MFCs that were done before this file
existed in the 10 branch.
2014 - 10 - 25   (6 days ago)
22:53:08 - r273649
(5 days 13 hours ago)
by melifaro
Affects: 
(4 files)
/projects/routing/sys/net/*
/projects/routing/sys/netinet6/*
Convert several places inside netinet6/ to new api.
21:40:49 - r273648
(5 days 14 hours ago)
by melifaro
Affects:  /projects/routing/sys/ofed/drivers/infiniband/core/addr.c
Convert ofed to use new routing api.
21:01:50 - r273647
(5 days 15 hours ago)
by kib
Affects:  /head/sys/dev/acpica/acpi_hpet.c
Set the caching mode for the usermode mapping of the HPET registers
page to uncached.

Reviewed by:    rpaulo
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
20:42:47 - r273646
(5 days 15 hours ago)
by jhb
Affects:  /head/sys/kern/kern_umtx.c
Use correct type in __DEVOLATILE().
20:34:10 - r273645
(5 days 16 hours ago)
by ian
Affects: 
(8 files)
/stable/10/sys/arm/*
/stable/10/sys/boot/fdt/dts/arm/zedboard.dts
/stable/10/sys/dev/cadence/*
MFC r268633, r271046:

  Fixes and enhancements for the if_cgem driver...

  - miibus fixes as suggested by Yonghyeon Pyun.
  - enable VLAN MTU support.
  - fix a few WITNESS complaints in cgem_attach().
  - have cgem_attach() properly init the ifnet struct before calling
    mii_attach() to fix panic when using e1000phy.
  - fix ethernet address changing.
  - fix transmit queue overflow handling.
  - tweak receive queue handling to reduce receive overflows.
  - bring out MAC statistic counters to sysctls.
  - add e1000phy to config file.
  - implement receive hang work-around described in reference guide.
  - change device name from if_cgem to cgem to be consistent with other
    interfaces.

  Fix the Zedboard/Zynq ethernet driver to handle media speed changes so
  that it can connect to switches at speeds other than 1gb.
19:31:34 - r273644
(5 days 17 hours ago)
by jhb
Affects:  /head/share/man/man3/pthread_cleanup_pop.3
/head/share/man/man3/pthread_cleanup_push.3
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR:             194280
Submitted by:   dr2867.business@pacbell.net
MFC after:      1 week
19:01:02 - r273643
(5 days 17 hours ago)
by melifaro
Affects:  /projects/routing/sys/netpfil/pf/pf.c
Convert last piece of pf to use fib4_lookup_nh_ext().
18:25:00 - r273642
(5 days 18 hours ago)
by melifaro
Affects: 
(15 files)
/projects/routing/sys/*
* Convert TOE framework to use new routing api.
* Add fib6_lookup_nh_ext().
* Rename union structures:
  nhop64_basic -> nhopu_basic,
  nhop64_extended -> nhopu_extended
17:42:44 - r273641
(5 days 18 hours ago)
by jpaetzel
Affects: 
(4 files)
/head/sys/cddl/compat/opensolaris/kern/opensolaris_lookup.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/*
/head/sys/cddl/contrib/opensolaris/uts/common/sys/gfs.h
This change addresses 4 bugs in ZFS exposed by Richard Kojedzinszky's
crash.sh script attached to FreeNAS bug 4109:
https://bugs.freenas.org/issues/4109

Three are in the snapshot layer:
a) AVG explains in his notes: https://wiki.freebsd.org/AvgVfsSolarisVsFreeBSD

"VOP_INACTIVE must not do any destructive actions to a vnode
and its filesystem node, nor invalidate them in any way."
gfs_vop_inactive and zfsctl_snapshot_inactive did just that. In
OpenSolaris VOP_INACTIVE is much closer to FreeBSD's VOP_RECLAIM.
Rename & move them to gfs_vop_reclaim and zfsctl_snapshot_reclaim
and merge in the requisite vnode_destroy from zfsctl_common_reclaim.

b) gfs_lookup_dot and various zfsctl functions do not honor the
FreeBSD VFS convention of only locking from the root downward. When
looking up ".." the convention is to drop the current leaf vnode lock before
acquiring the directory vnode and then subsequently re-acquiring the lock on the
leaf vnode. This fixes that in all the places that our exercised by crash.sh.

c) The snapshot may already be unmounted when the directory vnode is reclaimed.
Check for this case and return.

One in the common layer:
d) Callers of traverse expect the reference to the vnode passed in to be
maintained. Don't release it.

This last one may be an unclear contract. There may in fact be some callers that
do expect the reference to be dropped on success in addition to callers that
expect it to be released. In this case a further audit of the callers is needed
and a consensus on the correct behavior.

PR:     184677
Submitted by:   kmacy
Reviewed by:    delphij, will, avg
MFC after:      2 weeks
Sponsored by:   iXsystems
17:07:35 - r273640
(5 days 19 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Add support for 12/16-byte EUI and 16-byte NAA IDs.

MFC after:      1 week
15:32:56 - r273639
(5 days 21 hours ago)
by melifaro
Affects: 
(12 files)
/projects/routing/sys/net/*
/projects/routing/sys/netinet/*
/projects/routing/sys/netpfil/ipfw/ip_fw2.c
* Increase nh_flags to be u16 thus reducing nhop payload to be 48 bytes
* Use NHF_ namespace for all nhop flags
* Rename nhop_data -> nhop_prepend
* Rename fib4_lookup_nh_extended -> fib4_lookup_nh_ext
* Add "flags" argument to fib4_lookup_nh_ext() to specify whether we want
  returned nh_ext structure to be refcounted or not.
15:16:19 - r273638
(5 days 21 hours ago)
by mav
Affects:  /head/sys/geom/geom_disk.c
/head/sys/kern/vfs_bio.c
Revert somewhat hackish geom_disk optimization, committed as part of r256880,
and the following r273143 commit, supposed to workaround introduced issue by
quite innocent-looking change.

While there is no clear understanding why, but r273143 is accused in data
corruption in some environments with high I/O load.  I personally don't see
any problem in that commit, and possibly it is just a trigger to some other
bug somewhere, but better safe then sorry for now.

Requested by:   scottl@
MFC after:      3 days
15:14:19 - r273637
(5 days 21 hours ago)
by kevlo
Affects:  /stable/9/sys/dev/usb/wlan/if_run.c
MFC r270643, r273448:
- Fix typo: s/mac_rev/mac_ver/
- Fix the kernel panic in hostap mode.
  rvp->beacon_mbuf was NULL in run_update_beacon().
15:06:09 - r273636
(5 days 21 hours ago)
by kevlo
Affects: 
(2 files)
/stable/10/sys/dev/usb/wlan/if_run.c
MFC r273448:
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR:     189405
Submitted by:   Gabor Simon <gabor.simon75 at gmail.com>
12:50:26 - r273635
(5 days 23 hours ago)
by mav
Affects: 
(8 files)
/head/usr.sbin/ctld/*
Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Reviewed by:    trasz@
MFC after:      1 month
Sponsored by:   iXsystems, Inc.
09:25:29 - r273634
(6 days 3 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_output.c
Fix a use of an uninitialized variable by makeing sure
that sctp_med_chunk_output() always initialized the reason_code
instead of relying on the caller.
The variable is only used for debugging purpose.
This issue was reported by Peter Bostroem from Google.

MFC after: 3 days
07:20:46 - r273633
(6 days 5 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/zpool/create/files.t
Bail out of the script on FreeBSD due to deterministic panic issue

PR: 194589
Sponsored by: EMC / Isilon Storage Division
06:33:00 - r273632
(6 days 6 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/zpool/add/option-f_type_mismatch.t
Bail out of the script on FreeBSD due to deterministic panic issue

PR: 194587
Sponsored by: EMC / Isilon Storage Division
06:28:48 - r273631
(6 days 6 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/zpool/add/option-f_size_mismatch.t
Bail out of the script on FreeBSD due to deterministic panic issue

PR: 194586
Sponsored by: EMC / Isilon Storage Division
06:10:01 - r273630
(6 days 6 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/zpool/add/files.t
Bail out of the script on FreeBSD due to deterministic panic issue

PR: 191573
Sponsored by: EMC / Isilon Storage Division
05:56:21 - r273629
(6 days 6 hours ago)
by mjg
Affects:  /head/sys/kern/kern_resource.c
rlimit: plug duplicate assertion

counter sanity is already checked by refcount_release.
05:31:18 - r273628
(6 days 7 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/misc.sh
Move the redirection to stderr out of the cmd variable assignment

Putting 2>/dev/null in cmd= escapes the redirection operation, which causes
mdconfig to think it's a filename

MFC after: 2 weeks
X-MFC with: r273627
Sponsored by: EMC / Isilon Storage Division
04:52:48 - r273627
(6 days 7 hours ago)
by ngie
Affects:  /head/tools/regression/zfs/misc.sh
- Print out "Bail out!" in die(..) so prove terminates immediately
- Handle the output from newer versions of openssl md5, similar to what
  pjd@ did in r248304

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
02:08:02 - r273626
(6 days 10 hours ago)
by rpaulo
Affects: 
(2 files)
/stable/10/sys/arm/ti/ti_wdt.c
MFC r273261:
 Remove an unused mutex.
02:06:40 - r273625
(6 days 10 hours ago)
by rpaulo
Affects: 
(3 files)
/stable/10/sys/arm/conf/BEAGLEBONE
/stable/10/sys/arm/ti/files.ti
MFC r273258:
 Make the ti_mbox and ti_pruss drivers optional.
02:05:21 - r273624
(6 days 10 hours ago)
by rpaulo
Affects: 
(5 files)
/stable/10/sys/arm/conf/BEAGLEBONE
/stable/10/sys/arm/ti/*
MFC r273257:
 Add a driver for the TI watchdog.

 The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
 has been booting the BeagleBone with the watchdog enabled.  We need
 to
 disable it on boot to avoid a spurious reset.
 The timer isn't exactly precise, but it will do as a watchdog.  This
 is also a reflection of the watchdog(9) API.

 In the future, we could handle interrupts, but the watchdog(9) API
 needs to be a bit smarter before that can happen.
02:02:20 - r273623
(6 days 10 hours ago)
by rpaulo
Affects: 
(2 files)
/stable/10/sys/boot/fdt/dts/arm/am335x.dtsi
MFC r273256:
 AM335X FDT: use the omap3-wdt string for compatibility with Linux.
02:00:32 - r273622
(6 days 10 hours ago)
by rpaulo
Affects: 
(2 files)
/stable/10/sys/boot/fdt/dts/arm/am335x.dtsi
MFC r273248:
 AM335x FDT: add an entry for the watchdog.
01:59:01 - r273621
(6 days 10 hours ago)
by rpaulo
Affects: 
(3 files)
/stable/10/usr.sbin/watchdogd/watchdog.8
/stable/10/usr.sbin/watchdogd/watchdogd.8
MFC r273247:
 Fix the watchdog/watchdog man pages.

 The default timeout is 128 seconds.
01:17:29 - r273620
(6 days 11 hours ago)
by gjb
Affects:  /releng/10.1/release/doc/en_US.ISO8859-1/errata/article.xml
Note to avoid using GENERIC kernel on i386 when using
multi-disk ZFS pools, referencing an old UPDATING entry
that predates 10.0-RELEASE.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
00:37:35 - r273619
(6 days 12 hours ago)
by delphij
Affects: 
(2 files)
/head/contrib/netcat/netcat.c
MFV r273617: netcat from OpenBSD 5.6.

MFC after:      2 weeks
00:32:30 - r273618
(6 days 12 hours ago)
by delphij
Affects:  /vendor/netcat/5.6
Tag netcat from OpenBSD 5.6.
00:32:05 - r273617
(6 days 12 hours ago)
by delphij
Affects:  /vendor/netcat/dist/netcat.c
Vendor import nc(1) from OPENBSD_5_6.
00:16:36 - r273616
(6 days 12 hours ago)
by delphij
Affects:  /head/sys/kern/kern_umtx.c
Fix build.
00:14:44 - r273615
(6 days 12 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/firmware/t4fw_cfg.txt
/head/sys/dev/cxgbe/firmware/t5fw_cfg.txt
cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

MFC after:      2 weeks

 


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

Page generated in 39 ms, 291 revisions printed. Current time is 2014-10-31 12:38:36. All times are in UTC/GMT.