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 - 08 - 21   (today)
13:28:48 - r270271
( 32 minutes ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_core.c
vt(4): Mark cursor old position as dirty before reading the dirty area

Otherwise, the redraw is done during the next vt_flush run.

MFC after:      1 week
13:27:05 - r270270
( 34 minutes ago)
by bryanv
Affects: 
(3 files)
/stable/10/sys/dev/virtio/virtqueue.c
/stable/10/sys/dev/virtio/virtqueue.h
MFC r268480:

  Add accessor to get the number of free descriptors in the virtqueue
13:04:34 - r270269
( 56 minutes ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_core.c
/head/sys/dev/vt/vt_sysmouse.c
vt(4): Handle global and per-window mouse cursor toggle in one place

Before the global flag was set/unset using the CONS_MOUSECTL ioctl, and
the per-window flag through the MOUSE_SETLEVEL or MOUSE_SETMODE ioctls.

Also, if the cursor is already enabled/disabled, return immediatly. This
avoids to reset the cursor's position to the center of the screen.

This matches syscons' behavior.

While here, remove a trailing space and a redundant variable
declaration.
12:50:11 - r270268
(1 hour 11 minutes ago)
by bz
Affects:  /head/share/man/man4/altera_atse.4
Document MAC address selection and setting for atse(4).

Submitted by:   brooks
MFC after:      3 days
Sponsored by:   DARPA/AFRL
12:30:01 - r270267
(1 hour 31 minutes ago)
by kib
Affects:  /stable/10/sys/kern/kern_fork.c
Commit forgotten chunk of r270264.
11:48:37 - r270266
(2 hours 12 minutes ago)
by marck
Affects: 
(2 files)
/stable/10/share/misc/bsd-family-tree
MFC: Make BSD tree more contemporary-looking.

This is actually batch of MFCs from the beginning of stable/10 branch.
10:54:39 - r270265
(3 hours 6 minutes ago)
by dumbbell
Affects:  /head/sys/dev/vt/font/vt_mouse_cursor.c
vt(4): Fix an inconsistency between the mouse cursor bitmap and its mask

MFC after:      1 week
10:46:19 - r270264
(3 hours 15 minutes ago)
by kib
Affects: 
(6 files)
/stable/10/bin/ps/ps.1
/stable/10/sys/kern/*
/stable/10/sys/sys/proc.h
MFC r269656:
Implement and use proc_realparent(9).

MFC r270024 (by markj):
Correct the order of arguments passed to LIST_INSERT_AFTER().

For merge, the p_treeflag member of struct proc was moved to the end
of the structure, to keep KBI intact.
10:25:35 - r270263
(3 hours 35 minutes ago)
by dumbbell
Affects: 
(7 files)
/stable/9/sys/dev/vt/colors/*
/stable/9/sys/dev/vt/hw/*
vt(4): Colors are indexed against a console palette, not a VGA palette

Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 <-> 4)
    o  Yellow and cyan are swapped (3 <-> 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

This is an MFC of r269783 and r269791.
10:18:42 - r270262
(3 hours 42 minutes ago)
by dumbbell
Affects: 
(8 files)
/stable/10/sys/arm/freescale/imx/imx51_ipuv3_fbd.c
/stable/10/sys/dev/vt/colors/*
/stable/10/sys/dev/vt/hw/*
vt(4): Colors are indexed against a console palette, not a VGA palette

Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 <-> 4)
    o  Yellow and cyan are swapped (3 <-> 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

This is an MFC of r269783 and r269791.
09:01:42 - r270261
(4 hours 59 minutes ago)
by davide
Affects:  /head/sys/sys/time.h
Revert r270227. GCC doesn't like the lack of LL suffix,
so this makes powerpc build failing.
08:25:46 - r270260
(5 hours 35 minutes ago)
by delphij
Affects:  /head/sys/cddl/compat/opensolaris/sys/atomic.h
Provide compatibility shim for atomic_dec_64_nv.

X-MFC-with:     r270247
MFC after:      13 days
07:52:51 - r270259
(6 hours 8 minutes ago)
by gavin
Affects:  /head/sys/sys/callout.h
Add a missing brace to callout_init_rm() to fix syntax.

MFC after:      1 week
04:31:48 - r270258
(9 hours 29 minutes ago)
by peter
Affects: 
(4 files)
/stable/10/sbin/umount/umount.c
/stable/10/usr.bin/showmount/showmount.8
/stable/10/usr.bin/showmount/showmount.c
MFC r270062: switch rpc mount protocol for showmount and umount from
mountv1 to mountv3 - it breaks by default on the new netapp release with
the legacy protocols removed.
04:26:16 - r270257
(9 hours 35 minutes ago)
by eadler
Affects: 
(2 files)
/stable/10/usr.bin/ssh-copy-id/ssh-copy-id.sh
MFC r265256:
        Syntax fix
02:40:33 - r270256
(11 hours 20 minutes ago)
by pfg
Affects:  /head/bin/ed/cbc.c
/head/libexec/rtld-elf/libmap.c
/head/usr.bin/mail/edit.c
Always check the limits of array index variables before using them.

Obtained from:  DragonFlyBSD
MFC after:      1 week
01:07:27 - r270255
(12 hours 54 minutes ago)
by rmacklem
Affects: 
(2 files)
/stable/10/usr.sbin/mountd/exports.5
MFC: r270005
Try to clarify how file systems are exported for NFSv4.
This is a content change.
00:57:33 - r270254
(13 hours 3 minutes ago)
by adrian
Affects:  /head/sys/dev/ep/if_ep.c
Add missing locking.

Whilst here, assert that the lock is held when calling epstop().

Tested:

ep0: <3com Megahertz 574B>
2014 - 08 - 20   (yesterday)
23:37:44 - r270253
(14 hours 23 minutes ago)
by np
Affects:  /head/sys/dev/netmap/netmap_kern.h
Change netmap's global lock to sx instead of a mutex.

Reviewed by:    luigi@
MFC after:      1 day
23:34:36 - r270252
(14 hours 26 minutes ago)
by luigi
Affects: 
(24 files)
/stable/10/sys/conf/files
/stable/10/sys/dev/*
/stable/10/tools/tools/netmap/*
MFC 270063: update of netmap code
(vtnet and cxgbe not merged yet because we need some other mfc first)
23:29:34 - r270251
(14 hours 31 minutes ago)
by gavin
Affects:  /head/share/man/man9/timeout.9
Fix return type of callout_init_rm() and add return type to
callout_deactivate().

PR:             192520
Submitted by:   yaneurabeya gmail com
MFC after:      3 days
23:09:27 - r270250
(14 hours 52 minutes ago)
by slm
Affects: 
(7 files)
/stable/10/sys/dev/mps/*
MFC r269314 and r269316

r269314:
Bring in LSI's phase16 - phase18 changes
* Implements Start Stop Unit for SATA direct-attach devices in IR mode to avoid
  data corruption.
* Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT and CAM_TID_INVALID

r269316:
Bring in LSI's phase19 changes
* Removed unused mpssas_discovery_timeout function.
* Don't alter mapping boundaries if not raid firmware.
* Check free_busaddr instead of post_busaddr (diff minimisation really)

Approved by:    ken (co-mentor) and smh
22:58:12 - r270249
(15 hours 3 minutes ago)
by imp
Affects:  /head/sys/cam/ata/ata_xpt.c
Turns out that IDENTIFY DEVICE and IDENTIFY PACKET DEVICE return data
that's only mostly similar. Specifically word 78 bits are defined for
IDENTIFY DEVICE as
        5 Supports Hardware Feature Control
while a IDENTIFY PACKET DEVICE defines them as
        5 Asynchronous notification supported
Therefore, only pay attention to bit 5 when we're talking to ATAPI
devices (we don't use the hardware feature control at this time).
Ignore it for ATA devices. Remove kludge that papered over this issue
for Samsung SATA SSDs, since Micron drives also have the bit set and
the error was caused by this bad interpretation of the spec (which is
quite easy to do, since bits aren't normally overlapping like this).
22:39:26 - r270248
(15 hours 22 minutes ago)
by delphij
Affects: 
(3 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c
MFV r270196:

Illumos issue:
    5047 don't use atomic_*_nv if you discard the return value

MFC after:      2 weeks
21:44:48 - r270247
(16 hours 16 minutes ago)
by delphij
Affects: 
(12 files)
/head/sys/cddl/contrib/opensolaris/uts/common/*
/head/sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c
MFC r270195:

Illumos issue:
    5045 use atomic_{inc,dec}_* instead of atomic_add_*

MFC after:      2 weeks
20:15:43 - r270246
(17 hours 45 minutes ago)
by jilles
Affects:  /head/bin/sh/arith_yacc.c
sh: Remove two redundant (uintmax_t) casts.

Submitted by:   jmallett
20:12:05 - r270245
(17 hours 49 minutes ago)
by jilles
Affects: 
(2 files)
/stable/9/lib/libc/gen/fts.c
MFC r262872: fts: Don't abort if an empty pathname is given.

Make fts_open(3) treat an empty pathname like any other pathname that cannot
be lstatted because of [ENOENT].

It is rather confusing if  rm -rf file1 "" file2  does not remove file1 and
file2.

PR:             187264
19:39:07 - r270244
(18 hours 22 minutes ago)
by jilles
Affects: 
(3 files)
/stable/10/bin/sh/tests/builtins/Makefile
/stable/10/tools/build/mk/OptionalObsoleteFiles.inc
MFC r268429: Don't install locale1.0 if MK_NLS == no.

The test locale1.0 depends on locale support; it is meaningless without a
working LC_MESSAGES.

I added an OptionalObsoleteFiles.inc entry.

PR:             181151
Submitted by:   Garrett Cooper (original version)
Sponsored by:   EMC / Isilon Storage Division
19:37:05 - r270243
(18 hours 24 minutes ago)
by loos
Affects: 
(7 files)
/stable/10/share/man/man4/*
/stable/10/sys/arm/*
/stable/10/sys/boot/fdt/dts/arm/*
MFC r267021:

  FreeBSD, historically, has always used 8-bit addresses for i2c devices
  (7-bit device address << 1), always leaving the room for the read/write
  bit.

  This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them
  compatible with 8-bit addresses.  Previous to this commit an i2c device
  would have different addresses depending on the controller it was attached
  to (by example, when compared to any iicbb(4) based i2c controller), which
  was a pretty annoying behavior.

  Also, update the PMIC i2c address on beaglebone* DTS files to match the
  new address scheme.

  Now the userland utilities need to do the correct slave address shifting
  (but it is going to work with any i2c controller on the system).

  Discussed with:       ian

MFC r267834:

  Clarify the expected usage of I2C 7-bit slave addresses on ioctl(2)
  interface.

  While here add the cross reference to iic(4) on iicbus(4).

  CR:           D210
  Suggested by: jmg
19:30:58 - r270242
(18 hours 30 minutes ago)
by asomers
Affects: 
(7 files)
/stable/10/etc/mtree/BSD.tests.dist
/stable/10/sbin/devd/*
MFC devd-related changes

r270004
Convert devd's client socket to type SOCK_SEQPACKET.

  This change consists of two merges from projects/zfsd/head along with the
  addition of an ATF test case for the new functionality.

  sbin/devd/tests/Makefile
  sbin/devd/tests/client_test.c
        Add ATF test cases for reading events from both devd socket types.

  r266519:
  sbin/devd/devd.8
  sbin/devd/devd.cc
        Create a new socket, of type SOCK_SEQPACKET, for communicating with
        clients. SOCK_SEQPACKET sockets preserve record boundaries,
        simplying code in the client. The old SOCK_STREAM socket is retained
        for backwards-compatibility with existing clients.

  r269993:
  sbin/devd/devd.8
        Fix grammar bug.

r270019 (from bz)
Remove bogus ; at the end of the if condition in order to unbreak gcc builds
  after r270004.

  MFC after:    4 days
  X-MFX with:   r270004
19:12:19 - r270241
(18 hours 49 minutes ago)
by loos
Affects: 
(3 files)
/stable/10/sys/arm/ti/ti_i2c.c
/stable/10/sys/dev/iicbus/iic.c
MFC r266923:

  Ignore IIC_ENOADDR from iicbus_reset() as it only means we have a
  master-only controller.

  This fixes the iic bus scan with i2c(8) (on supported controllers).

  Tested with gpioiic(4).

MFC r267009:

  Remove the unnecessary i2c slave address assignment.

  The ti_i2c controller only works in the master mode and the i2c address
  passed on iicbus_reset() is used to set the controller slave address when
  operating as an i2c slave (which isn't currently supported).

  When talking to a slave, the slave address is correctly provided to
  ti_i2c_tranfer().
18:40:29 - r270240
(19 hours 20 minutes ago)
by davide
Affects:  /stable/10/sys/sys/time.h
Complete MFC of r270233, also unbreak the build.

Reported by:    grehan
18:29:18 - r270239
(19 hours 32 minutes ago)
by delphij
Affects: 
(5 files)
/head/sys/cddl/contrib/opensolaris/uts/common/dtrace/systrace.c
/head/sys/cddl/contrib/opensolaris/uts/common/os/fm.c
/head/sys/cddl/contrib/opensolaris/uts/common/sys/*
MFV r270193:

Illumos issues:
    5042 stop using deprecated atomic functions

MFC after:      2 weeks
18:10:12 - r270238
(19 hours 51 minutes ago)
by loos
Affects: 
(5 files)
/stable/10/share/man/man4/man4.arm/ti_adc.4
/stable/10/sys/arm/ti/*
MFC r266960:

  Configure the analog input 7 which, on BBB, is connected to the 3V3B rail
  through a voltage divisor (R163 and R164 on page 4 of BBB schematic).

  Add a note about this on ti_adc(4) man page.  The ti_adc(4) man page will
  first appear on 10.1-RELEASE.

  Suggested by: Sulev-Madis Silber (ketas)
  Manual page reviewed by:      brueffer (D127)
17:57:23 - r270237
(20 hours 4 minutes ago)
by loos
Affects: 
(2 files)
/stable/10/sys/arm/ti/am335x/am335x_pwm.c
MFC r266937:

  Export two new settings for the AM335x PWM, the clock prescaler (clkdiv)
  and the actual PWM frequency.

  Enforce the maximum value for the period sysctl.

  The frequency systcl now allows the direct setting of the PWM frequency
  (it will try to find the better clkdiv and period for a given frequency,
  i.e. the ones that will give the better PWM resolution).

  This allows the use lower frequencies on the PWM.  Without changing the
  clock prescaler the minimum PWM frequency was 1.52kHz.

  PWM frequencies checked with an osciloscope.

  PWM output tested with some R/C servos at 50Hz.
17:39:53 - r270236
(20 hours 21 minutes ago)
by loos
Affects: 
(2 files)
/stable/10/sys/dev/gpio/gpioiic.c
MFC r266922:

  Add a bounds verification to the SCL and SDA pin values.

  At attach, print the SCL and SDA pin numbers.

  Remove a stray blank line.

  Remove the GPIOBUS locking from gpioiic_reset(), it is already called with
  this lock held.  This fixes a crash when you try to scan the iicbus with
  i2c(8).
17:33:32 - r270235
(20 hours 27 minutes ago)
by luigi
Affects:  /stable/10/sys/dev/e1000/if_lem.c
MFC 259907 (dates back to december)
use the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
This bug would manifest only in netmap mode and on packets transmitted after
a NIC reset while netmap mode is active.
17:27:15 - r270234
(20 hours 34 minutes ago)
by hrs
Affects:  /head/usr.sbin/route6d/route6d.c
Recover sin6_scope_id of gateway addresses in riprecv() by using the if_index
where a RIP packet was received.  This fixes a bug which prevented gateway
addresses in fe80::/64 from being added.
17:26:05 - r270233
(20 hours 35 minutes ago)
by davide
Affects: 
(2 files)
/stable/10/sys/kern/uipc_socket.c
MFC r269502:
Fix an overflow in getsockopt(). optval isn't big enough to hold
sbintime_t.
Re-introduce r255030 behaviour capping socket timeouts to INT_32
if they're too large.
17:07:41 - r270232
(20 hours 53 minutes ago)
by se
Affects:  /head/tools/tools/vt/keymaps/KBDFILES.map
/head/tools/tools/vt/keymaps/convert-keymap.pl
/head/tools/tools/vt/keymaps/convert-keymaps.pl
The conversion tools have been further improved and some erroneous
conversions have been detected and fixed.

It is now possible to add options after the encoding in the parameter
list for convert-keymap.pl. This is currently used to selectively
enable interpretation of the ISO8859-1 currency symbol as the Euro
sign found in ISO5589-15, or to add a Yen symbol in place of '\' for
specific Japanese keyboards. The option are appended to the parameter
list, as in e.g. "convert-keymap.pl german.iso.kbd ISO5589-1 EURO".

The options are appended to the encoding in the form "+EURO" or "+YEN"
in KBDFILES.map, to keep the meaning of the columns intact.

MFC after:      3 days
17:04:49 - r270231
(20 hours 56 minutes ago)
by asomers
Affects:  /head/sbin/devd/tests/client_test.c
Misc fixes suggested by Coverity.

sbin/devd/tests/client_test.c
        * In the event that popen fails, don't dereference its return value.
        * Fix array overwrite in the stream and seqpacket tests.
        * Close sockets at the end of successful ATF tests.

Reported by:    Coverity scan
CID:            1232019, 1232020, 1232029, 1232030
MFC after:      1 week
Sponsored by:   Spectra Logic
17:02:37 - r270230
(20 hours 58 minutes ago)
by loos
Affects:  /head/sys/arm/ti/ti_i2c.c
/head/sys/arm/ti/ti_i2c.h
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.

Phabric:        D465
17:00:47 - r270229
(21 hours ago)
by se
Affects: 
(32 files)
/head/share/vt/keymaps/*
Another rpund of fixes, after checking keymaps for plausibility and with
several updates to the converter tools. There is now support for hybrid
source keymaps, which e.g. use ISO8859-1 (not -15) but still provide an
Euro key (on the "E" key). ISO8859-1 currency symbols on other keys are
still converted to that character, not the Euro sign. A similar hack was
applied to the Japanese keyboards to add the Yen key, that could not be
expressed in SYSCONS.

Several modifications have been applied after the conversion (removal of
unused accents tables, some reformatting, exchange of a few key symbols).

The German keymap (de.kbd) is now using deadkeys only for those keys,
that behave that way under Windows. There are now ".acc" and ".noacc"
variants, which use deadkeys vs. nodeadkeys for all accent keys.

I'm still in the process of comparing keymaps that existed in different
encodings in SYSCONS. These are generally translated slightly differently,
either because of mistakes, or because of different preferences, or due
to limitations of the respective encoding.

MFC after:      3 days
16:59:33 - r270228
(21 hours 1 minute ago)
by asomers
Affects:  /head/tests/sys/kern/unix_seqpacket_test.c
Numerous small fixes, mostly suggested by Coverity.

tests/sys/kern/unix_seqpacket_test.c
        * Remove a duplicate error check in mk_pair_of_sockets
        * Always close sockets in the success path of ATF test cases.  Don't
          bother with the error paths, because those are mostly assertions
          anyway.  Most of these socket leaks were reported by Coverity.
          All of them are harmless, because each ATF test case runs in its
          own process.
        * Fix the len argument to send in shutdown_send and
          shutdown_send_sigpipe.  The old version was using sizeof a pointer
          instead of sizeof the char array.  Reported by Coverity.
        * Change a few ATF_CHECK to ATF_REQUIRE if the test can't reasonably
          continue past a failure.

Reported by:    Coverity Scan
CID:            1229995, 1229991, 1229988, 1229994, 1229989, 1229992
CID:            1229993, 1229990, 1229984, 1229967, 1230005, 1229977
CID:            1229966, 1230004, 1229976
MFC after:      1 week
Sponsored by:   Spectra Logic
16:32:02 - r270227
(21 hours 29 minutes ago)
by davide
Affects:  /head/sys/sys/time.h
Make Bruce happy removing the "LL abomination" from time.h
It's not necessary in all the three instances because
they already have the correct type on all the supported
arches.

Requested by:   bde
16:09:05 - r270226
(21 hours 52 minutes ago)
by jhb
Affects: 
(7 files)
/head/sys/modules/*
Add kernel modules for si(4), wds(4), and wl(4).
16:07:56 - r270225
(21 hours 53 minutes ago)
by jhb
Affects:  /head/sys/cam/scsi/scsi_low.c
Unexpand TAILQ_FOREACH().
16:07:17 - r270224
(21 hours 54 minutes ago)
by jhb
Affects:  /head/sys/amd64/conf/NOTES
/head/sys/dev/si/si.c
/head/sys/i386/conf/NOTES
Fix build of si(4) and enable it in LINT on amd64 and i386.
16:06:24 - r270223
(21 hours 55 minutes ago)
by jhb
Affects:  /head/sys/amd64/include/param.h
Bump MAXCPU on amd64 from 64 to 256.  In practice APIC only permits 255
CPUs (IDs 0 through 254).  Getting above that limit requires x2APIC.

MFC after:      1 month
16:05:15 - r270222
(21 hours 56 minutes ago)
by jhb
Affects:  /head/sys/sys/_cpuset.h
Bump the default size of cpuset_t masks in userland from 128 bits to 256.

This should not be an ABI change since the various public APIs that use
cpusets all include an explicit size parameter in addition to the cpuset
parameter.

MFC after:      1 week
16:04:30 - r270221
(21 hours 56 minutes ago)
by davide
Affects:  /head/sys/security/audit/audit_pipe.c
Replace dev_clone with cdevpriv(9) KPI in audit_pipe code.
This is (yet another) step towards the removal of device
cloning from our kernel.

CR:     https://reviews.freebsd.org/D441
Reviewed by:    kib, rwatson
Tested by:      pho
15:57:52 - r270220
(22 hours 3 minutes ago)
by andrew
Affects:  /projects/arm64/sys/arm64/arm64/pmap.c
Update pmap_enter to allocate l2 and l3 tables as needed.
15:56:18 - r270219
(22 hours 5 minutes ago)
by andrew
Affects:  /projects/arm64/sys/arm64/arm64/pmap.c
Implement pmap_remove
15:56:13 - r270218
(22 hours 5 minutes ago)
by andrew
Affects: 
(5 files)
/projects/arm64/sys/arm64/arm64/*
/projects/arm64/sys/arm64/include/pcb.h
Use the l1 physical address to set ttbr0. This allows us to map user
programs in in their address space.
15:56:10 - r270217
(22 hours 5 minutes ago)
by andrew
Affects:  /projects/arm64/sys/arm64/arm64/swtch.S
Aslo set curthread in the pcpu area on cpu switch
15:43:26 - r270216
(22 hours 18 minutes ago)
by ngie
Affects:  /head/gnu/lib/libgcc/Makefile
Add ${LIBC} to DPADD to fix "make checkdpadd"

Phabric: D632
Approved by: jmmv (mentor)
MFC after: 2 weeks
14:58:25 - r270215
(23 hours 3 minutes ago)
by pfg
Affects:  /head/lib/libc/nameser/ns_print.c
Add missing break.

CID:    603368
14:57:55 - r270214
(23 hours 3 minutes ago)
by markj
Affects: 
(4 files)
/stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
/stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_map.c
/stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_work.c
MFC r269524:
Preserve the errno value of an ioctl before calling free(3). Previously,
errno was very occasionally being clobbered, resulting in a bogus error from
dt_consume() and thus an error from dtrace(1).
14:57:21 - r270213
(23 hours 4 minutes ago)
by markj
Affects: 
(5 files)
/stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
/stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_map.c
/stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_work.c
MFC r269524:
Preserve the errno value of an ioctl before calling free(3). Previously,
errno was very occasionally being clobbered, resulting in a bogus error from
dt_consume() and thus an error from dtrace(1).
14:57:20 - r270212
(23 hours 4 minutes ago)
by royger
Affects: 
(5 files)
/head/sys/dev/pci/*
/head/sys/ofed/include/linux/pci.h
pci: make MSI(-X) enable and disable methods of the PCI bus

Make the functions pci_disable_msi, pci_enable_msi and pci_enable_msix
methods of the newbus PCI bus. This code should not include any
functional change.

Sponsored by: Citrix Systems R&D
Reviewed by: imp, jhb
Differential Revision: https://reviews.freebsd.org/D354

dev/pci/pci.c:
 - Convert the mentioned functions to newbus methods.
 - Fix the callers of the converted functions.

sys/dev/pci/pci_private.h:
dev/pci/pci_if.m:
 - Declare the new methods.

dev/pci/pcivar.h:
 - Add helpers to call the newbus methods.

ofed/include/linux/pci.h:
 - Add define to prevent the ofed version of pci_enable_msix from
   clashing with the FreeBSD native version.
14:53:36 - r270211
(23 hours 7 minutes ago)
by pfg
Affects:  /vendor/resolver/dist/lib/libc/nameser/ns_print.c
Add missing break.

CID:    603368
13:54:27 - r270210
(1 day ago)
by trasz
Affects:  /head/usr.sbin/autofs/autounmountd.c
Remove useless - and buggy, it resulted in spurious warnings in logs - code.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
13:52:47 - r270209
(1 day ago)
by trasz
Affects:  /head/sbin/mount/mount.8
Add description for the "automounted" mount flag.

Reviewed by:    emaste@
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
13:48:58 - r270208
(1 day ago)
by rrs
Affects:  /projects/rrs_socrypto_tls
Create a project branch to play with SO_CRYPT_TLS and
capture John-Mark-Gurney's current AESNI changes that
hopefully will be in head soon.

A    svn+ssh://svn.freebsd.org/base/projects/rrs_socrypto_tls
13:46:51 - r270207
(1 day ago)
by trasz
Affects:  /head/sys/fs/autofs/autofs_vnops.c
Rework ".." lookup; previous one failed to properly busy the mountpoint.

Reviewed by:    kib@
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
09:10:03 - r270206
(1 day 4 hours ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_amrr.c
After much toying around with this AMRR initial rate stuff,
I've decided that for 11n rates it's best to start (very) low and work
our way up.

So, from now on, the initial rate for AMRR 11n is MCS4.
It doesn't try MCS12 or MCS20 - at low signal strengths those don't
work very well at all.

AMRR will step the rate control up over time if things work out better.

Tested:

* Intel 5100
* Intel 5300 (using local diffs to test out 3x3 stream support)
08:24:37 - r270205
(1 day 5 hours ago)
by kib
Affects: 
(4 files)
/stable/10/sys/kern/kern_exec.c
/stable/10/sys/kern/uipc_shm.c
/stable/10/sys/vm/vm_glue.c
MFC r269907:
Fix leaks of unqueued unwired pages.
08:15:23 - r270204
(1 day 5 hours ago)
by kib
Affects:  /head/sys/ufs/ufs/ufs_vnops.c
Do not busy the UFS mount point inside VOP_RENAME().  The
kern_renameat() already starts write on the mp, which prevents
parallel unmount from proceed.  Busying mp after vn_start_write()
deadlocks the unmount.

Reported and tested by: pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
08:13:03 - r270203
(1 day 5 hours ago)
by kib
Affects:  /head/sys/ufs/ffs/ffs_vfsops.c
Correct the test for condition to suspend UFS filesystem during
unmount.  There is no need to suspend read-only filesystem, while we
need suspension on modificable mount point.

Reported by:    rwatson
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
08:07:08 - r270202
(1 day 5 hours ago)
by kib
Affects:  /head/sys/amd64/include/vmparam.h
Increase max number of physical segments on amd64 to 63.

Eventually, the vmd_segs of the struct vm_domain should become bitset
instead of long, to allow arbitrary compile-time selected maximum.

Reviewed by:    alc
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
08:02:38 - r270201
(1 day 5 hours ago)
by kib
Affects:  /head/sys/powerpc/include/vmparam.h
/head/sys/sys/sf_buf.h
Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the
physical address of the page to direct map address, in case
SFBUF_OPTIONAL_DIRECT_MAP returns true.  The case of PowerPC AIM
64bit, where the page physical address is identical to the direct map
address, is accidental.

Reviewed by:    alc
Sponsored by:   The FreeBSD Foundation
07:48:09 - r270200
(1 day 6 hours ago)
by se
Affects: 
(4 files)
/head/share/vt/keymaps/*
Fix conversion errors leading to malformed keymap files.

MFC after:      3 days
07:46:28 - r270199
(1 day 6 hours ago)
by se
Affects:  /head/tools/tools/vt/keymaps/convert-keymap.pl
/head/tools/tools/vt/keymaps/convert-keymaps.pl
Fix further conversion errors found while testing the converted keymaps.

MFC after:      3 days
06:34:24 - r270198
(1 day 7 hours ago)
by delphij
Affects: 
(4 files)
/vendor-sys/illumos/dist/uts/common/fs/zfs/dbuf.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/dnode.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/sys/*
5095 panic when adding a duplicate dbuf to dn_dbufs
Reviewed by: Adam Leventhal <adam.leventhal@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Mattew Ahrens <mahrens@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Alex Reece <alex@delphix.com>

illumos/illumos-gate@86bb58aec7165f8a0303564575c65e5a2ad58bf1
06:29:42 - r270197
(1 day 7 hours ago)
by delphij
Affects: 
(8 files)
/vendor-sys/illumos/dist/uts/common/sys/*
/vendor/illumos/dist/head/*
5066 remove support for non-ANSI compilation
5068 Remove SCCSID() macro from <macros.h>
Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Garrett D'Amore <garrett@damore.org>

illumos/illumos-gate@ba3594ba9b5dd4c846c472a8d657edcb7c8109ac
06:25:43 - r270196
(1 day 7 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/dbuf.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c
5047 don't use atomic_*_nv if you discard the return value
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

illumos/illumos-gate@640c1670a105457bb0040e8e11037b53ab6ebcfa
06:22:59 - r270195
(1 day 7 hours ago)
by delphij
Affects: 
(12 files)
/vendor-sys/illumos/dist/uts/common/*
/vendor-sys/illumos/dist/uts/sparc/dtrace/fasttrap_isa.c
5045 use atomic_{inc,dec}_* instead of atomic_add_*
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

illumos/illumos-gate@1a5e258f5471356ca102c7176637cdce45bac147
06:20:06 - r270194
(1 day 7 hours ago)
by delphij
Affects:  /vendor-sys/illumos/dist/common/atomic/amd64/atomic.s
/vendor-sys/illumos/dist/common/atomic/i386/atomic.s
/vendor-sys/illumos/dist/common/atomic/sparc/atomic.s
5043 remove deprecated atomic functions' prototypes
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

illumos/illumos-gate@6ed9368a130d7c9a82e574da808d34034da33748
06:15:53 - r270193
(1 day 7 hours ago)
by delphij
Affects: 
(5 files)
/vendor-sys/illumos/dist/uts/common/*
5042 stop using deprecated atomic functions
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

illumos/illumos-gate@75d94465dbafa487b716482dc36d5150a4ec9853
01:32:04 - r270192
(1 day 12 hours ago)
by kevlo
Affects:  /head/sys/dev/usb/wlan/if_run.c
If eapol packets are sent at the lowest rate, key negotiation will
become more reliable.

Submitted by:   Akinori Furukoshi <moonlightakkiy at yahoo dot ca>
01:26:27 - r270191
(1 day 12 hours ago)
by kevlo
Affects:  /head/share/man/man4/urtwn.4
/head/sys/dev/usb/usbdevs
/head/sys/dev/usb/wlan/if_urtwn.c
Add the D-Link DWA-125 rev D1.

Tested by myself.
00:33:37 - r270190
(1 day 13 hours ago)
by ian
Affects:  /head/tools/build/make_check/Makefile
Don't stop other legs of a parallel build due to a failure in make_check.
The whole point is to see if there's any failure, which is handled by
building a newer version of make.
00:14:41 - r270189
(1 day 13 hours ago)
by delphij
Affects:  /head/rescue/rescue/Makefile
Add zdb into rescue environment.

On amd64, this would increase the binary size by 1.1MiB and
make it possible to examine zpool status offline, useful for
recovery and diagnostic purposes.

Submitted by:   sef
Obtained from:  FreeNAS
MFC after:      2 weeks
00:06:54 - r270188
(1 day 13 hours ago)
by ian
Affects:  /stable/8/Makefile
MFC r255286: don't stop the whole universe build if one kernel fails.
2014 - 08 - 19   (2 days ago)
23:33:51 - r270187
(1 day 14 hours ago)
by ian
Affects: 
(6 files)
/stable/10/*
MFC r266473,267331,267511:

  Use an intermediate target to associate with _SUBDIR which is marked .MAKE
  this allows make -n to do tree walks as expected without
  doing anything else (as intended).
  Use prefix _sub. to help avoid conflict with any real target.

  Put the test suite in its own tests.txz distribution file.
  Force all the contents of /usr/tests to go into a separate distribution
  file so that users of binary releases can easily choose to not install

  Create a mechanism for providing fine-grained build order dependencies
  during SUBDIR_PARALLEL builds.  This augments the coarse .WAIT mechanism,
  which is still useful if you've got a situation such as "almost everything
  depends on A and B".
23:15:47 - r270186
(1 day 14 hours ago)
by grehan
Affects: 
(2 files)
/stable/10/sys/cddl/dev/dtrace/x86/dis_tables.c
MFC r266103

Update dis_tables.c to the latest Illumos version.

This includes decodes of recent Intel instructions, in particular
VT-x and related instructions. This allows the FBT provider to
locate the exit points of routines that include these new
instructions.

Illumos issues:
 3414 Need a new word of AT_SUN_HWCAP bits
 3415 Add isainfo support for f16c and rdrand
 3416 Need disassembler support for rdrand and f16c
 3413 isainfo -v overflows 80 columns
 3417 mdb disassembler confuses rdtscp for invlpg
 1518 dis should support AMD SVM/AMD-V/Pacifica instructions
 1096 i386 disassembler should understand complex nops
 1362 add kvmstat for monitoring of KVM statistics
 1363 add vmregs[] variable to DTrace
 1364 need disassembler support for VMX instructions
 1365 mdb needs 16-bit disassembler support

This corresponds to Illumos-gate (github) version
eb23829ff08a873c612ac45d191d559394b4b408
23:08:47 - r270185
(1 day 14 hours ago)
by grehan
Affects: 
(2 files)
/stable/10/sys/kern/subr_witness.c
MFC r265098

Bump WITNESS_PENDLIST by MAXCPU to account for the
pmap pvlist locks which are scaled by MAXCPU.
21:31:32 - r270184
(1 day 16 hours ago)
by dumbbell
Affects: 
(3 files)
/stable/9/sys/dev/vt/vt_buf.c
vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice

In several functions, vtbuf_putchar() in particular, the lock on vtbuf
is acquired twice:
    1. once by the said functions;
    2. once in vtbuf_dirty().

Now, vtbuf_dirty_locked() and vtbuf_dirty_cell_locked() allow to
acquire that lock only once.

This improves the input speed of vt(4). To measure the gain, a
50,000-lines file was displayed on the console using cat(1). The time
taken by cat(1) is reported below:
    o  On amd64, with vt_vga:
        - before: 1.0"
        - after:  0.5"
    o  On sparc64, with creator_vt:
        - before: 13.6"
        - after:  10.5"

This is an MFC of r269780.
21:04:31 - r270183
(1 day 16 hours ago)
by bdrewery
Affects:  /head/usr.sbin/mountd/mountd.c
Avoid showing stale errors when nmount(2) fails.

Sometimes nmount(2) will fail without setting errmsg. The previous (ignored)
error would then be shown as the reason for the failed call if the next
nmount(2) also fails without [ENOENT,ENOTSUP].

An example is when there is a tmpfs mounted with -o size. vfs_filteropt() adds
'size' as an error in errmsg due to 'size' not being in tmpfs_updateopts. Then
tmpfs_mount returns [ENOTSUP] from nmount(2), which is then ignored. The next
call may race with an unmount causing an invalid [EINVAL] that then does log an
error, with the tmpfs errmsg.

The race itself is a separate issue to fix as it is expected to have an
[ENOENT] returned instead.

In this example the mount being shown is actually nullfs, not tmpfs that the
error is from.

  mountd[740]: can't delete exports for
/poudriere/data/.m/exp-head-commit-test-devel/04/.npkg: Invalid argument mount
option <size> is unknown

It should only show:

  mountd[740]: can't delete exports for
/poudriere/data/.m/exp-head-commit-test-devel/04/.npkg: Invalid argument

MFC after:      2 weeks
20:53:28 - r270182
(1 day 17 hours ago)
by dumbbell
Affects: 
(2 files)
/stable/10/sys/dev/vt/vt_buf.c
vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice

In several functions, vtbuf_putchar() in particular, the lock on vtbuf
is acquired twice:
    1. once by the said functions;
    2. once in vtbuf_dirty().

Now, vtbuf_dirty_locked() and vtbuf_dirty_cell_locked() allow to
acquire that lock only once.

This improves the input speed of vt(4). To measure the gain, a
50,000-lines file was displayed on the console using cat(1). The time
taken by cat(1) is reported below:
    o  On amd64, with vt_vga:
        - before: 1.0"
        - after:  0.5"
    o  On sparc64, with creator_vt:
        - before: 13.6"
        - after:  10.5"

This is an MFC of r269780.
20:35:09 - r270181
(1 day 17 hours ago)
by bdrewery
Affects:  /head/share/misc/bsd-family-tree
Add recent DragonFly releases.

Submitted by:   Zach Crownover <zachary.crownover@gmail.com>
MFC after:      1 week
18:47:47 - r270180
(1 day 19 hours ago)
by ngie
Affects:  /head/usr.sbin/nmtree/Makefile
Add LIBMD and LIBUTIL to DPADD to fix "make checkdpadd"

Approved by: jmmv (mentor)
MFC after: 5 days
Phabric: D633
PR: 192763
18:31:20 - r270179
(1 day 19 hours ago)
by ngie
Affects:  /head/usr.sbin/ctld/Makefile
Add missing libraries to DPADD; sort DPADD so DPADD and LDADD match up

This fixes "make checkdpadd"

Approved by: jmmv (mentor)
MFC after: 2 weeks
Phabric: D630
PR: 192765
18:27:43 - r270178
(1 day 19 hours ago)
by ngie
Affects:  /head/secure/usr.bin/ssh/Makefile
Fix typo (LIBLDNSADD -> LIBLDNS) to fix "make checkdpadd"

X-MFC with: r269648
Phabric: D634
Approved by: jmmv (mentor)
17:54:15 - r270177
(1 day 20 hours ago)
by jhb
Affects: 
(14 files)
/stable/8/tools/regression/usr.sbin/etcupdate/*
/stable/8/usr.sbin/Makefile
/stable/8/usr.sbin/etcupdate/*
MFC 238423,238426,238428,258063,258064,258066,258097,258185,259134:
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

Requested by:   peter
17:04:18 - r270176
(1 day 20 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_tpc.c
Fix lock recursion on LUN shutdown, introduced on r269497.

MFC after:      3 days
15:51:43 - r270175
(1 day 22 hours ago)
by bdrewery
Affects:  /stable/9/sys/sys/param.h
Bump __FreeBSD_version after r269789 so ports can use it.
15:49:38 - r270174
(1 day 22 hours ago)
by bdrewery
Affects:  /stable/10/sys/sys/param.h
Bump __FreeBSD_version after r269490 so ports can use it.
15:47:51 - r270173
(1 day 22 hours ago)
by bdrewery
Affects:  /head/sys/sys/param.h
Bump __FreeBSD_version after r269489 so ports can use it.
15:46:40 - r270172
(1 day 22 hours ago)
by bdrewery
Affects:  /head/share/man/man5/src.conf.5
Regen after r270171
15:40:26 - r270171
(1 day 22 hours ago)
by hselasky
Affects:  /head/tools/build/options/WITHOUT_CUSE
Add missing WITHOUT_CUSE file.
15:30:56 - r270170
(1 day 22 hours ago)
by bdrewery
Affects:  /head/lib/csu/i386-elf/Makefile
Use bsd.lib.mk here as all other csu Makefiles do.

This effectively reverts r124752.

There's no reason this should be different. It resulted in needing NO_PIE in
the original opt-out NO_PIE commit as this was not using the proper framework.

Reported by:    peter
15:09:24 - r270169
(1 day 22 hours ago)
by bdrewery
Affects:  /head/share/man/man5/src.conf.5
Regen after r270168
15:04:32 - r270168
(1 day 22 hours ago)
by bdrewery
Affects: 
(151 files)
/head/*
Revert r267233 for now. PIE support needs to be reworked.

1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other
   build-only utility libraries.
2. Another 40% is fixed by generating _pic.a variants of various libraries.
3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR)
   where it never would work anyhow, such as csu or loader. This suggests
   there may be better ways of adding support to the tree. Many of these
   cases can be fixed such that -fPIE will work but there is really no
   reason to have it in those cases.
4. Some of the uses are working around hacks done to some Makefiles that are
   really building libraries but have been using bsd.prog.mk because the code
   is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have
   been needed.

We likely do want to enable PIE by default (opt-out) for non-tree consumers
(such as ports). For in-tree though we probably want to only enable PIE
(opt-in) for common attack targets such as remote service daemons and setuid
utilities. This is also a great performance compromise since ASLR is expected
to reduce performance. As such it does not make sense to enable it in all
utilities such as ls(1) that have little benefit to having it enabled.

Reported by:    kib
11:06:21 - r270167
(2 days 2 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/include/linux/linux_radix.c
MFC r269859:
Fix for memory leak.

Sponsored by:   Mellanox Technologies
11:04:24 - r270166
(2 days 2 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/include/linux/linux_radix.c
MFC r269859:
Fix for memory leak.

Sponsored by:   Mellanox Technologies
09:02:58 - r270165
(2 days 4 hours ago)
by kevlo
Affects:  /head/sys/dev/usb/usbdevs
Sort ASUS section and add USB device ID of ASUS USB-AC51.
06:50:54 - r270164
(2 days 7 hours ago)
by sjg
Affects: 
(5387 files)
/projects/bmake/*
Merge head from 7/28
06:37:33 - r270163
(2 days 7 hours ago)
by sjg
Affects:  /projects/bmake/pkgs/pseudo/bootstrap-tools/Makefile
After we finish using src/Makefile.inc1 to bootstrap legacy tools
use it to build the toolchain we actually want.
03:51:10 - r270162
(2 days 10 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/nanobsd.sh
Add support for -X, which installs the native cross tools for qemu
operations. Doesn't install qemu nor setup the jail, yet.
03:51:05 - r270161
(2 days 10 hours ago)
by imp
Affects:  /head/sys/boot/fdt/dts/arm/sam9260ek.dts
/head/sys/gnu/dts/arm/sam9260ek_common.dtsi
New DTS files to suppport the SAM9260EK eval board. Derived, in part,
from the SAM9G20EK dts files (so that file is GPL'd).
02:19:53 - r270160
(2 days 11 hours ago)
by lstewart
Affects:  /head/sys/netinet/cc/cc_cdg.c
Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload
panic easily triggered by running "sysctl -a" after unload.

Reported and tested by: Grenville Armitage <garmitage@swin.edu.au>
MFC after:      1 week
01:20:24 - r270159
(2 days 12 hours ago)
by grehan
Affects: 
(42 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/*
/stable/10/usr.sbin/*
MFC r267921, r267934, r267949, r267959, r267966, r268202, r268276,
    r268427, r268428, r268521, r268638, r268639, r268701, r268777,
    r268889, r268922, r269008, r269042, r269043, r269080, r269094,
    r269108, r269109, r269281, r269317, r269700, r269896, r269962,
    r269989.

Catch bhyve up to CURRENT.

Lightly tested with FreeBSD i386/amd64, Linux i386/amd64, and
OpenBSD/amd64. Still resolving an       issue with OpenBSD/i386.

Many thanks to jhb@ for all the hard work on the prior MFCs !

r267921 - support the "mov r/m8, imm8" instruction
r267934 - document options
r267949 - set DMI vers/date to fixed values
r267959 - doc: sort cmd flags
r267966 - EPT misconf post-mortem info
r268202 - use correct flag for event index
r268276 - 64-bit virtio capability api
r268427 - invalidate guest TLB when cr3 is updated, needed for TSS
r268428 - identify vcpu's operating mode
r268521 - use correct offset in guest logical-to-linear translation
r268638 - chs value
r268639 - chs fake values
r268701 - instr emul operand/address size override prefix support
r268777 - emulation for legacy x86 task switching
r268889 - nested exception support
r268922 - fix INVARIANTS build
r269008 - emulate instructions found in the OpenBSD/i386 5.5 kernel
r269042 - fix fault injection
r269043 - Reduce VMEXIT_RESTARTs in task_switch.c
r269080 - fix issues in PUSH emulation
r269094 - simplify return values from the inout handlers
r269108 - don't return -1 from the push emulation handler
r269109 - avoid permanent sleep in vm_handle_hlt()
r269281 - list VT-x features in base kernel dmesg
r269317 - Mark AHCI fatal errors as not completed
r269700 - Support PCI extended config space in bhyve
r269896 - Minor cleanup
r269962 - use max guest memory when creating IOMMU domain
r269989 - fix interrupt mode names
2014 - 08 - 18   (3 days ago)
23:45:40 - r270158
(2 days 14 hours ago)
by marcel
Affects: 
(4 files)
/head/sys/kern/uipc_socket.c
/head/sys/sys/*
For vendors like Juniper, extensibility for sockets is important.  A
good example is socket options that aren't necessarily generic.  To
this end, OSD is added to the socket structure and hooks are defined
for key operations on sockets.  These are:
o   soalloc() and sodealloc()
o   Get and set socket options
o   Socket related kevent filters.

One aspect about hhook that appears to be not fully baked is the return
semantics (the return value from the hook is ignored in hhook_run_hooks()
at the time of commit).  To support return values, the socket_hhook_data
structure contains a 'status' field to hold return values.

Submitted by:   Anuranjan Shukla <anshukla@juniper.net>
Obtained from:  Juniper Networks, Inc.
22:53:48 - r270157
(2 days 15 hours ago)
by mckusick
Affects: 
(4 files)
/stable/10/sys/kern/vfs_bio.c
/stable/10/sys/ufs/ffs/ffs_softdep.c
/stable/10/sys/ufs/ffs/softdep.h
MFC of 269533 (by mckusick):

Add support for multi-threading of soft updates.

Replace a single soft updates thread with a thread per FFS-filesystem
mount point. The threads are associated with the bufdaemon process.

Reviewed by:  kib
Tested by:    Peter Holm and Scott Long
MFC after:    2 weeks
Sponsored by: Netflix

MFC of 269853 (by kib):

Revision r269457 removed the Giant around mount and unmount code, but
r269533, which was tested before r269457 was committed, implicitely
relied on the Giant to protect the manipulations of the softdepmounts
list.  Use softdep global lock consistently to guarantee the list
structure now.

Insert the new struct mount_softdeps into the softdepmounts only after
it is sufficiently initialized, to prevent softdep_speedup() from
accessing bare memory.  Similarly, remove struct mount_softdeps for
the unmounted filesystem from the tailq before destroying structure
rwlock.

Reported and tested by: pho
Reviewed by:    mckusick
Sponsored by:   The FreeBSD Foundation
21:07:12 - r270156
(2 days 16 hours ago)
by se
Affects: 
(14 files)
/head/share/vt/keymaps/*
Fix a few conversion problems (e.g. when a keymap is derived from ISO8859-1,
but shall provide an Euro sign - similar for Japanese Yen).

The Brazilian keymap "br.kbd" now has accents, by default - the no-accents
version has been renamed to "br.noacc.kbd".

MFC after:      3 days
21:04:44 - r270155
(2 days 16 hours ago)
by imp
Affects:  /head/Makefile
/head/Makefile.inc1
Create the native-xtools target. This target creates only the cross
building toolchain for the host computer. This toolchain produces
TARGET_ARCH and assumes the rest of the system contains libraries for
the target. It is intended to be used in a "qemu-user jail" where all
the binaries would otherwise be the target architecture's to build
ports. However, emulation of the compilers is too slow, so we build
native binaries for that. Rather than use the xdev produced binaries,
with all their weird links and paths, these binaries use the native
paths. They will not work unless installed into the qemu-user jail.

Differential Revision: https://phabric.freebsd.org/D518
Reviewed by: sbruno@
21:04:35 - r270154
(2 days 16 hours ago)
by imp
Affects:  /head/sys/arm/at91/at91_mci.c
Make note about reset vs RTOE actions...
20:58:17 - r270153
(2 days 17 hours ago)
by se
Affects: 
(4 files)
/head/share/syscons/keymaps/*
Fix minor problems found while converting to NEWCONS format.

MFC after:      3 days
20:55:11 - r270152
(2 days 17 hours ago)
by se
Affects:  /head/tools/tools/vt/keymaps/KBDFILES.map
/head/tools/tools/vt/keymaps/convert-keymap.pl
Minor fixes to convert-keymap.pl (conversion of 8bit characters in the form
'x' with high bit set) and to KBDFILES.map (fix encodings and comment out a
few redundant keymap files).

MFC after:      3 days
20:28:08 - r270151
(2 days 17 hours ago)
by alc
Affects:  /head/sys/amd64/amd64/pmap.c
There exists a possible sequence of page table page allocation failures
starting with a superpage demotion by pmap_enter() that could result in
a PV list lock being held when pmap_enter() is just about to return
KERN_RESOURCE_SHORTAGE.  Consequently, the KASSERT that no PV list locks
are held needs to be replaced with a conditional unlock.

Discussed with: kib
X-MFC with:     r269728
Sponsored by:   EMC / Isilon Storage Division
20:21:12 - r270150
(2 days 17 hours ago)
by asomers
Affects: 
(2 files)
/stable/10/bin/pkill/tests/Makefile
MFC r269977

Skip pgrep-j and pkill-j if jail or jls is not installed.

Even though jail is part of the base system, it can be disabled by src.conf
settings. Therefore, it should be listed as a required program for tests that
use it.
19:27:47 - r270149
(2 days 18 hours ago)
by scottl
Affects:  /head/sys/geom/geom_dev.c
Deal explicitly with possible failures of make_dev_alias_p() in GEOM.

Submitted by:   Mariusz Zaborski <oshogbo@FreeBSD.org>
MFC after:      3 days
18:07:28 - r270148
(2 days 19 hours ago)
by rdivacky
Affects:  /head/contrib/llvm/patches/patch-r270147-llvm-r197824-r213427-r213960.diff
Add the patch commited in r270147.
18:05:55 - r270147
(2 days 19 hours ago)
by rdivacky
Affects: 
(18 files)
/head/contrib/llvm/include/llvm/Support/ELF.h
/head/contrib/llvm/lib/Object/ELF.cpp
/head/contrib/llvm/lib/Target/PowerPC/*
Backport r197824, r213427 and r213960 from LLVM trunk:

  r197824 | rdivacky | 2013-12-20 19:08:54 +0100 (Fri, 20 Dec 2013) | 2 lines

  Implement initial-exec TLS for PPC32.

  r213427 | hfinkel | 2014-07-19 01:29:49 +0200 (Sat, 19 Jul 2014) | 7 lines

  [PowerPC] 32-bit ELF PIC support

  This adds initial support for PPC32 ELF PIC (Position Independent Code; the
  -fPIC variety), thus rectifying a long-standing deficiency in the PowerPC
  backend.

  Patch by Justin Hibbits!

  r213960 | hfinkel | 2014-07-25 19:47:22 +0200 (Fri, 25 Jul 2014) | 3 lines

  [PowerPC] Support TLS on PPC32/ELF

  Patch by Justin Hibbits!

Reviewed by: jhibbits
Approved by: dim
18:01:18 - r270146
(2 days 20 hours ago)
by ngie
Affects:  /head/usr.sbin/iscsid/Makefile
Add LIBCRYPTO and LIBSSL to DPADD

This fixes "make checkdpadd"

Phabric: D621
PR: 192761
Approved by: rpaulo (mentor)
MFC after: 2 weeks
17:38:50 - r270145
(2 days 20 hours ago)
by ngie
Affects:  /head/lib/clang/clang.build.mk
Replace DPADD with DPSRCS to fix "make checkdpadd"

Phabric: D625
Approved by: jmmv (mentor)
Reviewed by: dim
PR: 192734
MFC after: 2 weeks
17:35:39 - r270144
(2 days 20 hours ago)
by ngie
Affects:  /head/lib/libcrypt/tests/Makefile
Add LIBCRYPT to DPADD, remove LDFLAGS from LDADD, and sort the Makefile
variables

This fixes "make checkdpadd"

Phabric: D620
Approved by: jmmv (mentor)
PR: 192729
MFC after: 5 days
17:35:33 - r270143
(2 days 20 hours ago)
by cherry
Affects: 
(5 files)
/projects/amd64_xen_pv/sys/amd64/xen/*
This commit consists of a number of changes that enable the pv kernel
to boot to multiuser mode.

i)      pmap has been completely purged of pmap_pv and mmu_map cruft.
ii)     machdep.c has been modified unmap excess boottime kernel va
        mappings, which had overlaps with vm_pages on the free
        list. This caused page aliasing with conflicting permissions
        further on in boot.
iii)    To enable ii), the "special" page wirings for the xen console,
        xenstore, and shared info pages were mapped into
        non-conflicting va space at the expense of virtual_start,
        which is from an abundant resource (kernel va range).
iv)     Maxmem has been limited to about 50M for now, due to bootstrap
        limitations of Memory direct mapping. This is trivially fixable,
        and will be addressed in the next set of commits.
v)      User thread VA mappings into kernel space has been bugfixed
        and streamlined. (Further optimisations are possible).
vi)     The exception return path has been clipped of gs restore for
        now. We know that the hypervisor restores this on exit (via
        swapgs), but this needs further review. It seems to "just work
        for now", but I have left a note in the comments.

This commit also removes mmu_map.[hc] which have mysteriously survived
previous purges!

Approved by:    gibbs (implicit)
17:10:55 - r270142
(2 days 20 hours ago)
by emaste
Affects:  /head/share/vt/keymaps/INDEX.keymaps
/head/share/vt/keymaps/Makefile
/head/share/vt/keymaps/ca.kbd
Add Canadian Bilingual keyboard
17:08:11 - r270141
(2 days 20 hours ago)
by cherry
Affects:  /projects/amd64_xen_pv/sys/amd64/amd64/db_interface.c
/projects/amd64_xen_pv/sys/amd64/xen/pmap_pv.h
Missed out removing pmap_pv.h from the tree, and references to it and
mmu_map.h in r270140

Approved by:    gibbs (implicit)
17:01:01 - r270140
(2 days 21 hours ago)
by cherry
Affects:  /projects/amd64_xen_pv/sys/amd64/xen/pmap_pv.c
/projects/amd64_xen_pv/sys/conf/files.amd64
Excise the pv related sources from the tree.
This is cruft leftover from an earlier effort to separate the pv code
from pmap.c

Approved by:    gibbs (implicit)
16:55:18 - r270139
(2 days 21 hours ago)
by jceel
Affects: 
(6 files)
/user/jceel/soc2014_evdev/head/sys/amd64/conf/EVDEV
/user/jceel/soc2014_evdev/head/sys/dev/evdev/*
Bulk update of evdev code:
* Implemented async and non-blocking I/O mode in evdev characted
  device driver
* Fixed crash when closing not-yet-registered uinput device
* Added UI_DEV_GETPATH ioctl to uinput which provides newly created
  evdev node path
* Implemented UI_SET_PHYS ioctl in uinput
* Implemented EVIOCREVOKE ioctl
* Added uep(4) to EVDEV kernel config
16:08:07 - r270138
(2 days 21 hours ago)
by cherry
Affects:  /projects/amd64_xen_pv/sys/amd64/include/xen/xenpmap.h
Add a "Compare and set" style support function.

Approved by:    gibbs (implicit)
16:06:04 - r270137
(2 days 21 hours ago)
by mav
Affects: 
(5 files)
/stable/10/usr.sbin/ctld/*
MFC r269183, r269191:
Add netmasks support to initiator-portal option.
15:54:35 - r270136
(2 days 22 hours ago)
by mav
Affects: 
(4 files)
/stable/10/sys/net/if_lagg.c
/stable/10/sys/net/if_lagg.h
/stable/10/sys/net/if_vlan.c
MFC r269492:
Improve locking of multicast addresses in VLAN and LAGG interfaces.

This fixes several scenarios of reproducible panics, cause by races
between multicast address changes and interface destruction.
14:47:13 - r270135
(2 days 23 hours ago)
by trasz
Affects:  /head/share/examples/autofs
Remove vestiges of previous autofs.

Discussed with: alfred@
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
14:30:43 - r270134
(2 days 23 hours ago)
by hselasky
Affects:  /head/sys/dev/sound/usb/uaudio.c
Use the "bSubslotSize" and "bSubFrameSize" fields to obtain the actual
sample size. According to the USB audio frame format specification
from USB.org, the value in the "bBitResolution" field can be less than
the actual sample size, depending on the actual hardware, and should
not be used for this computation.

PR:             192755
MFC after:      1 week
14:23:07 - r270133
(2 days 23 hours ago)
by hselasky
Affects:  /head/lib/libusb/libusb.h
Add more USB class codes.

Obtained from:  libusb project at SourceForge
MFC after:      1 week
12:29:28 - r270132
(3 days 1 hour ago)
by gabor
Affects:  /head/usr.bin/grep/util.c
- Do not look for more matching lines if -L is specified

Submitted by:   eadler (based on)
MFC after:      2 weeks
09:40:19 - r270131
(3 days 4 hours ago)
by se
Affects: 
(6 files)
/head/tools/tools/vt/keymaps/*
Import the tools used to convert the keymap files from SYSCONS (in locale
dependent encoding) to NEWCONS (Unicode).

The file "LANG.map" is used to convert INDEX.keymaps. It has 3 columns:
- the language ID as used in the source file
- the language ID to be used in the generated file (e.g. "iw" -> "he")
- the encoding of the menu texts for this language
The conversion result is written to STDOUT.

The file "KBDFILES.map" is used to batch convert keymap files. It's
columns are:
- the encoding used for the keymap sounce file
- the name of the source file
- the name of the generated file
The output files are created in the TEMP sub-directory of the vt keymap
directory, in order to preserve (possibly uncommitted) keymap files in
/usr/src/share/vt/keymaps.

The convert-keymap.pl script can be directly executed by passing the
source file name and the encoding on the command line. It writes to
STDOUT and generates hex Unicode codepoints by default. (This can be
changed to decimal in the script.)

While written for the one-time conversion of the SYSCONS keymaps into
the format required for NEWCONS, I think these tools may be useful for
easy conversion of possible further SYSCONS keymap files, that have not
been committed to the source tree.
08:50:05 - r270130
(3 days 5 hours ago)
by royger
Affects:  /stable/10/sys/dev/xen/blkfront/blkfront.c
MFC r269814:

blkfront: add support for unmapped IO

Sponsored by:   Citrix Systems R&D
Tested by:      robak
PR:             191173
08:07:50 - r270129
(3 days 5 hours ago)
by melifaro
Affects:  /head/sbin/ifconfig/sfp.c
Zero buffer before request.
05:22:09 - r270128
(3 days 8 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
MFC r269543: MFV r269542:

In vdev_get_stats, check that the vdev is not a hole before computing the
fragmentation.  This fixes a panic when removing log device.

Illumos issue:
    5049 panic when removing log device
05:17:24 - r270127
(3 days 8 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dnode.h
MFC r269431: MFV r269427:

In dnode_children_t, use C99's "[]" idiom for declaring the variable
sized array dnc_children at the end of the structure.

This prevents the compiler from mistakenly optimizing away accesses
beyond the array's defined size.

Illumos issue:
    5038 Remove "old-style" flexible array usage in ZFS.
    Author: Justin T. Gibbs <justing@spectralogic.com>
05:13:46 - r270126
(3 days 8 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c
MFC r269430: MFV r269426:

Double test device size for ztest(1).

Illumos issue:
    5039 ztest should default to larger device sizes
    Author: Matthew Ahrens <mahrens@delphix.com>
03:06:49 - r270125
(3 days 10 hours ago)
by ache
Affects: 
(2 files)
/stable/10/lib/libpam/modules/pam_opie/pam_opie.c
MFC: r269875

According to opie code and even direct mention in opie(4) challenge buffer
size must be OPIE_CHALLENGE_MAX + 1, not OPIE_CHALLENGE_MAX

Reviewed by:    des
02:45:06 - r270124
(3 days 11 hours ago)
by imp
Affects:  /head/sys/arm/arm/elf_machdep.c
/usr/libexec/ld.so.1 never was a thing on FreeBSD/arm. This was the
FreeBSD 3.x and 4.x run time linker. FreeBSD/arm's first release was
5.0. Retire this long-dead code.
02:44:56 - r270123
(3 days 11 hours ago)
by imp
Affects: 
(4 files)
/head/sys/arm/*
/head/sys/kern/imgact_elf.c
/head/sys/sys/imgact_elf.h
Expand the elf brandelf infrastructure to give access to the whole ELF
header (Elf_Ehdr) to determine if a particular interpretor wants to
accept it or not. Use this mechanism to filter EABI arm on OABI arm
kernels, and vice versa. This method could also be used to implement
OABI on EABI arm kernels, if desired, or to allow a single mips kernel
to run o32, n32 and n64 binaries.

Differential Revision: https://reviews.freebsd.org/D609
02:42:23 - r270122
(3 days 11 hours ago)
by ache
Affects: 
(3 files)
/stable/10/ObsoleteFiles.inc
/stable/10/lib/libopie/Makefile
Direct commit to stable/10 reflecting r269961 because the rest can't be
merged.

Bump version because challenge buffer size changed.
02:32:48 - r270121
(3 days 11 hours ago)
by ache
Affects:  /stable/10/ObsoleteFiles.inc
Direct commit to stable/10 reflecting r269815 because rest can't be merged

Add otp-sha
02:13:45 - r270120
(3 days 11 hours ago)
by ache
Affects: 
(5 files)
/stable/10/contrib/opie/*
/stable/10/usr.bin/opiekey/Makefile
MFC: r269806,r269809,r269811,r269810

r269806:
Fix too long (seed length >12 chars) challenge handling.
1) " ext" length should be included into OPIE_CHALLENGE_MAX (as all places
of opie code expects that).
2) Overflow check in challenge.c is off by 1 even with corrected
OPIE_CHALLENGE_MAX
3) When fallback to randomchallenge() happens and rval is 0 (i.e.
challenge is too long), its value should be set to error state too.

To demonstrate the bug, run opiepasswd with valid seed:
opiepasswd -s 1234567890123456
and notice that it falls back to randomchallenge() (i.e. no
1234567890123456 in the prompt).

r269809:
When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX

r269811:
Last '/' for program name, not first one.

r269810:
Link otp-sha1 to match real challenge prompt, not otp-sha.

PR:     191511
Submitted by: mitsururike@gmail.com (partially, PR 269806)
01:49:42 - r270119
(3 days 12 hours ago)
by emaste
Affects: 
(4 files)
/head/share/vt/keymaps/*
Rename ca keyboard to ca-fr

"ca" will shortly be used for the Canadian Multilingual keyboard.
01:21:41 - r270118
(3 days 12 hours ago)
by ngie
Affects:  /head/sbin/dhclient/tests/Makefile
Add LIBUTIL to DPADD

This will fix "make checkdpadd"

MFC after: 5 days
PR: 192759
Approved by: rpaulo (mentor)
00:50:09 - r270117
(3 days 13 hours ago)
by ngie
Affects:  /head/sbin/hastd/Makefile
Add -ll to LDADD to fix "make checkdpadd"

Phabric: D622
MFC after: 2 weeks
Approved by: rpaulo (mentor)
2014 - 08 - 17   (4 days ago)
23:30:45 - r270116
(3 days 14 hours ago)
by ngie
Affects:  /head/lib/atf/libatf-c++/Makefile
Fix typo in lib/atf/libatfc++/Makefile

LIBATFC should be LIBATF_C; this was missed in the initial import
(r241823)

PR: 192731
MFC after: 3 days
Phabric: D619
Approved by: rpaulo (mentor)
20:06:47 - r270115
(3 days 17 hours ago)
by melifaro
Affects:  /head/sbin/ifconfig/Makefile
Add forgotten DPADD to ifconfig(8).

PR:             192760
Submitted by:   yaneurabeya at gmail.com
MFC after:      2 weeks
19:54:21 - r270114
(3 days 18 hours ago)
by se
Affects: 
(82 files)
/head/share/vt/keymaps/*
Attempt at converting the SYSCONS keymaps to Unicode for use with NEWCONS.
I have spent many hours comparing source and destination formats, and hope
to have caught the most severe conversion errors.

Files were converted with a Perl script which I'll shortly commit to the
tools directory. This script is a much enhanced version of the one
provided by ray@ and is expected to support the full kbdmap(5) syntax.

The naming convention used is:

 <2-letter country code>.<variant>.kbd

Only if there are multiple layouts for different languages:

 <2-letter country code>-<2-letter language code>.<variant>.kbd

In nearly all cases, the keyboards are country specific, only. Currently
there is only one case where the language was added ("ch-fr.kbd" for
the Swiss-French keyboard layout).

I choose to write Unicode character codes as hex numbers. While this
increases the diff to the SYSCONS keymap files for the trivial cases
(conversion from ISO8859-1), it really helps to verify the more complex
cases against a Unicode table (which is indexed by hex numbers).

This commit does not cover all files that have been converted, since I
need to sort out which ones to use, if there were several with different
source encodings to choose from.

Review and test of the keymap files is highly desirable before 10.1 is
released. I'd also appreciate educated opinions regarding the optimum
variant (to be made available as the default for each language).

Since there are no NEWCONS keymaps in 10-STABLE, I plan to MFC after
the minimum allowed delay of 3 days, to allow at least a few weeks to
test and improve what will be in the next release.

MFC after:      3 days
19:36:56 - r270113
(3 days 18 hours ago)
by jilles
Affects:  /head/bin/sh/histedit.c
sh: Avoid overflow in atoi() when parsing HISTSIZE.

Side effect: a non-numeric HISTSIZE now results in the default size (100)
instead of 0.
19:24:26 - r270112
(3 days 18 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/usr.sbin/nfsd/nfsd.8
MFC: r269788
Document the use of the vfs.nfsd sysctls that control the size of
the NFS server's DRC for TCP.
This is a content change.
19:06:26 - r270111
(3 days 18 hours ago)
by neel
Affects: 
(6 files)
/head/*
Remove LOG_ODELAY because it does nothing.

Reviewed by:    jilles
CR:             https://reviews.freebsd.org/D611
18:27:02 - r270110
(3 days 19 hours ago)
by bz
Affects:  /head/sys/arm/at91/at91_common.c
Remove keyboard entropy [1] from r270105.

Reported by:            ian [1]
(Pointy hat)^2 to:      imp
18:26:34 - r270109
(3 days 19 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r269631:
Reduce reported additional INQUIRY data length.

sizeof(struct scsi_inquiry_data) of 256 bytes combined with off-by-one
error in the changed code gave total INQUIRY data length above 255 bytes,
that was maximal INQUIRY length in SPC-2.  While SPC-3 increased the
maximal length to 64K, at least sg3_utils are still confused by that.
18:24:59 - r270108
(3 days 19 hours ago)
by mav
Affects: 
(5 files)
/stable/10/sys/cam/ctl/*
/stable/10/sys/cam/scsi/scsi_all.h
MFC r269622:
Fix several issues and inconsistencies in UNMAP capabilities reporting.

This makes Windows 2012 to start using UNMAP on our disks.
18:23:43 - r270107
(3 days 19 hours ago)
by mav
Affects: 
(4 files)
/stable/10/sys/cam/ctl/ctl_tpc.c
/stable/10/sys/cam/ctl/ctl_util.c
/stable/10/sys/cam/ctl/ctl_util.h
MFC r269587:
Reimplement WRITE USING TOKEN with Block Zero token using WRITE SAME.

On my ZVOL of SSDs that increases speed of zero writing in that way from
1 to 2.5GB/s by reducing CPU overhead.
18:22:42 - r270106
(3 days 19 hours ago)
by mav
Affects: 
(8 files)
/stable/10/sys/cam/ctl/*
/stable/10/sys/cam/scsi/*
MFC r269497:
Add support for Windows dialect of EXTENDED COPY command, aka Microsoft ODX.

This allows to avoid extra network traffic when copying files on NTFS iSCSI
disks within one storage host by drag'n'dropping them in Windows Explorer
of Windows 8/2012.  It should also accelerate Hyper-V VM operations, etc.
16:53:19 - r270105
(3 days 21 hours ago)
by imp
Affects:  /head/sys/arm/at91/at91_common.c
Add missing license to at91_common.c. It was committed w/o a license.

Pointy hat to: imp@
16:53:14 - r270104
(3 days 21 hours ago)
by imp
Affects:  /head/sys/arm/at91/at91_machdep.c
Define at91_master_clock in only one file to eliminate warnings about
it multiply defined commons.
16:53:10 - r270103
(3 days 21 hours ago)
by imp
Affects:  /head/sys/arm/conf/HL201
Convert the HL201 config file to use FDT.
16:40:29 - r270102
(3 days 21 hours ago)
by jilles
Affects:  /head/bin/sh/mystring.c
sh: Reject integer overflow in number and is_number.
14:26:12 - r270101
(3 days 23 hours ago)
by jilles
Affects: 
(11 files)
/head/bin/sh/tests/errors/*
/head/bin/sh/tests/functional_test.sh
sh: Don't hardcode relative paths in the tests stderr files.

These paths have had to be adjusted to changes in the testsuite runner
several times, so modify the tests to remove the need for such adjustment.

A cp in functional_test.sh is now unneeded, but this matters little in
performance.
13:12:07 - r270100
(4 days ago)
by dim
Affects: 
(6 files)
/stable/10/lib/clang/include/*
/stable/9/lib/clang/include/*
MFC r269954:

Stop telling people to directly report llvm or clang bugs upstream,
point them to the FreeBSD bug tracker instead, since we use our own
patches.
13:08:15 - r270099
(4 days ago)
by dim
Affects: 
(4 files)
/stable/10/contrib/gcc/config/i386/emmintrin.h
/stable/9/contrib/gcc/config/i386/emmintrin.h
MFC r269948:

Supplement r259111 by also using correct casts in gcc's emmintrin.h for
the first argument of the following builtin function:

* __builtin_ia32_psrlqi128() takes __v2di instead of __v4si

This should fix the following errors when building the graphics/webp
port with base gcc:

lossless_sse2.c:403: error: incompatible type for argument 1 of
'__builtin_ia32_psrlqi128'
lossless_sse2.c:404: error: incompatible type for argument 1 of
'__builtin_ia32_psrlqi128'

Reported by:    Jos Chrispijn <ports@webrz.net>
11:59:23 - r270098
(4 days 2 hours ago)
by se
Affects:  /head/share/syscons/keymaps/INDEX.keymaps
Add a few missing entries and fix entries that are obviously wrong.
The use of the old ISO language code "iw" for Hebrew was inconsistent
and it is replaced by the new language code "he" (which was already
used for the keyboard menu entry, but not for the menu heading or the
default font).

These changes are in preparation of the conversion of this file and
the keymap definitions to Unicode for use with NEWCONS.
10:25:27 - r270097
(4 days 3 hours ago)
by luigi
Affects:  /head/sys/dev/netmap/if_vtnet_netmap.h
staticize two functions, and use proper format for a struct sglist
(reported by bz)
09:44:42 - r270096
(4 days 4 hours ago)
by trasz
Affects: 
(49 files)
/head/*
Bring in the new automounter, similar to what's provided in most other
UNIX systems, eg. MacOS X and Solaris.  It uses Sun-compatible map format,
has proper kernel support, and LDAP integration.

There are still a few outstanding problems; they will be fixed shortly.

Reviewed by:    allanjude@, emaste@, kib@, wblock@ (earlier versions)
Phabric:        D523
MFC after:      2 weeks
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
09:07:21 - r270095
(4 days 4 hours ago)
by kib
Affects: 
(5 files)
/stable/10/sys/kern/*
/stable/10/sys/sys/mount.h
MFC r269457:
Remove Giant acquisition from the mount and unmount pathes.
07:24:23 - r270094
(4 days 6 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/uipc_usrreq.c
MFC r269020:

Cosmetic changes to unp_internalize

Don't throw away the result of fget_unlocked.
Move fdp increment to for loop to make it consistent with similar code
elsewhere.
07:22:40 - r270093
(4 days 6 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r268636:

Plug p_pptr null test in do_execve. It is always true.
07:20:37 - r270092
(4 days 6 hours ago)
by mjg
Affects: 
(3 files)
/stable/10/sys/kern/kern_sig.c
/stable/10/sys/sys/signalvar.h
MFC r268634:

Manage struct sigacts refcnt with atomics instead of a mutex.
07:16:03 - r270091
(4 days 6 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/subr_bus.c
MFC r264114, r264310, r268570:

r264114 by davidxu:

Fix SIGIO delivery. Use fsetown() to handle file descriptor owner
ioctl and use pgsigio() to send SIGIO.

r264310 by davidxu:

Add kqueue support for devctl.

r268570:

Clear nonblock and async on devctl close instaed of open.

This is a purely cosmetic change.
07:06:55 - r270090
(4 days 6 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exit.c
MFC r268514:

Eliminate plim and vtmp local vars in exit1.

No functional changes.
07:05:30 - r270089
(4 days 6 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exit.c
MFC r259407:

proc exit: don't take PROC_LOCK while freeing rlimits

Code wishing to check rlimits of some process should check whether it
is exiting first, which current consumers do.
07:00:47 - r270088
(4 days 7 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_descrip.c
MFC r268505, r268507:

Avoid relocking filedesc lock when closing fds during fdp destruction.

Don't call bzero nor fdunused from fdfree for such cases. It would do
unnecessary work and complain that the lock is not taken.

=======

Don't zero fd_nfiles during fdp destruction.

Code trying to take a look has to check fd_refcnt and it is 0 by that time.

This is a follow up to r268505, without this the code would leak memory for
tables bigger than the default.
06:58:14 - r270087
(4 days 7 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r268365:

Don't call crdup nor uifind under vnode lock.

A locked vnode can get into the way of satisyfing malloc with M_WATOK.

This is a fixup to r268087.
06:56:22 - r270086
(4 days 7 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r268136:

Plug gcc warning after r268074 about unitialized newsigacts
06:54:49 - r270085
(4 days 7 hours ago)
by mjg
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r268087:

Don't call crcopysafe or uifind unnecessarily in execve.
06:52:35 - r270084
(4 days 7 hours ago)
by mjg
Affects: 
(3 files)
/stable/10/sys/kern/kern_exec.c
/stable/10/sys/kern/kern_sig.c
MFC r268074:

Perform a lockless check in sigacts_shared.

It is used only during execve (i.e. singlethreaded), so there is no fear
of returning 'not shared' which soon becomes 'shared'.

While here reorganize the code a little to avoid proc lock/unlock in
shared case.
06:28:57 - r270083
(4 days 7 hours ago)
by hselasky
Affects:  /head/lib/libcuse/Makefile
Add missing DPADD to Makefile.

PR:     192733
03:01:56 - r270082
(4 days 10 hours ago)
by grehan
Affects: 
(2 files)
/stable/10/sys/amd64/include/vmm.h
MFC r267338
Replace enum forward declarations with complete definitions
02:56:58 - r270081
(4 days 11 hours ago)
by ian
Affects:  /head/sys/arm/include/platform.h
When the initarm_* routines were renamed to platform_* and moved to their
own header file, the lovely block of comments explaining what the generic
init code expects of the soc implementations got lost, restore it.
02:53:36 - r270080
(4 days 11 hours ago)
by ian
Affects:  /head/sys/arm/at91/at91_common.c
Rename the old initarm_* functions to the new platform_* names.  Also
move the registration of the static device map table into the function
intended to do devmap init stuff.
02:40:44 - r270079
(4 days 11 hours ago)
by ian
Affects: 
(2 files)
/stable/10/Makefile.inc1
MFC r269688: m4 now requires libohash, build it when bootstrapping.
01:59:54 - r270078
(4 days 12 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/dev/ofw/ofwbus.c
MFC r269769, r269770:

  Use a separate variable for resource id, because 'i' may increment at a
  rate greater than 1 on each iteration.

  Handle various ways that interrupt config data can be malformed by
  warning and assuming more or less reasonable values.
01:48:12 - r270077
(4 days 12 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/arm/intr.c
/stable/10/sys/arm/arm/machdep.c
MFC r269646: Use a SYSINIT to init the array of interrupt names on arm.
01:32:33 - r270076
(4 days 12 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/freescale/imx/imx6_ccmreg.h
/stable/10/sys/arm/freescale/imx/imx6_machdep.c
MFC r269607, r269698:

  Cache the imx6 SoC type in a static var so that it only has to be figured
  out by sniffing hardware registers once.

  Add a missing clock register definition.
01:28:03 - r270075
(4 days 12 hours ago)
by ian
Affects: 
(12 files)
/stable/10/sys/*
MFC r269594, r269596, r269597, r269598, r269605, r269606:

  Set ofwbus and simplebus to attach during BUS_PASS_BUS.

  Define names that drivers can use to adjust their position relative to
  other drivers within a BUS_PASS

  Adjust ofwbus and simplebus to attach at BUS_PASS_ORDER_MIDDLE, so that
  a platform can attach some other bus first if necessary.

  Set the pl310 L2 cache driver to attach during the middle of BUS_PASS_CPU.

  Attach arm generic interrupt and timer drivers in the middle of
  BUS_PASS_INTERRUPT and BUS_PASS_TIMER, respectively.

  Add an arm option, ARM_DEVICE_MULTIPASS, used to opt-in to multi-pass
  device attachment on arm platforms.  If this is defined, nexus attaches
  early in BUS_PASS_BUS, and other busses and devices attach later, in the
  pass number they are set up for.  Without it defined, nexus attaches in
  BUS_PASS_DEFAULT and thus so does everything else, which is status quo.
01:23:52 - r270074
(4 days 12 hours ago)
by grehan
Affects: 
(12 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/amd64/*
/stable/10/usr.sbin/*
MFC r267311, r267330, r267811, r267884

Turn on interrupt window exiting unconditionally when an ExtINT is being
injected into the guest.

Add helper functions to populate VM exit information for rendezvous and
astpending exits.

Provide APIs to directly get 'lowmem' and 'highmem' size directly.

Expose the amount of resident and wired memory from the guest's vmspace
01:16:40 - r270073
(4 days 12 hours ago)
by grehan
Affects: 
(4 files)
/stable/10/sys/amd64/vmm/intel/vmx.c
/stable/10/sys/amd64/vmm/io/vlapic.c
/stable/10/sys/amd64/vmm/io/vlapic.h
MFC r267178, r267300

Support guest accesses to %cr8

Add reserved bit checking when doing %CR8 emulation and inject #GP if required.
01:15:34 - r270072
(4 days 12 hours ago)
by ian
Affects: 
(3 files)
/stable/10/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
/stable/10/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
MFC r269387: Update the ARMv6 core clang targets to be an arm1176jzf-s.
01:00:42 - r270071
(4 days 13 hours ago)
by grehan
Affects: 
(10 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/amd64/*
/stable/10/usr.sbin/bhyveload/bhyveload.c
MFC r267216
Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintained
by vmm.ko. This allows the virtual machine to be restarted without having
to destroy it first.
00:52:07 - r270070
(4 days 13 hours ago)
by grehan
Affects: 
(11 files)
/stable/10/lib/libvmmapi/*
/stable/10/sys/amd64/*
/stable/10/usr.sbin/*
MFC r266933
Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing
it implicitly in vmm.ko.
2014 - 08 - 16   (5 days ago)
22:55:58 - r270069
(4 days 15 hours ago)
by melifaro
Affects:  /head/sbin/ifconfig/sfp.c
Clean up unused definitions.
21:53:44 - r270068
(4 days 16 hours ago)
by melifaro
Affects:  /head/sbin/ifconfig/sfp.c
/head/sys/net/sff8472.h
* Use standard net/sff8472.h header for sff bits and offsets.
* Convert sff_8472_id to 'const char *' to please clang.

Pointed by:     np
21:42:55 - r270067
(4 days 16 hours ago)
by markj
Affects: 
(10 files)
/head/sys/cddl/dev/fbt/*
/head/sys/modules/dtrace/fbt/Makefile
Factor out the common code for function boundary tracing instead of
duplicating the entire implementation for both x86 and powerpc. This makes
it easier to add support for other architectures and has no functional
impact.

Phabric:        D613
Reviewed by:    gnn, jhibbits, rpaulo
Tested by:      jhibbits (powerpc)
MFC after:      2 weeks
21:36:22 - r270066
(4 days 16 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/sys/fs/nfsserver/nfs_nfsdsocket.c
MFC: r269771
Change the NFS server's printf related to hitting
the DRC cache's flood level so that it suggests
increasing vfs.nfsd.tcphighwater.
20:44:45 - r270065
(4 days 17 hours ago)
by ian
Affects:  /head/sys/arm/freescale/imx/imx6_anatop.c
Move the imx6 sysctl temperature info to hw.imx6 where all the other
soc-wide info lives.  It was under dev.imx6_anatop.0.

What does anatop mean anyway?  Nobody seems to know, so it's probably
not where somebody will think to look for imx6 hardware info.
19:13:52 - r270064
(4 days 18 hours ago)
by melifaro
Affects: 
(4 files)
/head/sbin/ifconfig/*
Add support for reading i2c SFP/SFP+ data from NIC driver and
presenting most interesting fields via ifconfig -v.
This version supports Intel ixgbe driver only.

Tested on:      Cisco,Intel,Mellanox,ModuleTech,Molex transceivers
MFC after:      2 weeks
15:00:01 - r270063
(4 days 23 hours ago)
by luigi
Affects: 
(29 files)
/head/sys/*
/head/tools/tools/netmap/*
Update to the current version of netmap.
Mostly bugfixes or features developed in the past 6 months,
so this is a 10.1 candidate.

Basically no user API changes (some bugfixes in sys/net/netmap_user.h).

In detail:

1. netmap support for virtio-net, including in netmap mode.
  Under bhyve and with a netmap backend [2] we reach over 1Mpps
  with standard APIs (e.g. libpcap), and 5-8 Mpps in netmap mode.

2. (kernel) add support for multiple memory allocators, so we can
  better partition physical and virtual interfaces giving access
  to separate users. The most visible effect is one additional
  argument to the various kernel functions to compute buffer
  addresses. All netmap-supported drivers are affected, but changes
  are mechanical and trivial

3. (kernel) simplify the prototype for *txsync() and *rxsync()
  driver methods. All netmap drivers affected, changes mostly mechanical.

4. add support for netmap-monitor ports. Think of it as a mirroring
  port on a physical switch: a netmap monitor port replicates traffic
  present on the main port. Restrictions apply. Drive carefully.

5. if_lem.c: support for various paravirtualization features,
  experimental and disabled by default.
  Most of these are described in our ANCS'13 paper [1].
  Paravirtualized support in netmap mode is new, and beats the
  numbers in the paper by a large factor (under qemu-kvm,
  we measured gues-host throughput up to 10-12 Mpps).

A lot of refactoring and additional documentation in the files
in sys/dev/netmap, but apart from #2 and #3 above, almost nothing
of this stuff is visible to other kernel parts.

Example programs in tools/tools/netmap have been updated with bugfixes
and to support more of the existing features.

This is meant to go into 10.1 so we plan an MFC before the Aug.22 deadline.

A lot of this code has been contributed by my colleagues at UNIPI,
including Giuseppe Lettieri, Vincenzo Maffione, Stefano Garzarella.

MFC after:      3 days.
14:56:11 - r270062
(4 days 23 hours ago)
by peter
Affects:  /head/sbin/umount/umount.c
/head/usr.bin/showmount/showmount.8
/head/usr.bin/showmount/showmount.c
Use mount protocol version 3 by default for showmount and umount.
mount_nfs effectively uses mount protocol v3 by default already.
v1 mount protocol is being removed along with nfsv2 by a high profile NFS
appliance vendor and our legacy v1 mount protocol usage causes rpc errors.
14:30:46 - r270061
(4 days 23 hours ago)
by bz
Affects: 
(12 files)
/stable/10/share/man/man4/*
/stable/10/sys/*
MFC r264601,264646,265766,267918,267919,267920:

 Merge if_nf10bmac(4), a driver to support an NetFPGA-10G Embedded
 CPU Ethernet Core.

 The current version operates on a simple PIO based interface connected
 to a NetFPGA-10G port.

 To avoid confusion: this driver operates on a CPU running on the FPGA,
 e.g. BERI/mips, and is not suited for the PCI host interface.

 Adjust the register layout to allow for 64bit registers in the
 future for nf10bmac(4).  Also, add support for and enable RX interrupts.

 Allow switching between 32bit and 64bit bus width data access at compile
 time by setting NF10BMAC_64BIT and using a REGWTYPE #define to set correct
 variable and return value widths.

 Adjust comments to indicate the 32 or 64bit register widths.

Relnotes:       yes
Sponsored by:   DARPA/AFRL
14:21:03 - r270060
(4 days 23 hours ago)
by bz
Affects: 
(3 files)
/stable/10/sys/boot/fdt/dts/mips/beri-netfpga.dts
/stable/10/sys/mips/conf/BERI_NETFPGA_MDROOT
MFC r263632:

 For BERI on NetFPGA assume HZ=100 by default.

 Remove the uart support in favour of a "jtag-uart" interface imitation
 providing a much simpler interface, directly exported to the host,
 allowing the toolchain to be shared with BERI on Altera. [1]

 Submitted by:  Jong Hun HAN (jong.han cl.cam.ac.uk) [1]
Sponsored by:   DARPA/AFRL
14:17:09 - r270059
(4 days 23 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/dev/altera/atse/if_atse.c
MFC r264542:

 Use ETHER_ALIGN as argument to m_adj() to offset the beginning of packet
 rather than the magic number 2.

 While here fix a typo in a comment.

 No functional changes.

Sponsored by:   DARPA/AFRL
14:14:29 - r270058
(4 days 23 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/mips/beri/beri_machdep.c
MFC r264605:

 Based on xlp_machdep.c and completed the list of options based on
 boot/mips/beri/loader/metadata.c allow FDT configuration to set
 command line options.
 This leads to an interesting quesiton of future interactions with loader.
 However for configurations without loader this allows bootverbose or boot
 single user to be set by compiling a new kernel, which is good enough for
 testing and debugging.

 Reviewed by:   rwatson
Sponsored by:   DARPA/AFRL
14:09:26 - r270057
(4 days 23 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet/tcp_timewait.c
MFC r266907:

 While PAWS is disabled, there are no consumers for the tcp options
 argument to tcp_twcheck();  thus mark it __unused.
14:05:31 - r270056
(4 days 23 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet/tcp_input.c
MFC r266620:

 Remove the prototpye for the static inline function
 tcp_signature_verify_input().
 The function is defined before first use already.
14:03:00 - r270055
(4 days 23 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet/tcp_syncache.c
MFC r266619:

 syncache_lookup() is a file local function.  Make it static and
 take it out of the public KPI; seems it was never used elsewhere.
13:58:45 - r270054
(5 days ago)
by bz
Affects: 
(3 files)
/stable/10/sys/netinet/tcp_timewait.c
/stable/10/sys/netinet/tcp_var.h
MFC r266618:

 Make tcp_twrespond() file local private;  this removes it from the
 public KPI; it is not used anywhere else and seems it never was.
13:55:44 - r270053
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netipsec/key.c
MFC r266606:

 Only do a ports check if this is a NAT-T SA.  Otherwise other
 lookups providing ports may get unexpected results.
13:53:05 - r270052
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet/tcp_input.c
MFC r266597:

 Remove the prototypes for things that are no longer file local but were
 moved to the header file.

 Was suppoed to be MFCed with: r266596
 Pointy hat to: bz
13:50:15 - r270051
(5 days ago)
by bz
Affects: 
(4 files)
/stable/10/sys/dev/cxgbe/tom/t4_listen.c
/stable/10/sys/netinet/tcp_input.c
/stable/10/sys/netinet/tcp_var.h
MFC r266596:

 Move the tcp_fields_to_host() and tcp_fields_to_net() (inline)
 functions to the tcp_var.h header file in order to avoid further
 duplication with upcoming commits.

 Reviewed by:   np
13:47:04 - r270050
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sbin/route/route.c
MFC r264539:

 When switching variables to flags in r243185 a few cases were missed.
 After r263152 (in head) this leaves unused variables if route(8) is
 compiled without INET support.
 Switch the remaining variable accesses to flags and remove now obsolete
 variables.

 Reviewed by:   glebius
13:25:49 - r270049
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/usr.bin/netstat/inet.c
MFC r261525:

 Print the MD5 signature information introduced in r221023 (head) in the
 TCP statistics output.
13:23:23 - r270048
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sys/dev/ie/if_ie.c
MFC r259886:

 Bite the bullet and start removing the first compile time warnings
 by removing unsued file local functions and then unused callees.
 A lot more warnings to resolve but someone had to break the ice.

 X-Comment:     I am not the new maintainer; chime in, it's ours.
13:20:44 - r270047
(5 days ago)
by bz
Affects: 
(5 files)
/stable/10/sbin/pfctl/*
MFC r259916:

 Use feature_present(3) to determine whether to open an INET or an
 INET6 socket when needed to allow pfctl to work on noinet and noinet6
 kernels (and try to provide a fallback using AF_LINK as best effort).
 Adjust the Makefile to also respect relevant src.conf(5) options
 for compile time decisions on INET and INET6 support.

 Reviewed by:   glebius (no objections)
13:13:17 - r270046
(5 days ago)
by luigi
Affects:  /head/sys/dev/virtio/virtqueue.c
print additional debugging info in virtqueue_dump()
(not fundamental, but useful to debug performance issues on vtnet)

MFC after:      3 days
13:11:59 - r270045
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sys/security/mac/mac_framework.c
MFC r259885:

 As constantly reported during kernel compilation, m_buflen is unsigned so
 can never be < 0.  Remove the expression, which can never be true.
13:09:40 - r270044
(5 days ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet6/in6_mcast.c
MFC r259884:

 Correct warnings comparing unsigned variables < 0 constantly reported
 while building kernels.  All instances removed are indeed unsigned so
 the expressions could not be true.
13:06:11 - r270043
(5 days ago)
by bz
Affects: 
(3 files)
/stable/10/sbin/mount_nfs/mount_nfs.8
/stable/10/sbin/mount_nfs/mount_nfs.c
MFC r269583:

 Provide -o vers= support for mount_nfs.

 Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version.
 OSX (these days), Solaris, and Linux use -o vers=<2,3,4>.

 With the upcoming autofs support we can make a lot of (entrerprisy) setups
 getting mount options from LDAP just work by providing -o vers= compatibility.

 Reviewed by:   wblock, bjk (man page), rmacklem, emaste
 Sponsored by:  DARPA,AFRL
PR:             192379
12:59:47 - r270042
(5 days 1 hour ago)
by bz
Affects: 
(3 files)
/stable/10/sys/kern/kern_time.c
/stable/10/sys/sys/syscallsubr.h
MFC r269669:

 Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant
 and export the kern_ version needed by an upcoming linuxolator change.

 Sponsored by:  DARPA,AFRL
10:47:24 - r270041
(5 days 3 hours ago)
by royger
Affects:  /head/sys/net/if.c
net: move interface removal notification up in if_detach_internal

This is needed to prevent having interfaces with ifp->if_addr == NULL
on bridge interfaces. Moving the notification event handlers up makes
sure the interfaces are removed before doing any more cleanup.

Sponsored by: Citrix Systems R&D
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D598

net/if.c
 - Move interface removal notification up in if_detach_internal.
08:38:53 - r270040
(5 days 5 hours ago)
by kib
Affects: 
(3 files)
/stable/10/lib/libthr/thread/thr_init.c
/stable/10/lib/libthr/thread/thr_stack.c
MFC r269909:
Add a knob LIBPTHREAD_BIGSTACK_MAIN, which instructs libthr to leave
the whole RLIMIT_STACK-sized region of the kernel-allocated stack as
the stack of main thread.
08:37:13 - r270039
(5 days 5 hours ago)
by kib
Affects: 
(2 files)
/stable/10/lib/libthr/thread/thr_stack.c
MFC r269908:
Style.
08:31:25 - r270038
(5 days 5 hours ago)
by kib
Affects:  /head/sys/i386/i386/pmap.c
/head/sys/i386/xen/pmap.c
/head/sys/sparc64/sparc64/pmap.c
Complete r254667, do not destroy pmap lock if KVA allocation failed.

Submitted by:   Svatopluk Kraus <onwahe@gmail.com>
MFC after:      1 week
07:01:42 - r270037
(5 days 6 hours ago)
by pho
Affects:  /user/pho/stress2/misc/ptrace.sh
/user/pho/stress2/misc/ptrace2.sh
/user/pho/stress2/misc/ptrace3.sh
Added new regression test, fixed trailing blanks in old tests.

Sponsored by:    EMC / Isilon storage division
03:05:02 - r270036
(5 days 10 hours ago)
by adrian
Affects:  /head/sys/conf/files
Add if_ath_alq code into the non-module build.
01:29:49 - r270035
(5 days 12 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libc/stdio/fflush.c
MFC     r268924:
Update fflush(3) to return success on a read-only stream.

This is done for compliance with SUSv3. The changes cause
no secondary effects in the gnulib tests (we pass them).

Obtained from:  Apple Inc. (Libc 997.90.3 with changes)
Reviewed by:    bde
Phabric:        D440
01:06:23 - r270034
(5 days 12 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sbin/newfs_msdos/newfs_msdos.c
MFC     r269953:
Use "NO NAME" as the default unnamed label.

Microsoft recommends avoiding the use of spaces in the
string structures for FAT. Unfortunately they do just
that by default in the case of unlabeled filesystems.

Follow the default MS behavior to avoid confusion in
common tools like file(1). This was actually the
default behavior before r203868.

Obtained from:  NetBSD (CVS rev. 1.39)
01:03:51 - r270033
(5 days 12 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libc/stdlib/strtonum.c
MFC     r269901:
Minor style tweaks.

Obtained from:  OpenBSD (CVS rev. 1.7)
01:00:37 - r270032
(5 days 13 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libc/net/linkaddr.c
MFC     r269695:
Const-ify character string

Obtained from:  Apple Inc. (Libc 997.90.3)
MFC after:      3 days
00:54:56 - r270031
(5 days 13 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/lib/libutil/fparseln.c
MFC     r269015:
fparseln(3): Update from NetBSD sources.

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

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

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

Obtained from:  NetBSD (CVS Rev. 1.6-1.7)
00:52:13 - r270030
(5 days 13 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c
MFC     r267875:

4251 libdtrace leaks open file handles

Illumos commit:         93ed8d0d4b068b95d0bb50d57bb854df462a8485
                        (partial)
Reference:
https://www.illumos.org/issues/4251

Discussed with: Robert Mustacchi
Obtained from:  Illumos
2014 - 08 - 15   (6 days ago)
22:36:41 - r270029
(5 days 15 hours ago)
by jilles
Affects:  /head/bin/sh/arith_yacc.c
/head/bin/sh/tests/expansion/Makefile
/head/bin/sh/tests/expansion/arith14.0
sh: Mask off shift distance (<< and >>) in arithmetic.

In C, shift distances equal to or larger than the number of bits in the
operand result in undefined behaviour. As part of eliminating undefined
behaviour in arithmetic, mask off the distance like Java and JavaScript
specify and C on x86 usually does.

Assumption: conversion from unsigned to signed retains the two's complement
bits.
Assumption: uintmax_t has no padding bits.
21:35:31 - r270028
(5 days 16 hours ago)
by ngie
Affects:  /head/etc/devd/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
Make the USB and ZFS devd configuration files optional depending on the
values of MK_USB/MK_ZFS

Making zfs.conf optional resolves PR # 186971

PR: 186971
Phabric: D606
Approved by: jmmv (mentor)
Sponsored by: EMC / Isilon Storage Division
21:22:49 - r270027
(5 days 16 hours ago)
by ngie
Affects:  /head/Makefile.inc1
/head/sbin/atm/atmconfig/Makefile
/head/sbin/atm/atmconfig/main.c
Fix atmconfig compilation when MK_ATM == yes and MK_BSNMP == no

Makefile.inc1:
Always compile gensnmptree with bootstrap-tools when MK_BSNMP != no
instead of depending on a potentially stale tool installed on the build host

sbin/atm/atmconfig/Makefile:
- Always remove oid.h to avoid cluttering up the build/src tree.
- Consolidate all of the RESCUE/MK_BSNMP != no logic under one
conditional to improve readability
- Remove unnecessary ${.OBJDIR} prefixing for oid.h and use ${.TARGET} instead
  of spelling out oid.h
- Add a missing DPADD for ${LIBCRYPTO} when compiled MK_BSNMP == yes and
  MK_OPENSSL == yes and not compiling for /rescue/rescue

sbin/atm/atmconfig/main.c:
Change #ifndef RESCUE to #ifdef WITH_BSNMP in main.c to make it
clear that we're compiling bsnmp support into atmconfig

Approved by: jmmv (mentor)
Phabric: D579
PR: 143830
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
19:06:59 - r270026
(5 days 18 hours ago)
by emaste
Affects: 
(4 files)
/stable/10/contrib/nvi/cl/cl_term.c
/stable/10/contrib/nvi/common/key.c
/stable/10/contrib/nvi/common/key.h
MFC r259088: Vendor import nvi-2.1.2-c80f493b038 a multikey mapping fix

PR:     bin/182463
16:08:52 - r270025
(5 days 21 hours ago)
by imp
Affects:  /head/sys/arm/at91/at91_pinctrl.c
/head/sys/arm/at91/at91_pio.c
/head/sys/arm/at91/at91_piovar.h
Implement the FDT static pinctl/pinmux spec for Atmel. This will
configure the mux and config registers for PIO devices based on what
we find in the FDT. I developed it per the spec that had been
committed to Linux in the January 2014 time frame and haven't
updated. In short, bundles of pins are activated in specific ways for
specific configurations, and we implement all of that.

What's not included is a MI device infrastructure, any dynamic
run-time changing of these pins, etc. Also not included are hooks into
all the drivers to enable the latter (static at boot no driver changes
are needed). These larger questions will need to be answered once we
have more drivers like this for more platforms, or somebody has a heck
of a lot of time to research a bunch of platforms, the Linux solution
(which is good, but has its warts), etc.
15:42:58 - r270024
(5 days 22 hours ago)
by markj
Affects:  /head/sys/kern/kern_exit.c
Correct the order of arguments passed to LIST_INSERT_AFTER().

Reviewed by:    kib
X-MFC-With:     r269656
14:16:08 - r270023
(5 days 23 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/pf.c
/head/sys/netpfil/pf/pf_lb.c
Do not lookup source node twice when pf_map_addr() is used.

PR:             184003
Submitted by:   Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by:   InnoGames GmbH
14:02:24 - r270022
(5 days 23 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/pf.c
/head/sys/netpfil/pf/pf.h
pf_map_addr() can fail and in this case we should drop the packet,
otherwise bad consequences including a routing loop can occur.

Move pf_set_rt_ifp() earlier in state creation sequence and
inline it, cutting some extra code.

PR:             183997
Submitted by:   Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by:   InnoGames GmbH
12:58:32 - r270021
(6 days 1 hour ago)
by melifaro
Affects: 
(4 files)
/projects/ipfw/sbin/ipfw/tables.c
/projects/ipfw/sys/netinet/ip_fw.h
/projects/ipfw/sys/netpfil/ipfw/*
Make room for multi-type values in struct tentry.
11:07:08 - r270020
(6 days 2 hours ago)
by andrew
Affects:  /projects/arm64/sys/arm64/arm64/vm_machdep.c
Setup the correct struct in cpu_fork
10:01:33 - r270019
(6 days 3 hours ago)
by bz
Affects:  /head/sbin/devd/tests/client_test.c
Remove bogus ; at the end of the if condition in order to unbreak gcc builds
after r270004.

MFC after:      4 days
X-MFX with:     r270004
09:50:09 - r270018
(6 days 4 hours ago)
by andrew
Affects:  /projects/arm64/contrib/elftoolchain/libelf/_libelf_config.h
Add the config for libelf to be used on arm64.
09:50:05 - r270017
(6 days 4 hours ago)
by andrew
Affects:  /projects/arm64/lib/libcompiler_rt/Makefile
Don't attempt to compile files in compiler-rt that crash llvm.

These cause an error like the following (long lines wrapped).

fatal error: error in backend: Cannot select: 0x802a5db10: \
   i64,i64 = srl_parts 0x802a5e710, 0x802a5ee10, 0x802a5e310 [ORD=19] [ID=13]
 0x802a5e710: i64,ch = CopyFromReg 0x8029f1fb8, 0x802a5e210 [ORD=19] [ID=9]
  0x802a5e210: i64 = Register %vreg5 [ID=4]
 0x802a5ee10: i64 = Constant<0> [ID=5]
 0x802a5e310: i64 = zero_extend 0x802a5d210 [ORD=19] [ID=12]
  0x802a5d210: i32 = sub 0x802a5c010, 0x802a5d710 [ORD=17] [ID=11]
   0x802a5c010: i32 = Constant<1075> [ID=1]
   0x802a5d710: i32 = AssertSext 0x802a5c910, 0x802a5c310 [ORD=17] [ID=10]
    0x802a5c910: i32,ch = CopyFromReg 0x8029f1fb8, 0x802a5e610 [ORD=17] [ID=8]
     0x802a5e610: i32 = Register %vreg1 [ID=2]
In function: __fixdfti
09:40:00 - r270016
(6 days 4 hours ago)
by andrew
Affects: 
(14 files)
/projects/arm64/lib/libc/*
Initial port of libc to arm64, just enough to get init compiling.

As only static libraries are supported the arm64/Symbol.map file has
not been created.

System calls are not implemented as the kernel is missing the code to
handle them.
09:31:55 - r270015
(6 days 4 hours ago)
by andrew
Affects:  /projects/arm64/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
Add support for arm64 to jemalloc
09:31:51 - r270014
(6 days 4 hours ago)
by andrew
Affects:  /projects/arm64/sys/arm64/include/profile.h
Add the needed MCOUNT macros
09:31:48 - r270013
(6 days 4 hours ago)
by andrew
Affects:  /projects/arm64/sys/sys/cdefs.h
There is no tls support on arm64 yet.
09:10:17 - r270012
(6 days 4 hours ago)
by andrew
Affects: 
(6 files)
/projects/arm64/contrib/gcc/unwind-dw2.c
/projects/arm64/gnu/lib/csu/Makefile
/projects/arm64/gnu/lib/libgcc/*
Port the GNU parts of CSU and libgcc_s to arm64. Unfortunately
execute_cfa_program causes the following with clang. As the backend
has changed significantly in 3.5 no effort to diagnose or fix the
problem will take place.

Assertion failed: (Scavenged[SI].FrameIndex >= 0 &&
 "Cannot scavenge register without an emergency spill slot!"),
 function scavengeRegister, file
 <llvm location>/lib/CodeGen/RegisterScavenging.cpp, line 415.
Stack dump:
0.      Program arguments: <compiler command>
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module <file location>
4.      Running pass 'Prologue/Epilogue Insertion & Frame Finalization'
 on function '@execute_cfa_program'
07:30:14 - r270011
(6 days 6 hours ago)
by kib
Affects:  /head/sys/vm/vm_fault.c
Implement 'fast path' for the vm page fault handler.  Or, it could be
called a scalable path.  When several preconditions hold, the vm
object lock for the object containing the faulted page is taken in
read mode, instead of write, which allows parallel faults processing
in the region.

Namely, the fast path is taken when the faulted page already exists
and does not need copy on write, is already fully valid, and not busy.
For technical reasons, fast path is avoided when the fault is the
first write on the vnode object, or when the fault is for wiring or
debugger read or write.

On the fast path, pmap_enter(9) is passed the PMAP_ENTER_NOSLEEP flag,
since object lock is kept.  Pmap might fail to create the entry, in
which case the fallback to slow path is performed.

Reviewed by:    alc
Tested by:      pho (previous version)
Hardware provided and hosted by:        The FreeBSD Foundation and
         Sentex Data Communications
Sponsored by:   The FreeBSD Foundation
MFC after:      2 week
04:35:34 - r270010
(6 days 9 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/pf.c
Fix synproxy with IPv6. pf_test6() was missing a check for M_SKIP_FIREWALL.

PR:             127920
Submitted by:   Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by:   InnoGames GmbH
03:52:40 - r270009
(6 days 10 hours ago)
by gjb
Affects: 
(4 files)
/stable/10/sbin/ifconfig/ifconfig.c
/stable/9/sbin/ifconfig/ifconfig.c
MFC r269888:
  Fix a typo in a comment: s/interprete/interpret/

Sponsored by:   The FreeBSD Foundation
02:43:02 - r270008
(6 days 11 hours ago)
by kevlo
Affects: 
(15 files)
/head/sys/*
Change pr_output's prototype to avoid the need for explicit casts.
This is a follow up to r269699.

Phabric:        D564
Reviewed by:    jhb

 


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

Page generated in 31 ms, 264 revisions printed. Current time is 2014-08-21 14:01:28. All times are in UTC/GMT.