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.

2015 - 04 - 26   (today)
01:41:10 - r281992
(3 hours 4 minutes ago)
by sbruno
Affects:  /projects/em_mq/sys/dev/e1000/if_em.c
Repair a race condition where we can accidently use the same mbuf in multiple
irq threads somehow.  Steal bus_dmamap_sync() invocations from igb(4).
2015 - 04 - 25   (yesterday)
22:42:03 - r281991
(6 hours 3 minutes ago)
by loos
Affects:  /head/sys/arm/allwinner/std.a10
/head/sys/arm/broadcom/bcm2835/std.bcm2836
Set ARM_L2_PIPT for A10 and RPI2, they are probably missing by accident.

Noted by:       Michal Meloun <meloun@miracle.cz>
22:05:48 - r281990
(6 hours 39 minutes ago)
by glebius
Affects: 
(239 files)
/projects/ifnet/*
Merge head r257698 through r281987.
21:43:29 - r281989
(7 hours 1 minute ago)
by loos
Affects:  /head/sys/dev/iicbus/pcf8563.c
Make the pcf8563 RTC work on FDT systems and on interrupt based i2c
controllers.

Call iicbus_transfer() from the device context and not from the iicbus
context.

I am committing a slightly different patch, so if something break, it is
probably my fault.

PR:             199496
Submitted by:   Juraj Lutter <otis@sk.FreeBSD.org>
21:25:00 - r281988
(7 hours 20 minutes ago)
by jilles
Affects:  /head/lib/libarchive/config_freebsd.h
libarchive: Allow setting nanosecond timestamps.
19:02:06 - r281987
(9 hours 43 minutes ago)
by tychon
Affects:  /head/sys/amd64/vmm/vmm_instruction_emul.c
STOS/STOSB/STOSW/STOSD/STOSQ instruction emulation.

Reviewed by:    neel
18:17:08 - r281986
(10 hours 28 minutes ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Cleanup a bit the clang attributes for type safety checking.

Cleanup r281861 by moving the definitions to their own section but
still leave the definitions out of lint.

In addition to the 'argument_with_type_tag' attribute, bring
'type_tag_for_datatype' which is necessary for annotating the
data types.
16:15:01 - r281985
(12 hours 30 minutes ago)
by grembo
Affects: 
(8 files)
/head/share/man/man4/smb.4
/head/sys/dev/smbus/*
/head/usr.sbin/smbmsg/smbmsg.c
Expand SMBUS API to add smbus_trans() function.

Differential Revision:  https://reviews.freebsd.org/D1955
Reviewed by:    adrian, jhb, wblock
Approved by:    adrian, jhb
16:12:06 - r281984
(12 hours 33 minutes ago)
by hiren
Affects:  /head/sys/net/netisr.c
Currently there is no easy way to specify net.isr.maxthreads = all cpus. We need
to specify exact number of cpus in loader.conf which get annoying when you have
mix of machines which don't have equal number of total cpus. I propose "-1" as
that value. When loader.conf has net.isr.maxthreads = -1, netisr will use all
available cpus.

In collaboration with:  davide
Reviewed by:    gnn
Differential Revision:  https://reviews.freebsd.org/D2318
MFC after:      2 weeks
Sponsored by:   Limelight Networks
15:43:12 - r281983
(13 hours 2 minutes ago)
by rwatson
Affects:  /head/sys/cddl/dev/profile/profile.c
Adjust PROF_ARTIFICIAL_FRAMES in the DTrace profile provider on ARM to
skip 10, rather than 9, frames.  This appears to work quite well in
practice on the BeagleBone Black, so remove a comment about the value
being bogus and replace it with a slightly less negative one.  However,
the number of frames to skip is quite sensitive to details of the timer
and interrupt handling paths, so this is necessarily fragile -- but no
more so than on x86.

Sponsored by:   DARPA, AFRL
13:34:25 - r281982
(15 hours 10 minutes ago)
by jilles
Affects:  /head/bin/sh/jobs.c
sh: Pass along SIGINT from a child if job control is enabled, even when not
interactive.

I added the interactive check in r208881 to be safe, but in actual use
(scripts in set -m mode) passing along SIGINT seems best.

Discussed with: bdrewery
08:14:08 - r281981
(20 hours 31 minutes ago)
by kib
Affects: 
(9 files)
/stable/10/lib/libc/*
/stable/10/lib/libthr/thread/thr_syscalls.c
/stable/10/share/man/man3/pthread_testcancel.3
MFC r281712:
Make wait6(2), waitid(3) and ppoll(2) cancellation points.
08:09:15 - r281980
(20 hours 36 minutes ago)
by kib
Affects: 
(2 files)
/stable/9/sys/kern/kern_thread.c
MFC r281696:
Initialize td_sel in the thread_init().

PR:     199518
08:06:21 - r281979
(20 hours 38 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_thread.c
MFC r281696:
Initialize td_sel in the thread_init().

PR:     199518
08:03:36 - r281978
(20 hours 41 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r281883:
Handle incorrect ELF images specifying size for PT_GNU_STACK not being
multiple of page size.
06:50:15 - r281977
(21 hours 55 minutes ago)
by mav
Affects: 
(4 files)
/stable/9/sys/dev/virtio/block/virtio_blk.c
MFC r281698: Do not report stripe size if it is equal to sector size.
06:49:18 - r281976
(21 hours 56 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/sys/dev/virtio/block/virtio_blk.c
MFC r281698:
Do not report stripe size if it is equal to sector size.
06:07:19 - r281975
(22 hours 37 minutes ago)
by ngie
Affects: 
(58 files)
/user/ngie/more-tests/*
MFhead @ r281974
05:31:52 - r281974
(23 hours 13 minutes ago)
by ngie
Affects: 
(44 files)
/stable/10/tools/regression/sockets/*
MFC
r261550,r281354,r281355,r281356,r281358,r281359,r281360,r281361,r281362,r281391,r281392,r281393,r281394,r281395,r281397,r281398,r281399,r281400,r281401,r281402,r281403,r281404,r281407,r281408,r281409,r281410,r281411:

r261550 (by glebius):

Add test case for kern/181741. Right now test fails.

PR:             181741
Sponsored by:   Nginx, Inc.

r281354:

Fix warnings, fix a typo in a testcase description, bump WARNS to 3

- Remove argc/argv (-Wunused)
- Cast len in comparison to size_t (-Wsign-compare)

Sponsored by: EMC / Isilon Storage Division

r281355:

Fix -Wunused warnings, bump WARNS to 6

The testcase fails today on subtest # 9

The output is still broken if prove -rv is run and the testcase aborts
prematurely (the testcase doesn't really conform to TAP protocol properly,
except when it completes fully)

Sponsored by: EMC / Isilon Storage Division

r281356:

Fix -Wunused warnings, bump WARNS to 6

The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)

Sponsored by: EMC / Isilon Storage Division

r281358:

- Parameterize out the number of accept/connect attempts
- Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and
  to also not fail if (for instance) there's a server already listening on port
  8080
- Don't leak the listening socket / fds into the child process
- Fix warnings:
-- Remove argc/argv (-Wunused)
-- Mark sig __unused (-Wunused)
-- Mark quit static (-Wmissing-variable-declarations)

Sponsored by: EMC / Isilon Storage Division

r281359:

Remove argc/argv (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281360:

Fix warnings

- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281361:

Remove argc/argv (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281362:

Use _exit, not exit in forked process

Sponsored by: EMC / Isilon Storage Division

r281391:

- Use static buffers for temporary file paths instead of strdup of constant
strings
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Use mkstemp instead of mktemp to eliminate warning

Sponsored by: EMC / Isilon Storage Division

r281392:

- Garbage collect argc/argv (-Wunused)
- Bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281393:

Fix warnings and bump WARNS to 6
- Garbage collect argc/argv (-Wunused)
- sleep(3) will always return an unsigned int; don't check for return codes <0
  (-Wsign-compare)

Sponsored by: EMC / Isilon Storage Division

r281394:

- Don't use /tmp because it's outside ATF's prescribed sandbox
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup

Sponsored by: EMC / Isilon Storage Division

r281395:

Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281397:

Mark signum unused in signal_handler; bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281398:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281399:

Fix warnings and bump WARNS to 6
- Staticize variables as needed
- Garbage collect argc/argv
- Fix -Wsign-compare warnings by casting small sizeof to (int)

Sponsored by: EMC / Isilon Storage Division

r281400:

- Garbage collect argc/argv; bump WARNS to 6
- Make the socket path random and move it out of /tmp as that's outside ATF's
  prescribed path

Sponsored by: EMC / Isilon Storage Division

r281401:

- Garbage collect argc/argv
- Use random paths instead of one in /tmp

Sponsored by: EMC / Isilon Storage Division

r281402:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281403:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281404:

Generate temporary files with mkstemp instead of mktemp

Sponsored by: EMC / Isilon Storage Division

r281407:

Fix the knob twiddling to work properly per src.opts.mk

Sponsored by: EMC / Isilon Storage Division

r281408:

- Remove the .t wrapper and put the "magic" of determining the number of
  testcases into the .c file
- Require root for now because it fails with SOCK_RAW without root privileges
- Increment the test count properly on socket create failure

Sponsored by: EMC / Isilon Storage Division

r281409:

Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp

Sponsored by: EMC / Isilon Storage Division

r281410:

Fix more warnings I didn't catch in the first go-around

Sponsored by: EMC / Isilon Storage Division

r281411:

Fix even more warnings..

Sponsored by: EMC / Isilon Storage Division
05:25:41 - r281973
(23 hours 19 minutes ago)
by ngie
Affects:  /user/ngie/more-tests/tests/sys/socket/so_setfib_test.c
Add missing newline for SKIP plan
05:08:30 - r281972
(23 hours 36 minutes ago)
by ngie
Affects: 
(5 files)
/stable/9/share/man/man4/witness.4
MFstable/10 r281968:

MFC r280475:

The number of commands added when ddb(4) is enabled is 3, not 2

Sponsored by: EMC / Isilon Storage Division
05:05:23 - r281971
(23 hours 39 minutes ago)
by ngie
Affects: 
(6 files)
/stable/9/tools/regression/aio/aiotest/Makefile
/stable/9/tools/regression/aio/aiotest/aiotest.c
MFstable/10 r281969:

MFC r280893:

Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division
04:58:08 - r281970
(23 hours 47 minutes ago)
by sobomax
Affects:  /head/usr.bin/kdump/kdump.c
o Properly init prevtime, so that we don't print bogus value in the
first entry reported by the relative mode (-R).

o Properly print negative offsets, which I guess may happen if
records get re-ordered somehow, possibly due to the locking. Right
now we report huge bogus diff (i.e. 2 seconds or so).
04:49:45 - r281969
(23 hours 55 minutes ago)
by ngie
Affects: 
(3 files)
/stable/10/tools/regression/aio/aiotest/Makefile
/stable/10/tools/regression/aio/aiotest/aiotest.c
MFC r280893:

Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division
04:40:08 - r281968
(1 day ago)
by ngie
Affects: 
(2 files)
/stable/10/share/man/man4/witness.4
MFC r280475:

The number of commands added when ddb(4) is enabled is 3, not 2

Sponsored by: EMC / Isilon Storage Division
04:35:43 - r281967
(1 day ago)
by ngie
Affects: 
(2 files)
/head/lib/libc/tests/db/Makefile
Assuming a system has /bin/csh on it is a bad idea (especially it being
optional on FreeBSD). Look for /bin/cat instead

MFC after: 3 days
04:30:01 - r281966
(1 day ago)
by ngie
Affects:  /head/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
Add #include sys/types.h for register_t for mips

MFC after: 3 days
01:29:40 - r281965
(1 day 3 hours ago)
by sbruno
Affects: 
(4 files)
/projects/em_mq/share/man/man4/em.4
/projects/em_mq/sys/dev/e1000/*
/projects/em_mq/sys/dev/netmap/if_em_netmap.h
Combine rx/tx queue handling into a single thread.

Combine rx/tx msi-x handling into a single interrupt.

This was seriously suggested by jhb and scottl during discussions.

This rips off much from igb(4) and removes a lock around drbr_enqueue()
that needed to be inplace to keep rx handling initiating a tx on the same
interrupt.
01:23:29 - r281964
(1 day 3 hours ago)
by rpaulo
Affects: 
(2 files)
/stable/10/sys/dev/atkbdc/psm.c
MFC r281704:
  Synaptics: don't report the middle button when clickPad is used.
01:11:33 - r281963
(1 day 3 hours ago)
by rpaulo
Affects: 
(5 files)
/stable/10/sys/dev/sound/pci/hda/*
MFC r281544:
  snd_hda: add support for the Lenovo X1 20BS model.

  This requires a patch to redirect the output to a separate DAC when
  the headphones are used.  While there, add device strings for Intel
  Broadwell HDA controllers and Realtek ALC292 codecs.
00:58:24 - r281962
(1 day 3 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsserver/nfs_nfsdkrpc.c
Fix the NFS server's handling of a bogus NFSv2 ROOT RPC.
The ROOT RPC is deprecated in the NFSv2 RFC, RFC-1094
and should never be used by a client.

Tested by:      thmu@freenet.de
MFC after:      1 week
00:58:19 - r281961
(1 day 3 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_all.c
MFC     r281795:
scsi_parse_transportid_rdma(): fix mismatch in memory access size.

Independently found by Coverity and gcc49.

CID:            1230006
Reviewed by:    ken
00:52:01 - r281960
(1 day 3 hours ago)
by rmacklem
Affects: 
(4 files)
/head/sys/fs/*
/head/sys/kern/vfs_bio.c
/head/sys/sys/param.h
MAXBSIZE defines both the largest UFS block size and the
largest size for a buffer in the buffer cache. This patch
defines a new constant MAXBCACHEBUF, which is the largest
size for a buffer in the buffer cache. Having a separate
constant allows MAXBCACHEBUF to be set larger than MAXBSIZE
on a per-architecture basis, so that NFS can do larger read/writes
for these architectures. It modifies sys/param.h so that BKVASIZE
can also be set on a per-architecture basis.
A couple of cases where NFS used MAXBSIZE instead of NFS_MAXBSIZE
is fixed as well.

Differential Revision:  https://reviews.freebsd.org/D2330
Reviewed by:    mav, kib
MFC after:      2 weeks
00:51:44 - r281959
(1 day 3 hours ago)
by delphij
Affects:  /head/usr.bin/whois/whois.c
Try alternate addresses more agressively.

Attempt to connect to alternate addresses if the connect doesn't
succeed in 180ms, and cut wait time between connection attempts
in half for each additional, if no connection was established.

Take the first connection to succeed and close the others.

This makes whois more responsive when e.g. IPv6 service took long
time or fail to respond.

PR:             158125
Submitted by:   Mark Andrews <marka isc org> (with changes from me)
MFC after:      2 weeks
00:36:43 - r281958
(1 day 4 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
MFC r281667:

Remove vfs.zfs.snapshot_list_prefetch, the corresponding code was
gone in r248571 already.
00:32:47 - r281957
(1 day 4 hours ago)
by delphij
Affects: 
(11 files)
/stable/10/sys/dev/hptnr/*
MFC r281387:

Merge changes from vendor driver version 1.1.1:

v1.1.1 2015-03-26
 * Support 4Kn drive.
 * Change the SCSI target ID of the disk to be the index of physical
   connetion to the HBA.
 * Support staggered drive spin up.
 * Fix a bug that command would be timeout because of improper
   interrupt service routine.
 * Error handling to avoid scsi command lost which caused system
   hang up.
 * Fix a bug that fail to get the devcie's serial number via
   FreeNAS WebGUI.

Many thanks to HighPoint for continued support of FreeBSD!

Relnotes:       yes
2015 - 04 - 24   (2 days ago)
23:27:50 - r281956
(1 day 5 hours ago)
by mckusick
Affects:  /head/sys/ufs/ffs/ffs_alloc.c
/head/sys/ufs/ffs/ffs_vfsops.c
/head/sys/ufs/ufs/inode.h
Limit the number of cylinder groups that will be searched when
trying to build a cluster. The limit is tunable using the sysctl
vfs.ffs.maxclustersearch. The current limit is 10 cylinder groups
per block allocation. It was previously limited to the number of
cylinder groups in the filesystem per block allocation. When there
were no clusters of the needed size left, it repeatedly searched
the whole filesystem for a non-existent cluster on every block
allocation. The result was very slow filesystem allocation with
100% CPU utilization. The old behavior can be had by setting
vfs.ffs.maxclustersearch to a huge number (1,000,000).

This change affects only the layout policy routines so is not able
to interfere with the integrity of the filesystem.

Reported by: Dmitry Sivachenko (demon@)
Tested by:   Dmitry Sivachenko (demon@)
MFC after:   2 weeks
23:26:44 - r281955
(1 day 5 hours ago)
by hiren
Affects: 
(42 files)
/stable/10/share/man/man9/netisr.9
/stable/10/sys/*
MFC r275358 r275483 r276982 - Removing M_FLOWID by hps@

r275358:
Start process of removing the use of the deprecated "M_FLOWID" flag
from the FreeBSD network code. The flag is still kept around in the
"sys/mbuf.h" header file, but does no longer have any users. Instead
the "m_pkthdr.rsstype" field in the mbuf structure is now used to
decide the meaning of the "m_pkthdr.flowid" field. To modify the
"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"
macros as defined in the "sys/mbuf.h" header file.

This patch introduces new behaviour in the transmit direction.
Previously network drivers checked if "M_FLOWID" was set in "m_flags"
before using the "m_pkthdr.flowid" field. This check has now now been
replaced by checking if "M_HASHTYPE_GET(m)" is different from
"M_HASHTYPE_NONE". In the future more hashtypes will be added, for
example hashtypes for hardware dedicated flows.

"M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value is
valid and has no particular type. This change removes the need for an
"if" statement in TCP transmit code checking for the presence of a
valid flowid value. The "if" statement mentioned above is now a direct
variable assignment which is then later checked by the respective
network drivers like before.

r275483:
Remove M_FLOWID from SCTP code.

r276982:
Remove no longer used "M_FLOWID" flag from mbuf.h and update the netisr
manpage.

Note: The FreeBSD version has been bumped.

Reviewed by:    hps, tuexen
Sponsored by:   Limelight Networks
22:18:50 - r281954
(1 day 6 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/sys/dev/ixgbe/ixgbe.h
MFC r279393:

Pad RX copy alignment calculation to avoid illegal memory accesses

The optimization made in r239940 is valid for struct mbuf's current structure
and size in FreeBSD, but hardcodes assumptions about sizes of struct mbuf,
which are unfortunately broken if additional data is added to the beginning of
struct mbuf

X-MFC note (discussed with rwatson):

This change requires the MPKTHSIZE definition, which is only available after
head@r277203 and will not be MFCed as it breaks mbuf(9) KPI.

A direct commit to stable/10 and merges to other branches to add the necessary
definitions to work with the code as-is will be done to facilitate this MFC

PR: 194314
Approved/Reviewed by: erj, jfv
Sponsored by: EMC / Isilon Storage Division
22:05:12 - r281953
(1 day 6 hours ago)
by kib
Affects:  /head/sys/kern/uipc_shm.c
Use correct length for sparse uiomove().  It must be the clipped to
the page size, len is the total transfer length, which may be larger
than zero_region.

Reported and tested by: clusteradm (gjb)
Sponsored by:   The FreeBSD Foundation
X-MFC-With:     r281442
22:04:59 - r281952
(1 day 6 hours ago)
by emaste
Affects:  /head/share/mk/src.opts.mk
Add LLDB to BROKEN_OPTIONS for arm prior to armv6

LLVM lacks support on FreeBSD for ARMv4/ARMv5 64-bit atomic operations.

Sponsored by:   The FreeBSD Foundation
21:38:18 - r281951
(1 day 7 hours ago)
by ngie
Affects:  /stable/10/sys/sys/mbuf.h
Backport MHSIZE/MPKTHSIZE equivalents from head

These macros are equivalent to the ones on head, except they are only exposed
when _KERNEL is defined, i.e. to kernel code, whereas the code on head is
exposed
to userland as well

This is for improved forwards compatibility with mbuf(9) macros in
head@r277203+,
and is required for a clean MFC of r279393

This is a direct commit to stable/10

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D2126
Reviewed by: glebius, rwatson
Sponsored by: EMC / Isilon Storage Division
21:05:29 - r281950
(1 day 7 hours ago)
by ae
Affects:  /head/sys/netinet/tcp_subr.c
Fix possible reference leak.

Sponsored by:   Yandex LLC
20:09:52 - r281949
(1 day 8 hours ago)
by glebius
Affects: 
(6 files)
/projects/ifnet/sys/dev/*
Those who use miibus(4) should set IFCAP_LINKSTATE.
19:51:04 - r281948
(1 day 8 hours ago)
by glebius
Affects: 
(4 files)
/projects/ifnet/sys/dev/*
Followup on r281227. If we put the mbuf on queue, we must not return
an error, even of link is down. Returning an error now means give the
mbuf back to stack.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
19:26:01 - r281947
(1 day 9 hours ago)
by emaste
Affects: 
(3 files)
/stable/9/sys/dev/vt/vt_core.c
MFC r273973: vt(4): Fix keyboard allocation when kbdmux(4) isn't used

  The problem was that only the kbdmux keyboard index was saved in
  vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
  case, the keyboard was correctly allocated, but the returned index was
  discarded.

PR:             196512
19:15:38 - r281946
(1 day 9 hours ago)
by neel
Affects:  /head/usr.sbin/bhyve/pci_emul.c
Don't allow guest to modify readonly bits in the PCI config 'status' register.

Reported by:    Leon Dang (ldang@nahannisys.com)
MFC after:      2 weeks
18:07:34 - r281945
(1 day 10 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Add definition to support alloc_align attribute.

gcc 4.9 added support for new alignment attribute alloc_align:

The alloc_align attribute is used to tell the compiler that the function
return value points to memory, where the returned pointer minimum
alignment is given by one of the functions parameters. GCC uses this
information to improve pointer alignment analysis.

This attribute is not (yet) available on clang.
17:36:26 - r281944
(1 day 11 hours ago)
by emaste
Affects:  /head/sys/dev/vt/vt_core.c
vt(4): Simplify mouse area detection

vt_is_cursor_in_area needs to return true if any part of the mouse
cursor is visible in the rectangle area. Replace the existing test with
a simpler version of a test for overlapping rectangles.

Differential Revision:  https://reviews.freebsd.org/D2356
Reviewed by:    ray
Sponsored by:   The FreeBSD Foundation
17:05:18 - r281943
(1 day 11 hours ago)
by scottl
Affects:  /stable/10/sys/vm/uma_int.h
Revert r281543.  It causes a panic/hang early in boot for a number of
users, myself included.  The original code is likely papering over a
larger bug that needs to be explored, but for now get things back to
a working state.

Obtained from:  Netflix, Inc.
17:03:53 - r281942
(1 day 11 hours ago)
by scottl
Affects:  /head/sys/vm/uma_int.h
Revert r281451.  It causes a panic/hang early in boot for a number of
users, myself included.  The original code is likely papering over a
larger bug that needs to be explored, but for now get things back to
a working state.

Obtained from:  Netflix, Inc.
MFC after:      immediately
16:56:23 - r281941
(1 day 11 hours ago)
by jhb
Affects: 
(4 files)
/head/sys/dev/ipmi/*
Watchdog drivers need to support rearming the watchdog in contexts which
are not permitted to sleep.  Only use the IPMI watchdog with backends
which poll driver-initiated requests to meet this requirement.

In practice this means that watchdogs will no longer be used on systems
that use the SSIF backend.

Differential Revision:  https://reviews.freebsd.org/D2062
MFC after:      2 weeks
16:20:56 - r281940
(1 day 12 hours ago)
by kib
Affects: 
(9 files)
/head/sys/*
Move common code from sys/i386/i386/mp_machdep.c and
sys/amd64/amd64/mp_machdep.c, to the new common x86 source
sys/x86/x86/mp_x86.c.

Proposed and reviewed by:       jhb
Review: https://reviews.freebsd.org/D2347
Sponsored by:   The FreeBSD Foundation
16:12:30 - r281939
(1 day 12 hours ago)
by emaste
Affects: 
(3 files)
/stable/9/sys/sys/elf_common.h
MFC r277464: Add missing R_X86_64_ constants to elf_common.h

PR:             196918
Sponsored by:   The FreeBSD Foundation
16:11:22 - r281938
(1 day 12 hours ago)
by brooks
Affects: 
(4 files)
/head/contrib/tcpdump/*
Merge from CheriBSD: 1065cf515a7c2062598009c1318055aacbb39e80

Convert the pfsync dissector to use the netdissect framework.

Differential Revision:  https://reviews.freebsd.org/D2359
Reviewed by:    glebius
Sponsored by:   DARPA, AFRL
15:58:41 - r281937
(1 day 12 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/sys/sys/elf_common.h
MFC r277464: Add missing R_X86_64_ constants to elf_common.h

PR:             196918
Sponsored by:   The FreeBSD Foundation
15:48:23 - r281936
(1 day 12 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.bin/ar/read.c
MFC r281311: ar: Disallow directory traversal

  Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT
  as in bsdtar to prevent extraction of archive entries whose pathnames
  contain .. or whose target directory would be altered by a symlink.
  Also disallow absolute pathnames.

  We don't currently provide an option to disable this behaviour (as
  bsdtar's -P does). It is unlikely to be a problem in practice for ar(1),
  but the -P option is not currently used and available if we want to
  consider it for this purpose.

Obtained from:  ELF tool chain ar, Ticket #474
Relnotes:       Yes
Sponsored by:   The FreeBSD Foundation
15:36:58 - r281935
(1 day 13 hours ago)
by emaste
Affects: 
(2 files)
/stable/9/contrib/binutils/bfd/dwarf2.c
MFC r279301: GNU nm: Avoid NULL dereference

  bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr,
  which resulted in a crash on certain ELF objects.

  This change was implemented independently from upstream binutils, but
  I have checked that the crash does not happen there.

Sponsored by:   The FreeBSD Foundation
15:34:20 - r281934
(1 day 13 hours ago)
by emaste
Affects: 
(3 files)
/stable/9/sys/dev/vt/vt_font.c
MFC r281537: Increase vt font limits to allow use of GNU Unifont

PR:             199438
Sponsored by:   The FreeBSD Foundation
15:32:12 - r281933
(1 day 13 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/sys/dev/vt/vt_font.c
MFC r281537: Increase vt font limits to allow use of GNU Unifont

PR:             199438
Sponsored by:   The FreeBSD Foundation
14:47:53 - r281932
(1 day 13 hours ago)
by jhb
Affects:  /head/sys/modules/oce/Makefile
Rename the kld for oce(4) to if_oce.ko.  ifconfig(8) has special knowledge
about kld filenames for network drivers that requires them to follow the
pattern of if_<foo>.  This also fixes the existing documentation in the
manpage which says to use if_oce_load=YES in loader.conf.

PR:             199095
MFC after:      1 week
14:36:06 - r281931
(1 day 14 hours ago)
by joel
Affects:  /head/sbin/camcontrol/camcontrol.8
/head/usr.sbin/iovctl/iovctl.conf.5
/head/usr.sbin/jail/jail.8
Fix minor mdoc issues.
13:12:04 - r281930
(1 day 15 hours ago)
by jhb
Affects:  /head/sys/sparc64/pci/apb.c
Update this driver to not save copies of registers that are no longer used
after r281874.  While here, also update it to always write the parent's
PCI bus number to the primary bus register.
12:48:48 - r281929
(1 day 15 hours ago)
by trasz
Affects:  /head/sbin/growfs/Makefile
/head/sbin/growfs/growfs.c
Fix growfs(8) build with debug enabled (make -DGFSDBG).

PR:             199641
Submitted by:   Willem Jan Withagen <wjw at digiware dot nl>
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
11:03:47 - r281928
(1 day 17 hours ago)
by ngie
Affects:  /head/lib/libmd/mdXhl.c
Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division
10:21:20 - r281927
(1 day 18 hours ago)
by theraven
Affects:  /head/lib/libc/locale/none.c
__xlocale_C_ctype should not be const.  It contains a reference count that is
modified by newlocale / duplocale / freelocale.

MFC after:      1 week
10:18:41 - r281926
(1 day 18 hours ago)
by ngie
Affects: 
(1005 files)
/user/ngie/more-tests/*
MFhead @ r281924
10:17:55 - r281925
(1 day 18 hours ago)
by theraven
Affects: 
(5 files)
/head/lib/libc/locale/*
Small changes to locale-related man pages.
Fix a missing .h and change the recommended include for the POSIX2008 functions
from xlocale.h to locale.h.  Including xlocale.h is for legacy / Darwin
compatibility so should not be encouraged.
09:52:41 - r281924
(1 day 18 hours ago)
by mav
Affects:  /head/share/man/man4/ada.4
Oops, add missing comma.

MFC after:      1 week
09:47:10 - r281923
(1 day 18 hours ago)
by mav
Affects:  /head/share/man/man4/ada.4
Add link to mvs(4).

MFC after:      1 week
07:57:59 - r281922
(1 day 20 hours ago)
by trasz
Affects:  /head/usr.bin/nfsstat/Makefile
/head/usr.bin/nfsstat/nfsstat.c
Make nfsstat(1) build with WARNS=6.

Sponsored by:   The FreeBSD Foundation
07:52:21 - r281921
(1 day 20 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/kern/kern_timeout.c
MFC r280786:

  Try to unbreak !SMP kernels  broken in r280785 (head), r281657 by using
  the proper macros to access cc_cpu.

Requested by:   jmallett
Pointyhat to:   rrs
07:24:31 - r281920
(1 day 21 hours ago)
by takawata
Affects:  /head/sys/dev/ichsmb/ichsmb_pci.c
Add Lynx-Point LP smbus controller ID.
05:00:57 - r281919
(1 day 23 hours ago)
by kevlo
Affects:  /head/share/man/man4/urtwn.4
Plural fix.
04:57:18 - r281918
(1 day 23 hours ago)
by kevlo
Affects:  /head/sys/dev/usb/wlan/if_urtwn.c
- Fix the length of efuse content.
- Replace the magic numbers with something more readable.
03:23:41 - r281917
(2 days 1 hour ago)
by markj
Affects:  /head
Add _.arm64.* to the svn:ignore property for head/.
03:19:30 - r281916
(2 days 1 hour ago)
by markj
Affects: 
(7 files)
/head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
/head/sys/cddl/dev/dtrace/*
Fix DTrace's panic() action.

It would previously call into some unfinished Solaris compatibility code and
return without actually calling panic(9). The compatibility code is
unneeded, however, so just remove it and have dtrace_panic() call vpanic(9)
directly.

Differential Revision:  https://reviews.freebsd.org/D2349
Reviewed by:    avg
MFC after:      2 weeks
Sponsored by:   EMC / Isilon Storage Division
03:17:21 - r281915
(2 days 1 hour ago)
by markj
Affects: 
(4 files)
/head/share/man/man9/*
/head/sys/kern/kern_shutdown.c
/head/sys/sys/systm.h
Make vpanic() externally visible so that it can be called as part of the
DTrace panic() action.

Differential Revision:  https://reviews.freebsd.org/D2349
Reviewed by:    avg
MFC after:      2 weeks
Sponsored by:   EMC / Isilon Storage Division
02:43:02 - r281914
(2 days 2 hours ago)
by ae
Affects: 
(2 files)
/stable/9/sys/netinet6/in6_mcast.c
MFC r281380:
  Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
  interface index is specified as zero, the system should select the
  interface to use for outgoing multicast packets. Even the comment
  for the in6p_set_multicast_if() function says about index of zero.
  But in fact for zero index the function just returns EADDRNOTAVAIL.

  I.e. if you first set some interface and then will try reset it
  with zero ifindex, you will get EADDRNOTAVAIL.

  Reset im6o_multicast_ifp to NULL when interface index specified as
  zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
  This will be the same behaviour as when ifindex is bigger than
  V_if_index. And return EADDRNOTAVAIL only when interface is not
  multicast capable.
02:15:14 - r281913
(2 days 2 hours ago)
by pfg
Affects: 
(3 files)
/stable/9/sys/fs/nfsclient/nfs_clrpcops.c
MFC     r281756:
nfsrpc_createv4: fix double free.

Reported by:    Oliver Pinter, clang static checker
Obtained from:  HardenedBSD (63cac77c42c0c3fc67da62f97d5ab651d52ae707)
Reviewed by:    rmacklem
02:14:01 - r281912
(2 days 2 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/fs/nfsclient/nfs_clrpcops.c
MFC     r281756:
nfsrpc_createv4: fix double free.

Reported by:    Oliver Pinter, clang static checker
Obtained from:  HardenedBSD (63cac77c42c0c3fc67da62f97d5ab651d52ae707)
Reviewed by:    rmacklem
02:12:25 - r281911
(2 days 2 hours ago)
by ae
Affects: 
(2 files)
/stable/10/sys/netinet6/in6_mcast.c
MFC r281380:
  Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
  interface index is specified as zero, the system should select the
  interface to use for outgoing multicast packets. Even the comment
  for the in6p_set_multicast_if() function says about index of zero.
  But in fact for zero index the function just returns EADDRNOTAVAIL.

  I.e. if you first set some interface and then will try reset it
  with zero ifindex, you will get EADDRNOTAVAIL.

  Reset im6o_multicast_ifp to NULL when interface index specified as
  zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
  This will be the same behaviour as when ifindex is bigger than
  V_if_index. And return EADDRNOTAVAIL only when interface is not
  multicast capable.
2015 - 04 - 23   (3 days ago)
22:39:32 - r281910
(2 days 6 hours ago)
by jhb
Affects: 
(5 files)
/stable/10/sys/dev/acpica/acpi.c
/stable/9/sys/dev/acpica/acpi.c
MFC 281159:
Move the message complaining about failed system resource allocations
under bootverbose.  Every example I've seen to date has been due to
an ACPI system resource device reserving a range that overlaps with
system memory (which ram0 attempts to reserve) or a local or I/O APIC
(which apic0 attempts to reserve).  These are always harmless but look
scary to users.
22:20:43 - r281909
(2 days 6 hours ago)
by andrew
Affects: 
(9 files)
/head/sys/arm/conf/*
/head/sys/arm/freescale/imx/*
/head/sys/conf/options.arm
Add the SOC_IMX51, SOC_IMX53, and SOC_IMX6 options. These are used to
select which SoCs the kernel config will support.

Use these options to merge files.imx51 and files.imx53.
22:06:02 - r281908
(2 days 6 hours ago)
by dim
Affects: 
(6 files)
/stable/10/contrib/llvm/*
/stable/9/contrib/llvm/*
MFC r281775:

Pull in r229911 from upstream llvm trunk (by Benjamin Kramer):

  MC: Allow multiple comma-separated expressions on the .uleb128 directive.

  For compatiblity with GNU as. Binutils documents this as
  '.uleb128 expressions'. Subtle, isn't it?

Reported by:    sbruno
PR:             199554

MFC r281777:

Add llvm patch corresponding to r281775.
21:39:32 - r281907
(2 days 7 hours ago)
by andrew
Affects:  /head/sys/arm/freescale/imx/files.imx51
/head/sys/arm/freescale/imx/files.imx53
Reduce the diff between files.imx51 and files.imx53
21:31:06 - r281906
(2 days 7 hours ago)
by andrew
Affects:  /head/sys/arm/conf/AML8726
/head/sys/arm/conf/ODROIDC1
/head/sys/arm/conf/VSATV102
Pull out the common parts of the ODROIDC1 and VSATV102 kernels to a new
kernel config. This also removes the per-board config files from universe.
20:53:29 - r281905
(2 days 7 hours ago)
by andrew
Affects: 
(4 files)
/head/sys/arm/amlogic/aml8726/*
/head/sys/arm/conf/ODROIDC1
/head/sys/arm/conf/VSATV102
Remove the need for board specific std files on aml8726 by moving the
options they set to the main kernel config.
20:43:24 - r281904
(2 days 8 hours ago)
by andrew
Affects:  /head/sys/arm/amlogic/aml8726/std.aml8726
/head/sys/arm/amlogic/aml8726/std.odroidc1
/head/sys/arm/amlogic/aml8726/std.vsatv102-m6
Move KERNVIRTADDR to the common std.aml8726.
20:39:40 - r281903
(2 days 8 hours ago)
by andrew
Affects: 
(4 files)
/head/sys/arm/amlogic/aml8726/*
 - Move files selected in files.smp to files.aml8726 and remove it.
 - Remove a redundant file from files.aml8726
20:28:56 - r281902
(2 days 8 hours ago)
by andrew
Affects:  /head/sys/arm/conf/ODROIDC1
/head/sys/arm/conf/VSATV102
Update the ODROIDC1 and VSATV102 to reduce the diff to the other armv6
kernel config files.
20:26:22 - r281901
(2 days 8 hours ago)
by emaste
Affects:  /head/sys/dev/kbdmux/kbdmux.c
Revert r281889, it broke keyboard input
19:50:22 - r281900
(2 days 8 hours ago)
by loos
Affects:  /head/sys/arm/conf/RPI2
Now that we have an U-Boot for RPI2, do not use the static DTB compiled
into the kernel, which is used mostly on early development stages.

On RPI(2) the DTB is loaded and modified by firmware and then handed to
kernel via U-Boot and ubldr.

The RPI firmware adds (or modify) a few valuable data to the in memory
DTB, like:

 - System memory;
 - Ethernet MAC address;
 - framebuffer settings;
 - Board serial and revision;
 - clock-frequency for most of devices.
18:36:36 - r281899
(2 days 10 hours ago)
by loos
Affects:  /head/sys/boot/fdt/dts/arm/bcm2836.dtsi
/head/sys/boot/fdt/dts/arm/rpi2.dts
Fix the gpio-leds node to match the LEDs on RPI2.

The 'pwr' LED is connected to GPIO pin 35 (active high) and the 'act' LED
is connected to GPIO pin 47 (active high).

Remove the GPIO pin 47 from reserved pins list, previously it was used to
signaling the SD Card presence and now it is used by act LED.
15:26:07 - r281898
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/8/usr.bin/lockf/lockf.c
MFC r281582:

  Remove extra flags from r250462.
15:25:22 - r281897
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/9/usr.bin/lockf/lockf.c
MFC r281582:

  Remove extra flags from r250462.
15:24:33 - r281896
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/usr.bin/lockf/lockf.c
MFC r281582:

  Remove extra flags from r250462.
15:21:47 - r281895
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/8/crypto/openssh/clientloop.c
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.
15:20:57 - r281894
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/9/crypto/openssh/clientloop.c
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.
15:19:56 - r281893
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/crypto/openssh/clientloop.c
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.
15:18:43 - r281892
(2 days 13 hours ago)
by bdrewery
Affects:  /stable/10/share/man/man5/src.conf.5
Regen for r281891
15:15:45 - r281891
(2 days 13 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/tools/build/options/WITHOUT_CXX
MFC r281053:

  Remove specific reference to g++(1) for WITH_CXX as it may be clang.
14:58:39 - r281890
(2 days 13 hours ago)
by loos
Affects:  /head/sys/boot/fdt/dts/arm/bcm2836.dtsi
Enable the watchdog on RPI2.

The watchdog is used to reset the SoC on cpu_reset().

Without this, RPI2 will not reboot when asked to.
14:53:45 - r281889
(2 days 13 hours ago)
by pfg
Affects:  /head/sys/dev/kbdmux/kbdmux.c
Plug memory leaks in kbdmux(4)

Al kudos here for the Clang static analyzer which, unlike Coverity,
failed to flag a false positive.

Found by:       clang static analyzer
CID:            1007072
CID:            1007073
CID:            1007074

MFC after:      1 week
14:36:01 - r281888
(2 days 14 hours ago)
by trasz
Affects:  /head/usr.bin/nfsstat/nfsstat.1
/head/usr.bin/nfsstat/nfsstat.c
Remove oldnfs support from nfsstat(1).

Reviewed by:    rmacklem@ (earlier version)
Sponsored by:   The FreeBSD Foundation
14:22:20 - r281887
(2 days 14 hours ago)
by jhb
Affects: 
(56 files)
/head/*
Reassign copyright statements on several files from Advanced
Computing Technologies LLC to Hudson River Trading LLC.

Approved by:    Hudson River Trading LLC (who owns ACT LLC)
MFC after:      1 week
14:04:33 - r281886
(2 days 14 hours ago)
by emaste
Affects:  /head/lib/libstand/Makefile
/head/sys/boot/libstand32/Makefile
/head/sys/boot/userboot/libstand/Makefile
Reduce diffs between the three copies of libstand's Makefile

This should be a non-functional change.  A future change should
address the functional differences between these three and converge
on a single source.

Differential Revision:  https://reviews.freebsd.org/D2058
Reviewed by:    jhb
Sponsored by:   The FreeBSD Foundation
13:19:00 - r281885
(2 days 15 hours ago)
by glebius
Affects:  /head/sys/net/if_vlan.c
Don't propagate SIOCSIFCAPS from a vlan(4) to its parent. This leads to
quite unexpected result of toggling capabilities on the neighbour vlan(4)
interfaces.

Reviewed by:            melifaro, np
Differential Revision:  https://reviews.freebsd.org/D2310
Sponsored by:           Nginx, Inc.
13:10:03 - r281884
(2 days 15 hours ago)
by tuexen
Affects:  /head/lib/libc/net/sctp_recvmsg.3
A complete user message is signalled with the MSG_EOR flag, not the MSG_EOF
flag.
Thanks to Valentin Nechayev for reporting the issue.

MFC after: 1 week
11:27:21 - r281883
(2 days 17 hours ago)
by kib
Affects:  /head/sys/kern/kern_exec.c
Handle incorrect ELF images specifying size for PT_GNU_STACK not being
multiple of page size.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
08:41:50 - r281882
(2 days 20 hours ago)
by trasz
Affects:  /head/sys/compat/linux/linux_getcwd.c
Simplify linux_getcwd(), removing code that was longer used.

Differential Revision:  https://reviews.freebsd.org/D2326
Reviewed by:    dchagin@, kib@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
07:41:58 - r281881
(2 days 21 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/dwc_otg.c
Disable multi process interrupts, because the current code doesn't use
them. Else we can end up in an infinite interrupt loop in USB device
mode.

MFC after:      3 days
07:32:28 - r281880
(2 days 21 hours ago)
by kib
Affects: 
(3 files)
/stable/10/sys/kern/link_elf_obj.c
/stable/10/sys/sys/elf_common.h
MFC r281003:
Speed up symbol lookup for the amd64 kernel modules.
02:50:06 - r281879
(3 days 1 hour ago)
by araujo
Affects:  /head/sys/amd64/vmm/amd/svm.c
Missing break in switch case.

Differential Revision:  D2342
Reviewed by:            neel
01:52:07 - r281878
(3 days 2 hours ago)
by kevlo
Affects: 
(4 files)
/stable/10/share/man/man4/run.4
/stable/10/sys/dev/usb/usbdevs
/stable/10/sys/dev/usb/wlan/if_run.c
MFC r281745:
Add new USB ID.

PR:     199522
01:39:28 - r281877
(3 days 3 hours ago)
by yongari
Affects:  /head/sys/dev/mii/brgphy.c
Add another variant of BCM5708S controller to IBM HS21 workaround
list.

PR:             118238
MFC after:      2 weeks
01:04:14 - r281876
(3 days 3 hours ago)
by gjb
Affects:  /head/release/scripts/mk-vmimage.sh
/head/release/tools/vmimage.subr
Create the arm64/aarch64 VM disk image as MBR instead of
GPT scheme.  UEFI needs to know the unique partition GUID
with GPT, which changes each time.  Specifically, the QEMU
EFI BIOS file has this hard-coded.[1]

Since the GPT labels are now unavailable, unconditionally
label the root filesystem as 'rootfs' with newfs(8), since
it does not hurt anything anywhere else.  For the arm64 case,
'/' is mounted from /dev/ufs/rootfs; for all other VM images,
'/' is mounted from /dev/gpt/rootfs.

Unfortunately, since the /dev/gpt/swapfs label is also lost,
set NOSWAP=1 for the arm64/aarch64 images.  This is temporary,
until I figure out a scalable solution to this.  But, a certain
piece of softare was written "very fast", and ended up living
for 15 years.  We can deal with this for a week or so.

Information from:       andrew, emaste [1]
Sponsored by:   The FreeBSD Foundation
2015 - 04 - 22   (4 days ago)
22:23:56 - r281875
(3 days 6 hours ago)
by pfg
Affects:  /head/lib/libgeom/geom_xml2tree.c
libgeom: plug memory leak in EndElement.

CID:            1016696
Found by:       Clang static checker
MFC after:      1 week
22:02:27 - r281874
(3 days 6 hours ago)
by jhb
Affects: 
(5 files)
/head/sys/dev/pccbb/pccbb_pci.c
/head/sys/dev/pci/*
Update the pci_cfg_save/restore routines to operate on bridge devices
(type 1 and type 2) as well as leaf devices (type 0).  In particular,
this allows the existing PCI bus logic to save and restore capability
registers such as MSI and PCI-express work for bridge devices rather than
requiring that code to be duplicated in bridge drivers.  It also means
that bridge drivers no longer need to save and restore basic registers
such as the PCI command register or BARs nor manage powerstates for the
bridge device.

While here, pci_setup_secbus() has been changed to initialize the 'sec'
and 'sub' fields in the 'secbus' structure instead of requiring the pcib
and pccbb drivers to do this in the NEW_PCIB + PCI_RES_BUS case.

Differential Revision:  https://reviews.freebsd.org/D2240
Reviewed by:    imp, jmg
MFC after:      2 weeks
21:56:44 - r281873
(3 days 6 hours ago)
by jhb
Affects:  /head/sys/dev/pci/pci_pci.c
Don't explicitly manage power states for PCI-PCI bridge devices in the
driver's suspend and resume routines.  These have been redundant no-ops
since r214065 changed the PCI bus driver to manage power states for
all devices (including type 1/2 bridge devices) during suspend and resume.
21:47:51 - r281872
(3 days 6 hours ago)
by jhb
Affects:  /head/sys/dev/pci/pci_pci.c
Fix some incorrect #if conditions around older workarounds for bus
numbering goofs.

MFC after:      1 week
21:41:59 - r281871
(3 days 7 hours ago)
by jhb
Affects:  /head/sys/dev/pci/pci.c
The minimim grant and maximum latency PCI config registers are only valid
for type 0 devices, not type 1 or 2 bridges.  Don't read them for bridge
devices during bus scans and return an error when attempting to read them
as ivars for bridge devices.
21:38:21 - r281870
(3 days 7 hours ago)
by jhb
Affects:  /head/sys/dev/pccbb/pccbb_pci.c
Cosmetic change: use PCIR_SECLAT_2 rather than PCIR_SECLAT_1.
20:48:56 - r281869
(3 days 7 hours ago)
by ae
Affects: 
(34 files)
/stable/9/sys/*
MFC r274988 (with modification):
  Skip L2 addresses lookups for tunneling interfaces.

PR:             197286
20:42:17 - r281868
(3 days 8 hours ago)
by ae
Affects: 
(4 files)
/stable/10/sys/gnu/dts
/stable/10/sys/netinet6/in6.c
/stable/10/sys/netinet6/nd6.c
MFC r274988 (with modification):
  Skip L2 addresses lookups for tunneling interfaces.

PR:             197286
19:59:08 - r281867
(3 days 8 hours ago)
by ae
Affects: 
(33 files)
/stable/9/sys/*
MFC r281309:
  Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
  It is acceptable that the size can be equal to MCLBYTES. In the later
  KAME's code this check has been moved under DIAGNOSTIC ifdef, because
  the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
  replace the check with KASSERT.

  PR:           199304
19:41:29 - r281866
(3 days 9 hours ago)
by ae
Affects: 
(3 files)
/stable/10/sys/gnu/dts
/stable/10/sys/netinet6/nd6_nbr.c
MFC r281309:
  Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
  It is acceptable that the size can be equal to MCLBYTES. In the later
  KAME's code this check has been moved under DIAGNOSTIC ifdef, because
  the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
  replace the check with KASSERT.

  PR:           199304
18:54:51 - r281865
(3 days 9 hours ago)
by jgh
Affects: 
(2 files)
/stable/10/sbin/ggate/ggatel/ggatel.8
MFC: r281324

- ggatel.8 currently doesn't mention the 'rescue' command and
  documents a non-existing 'attach' command instead.
- while here address a spelling error

Approved by:    wblock (mentor)
Differential Revision:  https://reviews.freebsd.org/D2346
18:46:29 - r281864
(3 days 9 hours ago)
by gjb
Affects:  /projects/release-install-debug/usr.sbin/bsdinstall/scripts/auto
Fix mapping the distribution package name in the MANIFEST to
what is available on-disk to fix installing distribution sets
that are available locally, but do not directly match what is
shown on the distribution selection menu.

Instead of doing any further string manipulation to create the
menu, just use the distribution set name without the '.txz'
suffix.

At this point, the fourth column in the MANIFEST is likely not
needed anymore, but it won't be removed yet until I am certain.

Sponsored by:   The FreeBSD Foundation
18:35:03 - r281863
(3 days 10 hours ago)
by loos
Affects:  /head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
Fetch the SDHCI frequency from videocore (our prefered source) and only if
it fails, fetch the clock-frequency from DTB.

If both methods fail, use the hardcoded default.
18:15:18 - r281862
(3 days 10 hours ago)
by rodrigc
Affects:  /head/sys/modules/zlib/Makefile
Move zlib.c from net to libkern.
18:13:28 - r281861
(3 days 10 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Add definition for the argument_with_type_tag attribute.

This attribute originates in clang and brings support for checking types
of variadic functions' arguments for functions like fcntl() and ioctl().

Unfortunately lint(1) will complain about them: in particular as one of
the parameters is the function being tagged. For now define this attribute
in the lint-sensitive section.

Reference:
http://clang.llvm.org/docs/AttributeReference.html#type-safety-checking
18:11:34 - r281860
(3 days 10 hours ago)
by mav
Affects:  /head/sys/kern/vfs_aio.c
Make AIO to not allocate pbufs for unmapped I/O like r281825.

While there, make few more performance optimizations.

On 40-core system doing many 512-byte AIO reads from array of raw SSDs
this change removes lock congestions inside pbuf allocator and devfs,
and bottleneck on single AIO completion taskqueue thread.  It improves
peak AIO performance from ~600K to ~1.3M IOPS.

MFC after:      2 weeks
17:35:58 - r281859
(3 days 11 hours ago)
by loos
Affects:  /head/sys/boot/fdt/dts/arm/bcm2836.dtsi
Fix the SDHCI clock frequency for RPI2, the default clock (for the newer
firmware versions) is 250MHz.
17:09:02 - r281858
(3 days 11 hours ago)
by pfg
Affects:  /head/lib/libc/regex/regcomp.c
computematchjumps(): fix allocator sizeof operand mismatch.

Mostly cosmetical warning.

Found by:       Clang static analyzer
16:51:21 - r281857
(3 days 11 hours ago)
by pfg
Affects:  /head/lib/libthr/thread/thr_clean.c
_pthread_cleanup_push: fix allocator sizeof operand mismatch

Same fix appears to be in DragonFly's libthread_xu.

Found by:       Clang Static Analyzer
MFC after:      1 week
16:06:49 - r281856
(3 days 12 hours ago)
by pjd
Affects:  /svnadmin/conf/access
Welcome Mariusz Zaborski (oshogbo) as a new src committer. Mariusz will be
working (at least initially) on Capsicum, Casper, libnv and surroundings.

Approved by:    core
14:38:58 - r281855
(3 days 14 hours ago)
by rodrigc
Affects: 
(17 files)
/head/sys/*
Move zlib.c from net to libkern.

It is not network-specific code and would
be better as part of libkern instead.
Move zlib.h and zutil.h from net/ to sys/
Update includes to use sys/zlib.h and sys/zutil.h instead of net/

Submitted by:           Steve Kiernan stevek@juniper.net
Obtained from:          Juniper Networks, Inc.
GitHub Pull Request:    https://github.com/freebsd/freebsd/pull/28
Relnotes:               yes
13:52:29 - r281854
(3 days 14 hours ago)
by gjb
Affects:  /head/release/arm64/make-memstick.sh
Remove the gptboot partition from the arm64 memory stick image,
which is not needed/used.

Sponsored by:   The FreeBSD Foundation
12:58:16 - r281853
(3 days 15 hours ago)
by gjb
Affects: 
(3217 files)
/projects/release-arm-redux/*
MFH: r280643-r281852

Sponsored by:   The FreeBSD Foundation
12:39:19 - r281852
(3 days 16 hours ago)
by gjb
Affects: 
(10455 files)
/projects/release-install-debug/*
MFH: r279077-r281849

Sponsored by:   The FreeBSD Foundation
12:32:14 - r281851
(3 days 16 hours ago)
by kib
Affects: 
(8 files)
/head/sys/*
Move some common code from sys/amd64/amd64/machdep.c and
sys/i386/i386/machdep.c to new file sys/x86/x86/cpu_machdep.c.  Most
of the code is related to the idle handling.

Discussed with: pluknet
Sponsored by:   The FreeBSD Foundation
12:24:38 - r281850
(3 days 16 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/stack_machdep.c
Add the null implementation of stack_save and stack_save_td.

Sponsored by:   The FreeBSD Foundation
10:59:05 - r281849
(3 days 17 hours ago)
by kib
Affects: 
(3 files)
/stable/10/libexec/rtld-elf/rtld.c
/stable/10/libexec/rtld-elf/rtld.h
MFC r281549:
Implement support for -z global linker option.
10:57:00 - r281848
(3 days 17 hours ago)
by kib
Affects: 
(5 files)
/stable/10/sys/kern/*
/stable/10/sys/sys/imgact.h
MFC r281548:
Implement support for binary to request specific stack size for the
initial thread.
10:25:08 - r281847
(3 days 18 hours ago)
by pluknet
Affects:  /stable/10/sys/kern/init_main.c
Fix r281843 mis-merge.

Reported by:    Thomas Mueller tmueller at sysgo com
09:52:51 - r281846
(3 days 18 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Remove the calls to panic from pmap_object_init_pt and pmap_clear_modify.

Sponsored by:   The FreeBSD Foundation
01:54:25 - r281845
(4 days 2 hours ago)
by rodrigc
Affects: 
(5 files)
/head/lib/libc/stdio/flags.c
/head/libexec/rtld-elf/rtld.c
/head/sys/*
Support file verification in MAC.

* Add VCREAT flag to indicate when a new file is being created
* Add VVERIFY to indicate verification is required
* Both VCREAT and VVERIFY are only passed on the MAC method vnode_check_open
  and are removed from the accmode after
* Add O_VERIFY flag to rtld open of objects
* Add 'v' flag to __sflags to set O_VERIFY flag.

Submitted by:           Steve Kiernan <stevek@juniper.net>
Obtained from:          Juniper Networks, Inc.
GitHub Pull Request:    https://github.com/freebsd/freebsd/pull/27
Relnotes:               yes
01:35:29 - r281844
(4 days 3 hours ago)
by rodrigc
Affects:  /head/sys/sys/mbuf.h
Quiet compiler warnings in mbuf.h

 * Mark unused arguments with __unused
 * Move inline before the return type (and use __inline to keep the file
   consistent in style.)

Submitted by:   Steve Kiernan <stevek@juniper.net>
Obtained from:  Juniper Networks, Inc.
01:08:40 - r281843
(4 days 3 hours ago)
by dteske
Affects: 
(35 files)
/stable/10/sys/boot/*
/stable/10/sys/kern/init_main.c
/stable/10/usr.sbin/bsdinstall/scripts/zfsboot
MFC revisions 277693,278335,280382-280385,280923-280926,280931,
280933-280939,280974-280976,281002,281009,281081,281176-281180,
281271,281275,281616 (described in-breif below):
r277693: Font fix (des)
r278335: Revert that
r280382: Whitespace, comments, and copyright update
r280383: Prevent inadvertent bootlock condition
r280384: Increase max passowrd length from 16 to 255 chars
r280385: Add missing variable hints to loader.conf(5) defaults
r280923: Whitespace
r280924: Comments
r280925: Optimize bootmsg to use fg/bg/me from screen.4th
r280926: Whitespace and cleanup
r280931: Comments
r280933: Move beastie to logo-*.4th; brands to brand-*.4th
r280934: Add remainder of supported ANSI escape sequences
r280935: Securely overwrite (zero) user input after password checks
r280936: Use equals for ASCII double frames
r280937: Solve dreaded "dictionary full" issue
r280938: Add "GELI Passphrase:" prompt to boot loader
r280939: Revert that (premature commit)
r280974: Use fg/b/me from screen.4th instead of literals
r280975: Eliminate literal escape sequences from *.4th
r280976: Use ^[[m mode-ending versus ^[[37m
r281002: Install newly added brand-*.4th and logo-*.4th files (jkim)
r281009: Revert .PATH changes to fix mips build (jkim)
r281081: Make sure forth manpages are only installed once (bapt)
r281176: Back to previous mode-endings based on feedback
r281177: Back to previous mode-endings based on feedback
r281178: Back to previous mode-endings based on feedback
r281179: Back to previous mode-endings based on feedback
r281180: Eliminate literal escape sequences from *.rc
r281271: Fix a bootlock condition if loader_version is set
NB: Commit message of r281271 has a typo, s/_logo/_version/
r281275: Re-do proper mode-endings
r281616: Add "GELI Passphrase:" prompt to boot loader

Relnotes:       Added "GELI Passphrase:" prompt to boot loader
00:40:41 - r281842
(4 days 4 hours ago)
by pfg
Affects: 
(13 files)
/stable/9/sys/conf/files
/stable/9/sys/fs/ext2fs/*
/stable/9/sys/modules/ext2fs/Makefile
MFC     r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR:     191895
PR:     198731
PR:     199309
00:38:11 - r281841
(4 days 4 hours ago)
by pfg
Affects: 
(10 files)
/stable/10/sys/conf/files
/stable/10/sys/fs/ext2fs/*
/stable/10/sys/modules/ext2fs/Makefile
MFC     r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR:     191895
PR:     198731
PR:     199309
2015 - 04 - 21   (5 days ago)
22:55:52 - r281840
(4 days 5 hours ago)
by delphij
Affects:  /head/sys/cam/scsi/scsi_da.c
Extend DA_Q_NO_RC16 to MXUB3* devices.

PR:             kern/198647
MFC after:      2 weeks
20:25:12 - r281839
(4 days 8 hours ago)
by glebius
Affects:  /head/sys/netinet/ip_carp.c
Improve carp(4) locking:
- Use the carp_sx to serialize not only CARP ioctls, but also carp_attach()
  and carp_detach().
- Use cif_mtx to lock only access to those the linked list.
- These locking changes allow us to do some memory allocations with M_WAITOK
  and also properly call callout_drain() in carp_destroy().
- In carp_attach() assert that ifaddr isn't attached. We always come here
  with a pristine address from in[6]_control().

Reviewed by:    oleg
Sponsored by:   Nginx, Inc.
20:24:15 - r281838
(4 days 8 hours ago)
by hiren
Affects:  /head/sys/dev/e1000/if_igb.c
For igb(4), when we are doing multiqueue, we are all setup to have full 32bit
RSS hash from the card. We do not need to hide that under "ifdef RSS" and should
expose that by default so others like lagg(4) can use that and avoid hashing the
traffic by themselves.
While here, improve comments and get rid of hidden/unimplemented RSS support
code for UDP.

Differential Revision:  https://reviews.freebsd.org/D2296
Reviewed by:    jfv, erj
Discussed with: adrian
Sponsored by:   Limelight Networks
19:33:30 - r281837
(4 days 9 hours ago)
by sbruno
Affects: 
(714 files)
/projects/em_mq/*
MFH @281750
17:02:55 - r281836
(4 days 11 hours ago)
by garga
Affects: 
(3 files)
/stable/10/Makefile
/stable/10/Makefile.inc1
MFC r270155, r274490, r274593, r274607

Add native-xtools target to stable/10

Differential Revision:  https://reviews.freebsd.org/D2044
Reviewed by:    sbruno@
Approved by:    sbruno@
Sponsored by:   Netgate
16:54:21 - r281835
(4 days 11 hours ago)
by gjb
Affects:  /stable/10/release/doc/share/xml/security.xml
/stable/8/release/doc/share/xml/security.xml
/stable/9/release/doc/share/xml/security.xml
Document SA-15:07, SA-15:08, SA-15:09.

Sponsored by:   The FreeBSD Foundation
15:47:00 - r281834
(4 days 12 hours ago)
by garga
Affects:  /stable/10/usr.bin/sort/Makefile
Replace LDFLAGS by LDADD to fix sort build with -DNO_SHARED

Differential Revision:  https://reviews.freebsd.org/D2044
Reviewed by:    sbruno@
Approved by:    sbruno@
Sponsored by:   Netgate
15:00:49 - r281833
(4 days 13 hours ago)
by brooks
Affects: 
(2 files)
/stable/8/share/man/man3/queue.3
MFC r281605,281768:

r281605:
        Fix a minor function definition inconsistancy.

r281768:
        Bump doc date missed in r281605.
14:48:38 - r281832
(4 days 13 hours ago)
by gjb
Affects:  /head/release/tools/vmimage.subr
Revert r281809, which did more harm than good, and apply
a more proper fix when attempting to locate the /boot
files.

Sponsored by:   The FreeBSD Foundation
14:48:18 - r281831
(4 days 13 hours ago)
by brooks
Affects: 
(2 files)
/stable/9/share/man/man3/queue.3
MFC r281605,281768:

r281605:
        Fix a minor function definition inconsistancy.

r281768:
        Bump doc date missed in r281605.
14:22:45 - r281830
(4 days 14 hours ago)
by brooks
Affects: 
(2 files)
/stable/10/share/man/man3/queue.3
MFC r281605,281768:

r281605:
        Fix a minor function definition inconsistancy.

r281768:
        Bump doc date missed in r281605.
13:55:24 - r281829
(4 days 14 hours ago)
by trasz
Affects: 
(4 files)
/head/sys/compat/linux/*
/head/sys/kern/vfs_cache.c
/head/sys/sys/syscallsubr.h
Modify kern___getcwd() to take max pathlen limit as an additional
argument.  This will be used for the Linux emulation layer - for Linux,
PATH_MAX is 4096 and not 1024.

Differential Revision:  https://reviews.freebsd.org/D2335
Reviewed by:    kib@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
11:50:31 - r281828
(4 days 16 hours ago)
by jah
Affects: 
(4 files)
/head/sys/dev/iicbus/*
Fix numerous issues in iic(4) and iicbus(4):
--Allow multiple open iic fds by storing addressing state in cdevpriv
--Fix, as much as possible, the baked-in race conditions in the iic
ioctl interface by requesting bus ownership on I2CSTART, releasing it on
I2CSTOP/I2CRSTCARD, and requiring bus ownership by the current cdevpriv
to use the I/O ioctls
--Reduce internal iic buffer size and remove 1K read/write limit by
iteratively calling iicbus_read/iicbus_write
--Eliminate dynamic allocation in I2CWRITE/I2CREAD
--Move handling of I2CRDWR to separate function and improve error handling
--Add new I2CSADDR ioctl to store address in current cdevpriv so that
I2CSTART is not needed for read(2)/write(2) to work
--Redesign iicbus_request_bus() and iicbus_release_bus():
    --iicbus_request_bus() no longer falls through if the bus is already
owned by the requesting device.  Multiple threads on the same device may
want exclusive access.  Also, iicbus_release_bus() was never
device-recursive anyway.
    --Previously, if IICBUS_CALLBACK failed in iicbus_release_bus(), but
the following iicbus_poll() call succeeded, IICBUS_CALLBACK would not be
issued again
    --Do not hold iicbus mtx during IICBUS_CALLBACK call.  There are
several drivers that may sleep in IICBUS_CALLBACK, if IIC_WAIT is passed.
    --Do not loop in iicbus_request_bus if IICBUS_CALLBACK returns
EWOULDBLOCK; instead pass that to the caller so that it can retry if so
desired.

Differential Revision:  https://reviews.freebsd.org/D2140
Reviewed by:    imp, jhb, loos
Approved by:    kib (mentor)
11:29:07 - r281827
(4 days 17 hours ago)
by mav
Affects: 
(27 files)
/stable/9/sys/dev/*
MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.
11:27:50 - r281826
(4 days 17 hours ago)
by mav
Affects: 
(25 files)
/stable/10/sys/dev/*
MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.
10:55:53 - r281825
(4 days 17 hours ago)
by mav
Affects:  /head/sys/kern/kern_physio.c
Rewrite physio() to not allocate pbufs for unmapped I/O.

pbufs is a limited resource, and their allocator is not SMP-scalable.
So instead of always allocating pbuf to immediately convert it to bio,
allocate bio just here.  If buffer needs kernel mapping, then pbuf is
still allocated, but used only as a source of KVA and storage for a list
of held pages.

On 40-core system doing many 512-byte reads from user level to array of
raw SSDs this change removes huge lock congestion inside pbuf allocator.
It improves peak performance from ~300K to ~1.2M IOPS.  On my previous
24-core system this problem also existed, but was less serious.

Reviewed by:    kib
MFC after:      2 weeks
10:35:23 - r281824
(4 days 18 hours ago)
by glebius
Affects:  /head/sys/conf/NOTES
/head/sys/conf/options
/head/sys/net/if_media.c
Make IFMEDIA_DEBUG a kernel option.

Sponsored by:   Nginx, Inc.
10:17:25 - r281823
(4 days 18 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Serialize all of _kerberos5_bootstrap_tools to avoid build failures involving
make bootstrap-tools

On the plus side, this also greatly reduces complexity

MFC after: 1 week
Pointyhat to: ngie
Reported by: Willem Jan Withagen <wjw@digiware.nl>
09:47:27 - r281822
(4 days 18 hours ago)
by glebius
Affects: 
(864 files)
/projects/ifnet/*
Merge head r257698 through r281821.
09:39:48 - r281821
(4 days 19 hours ago)
by glebius
Affects: 
(4 files)
/head/sys/dev/mii/*
Instead of storing mii_media_table array index in ifm_data, determine
it in mii_phy_setmedia() functionally.

Sponsored by:   Nginx, Inc.
09:11:28 - r281820
(4 days 19 hours ago)
by trasz
Affects:  /head/usr.sbin/ctld/ctl.conf.5
Add hint about "volmode=dev" to ctl.conf(5).

Differential Revision:  https://reviews.freebsd.org/D2328
Reviewed by:    allanjude@, bcr@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
08:54:14 - r281819
(4 days 19 hours ago)
by glebius
Affects:  /head/sys/dev/mii/mlphy.c
The comment on BMCR data in if_media entry is wrong. The ifm_data stores
the index array, not a value for BMCR register. In case of IFM_10_T there
could be either MII_MEDIA_10_T or MII_MEDIA_10_T_FDX, which are 1 and 2,
accordingly. Neither matches a valid BMCR value. My guessing is that this
write is harmless, since later mii_phy_setmedia() would write a proper
value there.

The code is here since the initial checkin. Note that case IFM_100_TX has
the same comment, but a proper value of BMCR_ISO is written. So, collapse
two cases into one, always writing there BMCR_ISO.

Sponsored by:   Nginx, Inc.
08:47:27 - r281818
(4 days 19 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap7.sh
Updated scenario with problem seen and fix revision.

Sponsored by:    EMC / Isilon storage division
06:59:40 - r281817
(4 days 21 hours ago)
by glebius
Affects:  /head/sys/dev/mii/xmphy.c
Since xmphy doesn't call mii_phy_setmedia(), there is no reason to set ifm_data.

Sponsored by:   Nginx, Inc.
06:46:11 - r281816
(4 days 21 hours ago)
by glebius
Affects:  /head/sys/dev/mii/brgphy.c
Since brgphy doesn't call mii_phy_setmedia(), there is no reason to
set any value to ifm_data.  If brgphy ever to call mii_phy_setmedia(),
then the value of BRGPHY_S1000 | BRGPHY_BMCR_FDX will trigger KASSERT.

While here, remove the obfuscating macro and wrap long lines.

Sponsored by:   Nginx, Inc.
06:11:47 - r281815
(4 days 22 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/video/udl.c
Don't print uninitialized variables.

CID:    1295242
05:41:56 - r281814
(4 days 23 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Tweak BSS symbol handling from r281811 to not consider them unresolved
05:10:18 - r281813
(4 days 23 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Support libraries linked by path.

Sponsored by:   EMC / Isilon Storage Division
04:40:38 - r281812
(5 days ago)
by sjg
Affects: 
(147 files)
/head/contrib/bmake/*
/head/usr.bin/bmake/*
Merge bmake-20150418

PR: 199486
03:29:03 - r281811
(5 days 1 hour ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
- For executables search for matching (B) global uninitialized BSS symbols from
  linked libraries. Only do this for BSS symbols that have a size which avoids
  __bss_start. Without this some libraries would be considered unneeded even
  though they were providing a B symbol.
- Add in the symbols from crt1.o to cover a handful of common unresolved
symbols.
- Consider (C) common data symbols as provided by libraries/crt1.
- Move libkey() function to more appropriate place.

Sponsored by:   EMC / Isilon Storage Division
03:06:58 - r281810
(5 days 1 hour ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Revert r281805 for now as it breaks due to spaces in output
02:49:44 - r281809
(5 days 1 hour ago)
by gjb
Affects:  /head/release/tools/vmimage.subr
Simplify variable expansion in attempt to fix the vm-image build.

Sponsored by:   The FreeBSD Foundation
02:02:25 - r281808
(5 days 2 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Pass full path to ldd(1) so it works on files in cwd.
02:00:37 - r281807
(5 days 2 hours ago)
by rpaulo
Affects:  /head/usr.sbin/wpa/Makefile.crypto
Fix wpa/hostapd build without OpenSSL.
01:45:11 - r281806
(5 days 3 hours ago)
by rpaulo
Affects: 
(491 files)
/head/contrib/wpa/*
/head/usr.sbin/wpa/*
Merge wpa_supplicant/hostapd 2.4.

Major changes are: SAE, Suite B, RFC 7268, EAP-PKE, ACS, and tons of
bug fixes.

Relnotes:       yes
01:37:14 - r281805
(5 days 3 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Support demangling C++ symbols with -D flag.

Sponsored by:   EMC / Isilon Storage Division
01:09:53 - r281804
(5 days 3 hours ago)
by sbruno
Affects:  /projects/em_mq/sys/dev/e1000/if_em.c
Define em_last_bind_cpus when not using EM_MULTIQUEUE.
00:51:40 - r281803
(5 days 3 hours ago)
by gjb
Affects:  /projects/release-arm64
Kill the projects/release-arm64 branch, merged to head in
r281802

Sponsored by:   The FreeBSD Foundation
00:48:35 - r281802
(5 days 3 hours ago)
by gjb
Affects: 
(5 files)
/head/release/*
Merge the following from ^/projects/release-arm64 to allow
building FreeBSD/arm64 VM images and memstick.img installation
medium:
r281786, r281788, r281792:

 r281786:
  Add support for building arm64/aarch64 virtual machine images.

 r281788:
  Copy amd64/make-memstick.sh to arm64/make-memstick.sh for
  aarch64 memory stick images.

  Although arm64 does not yet have USB support, the memstick
  image should be bootable with certain virtualization tools,
  such as qemu.

 r281792:

  Add a buildenv_setup() prototype, intended to be overridden as
  needed.

  For example, the arm64/aarch64 build needs devel/aarch64-binutils,
  so buildenv_setup() in the release.conf for this architecture
  handles the installation of the port before buildworld/buildkernel.

Sponsored by:   The FreeBSD Foundation
00:08:37 - r281801
(5 days 4 hours ago)
by gjb
Affects: 
(26 files)
/projects/release-arm64/*
MFH: r281784-r281800

This is in preparation to merge back to head after
testing.

Sponsored by:   The FreeBSD Foundation
2015 - 04 - 20   (6 days ago)
22:15:18 - r281800
(5 days 6 hours ago)
by pfg
Affects:  /head/usr.bin/patch/inp.c
/head/usr.bin/patch/pch.c
/head/usr.bin/patch/util.c
patch(1): small include changes.

Mostly to match OpenBSD, no functional change.

Obtained from:  OpenBSD
22:12:19 - r281799
(5 days 6 hours ago)
by loos
Affects: 
(4 files)
/head/sys/arm/conf/CUBIEBOARD
/head/sys/arm/conf/CUBIEBOARD2
/head/sys/modules/dtb/allwinner/Makefile
Build and install the DTB for all the supported AllWinner SoCs.

We will need them when we start booting using ubldr.
22:09:50 - r281798
(5 days 6 hours ago)
by pfg
Affects:  /head/lib/libc/iconv/citrus_prop.c
Fix improbable memory leak in _citrus_prop_read_str().

Found by:       Clang Static Analyzer
22:08:11 - r281797
(5 days 6 hours ago)
by markj
Affects:  /head/sys/net/bpf.c
/head/sys/net/bpf.h
Move the definition of struct bpf_if to bpf.c.

A couple of fields are still exposed via struct bpf_if_ext so that
bpf_peers_present() can be inlined into its callers. However, this change
eliminates some type duplication in the resulting CTF container, since
otherwise ctfmerge(1) propagates the duplication through all types that
contain a struct bpf_if.

Differential Revision:  https://reviews.freebsd.org/D2319
Reviewed by:    melifaro, rpaulo
21:45:38 - r281796
(5 days 6 hours ago)
by sbruno
Affects:  /projects/em_mq/sys/dev/e1000/if_em.c
Don't blindly assume that the softc returned is going to match up to the
em(4) notion of what an adapter struct is.  Check to see if the device
matches *first* and *then* assume that we can use it as an adapter
structure for parsing.

Corrections and hints courtesy of jhb.
21:44:55 - r281795
(5 days 7 hours ago)
by pfg
Affects:  /head/sys/cam/scsi/scsi_all.c
scsi_parse_transportid_rdma(): fix mismatch in memoty access size.

Independently found by Coverity and gcc49.

CID:            1230006
Reviewed by:    ken
MFC after:      5 days
21:27:25 - r281794
(5 days 7 hours ago)
by sbruno
Affects:  /projects/em_mq/sys/dev/e1000/if_em.c
/projects/em_mq/sys/modules/em/Makefile
Add DB_COMMAND to display the queue status for em adapters.

Ensure opt_ddb.h is a dependency for the module.
21:19:26 - r281793
(5 days 7 hours ago)
by joel
Affects:  /head/lib/libmt/mt.3
/head/lib/libpmc/pmc.haswellxeon.3
/head/share/man/man4/ata.4
Minor mdoc fixes.
20:52:20 - r281792
(5 days 7 hours ago)
by gjb
Affects:  /projects/release-arm64/release/release.conf.sample
/projects/release-arm64/release/release.sh
Add a buildenv_setup() prototype, intended to be overridden as
needed.

For example, the arm64/aarch64 build needs devel/aarch64-binutils,
so buildenv_setup() in the release.conf for this architecture
handles the installation of the port before buildworld/buildkernel.

Sponsored by:   The FreeBSD Foundation
20:51:19 - r281791
(5 days 7 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
- Speedup significantly by not using subshells for data already fetched.
  Ran against /usr/local/sbin/pkg:
   Before:  25.12 real        12.41 user        33.14 sys
   After:   0.53 real         0.49 user         0.13 sys
- Exit with 1 if any missing or unresolved symbol is detected.
- Add option '-U' to skip looking up unresolved symbols.
- Don't consider provided weak objects as unresolved (nm V).

Sponsored by:   EMC / Isilon Storage Division
20:45:10 - r281790
(5 days 8 hours ago)
by bdrewery
Affects:  /head/tools/build/check-links.sh
Fix indentation to use tabs
20:33:22 - r281789
(5 days 8 hours ago)
by eadler
Affects:  /head/.arcconfig
/head/.arclint
phabricator related changes:
        - don't lint either contrib or crypto: these are both externally written
          directories
        - add additional linters for spelling (check common typos like teh ->
          the)
        - chmod linter checks for executible bit on bad files
        - merge-conflict checks for merge conflict tokens then may have been
          resolved incorrectly
        - filename checks for back characters in filenames
        - json for json syntax correctness

        - remove history.immutable: it is meaningless on subversion, and causes
          workflow problems when trying to use git.  It it set to 'true' by
          default with hg
20:13:02 - r281788
(5 days 8 hours ago)
by gjb
Affects: 
(2 files)
/projects/release-arm64/release/arm64/make-memstick.sh
Copy amd64/make-memstick.sh to arm64/make-memstick.sh for
aarch64 memory stick images.

Although arm64 does not yet have USB support, the memstick
image should be bootable with certain virtualization tools,
such as qemu.

Sponsored by:   The FreeBSD Foundation
20:07:39 - r281787
(5 days 8 hours ago)
by vangyzen
Affects:  /head/sbin/dmesg/dmesg.c
dmesg: accommodate message buffer growth between the sysctl calls

Allocate 12.5% extra space to avoid ENOMEM when the message buffer
is growing steadily.

Reported by:    Steve Wahl <steve_wahl@dell.com> (and tested)
Approved by:    kib (mentor)
Obtained from:  Dell Inc.
MFC after:      1 week
20:06:25 - r281786
(5 days 8 hours ago)
by gjb
Affects:  /projects/release-arm64/release/tools/vmimage.subr
Add support for building arm64/aarch64 virtual machine images.

Sponsored by:   The FreeBSD Foundation
20:03:26 - r281785
(5 days 8 hours ago)
by vangyzen
Affects:  /head/share/man/man9/printf.9
/head/sys/kern/subr_prf.c
Always send log(9) messages to the message buffer.

It is truer to the semantics of logging for messages to *always*
go to the message buffer, where they can eventually be collected
and, in fact, be put into a log file.

This restores the behavior prior to r70239, which seems to have
changed it inadvertently.

Submitted by:   Eric Badger <eric@badgerio.us>
Reviewed by:    jhb
Approved by:    kib (mentor)
Obtained from:  Dell Inc.
MFC after:      1 week
20:03:07 - r281784
(5 days 8 hours ago)
by gjb
Affects: 
(187 files)
/projects/release-arm64/*
MFH: r281668 through r281783

Sponsored by:   The FreeBSD Foundation
19:54:54 - r281783
(5 days 8 hours ago)
by gjb
Affects:  /head/release/tools/vmimage.subr
When building VM disk images, vm_copy_base() uses tar(1) to
copy the userland from one md(4)-mounted filesystem to a clean
filesystem to prevent remnants of files that were added and
removed from resulting in an unclean filesystem.  When newfs(8)
creates the first filesystem with journaled soft-updates enabled,
the /.sujournal file in the new filesystem cannot be overwritten
by the /.sujournal in the original filesystem.

To avoid this particular error case, do not enable journaled
soft-updates when creating the md(4)-backed filesystems, and
instead use tunefs(8) to enable journaled soft-updates after
the new filesystem is populated in vm_copy_base().

While here, fix a long standing bug where the build environment
/boot files were used by mkimg(1) when creating the VM disk
images by using the files in .OBJDIR.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
19:11:27 - r281782
(5 days 9 hours ago)
by mav
Affects:  /head/usr.sbin/bhyve/pci_ahci.c
Don't set bits that should be zero for SATA devices.

Old value made Linux think that it is PATA device with SATA bridge.

MFC after:      2 weeks
18:30:06 - r281781
(5 days 10 hours ago)
by emaste
Affects:  /head/usr.sbin/crunch/crunchide/exec_elf32.c
crunchide: Remove local EM_* ELF definitions provided by system ELF headers

Suggested by:   imp (in review D2314)
17:46:09 - r281780
(5 days 10 hours ago)
by dteske
Affects:  /head/usr.sbin/sysrc/sysrc
Update usage statement to align with post-r279624 functionality.

MFC after:      3 days
X-MFC-to:       stable/10 stable/9
17:43:55 - r281779
(5 days 11 hours ago)
by emaste
Affects:  /head/usr.sbin/vidcontrol/vidcontrol.c
vidcontrol: skip invalid video modes returned by vt(4)

vt(4) has a stub CONS_MODEINFO ioctl that does not provide any data
but returns success. This needs to be fixed in the kernel, but address
it in vidcontrol(1) as well in case it's run on an older kernel.

Reviewed by:    bde
Sponsored by:   The FreeBSD Foundation
17:43:36 - r281778
(5 days 11 hours ago)
by alc
Affects: 
(2 files)
/stable/10/sys/kern/uipc_shm.c
MFC r278402
  Preset the object's color, or alignment, to maximize superpage usage.
17:37:37 - r281777
(5 days 11 hours ago)
by dim
Affects:  /head/contrib/llvm/patches/patch-13-llvm-r229911-uleb128-commas.diff
Add llvm patch corresponding to r281775.
17:36:43 - r281776
(5 days 11 hours ago)
by alc
Affects: 
(2 files)
/stable/10/sys/vm/vm_mmap.c
MFC r279400
  Eliminate a variable that became unused when VFS_LOCK_GIANT() was
  eliminated.
17:36:35 - r281775
(5 days 11 hours ago)
by dim
Affects:  /head/contrib/llvm/lib/MC/MCParser/AsmParser.cpp
Pull in r229911 from upstream llvm trunk (by Benjamin Kramer):

  MC: Allow multiple comma-separated expressions on the .uleb128 directive.

  For compatiblity with GNU as. Binutils documents this as
  '.uleb128 expressions'. Subtle, isn't it?

Reported by:    sbruno
PR:             199554
MFC after:      3 days
17:30:13 - r281774
(5 days 11 hours ago)
by araujo
Affects:  /head/sys/dev/xen/netfront/netfront.c
Remove unused variable.

Differential Revision:  D2333
Reviewed by:            royger
17:24:39 - r281773
(5 days 11 hours ago)
by araujo
Affects:  /head/sys/dev/ixgbe/if_ix.c
Add back ixgbe_rxeof, just remove the assignment to more.
17:21:15 - r281772
(5 days 11 hours ago)
by araujo
Affects:  /head/sys/dev/ixgbe/if_ix.c
Remove unused variable.

Differential Revision:  D2331
Reviewed by:            erj
16:48:21 - r281771
(5 days 11 hours ago)
by alc
Affects:  /head/sys/vm/uma_core.c
Eliminate an unused variable.

MFC after:      1 week
16:40:13 - r281770
(5 days 12 hours ago)
by pfg
Affects:  /head/sys/fs/nfsclient/nfs_clrpcops.c
Prevent a double free.

This is similar to r281756 so set the ptr NULL after free as a safety belt
against future changes.

Obtained from:  HardenedBSD (b2e77ced9ae213d358b44d98f552d9ae4636ecac)
Submitted by:   Oliver Pinter
Revewed by:     rmacklem
16:31:27 - r281769
(5 days 12 hours ago)
by pfg
Affects:  /head/sys/geom/uncompress/g_uncompress.c
g_uncompress_taste: prevent a double free.

Found by:       Clang Static Analyzer
MFC after:      1 week
16:23:59 - r281768
(5 days 12 hours ago)
by brooks
Affects:  /head/share/man/man3/queue.3
Bump doc date missed in r281605.

MFC after:      1 day
14:55:01 - r281767
(5 days 13 hours ago)
by mav
Affects:  /head/usr.sbin/bhyve/pci_virtio_net.c
Report link as up if tap device is not specified (black hole).

MFC after:      2 weeks
14:23:18 - r281766
(5 days 14 hours ago)
by mav
Affects:  /head/usr.sbin/bhyve/pci_virtio_net.c
Report link as up only if we managed to open tap device.

It would be cool to report tap device status, but it has no such API.

MFC after:      2 weeks
10:44:46 - r281765
(5 days 18 hours ago)
by mav
Affects:  /head/sys/net/bpf.c
Activate write-only optimization if bpf device opened with O_WRONLY.

dhclient opens bpf as write-only to send packets. It never reads received
packets from that descriptor, but processing them in kernel takes time.
Especially much time takes packet timestamping on systems with expensive
timecounter, such as bhyve guest, where network speed dropped in half.

MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
10:29:42 - r281764
(5 days 18 hours ago)
by mav
Affects:  /head/usr.sbin/bhyve/pci_virtio_net.c
Disable RX/TX queues notifications when not needed.

This reduces CPU load and doubles iperf throughput, reaching 2-3Gbit/s.

MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
09:07:12 - r281763
(5 days 19 hours ago)
by kib
Affects:  /head/lib/libc/gen/setproctitle.c
Remove code to support the top of the stack layout for FreeBSD 1.x/2.x
kernel, but keep explanation of the old ps_strings structure to make
it clear what sanity check tries to accomplish.

Noted by:       Oliver Pinter <oliver.pinter@hardenedbsd.org>
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
08:25:55 - r281762
(5 days 20 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/machdep.c
/head/sys/i386/i386/machdep.c
Remove duplicate definitions of MWAIT_CX hints.  Identical defines in
specialreg.h are enough.

Discussed with: mav
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
03:46:52 - r281761
(6 days ago)
by sjg
Affects:  /vendor/NetBSD/bmake/20150418
bmake-20150418
03:45:54 - r281760
(6 days ago)
by sjg
Affects: 
(144 files)
/vendor/NetBSD/bmake/dist/*
Import bmake-20150418
02:23:00 - r281759
(6 days 2 hours ago)
by eadler
Affects:  /head/usr.bin/find/find.1
find.1: Add missing whitespace:

Obtained from:  Dragonfly (dee38d02d51cc8316f82b0263158d2546f2398bc)
02:07:57 - r281758
(6 days 2 hours ago)
by eadler
Affects:  /head/bin/ed/glbl.c
ed(1): Fix [-Werror=logical-not-parentheses]
        /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to
        theleft hand side of comparison [-Werror=logical-not-parentheses]

Obtained from:  Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58)
MFC After:      1 month
00:24:32 - r281757
(6 days 4 hours ago)
by delphij
Affects: 
(11 files)
/user/delphij/zfs-arc-rebase/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
/user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys/proc.h
/user/delphij/zfs-arc-rebase/sys/cddl/contrib/opensolaris/uts/common/*
MFV r277431,281755:

Reduce ARC lock contention by using finer grained locking in the ARC
LRU lists by using separate lists and their own locks for each ARC
state, and rework ARC reclaimation logic.

Illumos issue:
    5497 lock contention on arcs_mtx

 


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

Page generated in 53 ms, 236 revisions printed. Current time is 2015-04-26 04:45:18. All times are in UTC/GMT.