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.

2017 - 10 - 19   (today)
18:04:16 - r324767
(1 hour 58 minutes ago)
by glebius
Affects:  /head/sys/sys/sockbuf.h
Hide struct sockbuf from userland.

PR: 222917 (exp-run)
17:57:38 - r324766
(2 hours 5 minutes ago)
by davidcs
Affects: 
(9 files)
/stable/9/sys/dev/qlxgbe/*
MFC r324538
Added support driver state capture/retrieval
17:40:51 - r324765
(2 hours 21 minutes ago)
by davidcs
Affects: 
(4 files)
/stable/9/sys/dev/qlxgbe/ql_hw.c
/stable/9/sys/dev/qlxgbe/ql_os.c
MFC r324535
Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.
17:37:33 - r324764
(2 hours 25 minutes ago)
by davidcs
Affects: 
(8 files)
/stable/10/sys/dev/qlxgbe/*
MFC r324538
Added support driver state capture/retrieval
17:35:37 - r324763
(2 hours 27 minutes ago)
by davidcs
Affects: 
(3 files)
/stable/10/sys/dev/qlxgbe/ql_hw.c
/stable/10/sys/dev/qlxgbe/ql_os.c
MFC r324535
Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.
17:30:20 - r324762
(2 hours 32 minutes ago)
by davidcs
Affects: 
(8 files)
/stable/11/sys/dev/qlxgbe/*
MFC r324538
Added support driver state capture/retrieval
17:28:09 - r324761
(2 hours 34 minutes ago)
by davidcs
Affects: 
(3 files)
/stable/11/sys/dev/qlxgbe/ql_hw.c
/stable/11/sys/dev/qlxgbe/ql_os.c
MFC r324535
Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.
17:26:26 - r324760
(2 hours 36 minutes ago)
by ian
Affects: 
(2 files)
/stable/11/contrib/gcc/config/arm/unwind-arm.c
MFC r323997-r323998

r323997:
Fix handling of uncaught exceptions in a std::terminate() handler on arm.

When raising an exception, the unwinder searches for a catch handler and if
none is found it should invoke std::terminate() with the uncaught exception
as the "current" exception. Before this change, the terminate handler was
invoked with no exception as current (abi::__cxa_current_exception_type()
returned NULL), because the return value from the unwinder indicated an
internal failure in unwinding. It turns out that was because all errors
from get_eit_entry() were translated to _URC_FAILURE. Now the error is
returned untranslated, which allows _URC_END_OF_STACK to percolate upwards
to throw_exception() in libcxxrt. When it sees that return status it
properly calls std::terminate() with the uncaught exception installed
as the current exception, allowing custom terminate handlers to work
with it.

r323998:
Fix the return value from _Unwind_Backtrace() on arm.

If unwinding stops due to hitting the end of the call chain, the return
value is supposed to be _URC_END_OF_STACK; other values indicate internal
errors. The return value from get_eit_entry() is now returned without
translating it to _URC_FAILURE, so that callers can see _URC_END_OF_STACK
when it happens.
16:42:03 - r324759
(3 hours 20 minutes ago)
by fsu
Affects:  /head/sys/fs/ext2fs/ext2_extents.c
Fix unused variable + style(9) fixes inside the ext4_ext_find_extent()

Approved by: pfg (mentor)
Reported by: Coverity
CID: 1381754
MFC after: 6 months
16:40:17 - r324758
(3 hours 22 minutes ago)
by emaste
Affects:  /head/sys/dev/psci/psci.c
psci: change bootverbose string to 'PSCI 0.2 compatible'

Prior to r324754 we treated PSCI 0.2 and 1.0 as identical, and r324754
extended that to include all PSCI 1.x revisions. Change the string
emitted under bootverbose to reference '0.2 compatible' to avoid
confusion when the system includes a later PSCI rev.

Discussed with: andrew
Sponsored by: The FreeBSD Foundation
16:36:07 - r324757
(3 hours 26 minutes ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
remove spa_sync_on assert from spa_async_thread_vd

Unlike spa_async_thread that can get started only from spa_sync()
spa_async_thread_vd can get started from other contexts.
Additionally, spa_async_thread_vd does not really depend on
spa sync being enabled.

The incorrect assert could be triggered by importing a pool in the
read-only mode and then disconnecting one of its disks.
In this case spa_sync_on was false because the pool was read-only
and spa_async_thread_vd was started to handle SPA_ASYNC_REMOVE event.

Note: spa_async_thread_vd() currently exists only in FreeBSD, it was
split out of spa_async_thread() in r253990.

Discussed with: mav
MFC after: 2 weeks
16:16:26 - r324756
(3 hours 46 minutes ago)
by ian
Affects: 
(3 files)
/stable/11/sys/cddl/compat/opensolaris/sys/kcondvar.h
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c
MFC r323985:

Use nstosbt() instead of multiplying by SBT_1NS to avoid roundoff errors.

Differential Revision: https://reviews.freebsd.org/D11779
16:07:57 - r324755
(3 hours 54 minutes ago)
by ian
Affects: 
(6 files)
/stable/11/sys/arm/*
/stable/11/sys/dev/gpio/*
/stable/11/sys/sys/gpio.h
MFC r323392:

Add gpio methods to read/write/configure up to 32 pins simultaneously.

Sometimes it is necessary to combine several gpio pins into an ad-hoc bus
and manipulate the pins as a group. In such cases manipulating the pins
individualy is not an option, because the value on the "bus" assumes
potentially-invalid intermediate values as each pin is changed in turn. Note
that the "bus" may be something as simple as a bi-color LED where changing
colors requires changing both gpio pins at once, or something as complex as
a bitbanged multiplexed address/data bus connected to a microcontroller.

In addition to the absolute requirement of simultaneously changing the
output values of driven pins, a desirable feature of these new methods is to
provide a higher-performance mechanism for reading and writing multiple
pins, especially from userland where pin-at-a-time access incurs a noticible
syscall time penalty.

These new interfaces are NOT intended to abstract away all the ugly details
of how gpio is implemented on any given platform. In fact, to use these
properly you absolutely must know something about how the gpio hardware is
organized. Typically there are "banks" of gpio pins controlled by registers
which group several pins together. A bank may be as small as 2 pins or as
big as "all the pins on the device, hundreds of them." In the latter case, a
driver might support this interface by allowing access to any 32 adjacent
pins within the overall collection. Or, more likely, any 32 adjacent pins
starting at any multiple of 32. Whatever the hardware restrictions may be,
you would need to understand them to use this interface.

In additional to defining the interfaces, two example implementations are
included here, for imx5/6, and allwinner. These represent the two primary
types of gpio hardware drivers. imx6 has multiple gpio devices, each
implementing a single bank of 32 pins. Allwinner implements a single large
gpio number space from 1-n pins, and the driver internally translates that
linear number space to a bank+pin scheme based on how the pins are grouped
into control registers. The allwinner implementation imposes the restriction
that the first_pin argument to the new functions must always be pin 0 of a
bank.

Differential Revision: https://reviews.freebsd.org/D11810
13:22:52 - r324754
(6 hours 39 minutes ago)
by andrew
Affects:  /head/sys/dev/psci/psci.c
Allow later PSCI revisions to also work. The latest ARM Trusted Firmware
reports version 1.1 so the check was failing. As thjis is a minor change
from 1.0, and future 1.x revisions are also expected to be backwards
compatible just ignore the minor revision in the init handler.

Sponsored by: DARPA, AFRL
12:55:11 - r324753
(7 hours 7 minutes ago)
by emaste
Affects: 
(4 files)
/head/sys/fs/msdosfs/*
msdosfs: fix build with MSDOSFS_DEBUG

Inspired by a patch submission by longwitz@incore.de with many changes
for ino64 in HEAD.

PR: 199152
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
09:01:15 - r324752
(11 hours 1 minute ago)
by mav
Affects:  /head/sys/netinet/ip_carp.c
Relax per-ifnet cif_vrs list double locking in carp(4).

In all cases where cif_vrs list is modified, two locks are held: per-ifnet
CIF_LOCK and global carp_sx. It means to read that list only one of them
is enough to be held, so we can skip CIF_LOCK when we already have carp_sx.

This fixes kernel panic, caused by attempts of copyout() to sleep while
holding non-sleepable CIF_LOCK mutex.

Discussed with: glebius
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
08:17:32 - r324751
(11 hours 45 minutes ago)
by avg
Affects: 
(3 files)
/stable/11/usr.sbin/i2c/i2c.8
/stable/11/usr.sbin/i2c/i2c.c
MFC r324590: i2c(8): clean up and clarify read operation
08:15:41 - r324750
(11 hours 47 minutes ago)
by avg
Affects:  /stable/11/usr.sbin/i2c/i2c.c
Really MFC r309357,r309409: Speling fixes and fix line endings for err_msg
output

Note: somehow these revisions were in mergeinfo but the actual changes
were not merged.
08:00:34 - r324749
(12 hours 2 minutes ago)
by avg
Affects: 
(4 files)
/stable/10/sys/kern/kern_linker.c
/stable/10/sys/kern/kern_sysctl.c
/stable/10/sys/sys/sysctl.h
MFC r324311: sysctl-s in a module should be accessible only when the module is
initialized

Sponsored by: Panzura
07:54:04 - r324748
(12 hours 8 minutes ago)
by avg
Affects: 
(4 files)
/stable/11/sys/kern/kern_linker.c
/stable/11/sys/kern/kern_sysctl.c
/stable/11/sys/sys/sysctl.h
MFC r324311: sysctl-s in a module should be accessible only when the module is
initialized

Sponsored by: Panzura
07:23:47 - r324747
(12 hours 38 minutes ago)
by avg
Affects: 
(2 files)
/stable/10/etc/devd/zfs.conf
MFC r324312: fix the misleading log facility used in devd/zfs.conf
07:23:26 - r324746
(12 hours 39 minutes ago)
by avg
Affects: 
(2 files)
/stable/11/etc/devd/zfs.conf
MFC r324312: fix the misleading log facility used in devd/zfs.conf
07:21:45 - r324745
(12 hours 40 minutes ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
MFC r324309: remove heuristic error detection from ddi_strto*()
07:21:23 - r324744
(12 hours 41 minutes ago)
by avg
Affects: 
(2 files)
/stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
MFC r324309: remove heuristic error detection from ddi_strto*()
04:13:47 - r324743
(15 hours 48 minutes ago)
by alc
Affects:  /head/sys/vm/vm_object.c
Batch atomic updates to the number of active, inactive, and laundry
pages by vm_object_terminate_pages(). For example, for a "buildworld"
workload, this batching reduces vm_object_terminate_pages()'s average
execution time by 12%. (The total savings were about 11.7 billion
processor cycles.)

Reviewed by: kib
MFC after: 1 week
03:38:53 - r324742
(16 hours 23 minutes ago)
by jhibbits
Affects:  /head/sys/powerpc/conf/MPC85XX
/head/sys/powerpc/conf/MPC85XXSPE
Add some more devices to the MPC85XX-based configs

These devices bring the configs closer to a desktop-like (GENERIC) kernel
config.
* The Freescale DIU support was added to the config in r306358.
  Without keyboard support video support is nearly pointless, so add ukbd and
  ums.
* The AmigaOne X5000, and P1022 devboard, both use a variant of the ds1307 RTC
* cpufreq scaling is currently supported by the p1022. More SoCs will be added
  eventually.
03:20:17 - r324741
(16 hours 42 minutes ago)
by gordon
Affects: 
(14 files)
/releng/10.4/UPDATING
/releng/10.4/contrib/wpa/*
/releng/10.4/sys/conf/newvers.sh
Fix WPA2 protocol vulnerability. [SA-17:07]

Approved by: so
03:19:42 - r324740
(16 hours 43 minutes ago)
by gordon
Affects: 
(14 files)
/releng/10.3/UPDATING
/releng/10.3/contrib/wpa/*
/releng/10.3/sys/conf/newvers.sh
Fix WPA2 protocol vulnerability. [SA-17:07]

Approved by: so
03:18:22 - r324739
(16 hours 44 minutes ago)
by gordon
Affects: 
(12 files)
/stable/10/contrib/wpa/src/*
/stable/10/contrib/wpa/wpa_supplicant/*
Update wpa_supplicant/hostapd for 2017-01 vulnerability release.

Note this is a different patchset than what was applied to head and
stable/11 due to the much older version of wpa_supplicant/hostapd in
stable/10.

hostapd: Avoid key reinstallation in FT handshake
Prevent reinstallation of an already in-use group key
Extend protection of GTK/IGTK reinstallation of WNM-Sleep Mode cases
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case
Prevent installation of an all-zero TK
Fix PTK rekeying to generate a new ANonce
TDLS: Reject TPK-TK reconfiguration
WNM: Ignore Key Data in WNM Sleep Mode Response frame if no PMF in use
WNM: Ignore WNM-Sleep Mode Response if WNM-Sleep Mode has not been used
WNM: Ignore WNM-Sleep Mode Response without pending request
FT: Do not allow multiple Reassociation Response frames
TDLS: Ignore incoming TDLS Setup Response retries

Submitted by: jhb
Obtained from: https://w1.fi/security/2017-01/ (against later version)
Security: FreeBSD-SA-17:07
Security: CERT VU#228519
Security: CVE-2017-13077
Security: CVE-2017-13078
Security: CVE-2017-13079
Security: CVE-2017-13080
Security: CVE-2017-13081
Security: CVE-2017-13082
Security: CVE-2017-13086
Security: CVE-2017-13087
Security: CVE-2017-13088
Differential Revision: https://reviews.freebsd.org/D12724
03:17:50 - r324738
(16 hours 44 minutes ago)
by cy
Affects:  /head/etc/defaults/periodic.conf
/head/etc/periodic/daily/480.leapfile-ntpd
/head/etc/rc.d/ntpd
Anticongestion refinements for ntpd rc script. This reverts r324681
and checks if ntp leapfile needs fetching before entering into the
anticongestion sleep.

Unfortunately some ports still use their own sleeps so, this commit
doesn't address the complete problem which is compounded by every
port that uses its own anticongestion mechanism.

Discussed with: asomers
02:14:39 - r324737
(17 hours 48 minutes ago)
by jhibbits
Affects:  /head/sys/powerpc/mpc85xx/fsl_diu.c
Remove some unnecessary includes
01:38:31 - r324736
(18 hours 24 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_sysctl.c
sysctl: only take mem lock if oldlen is > 4 * PAGE_SIZE

The previous limit of just one page is hit by ps.

The entire mechanism should be reworked, if not whacked. It seems the intent
is to reduce kernel dos-ability - some handlers wire the amount of memory
passed here. Handlers should probably stop wiring in the first place or in
the worst case indicate they are doing so so that the check is done only if
necessary. It should also probably be a counter, not a lock.

MFC after: 1 week
00:46:15 - r324735
(19 hours 16 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_exec.c
execve: avoid one proc lock/unlock trip unless PTRACE_EXEC is set

MFC after: 1 week
00:38:14 - r324734
(19 hours 24 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_exec.c
Tidy up pmc support at execve.

The proc-specific check is inherently racy, so the code can just unlock
beforehand.

MFC after: 1 week
00:31:00 - r324733
(19 hours 31 minutes ago)
by mjg
Affects:  /head/sys/kern/sysv_sem.c
sysvsem: check if semu_list has anything on it before grabbing the lock

This should get a process-specific support instead.

MFC after: 1 week
2017 - 10 - 18   (yesterday)
22:56:46 - r324732
(21 hours 5 minutes ago)
by bjk
Affects:  /head/usr.sbin/jail/jail.8
Adopt jail.8 to our brave new bsdinstall world

Submitted by: Steve Kargl
MFC after: 3 days
22:00:44 - r324731
(22 hours 1 minute ago)
by mjg
Affects:  /head/sys/kern/sched_ule.c
/head/sys/kern/subr_smp.c
Don't take Giant for SMP status and cpu topology sysctls.

Not only this lock doesn't play any role here, dirtying it slows down
other things a little bit as giant-held checks (e.g. DROP_GIANT) are
spread all over the kernel.

MFC after: 1 week
21:08:35 - r324730
(22 hours 54 minutes ago)
by tuexen
Affects:  /head/sys/netinet/sctp_indata.c
Fix a signed/unsigned warning.

MFC after: 1 week
20:17:44 - r324729
(23 hours 44 minutes ago)
by tuexen
Affects:  /head/sys/netinet/sctp_indata.c
Abort an SCTP association, when a DATA chunk is followed by an unknown
chunk with a length smaller than the minimum length.

Thanks to Felix Weinrank for making me aware of the problem.
MFC after: 3 days
19:28:28 - r324728
(1 day ago)
by rlibby
Affects: 
(4 files)
/head/sys/dev/*
ql*_def.h: fix QL_ALIGN parenthesization

QL_ALIGN is a set of copies of roundup2, but it was missing an outer set
of parentheses, which began to matter with r324538. Now, fully copy the
parenthesization of roundup2.

Reviewed by: davidcs
Differential Revision: https://reviews.freebsd.org/D12673
19:22:53 - r324727
(1 day ago)
by ed
Affects: 
(24 files)
/head/sys/compat/*
/head/sys/contrib/cloudabi/*
/head/usr.bin/truss/syscalls.c
Import the latest CloudABI definitions, version 0.16.

The most important change in this release is the removal of the
poll_fd() system call; CloudABI's equivalent of kevent(). Though I think
that kqueue is a lot saner than many of its alternatives, our
experience is that emulating this system call on other systems
accurately isn't easy. It has become a complex API, even though I'm not
convinced this complexity is needed. This is why we've decided to take a
different approach, by looking one layer up.

We're currently adding an event loop to CloudABI's C library that is API
compatible with libuv (except when incompatible with Capsicum).
Initially, this event loop will be built on top of plain inefficient
poll() calls. Only after this is finished, we'll work our way backwards
and design a new set of system calls to optimize it.

Interesting challenges will include integrating asynchronous I/O into
such a system call API. libuv currently doesn't aio(4) on Linux/BSD, due
to it being unreliable and having undesired semantics.

Obtained from: https://github.com/NuxiNL/cloudabi
18:59:35 - r324726
(1 day 1 hour ago)
by tuexen
Affects:  /head/sys/netinet/ip_fw.h
Revert change which got in accidently.
18:56:56 - r324725
(1 day 1 hour ago)
by tuexen
Affects:  /head/sys/netinet/ip_fw.h
/head/sys/netinet/sctp_input.c
Fix a bug introduced in r324638.
Thanks to Felix Weinrank for making me aware of this.

MFC after: 3 days
17:23:16 - r324724
(1 day 2 hours ago)
by jhb
Affects:  /head/sys/conf/kern.mk
/head/sys/conf/options.mips
/head/sys/mips/mips/trap.c
Remove CPU_HAVEFPU.

Instead, use a runtime decision to handle COP1 traps. If floating point
support is present in the current CPU, enable saving of the floating point
state. If support is not present, fail with SIGILL.

Reviewed by: imp, br
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D12707
15:48:26 - r324723
(1 day 4 hours ago)
by brd
Affects:  /head/tools/build/beinstall.sh
Teach beinstall to use and prefer svnlite, with a fallback to svn.

Approved by: will
15:38:05 - r324722
(1 day 4 hours ago)
by markj
Affects: 
(9 files)
/head/sys/*
Move kernel dump offset tracking into MI code.

All of the kernel dump implementations keep track of the current offset
("dumplo") within the dump device. However, except for textdumps, they
all write the dump sequentially, so we can reduce code duplication by
having the MI code keep track of the current offset. The new
dump_append() API can be used to write at the current offset.

This is needed to implement support for kernel dump compression in the
MI kernel dump code.

Also simplify dump_encrypted_write() somewhat: use dump_write() instead
of duplicating its bounds checks, and get rid of the redundant offset
tracking.

Reviewed by: cem
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11722
13:25:44 - r324721
(1 day 6 hours ago)
by se
Affects:  /head/share/man/man5/rc.conf.5
/head/share/man/man8/rc.8
Add references to sysrc(8).

Reported by: Kurt Jaeger (lists at opsec.eu)
08:18:01 - r324720
(1 day 11 hours ago)
by bapt
Affects: 
(2 files)
/stable/11/usr.sbin/ctld/uclparse.c
MFC r324623:

Fix ctld segfaulting when using ucl conf file format and having duplicated
lun or target

Submitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>
Sponsored by: blade
Differential Revision: https://reviews.freebsd.org/D12646
08:06:05 - r324719
(1 day 11 hours ago)
by tsoome
Affects:  /head/sys/boot/libsa/ip.c
libsa/ip: stop read loop on bad fragments

Lets try to clear out from case of overlapping etc fragments and stop read.

Reported by: Dan McDonald
08:05:46 - r324718
(1 day 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_tc.c
MFC r324528:
In tc_windup(), do not re-calculate bintime.
07:39:21 - r324717
(1 day 12 hours ago)
by tsoome
Affects:  /head/sys/boot/libsa/ip.c
libsa/ip.c: misplaced comment, ip_v is half char, not ip_p

The comment should be at previous line.

Reported by: Dan McDonald
07:27:43 - r324716
(1 day 12 hours ago)
by kib
Affects:  /head/sys/vm/swap_pager.c
Do not report reduction of swap zone if it was not.

After r324600 we see the actual reservation.

Reported by: jkim
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
03:46:01 - r324715
(1 day 16 hours ago)
by cy
Affects:  /vendor/wpa/2.6
Tag wpa_supplicant/hostapd 2.6.
03:44:27 - r324714
(1 day 16 hours ago)
by cy
Affects: 
(510 files)
/vendor/wpa/dist/*
Import wpa_supplicant/hostapd 2.6.
00:41:23 - r324713
(1 day 19 hours ago)
by rlibby
Affects:  /head/sys/fs/ext2fs/ext2_extern.h
ext2: delete redundant decl of ext2_fserr

Fix gcc build after r324706.

Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D12709
00:33:20 - r324712
(1 day 19 hours ago)
by jonathan
Affects:  /head/share/mk/bsd.lib.mk
/head/share/mk/bsd.prog.mk
Improve computation of {BC,LL}OBJS.

Now that OBJS has grown an OBJS_SRCS_FILTER variable, use this variable
in the computation of BCOBJS and LLOBJS too. Also move BCOBJS and LLOBJS
computation to be next to the OBJS computation: this should both make
the parallel structure clearer and serve to remind people changing OBJS
that parallel changes are required in BCOBJS and LLOBJS.

A side effect of this change is that BCOBJS and LLOBJS will be available
even when LLVM_LINK has not been defined, but that seems like a positive
change: there's no reason we can't ask "what bitcode files would you
generate" just because we can't link those files together into a
complete bitcode representation of a binary or library.

Reviewed by: sjg
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12701
00:30:15 - r324711
(1 day 19 hours ago)
by jonathan
Affects:  /head/share/mk/bsd.prog.mk
Improve logic of CLEANFILES+=${PROG_FULL}.{bc,ll}.

The build rule describing how to create ${PROG_FULL}.{bc,ll} is only
dependent on LLVM_LINK being defined, not on MK_DEBUG_FILES being "yes".
Move the addition of ${PROG_FULL}.{bc,ll} out of the conditional block
under `.if ${MK_DEBUG_FILES} != "no"` and up next to where the build
rules for ${PROG_FULL}.{bc,ll} are defined.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12703
00:18:03 - r324710
(1 day 19 hours ago)
by brooks
Affects: 
(10 files)
/head/ObsoleteFiles.inc
/head/share/man/man9/*
/head/sys/*
Remove mbpool(9) now that it has no consumers.

mbpool existed to support NICs with memory interfaces and all remaining
comsumers were removed earlier this year with NATM.

Reviewed by: jhb
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10513
2017 - 10 - 17   (2 days ago)
23:38:27 - r324709
(1 day 20 hours ago)
by imp
Affects: 
(9 files)
/head/sys/boot/efi/boot1/*
/head/sys/boot/efi/libefi/*
/head/sys/boot/efi/loader/*
Revert "Unify boot1 with loader" change r324646

Back out the unification commit to boot1. There's some issues on the
arm and arm64 platforms that need to be addressed with code
changes. There's also a discussion on arch@ about the future of
boot1.efi vs just using loader.efi that needs to play out. So take a
pause on these changes until the arm issues can be fixed and it's
clear boot1.efi will survive into FreeBSD 12.

OK'd by: Eric@meatspace
21:20:07 - r324708
(1 day 22 hours ago)
by gordon
Affects:  /releng/11.1/UPDATING
Correct copy-paste. 11.1 is p2, not p13.

X-Pointy-Hat-To: gordon
Approved by: so
21:13:26 - r324707
(1 day 22 hours ago)
by emaste
Affects:  /head/sys/tools/embed_mfs.sh
embed_mfs: add error handling, usage

Ensure that we are called with two arguments, and that the output file
is writable. Also, if we cannot find the mfs section report the output
file name rather than "kernel", as this script may be used with other
than kernels.

Sponsored by: The FreeBSD Foundation
20:45:44 - r324706
(1 day 23 hours ago)
by fsu
Affects: 
(14 files)
/head/sys/fs/ext2fs/*
Add inital extents read-write support.

Approved by: pfg (mentor)
MFC after: 6 months
RelNotes: Yes

Differential Revision: https://reviews.freebsd.org/D12087
20:37:31 - r324705
(1 day 23 hours ago)
by rlibby
Affects:  /head/sys/dev/cxgbe/tom/t4_cpl_io.c
/head/sys/dev/cxgbe/tom/t4_ddp.c
cxgbe: delete now-redundant vnet decls

r324539 gathered some vnet decls into netinet/tcp_var.h, so that they
are now redundant in dev/cxgbe/tom/{t4_cpl_io.c,t4_ddp.c}. This triggers
gcc -Wredundant-decls.

Reviewed by: np
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12674
19:41:45 - r324704
(2 days ago)
by markj
Affects:  /head/sys/kern/vfs_subr.c
Fix a racy VI_DOOMED check in MNT_VNODE_FOREACH_ALL().

MNT_VNODE_FOREACH_ALL() is supposed to avoid returning doomed vnodes,
but the VI_DOOMED check it used was done without the vnode interlock
held, so it could race with a concurrent vgone().

Submitted by: Don Morris <don.morris@isilon.com>
Reviewed by: kib, mckusick
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12704
19:11:29 - r324703
(2 days ago)
by emaste
Affects:  /head/sys/boot/loader.mk
loader.mk: clean md.o even if MD_IMAGE_SIZE not defined

We don't normally provide special handling for optionally-included src
files, but md.o depends on both md.c and the value of ${MD_IMAGE_SIZE}.
Previously if one built with MD_IMAGE_SIZE, executed "make clean", and
then built with a different MD_IMAGE_SIZE md.o would not be rebuilt.

Reported by: Zakary Nafziger
Sponsored by: The FreeBSD Foundation
19:11:19 - r324702
(2 days ago)
by imp
Affects:  /head/sys/boot/uboot/lib/Makefile
We need to include disk.o in libuboot.a when we're building with
support for disk access.

Sponsored by: Netflix
19:01:01 - r324701
(2 days 1 hour ago)
by bdrewery
Affects:  /head/tests/sys/kern/ptrace_test.c
Add a test for r324671 along with some other masked tests.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
18:00:01 - r324700
(2 days 2 hours ago)
by emaste
Affects:  /head/sys/boot/common/md.c
loader: initialize dv_cleanup in md.c to eliminate clang warning

Submitted by: Zakary Nafziger <worldofzak@gmail.com>
Sponsored by: The FreeBSD Foundation
17:57:18 - r324699
(2 days 2 hours ago)
by gordon
Affects: 
(15 files)
/releng/11.1/UPDATING
/releng/11.1/contrib/wpa/*
/releng/11.1/sys/conf/newvers.sh
Fix WPA2 protocol vulnerability. [SA-17:07]

Approved by: so
17:56:03 - r324698
(2 days 2 hours ago)
by gordon
Affects: 
(15 files)
/releng/11.0/UPDATING
/releng/11.0/contrib/wpa/*
/releng/11.0/sys/conf/newvers.sh
Fix WPA2 protocol vulnerability. [SA-17:07]

Approved by: so
17:30:18 - r324697
(2 days 2 hours ago)
by gordon
Affects: 
(14 files)
/stable/11/contrib/wpa/src/*
/stable/11/contrib/wpa/wpa_supplicant/*
MFC r324696: Update wpa_supplicant/hostapd for 2017-01 vulnerability release.

hostapd: Avoid key reinstallation in FT handshake
Prevent reinstallation of an already in-use group key
Extend protection of GTK/IGTK reinstallation of WNM-Sleep Mode cases
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case
Prevent installation of an all-zero TK
Fix PTK rekeying to generate a new ANonce
TDLS: Reject TPK-TK reconfiguration
WNM: Ignore Key Data in WNM Sleep Mode Response frame if no PMF in use
WNM: Ignore WNM-Sleep Mode Response if WNM-Sleep Mode has not been used
WNM: Ignore WNM-Sleep Mode Response without pending request
FT: Do not allow multiple Reassociation Response frames
TDLS: Ignore incoming TDLS Setup Response retries

Submitted by: jhb
Obtained from: https://w1.fi/security/2017-01/ (against later version)
Security: FreeBSD-SA-17:07
Security: CERT VU#228519
Security: CVE-2017-13077
Security: CVE-2017-13078
Security: CVE-2017-13079
Security: CVE-2017-13080
Security: CVE-2017-13081
Security: CVE-2017-13082
Security: CVE-2017-13086
Security: CVE-2017-13087
Security: CVE-2017-13088
17:22:36 - r324696
(2 days 2 hours ago)
by gordon
Affects: 
(13 files)
/head/contrib/wpa/src/*
/head/contrib/wpa/wpa_supplicant/*
Update wpa_supplicant/hostapd for 2017-01 vulnerability release.

hostapd: Avoid key reinstallation in FT handshake
Prevent reinstallation of an already in-use group key
Extend protection of GTK/IGTK reinstallation of WNM-Sleep Mode cases
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case
Prevent installation of an all-zero TK
Fix PTK rekeying to generate a new ANonce
TDLS: Reject TPK-TK reconfiguration
WNM: Ignore Key Data in WNM Sleep Mode Response frame if no PMF in use
WNM: Ignore WNM-Sleep Mode Response if WNM-Sleep Mode has not been used
WNM: Ignore WNM-Sleep Mode Response without pending request
FT: Do not allow multiple Reassociation Response frames
TDLS: Ignore incoming TDLS Setup Response retries

Submitted by: jhb
Obtained from: https://w1.fi/security/2017-01/ (against later version)
Security: FreeBSD-SA-17:07
Security: CERT VU#228519
Security: CVE-2017-13077
Security: CVE-2017-13078
Security: CVE-2017-13079
Security: CVE-2017-13080
Security: CVE-2017-13081
Security: CVE-2017-13082
Security: CVE-2017-13086
Security: CVE-2017-13087
Security: CVE-2017-13088
Differential Revision: https://reviews.freebsd.org/D12693
16:29:50 - r324695
(2 days 3 hours ago)
by jonathan
Affects:  /head/share/mk/bsd.lib.mk
Add LLVM IR libraries to CLEANFILES.

We previously taught the build system how to create files like libfoo.bc,
but neglected to teach it about cleaning such files up. Rectify this now.

MFC after: 1 week
Sponsored by: DARPA, AFRL
16:03:59 - r324694
(2 days 3 hours ago)
by avg
Affects:  /head/sys/dev/iscsi/iscsi.c
never retry oustanding requests when terminating iscsi session

CAM_REQ_ABORTED sounds natural for aborting outstanding requests when
tearing down a session, but that status actually causes eligible
requests to be tried again. That's completely useless, so let's use
CAM_DEV_NOT_THERE instead. Perhaps there is a better status, but this
should be good enough. The change should affect only the session
termination.

Tested by: Ben RUBSON <ben.rubson@gmail.com>
Reviewed by: mav, trasz
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D12653
15:53:22 - r324693
(2 days 4 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.bin/su/su.c
MFC r324497:

Mute gcc warning about p not being possibly initialized

I'm running into this warning on a tinderbox run with gcc 4.2.1 with mips and
powerpc.
15:53:19 - r324692
(2 days 4 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.bin/su/su.c
MFC r324497:

Mute gcc warning about p not being possibly initialized

I'm running into this warning on a tinderbox run with gcc 4.2.1 with mips and
powerpc.
15:52:02 - r324691
(2 days 4 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/sbin/growfs/tests/legacy_test.pl
/stable/11/tests/sys/geom/class/eli/resize_test.sh
MFC r324478:

Check the exit code from fsck_ffs instead of relying on MODIFIED being in the
output

^/head@r323923 changed when MODIFIED is printed at exit. It's better to follow
the
documented way of determining whether or not a filesystem is clean per
fsck_ffs, i.e.,
ensure that the exit code is either 0 or 7.

The pass/fail determination is brittle prior to this commit, and ^/head@r323923
made
the issue apparent -- thus this needs to be fixed independent of ^/head@r323923.

PR: 222780
MFC with: r323923
15:49:36 - r324690
(2 days 4 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/sbin/growfs/tests/legacy_test.pl
/stable/10/tests/sys/geom/class/eli/resize_test.sh
MFC r324478:

Check the exit code from fsck_ffs instead of relying on MODIFIED being in the
output

^/head@r323923 changed when MODIFIED is printed at exit. It's better to follow
the
documented way of determining whether or not a filesystem is clean per
fsck_ffs, i.e.,
ensure that the exit code is either 0 or 7.

The pass/fail determination is brittle prior to this commit, and ^/head@r323923
made
the issue apparent -- thus this needs to be fixed independent of ^/head@r323923.

PR: 222780
MFC with: r323923
15:39:38 - r324689
(2 days 4 hours ago)
by avg
Affects:  /head/sys/dev/iscsi/iscsi.c
iscsi: do not hold the global lock while tearing down a session

It should be sufficient to hold the lock just for removing the session
from the session list. Everything else should be covered by the session
specific lock.

On top of that, at present we can get a deadlock caused by waiting on
the CAM SIM reference count while holding the global lock. A specific
scenario involving ZFS is this:
- concurrent termination of two sessions, S1 and S2
- session S1 completed all I/Os and sleeps in CAM waiting for device
  close by ZFS;
- session S2 is also dead now, but can not forcefully complete
  outstanding requests by calling iscsi_session_cleanup() from
  iscsi_maintenance_thread_terminate(), since it can't get the same
  global sc_lock;
- as soon as there are unfinished requests, ZFS can not do
  spa_config_enter() as writer, and so can not close the device for
  session S1;
- deadlock.

Reported by: Ben RUBSON <ben.rubson@gmail.com>
Tested by: Ben RUBSON <ben.rubson@gmail.com>
Reviewed by: mav, trasz
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D12652
14:37:12 - r324688
(2 days 5 hours ago)
by maxim
Affects:  /head/share/misc/bsd-family-tree
DragonFly 5.0.0 release added.
12:45:51 - r324687
(2 days 7 hours ago)
by jhb
Affects: 
(10 files)
/stable/11/sys/*
MFC 323579,323585: Add AT_HWCAP and AT_EHDRFLAGS on all platforms.

To preserve KBI on stable/11, a new SV_HWCAP flag is added which
indicates if the sv_hwcap field is present and valid to avoid examining
the field in old modules. Only sysentvec's which wish to use sv_hwcap
need to set the flag in stable/11.

323579:
Add AT_HWCAP and AT_EHDRFLAGS on all platforms.

A new 'u_long *sv_hwcap' field is added to 'struct sysentvec'. A
process ABI can set this field to point to a value holding a mask of
architecture-specific CPU feature flags. If an ABI does not wish to
supply AT_HWCAP to processes the field can be left as NULL.

The support code for AT_EHDRFLAGS was already present on all systems,
just the #define was not present. This is a step towards unifying the
AT_* constants across platforms.

323585:
Add AT_EHDRFLAGS and AT_HWCAP on amd64.

x86 has two separate (but identical) list of AT_* constants and the
earlier commit to add AT_HWCAP only updated the i386 list.
12:42:17 - r324686
(2 days 7 hours ago)
by tuexen
Affects: 
(2 files)
/stable/11/sys/netinet/tcp_usrreq.c
MFC r322648:

Ensure inp_vflag is consistently set for TCP endpoints.

Make sure that the flags INP_IPV4 and INP_IPV6 are consistently set
for inpcbs used for TCP sockets, no matter if the setting is derived
from the net.inet6.ip6.v6only sysctl or the IPV6_V6ONLY socket option.
For UDP this was already done right.

PR: 221385
11:20:32 - r324685
(2 days 8 hours ago)
by hselasky
Affects: 
(25 files)
/stable/10/sys/dev/*
/stable/10/sys/ofed/*
MFC r289568, r300676, r300677, r300719, r300720 and r300721:
Implement LinuxKPI module parameters as SYSCTLs.

The bool module parameter is no longer supported, because there is no
equivalent in FreeBSD 10-stable. These are converted into "int" type.

There are two macros available which control the behaviour of the
LinuxKPI module parameters:

- LINUXKPI_PARAM_PARENT allows the consumer to set the SYSCTL parent
where the modules parameters will be created.

- LINUXKPI_PARAM_PREFIX defines a parameter name prefix, which is
  added to all created module parameters.

The LinuxKPI module parameters also have a permissions value.
If any write bits are set we are allowed to modify the module
parameter runtime. Reflect this when creating the static SYSCTL
nodes.

The module_param_call() function is no longer supported.

Sponsored by: Mellanox Technologies
02:53:42 - r324684
(2 days 17 hours ago)
by emaste
Affects:  /head/lib/libstand
Remove lib/libstand again, accidentally readded in r324683
02:51:45 - r324683
(2 days 17 hours ago)
by emaste
Affects:  /head/lib/libc/sys/write.2
/head/lib/libstand
write.2: correct maximum nbytes size for EINVAL error

In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the
maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to
document this, and mention the sysctl that can be set to obtain the
previous behaviour.

PR: 196666
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
01:15:55 - r324682
(2 days 18 hours ago)
by cy
Affects:  /head/etc/periodic/daily/480.leapfile-ntpd
Style. Replace 8 spaces with a tab.

MFC after: 2 weeks (with prior commit to this file)
01:15:13 - r324681
(2 days 18 hours ago)
by cy
Affects:  /head/etc/defaults/periodic.conf
/head/etc/periodic/daily/480.leapfile-ntpd
Provide an option to run the anticongestion ntpd leapfile fetch in
the background.

Original patch submitted by feld@. I added the "optional" bit.

Submitted by: feld (original patch)
MFC after: 2 weeks
01:12:17 - r324680
(2 days 18 hours ago)
by rlibby
Affects:  /head/sys/gdb/gdb_main.c
gdb kernel server: fixup Search:memory style

This is a NFC patch to move around the Search:memory implementation so
that it doesn't exceed the standard column width and doesn't take so
much vertical space in gdb_trap.

Submitted by: Daniel O'Connor <darius@dons.net.au>
Reviewed by: cem, jhb
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12684
00:25:44 - r324679
(2 days 19 hours ago)
by emaste
Affects: 
(2 files)
/stable/11/share/man/man9/sysctl.9
MFC r324509: sysctl.9: document CTLFLAG_CAPRD and CTLFLAG_CAPWR

Reported by: Shawn Webb
Sponsored by: The FreeBSD Foundation
2017 - 10 - 16   (3 days ago)
23:43:18 - r324678
(2 days 20 hours ago)
by rmacklem
Affects:  /projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdport.c
Change the pNFS server to use the taskqueue code (common with the client)
to do concurrent I/O operations to the mirrored DSs, instead of using
kproc_create()/kproc_exit() for every RPC.
23:40:24 - r324677
(2 days 20 hours ago)
by rmacklem
Affects: 
(381 files)
/projects/pnfs-planb-server/sys/*
Merge in a current kernel from head.
23:28:12 - r324676
(2 days 20 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfs/nfs_commonport.c
/head/sys/fs/nfsclient/nfs_clrpcops.c
Use taskqueue(9) to do writes/commits to mirrored DSs concurrently.

When the NFSv4.1 pNFS client is using a Flexible File Layout specifying
mirrored Data Servers, it must do the writes and commits to all mirrors.
This patch modifies the client to use a taskqueue to perform these writes
and commits concurrently.
The number of threads can't be changed for taskqueue(9), so it is set
to 4 * mp_ncpus by default, but this can be overridden by setting the
sysctl vfs.nfs.pnfsiothreads.

Differential Revision: https://reviews.freebsd.org/D12632
21:55:31 - r324675
(2 days 22 hours ago)
by mckusick
Affects: 
(2 files)
/stable/10/sbin/fsck_ffs/main.c
MFC of 324456.

Do not report filesystem as modified if only timestamp updated in superblock.
21:53:29 - r324674
(2 days 22 hours ago)
by mckusick
Affects: 
(2 files)
/stable/11/sbin/fsck_ffs/main.c
MFC of 324456.

Do not report filesystem as modified if only timestamp updated in superblock.
21:46:11 - r324673
(2 days 22 hours ago)
by avos
Affects:  /head/sys/kern/uipc_mbuf.c
mbuf(9): unbreak m_fragment()

- Fix it by replacing m_cat() with m_prev->m_next = m_new
(m_cat() will try to append data - as a result, there will be no
fragmentation).
- Move some constants out of the loop.

Was previously tested with D4077.

Differential Revision: https://reviews.freebsd.org/D4090
21:21:31 - r324672
(2 days 22 hours ago)
by avos
Affects:  /head/sys/net/if_clone.c
ifnet(9): split ifc_alloc_unit() (should simplify code flow)

Allocate smallest unit number from pool via ifc_alloc_unit_next()
and exact unit number (if available) via ifc_alloc_unit_specific().

While here, address possible deadlock (mentioned in PR).

PR: 217401
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D12551
20:21:51 - r324671
(2 days 23 hours ago)
by kib
Affects:  /head/sys/kern/kern_sig.c
Re-evaluate thread' signal mask after ptracestop().

The stop drops process lock, which allows the signal mask to be
changed and our selected signal might become blocked, i.e. should be
returned to the process queue instead of delivery.

Also, for the existing check of the process no longer having an
attached debugger, we should not loose the signal, but requeue it.

Reported and tested by: bdrewery
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
20:15:19 - r324670
(2 days 23 hours ago)
by kib
Affects:  /head/sys/kern/kern_sig.c
Improve assertion that an ignored or blocked signal is not delivered.

Split two conditions into separate asserts. Print additional details,
like the signal number and action value.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
20:11:29 - r324669
(2 days 23 hours ago)
by kib
Affects:  /head/sys/kern/kern_sig.c
Style.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
20:06:24 - r324668
(2 days 23 hours ago)
by bdrewery
Affects:  /head/tests/sys/kern/ptrace_test.c
This child is expected to exit on SIGTRAP, don't leave a core behind.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
17:21:52 - r324667
(3 days 2 hours ago)
by romain
Affects:  /head/lib/libgeom/Makefile
/head/lib/libgeom/libgeom.3
Add a quick description of the geom_getxml(3), geom_xml2tree(3),
geom_gettree(3) and geom_deletetree(3) functions provided by libgeom and are
not documented in libgeom(3).

Reviewed by: mav, bjk, allanjude
Approved by: allanjude
Differential Revision: https://reviews.freebsd.org/D12679
16:14:50 - r324666
(3 days 3 hours ago)
by mjoras
Affects:  /head/sys/kern/subr_unit.c
Properly reset the fields in clean_unrhdr.

In r324542 I neglected to reset the first and last fields of struct
unrhdr. This causes a tmpfs to fail the unr(9) consistency checks with
DIAGNOSTIC on. Fix this by resetting the fields by calling init_unrhdr.
While here, change a loop to use TAILQ_FOREACH_SAFE since it is more
readable and equally fast.

Reported by: David Wolfskill <david@catwhisker.org>
Approved by: rstone (mentor)
Sponsored by: Dell EMC Isilon
15:16:24 - r324665
(3 days 4 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/pmap.c
/head/sys/amd64/include/pmap.h
Fix the pv_chunks pc_lru tailq handling in reclaim_pv_chunk().

For processing, reclaim_pv_chunk() removes the pv_chunk from the lru
list, which makes pc_lru linkage invalid. Then the pmap lock is
released, which allows for other thread to free the last pv entry
allocated from the chunk and call free_pv_chunk(), which tries to
modify the invalid linkage.

Similarly, the chunk is inserted into the private tailq new_tail
temporary. Again, free_pv_chunk() might be run and corrupt the
linkage for the new_tail after the pmap lock is dropped.

This is a consequence of r299788 elimination of pvh_global_lock, which
allowed for reclaim to run in parallel with other pmap calls which
free pv chunks.

As a fix, do not remove the chunk from pc_lru queue, use a marker to
remember the position in the queue iteration. We can safely operate
on the chunks after the chunk's pmap is locked, we fetched the chunk
after the marker, and we checked that chunk pmap is same as we have
locked, because chunk removal from pc_lru requires both pv_chunk_mutex
and the pmap mutex owned.

Note that the fix lost an optimization which was present in the
previous algorithm. Namely, new_tail requeueing rotated the pv chunks
list so that reclaim didn't scan the same pv chunks that couldn't be
freed (because they contained a wired and/or superpage mapping) on
every invocation. An additional change is planned which would improve
this.

Reported and tested by: pho
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
15:05:32 - r324664
(3 days 4 hours ago)
by kp
Affects:  /head/tests/sys/netpfil/pf/forward.sh
/head/tests/sys/netpfil/pf/pass_block.sh
/head/tests/sys/netpfil/pf/set_tos.sh
pf tests: Use pft_set_rules everywhere

We now have a utility function to set pf rules in the jail. Use it
whenever we need to set the pf rules in the test jail.
15:03:45 - r324663
(3 days 4 hours ago)
by kp
Affects:  /head/tests/sys/netpfil/pf/forward.sh
/head/tests/sys/netpfil/pf/pft_ping.py
/head/tests/sys/netpfil/pf/utils.subr
pf tests: Basic IPv6 forwarding tests

Pass/block packets in the forwarding path with pf.

Introduce the pft_set_rules() helper function, because we need to
remember to flush states between individual tests. If not we can get
packets passing despite rules blocking them because they match states
created in a previous test.

Extend pft_ping.py to be able to send IPv6 echo requests.
15:01:49 - r324662
(3 days 5 hours ago)
by kp
Affects:  /head/tests/sys/netpfil/pf/Makefile
/head/tests/sys/netpfil/pf/pft_ping.py
/head/tests/sys/netpfil/pf/set_tos.sh
pf: test set-tos

Introduce tests for the set-tos feature of pf. Teach pft_ping.py to send
and verify ToS flags.
12:54:53 - r324661
(3 days 7 hours ago)
by mav
Affects:  /head/sys/dev/sound/pci/hda/hdac.c
/head/sys/dev/sound/pci/hda/hdac.h
Add Creative vendor ID.

MFC after: 1 week
12:53:54 - r324660
(3 days 7 hours ago)
by mmel
Affects: 
(6 files)
/head/lib/libc/arm/gen/*
/head/sys/arm/arm/*
/head/sys/arm/include/*
Save VFP state in getcontext(3) on ARM.
This is a last followup of r315974, which fixes userland part
of VFP save/restore problems described in PR 217611.

PR: 217611
MFC after: 2 weeks
12:32:57 - r324659
(3 days 7 hours ago)
by mav
Affects:  /head/share/man/man4/bridge.4
Update details of interface capabilities changed by bridge(4).

PR: 221122
MFC after: 1 week
07:15:50 - r324658
(3 days 12 hours ago)
by avos
Affects:  /head/usr.sbin/wlandebug/wlandebug.c
wlandebug(8): add a sanity check.
07:01:27 - r324657
(3 days 13 hours ago)
by avos
Affects:  /head/usr.sbin/wlandebug/Makefile
/head/usr.sbin/wlandebug/wlandebug.c
wlandebug(8): obtain original interface name via ifconfig_get_orig_name()
06:54:26 - r324656
(3 days 13 hours ago)
by avos
Affects:  /head/lib/libifconfig/libifconfig.c
/head/lib/libifconfig/libifconfig.h
libifconfig: allow to get original interface name via ifconfig_get_orig_name()

Uses the same method as in tools/tools/ifinfo/ifinfo.c
(via net.link.generic sysctl).

Tested with modified wlandebug(8).

Differential Revision: https://reviews.freebsd.org/D12554
04:46:28 - r324655
(3 days 15 hours ago)
by delphij
Affects:  /head/lib/libstand
Remove the libstand directory which is now empty.
03:59:58 - r324654
(3 days 16 hours ago)
by imp
Affects:  /head/sys/boot/libsa/Makefile
Explicitly inlcude SYSDIR in the include path -- need machine path too?
03:59:52 - r324653
(3 days 16 hours ago)
by imp
Affects: 
(17 files)
/head/sys/boot/*
LOADER_foo_SUPPORTED
03:59:44 - r324652
(3 days 16 hours ago)
by imp
Affects: 
(16 files)
/head/sys/boot/*
Move all the ficl common code into ficl.mk

There's a number of copies of basically identical code to enable
building forth in /boot/loader. Move it all into ficl.mk.
03:59:38 - r324651
(3 days 16 hours ago)
by imp
Affects: 
(4 files)
/head/sys/boot/*
create defs.mk for common definitions
03:59:33 - r324650
(3 days 16 hours ago)
by imp
Affects:  /head/sys/boot/ficl.mk
tweak style
03:59:28 - r324649
(3 days 16 hours ago)
by imp
Affects: 
(14 files)
/head/sys/boot/*
Move common/Makefile.inc to sys/boot/loader.mk.

Makefile.inc has a specific meaning in the tree, and
common/Makefile.inc doesn't quite fit into that. Rename it to
loader.mk and it will be a place to collect common things to all
/boot/loader programs there.

Sponsored by: Netflix
03:59:22 - r324648
(3 days 16 hours ago)
by imp
Affects: 
(5 files)
/head/sys/boot/*
Rename top level Makefile.ficl to ficl.mk.
03:59:17 - r324647
(3 days 16 hours ago)
by imp
Affects: 
(8 files)
/head/sys/boot/Makefile
/head/sys/boot/common/*
/head/sys/boot/man/*
Move orphaned man pages into new man directory from common. This helps
keep cleaer that common is just for the MI files for /boot/loader
programs.

Sponsored by: Netflix
03:59:11 - r324646
(3 days 16 hours ago)
by imp
Affects: 
(9 files)
/head/sys/boot/efi/boot1/*
/head/sys/boot/efi/libefi/*
/head/sys/boot/efi/loader/*
Unify boot1 with loader

Refactor boot1 to use the same I/O code as /boot/loader uses. Refactor
to use the common efi_main.c.

Submitted by: Eric McCorkle
Differential Revision: https://reviews.freebsd.org/D10447
2017 - 10 - 15   (4 days ago)
23:54:04 - r324645
(3 days 20 hours ago)
by imp
Affects:  /head/sys/cam/ata/ata_da.c
/head/sys/cam/scsi/scsi_da.c
Zero out the ccb's alloated on the stack for the dump routines to more
closely match a ccb returned from xpt_get_ccb().

Sponsored by: Netflix
23:53:55 - r324644
(3 days 20 hours ago)
by imp
Affects:  /head/sys/cam/nvme/nvme_da.c
/head/sys/dev/nvme/nvme.h
Closer examination shows that nvme and CAM both normally zero-fill
allocations (for req and ccb, which ultimately contain the
nvme_cmd). As such, we can micro-optimize these routines. Add a
comment to this effect, and bzero the ccb used to make the requests
for the nda dump rotuine so it more closely matches a ccb allocated
with xpt_get_ccb().

Sponsored by: Netflix
22:45:25 - r324643
(3 days 21 hours ago)
by brooks
Affects: 
(3 files)
/stable/10/sys/conf/kern.pre.mk
/stable/10/sys/conf/kmod.mk
MFC r321256:

Include ARCH_FLAGS in CFLAGS when building modules.

Without this change, modules will match the default compiler
configuration which may not be the same as the kernel values.

Reviewed by: imp
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11633
22:43:56 - r324642
(3 days 21 hours ago)
by brooks
Affects: 
(3 files)
/stable/11/sys/conf/kern.pre.mk
/stable/11/sys/conf/kmod.mk
MFC r321256:

Include ARCH_FLAGS in CFLAGS when building modules.

Without this change, modules will match the default compiler
configuration which may not be the same as the kernel values.

Reviewed by: imp
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11633
22:39:31 - r324641
(3 days 21 hours ago)
by brooks
Affects: 
(2 files)
/stable/10/sys/kern/kern_proc.c
MFC r320999:

Add 32-bit compat for kinfo_proc's ki_tdaddr.

This appears to have been an oversight in r213536.

Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11521
22:34:12 - r324640
(3 days 21 hours ago)
by brooks
Affects: 
(2 files)
/stable/11/sys/kern/kern_proc.c
MFC r320999:

Add 32-bit compat for kinfo_proc's ki_tdaddr.

This appears to have been an oversight in r213536.

Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11521
22:22:27 - r324639
(3 days 21 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsserver/nfs_nfsdserv.c
/head/sys/fs/nfsserver/nfs_nfsdstate.c
Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1.

The client IP address was not being reported for some NFSv4 mounts by
nfsdumpstate. Upon investigation, two problems were found for mounts
using IPv4. One was that the code (originally written and tested on i386)
assumed that a "u_long" was a "uint32_t" and would exactly store an
IPv4 host address. Not correct for 64bit arches.
Also, for NFSv4.1 mounts, the field was not being filled in. This was
basically correct, because NFSv4.1 does not use a callback address.
However, it meant that nfsdumpstate could not report the client IP addr.
This patch should fix both of these issues.
For IPv6, the address will still not be reported. The original NFSv4 RFC
only specified IPv4 callback addresses. I think this has changed and, if so,
a future commit to fix reporting of IPv6 addresses will be needed.

Reported by: manu
PR: 223036
MFC after: 2 weeks
19:33:30 - r324638
(4 days ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
Fix the handling of parital and too short chunks.

Ensure that the current behaviour is consistent: stop processing
of the chunk, but finish the processing of the previous chunks.

This behaviour might be changed in a later commit to ABORT the
assoication due to a protocol violation, but changing this
is a separate issue.

MFC after: 3 days
19:28:14 - r324637
(4 days ago)
by tijl
Affects:  /head/sys/compat/linsysfs/linsysfs.c
Add information needed by Linux libdrm 2.4.74 (shipped with CentOS 7.4).

Create a config file for PCI devices that exposes their configuration
space. Only fields needed by libdrm are filled in (vendor, device,
revision, subvendor and subdevice).

Link /sys/class/drm/card%d/device to the PCI device directory.
19:21:15 - r324636
(4 days ago)
by tijl
Affects:  /head/sys/compat/linsysfs/linsysfs.c
Set DEVNAME to dri/card%d. This works with both in-tree drm and drm-next
and is also the value used on Linux.

Tested by: Greg V <greg@unrelenting.technology>
18:53:21 - r324635
(4 days 1 hour ago)
by tijl
Affects:  /head/sys/kern/vfs_lookup.c
When a Linux program tries to access a /path the kernel tries
/compat/linux/path before /path. Stop following symbolic links when
looking up /compat/linux/path so dead symbolic links aren't ignored.
This allows syscalls like readlink(2) and lstat(2) to work on such links.
And open(2) will return an error now instead of trying /path.
16:19:09 - r324634
(4 days 3 hours ago)
by imp
Affects:  /head/sys/dev/nvme/nvme_sim.c
Use nvme_ctrlr_poll instead of nvme_ctrlr_intx_handler since it is
more general and doesn't try to access registers that may be undefined
when the card is in MSIX mode.

This change, along with r324630, r324631, r324632, makes nda crash
dumps work again. Previously, they only worked on CPU 0 when the stack
garbage was just so.

Sponsored by: Netflix
Suggested by: scottl@ (who provided earlier version of the patch)
16:18:08 - r324633
(4 days 3 hours ago)
by imp
Affects:  /head/sys/dev/nvme/nvme_ctrlr.c
/head/sys/dev/nvme/nvme_private.h
Create general polling function for the nvme controller. Use it when
we're doing the various pin-based interrupt modes. Adjust
nvme_ctrlr_intx_handler to use nvme_ctrlr_poll.

Sponsored by: Netflix
Suggested by: scottl@
16:18:03 - r324632
(4 days 3 hours ago)
by imp
Affects:  /head/sys/cam/nvme/nvme_da.c
Be nicer on the dump stack by allocating only a ccb_nvmeio rather than
a full ccb. This saves a few hundre bytes, which might be important
during a crash dump...

Sponsored by: Netflix
Suggested by: scottl@
16:17:59 - r324631
(4 days 3 hours ago)
by imp
Affects:  /head/sys/dev/nvme/nvme.h
Explicitly set reserved fields and 'fuse' to 0. This prevents us from
acidentally sending bogus values in these fields, which some drives
may reject with an error or worse (undefined behavior).

This is especially needed for the ndadump routine which allocates the
cmd from stack garbage....

Sponsored by: Netflix
16:17:55 - r324630
(4 days 3 hours ago)
by imp
Affects:  /head/sys/cam/nvme/nvme_da.c
Update comment to reflect actual default timeout.

Sponsored by: Netflix
16:08:22 - r324629
(4 days 3 hours ago)
by tijl
Affects:  /head/sys/compat/linux/linux_util.c
Add special handling for current in-tree drm devices, like r323692 added
for drm-next.
16:03:45 - r324628
(4 days 3 hours ago)
by tijl
Affects:  /head/sys/compat/linux/linux_util.c
Use sizeof instead of strlen on string constants. The compiler doesn't
optimise the strlen calls away with -ffreestanding.
14:03:53 - r324627
(4 days 5 hours ago)
by fsu
Affects: 
(4 files)
/stable/11/sys/fs/ext2fs/*
MFC r324064:
Add check to avoid raw inode iblocks fields overflow in case of huge_file
feature.
Use the Linux logic for now.

Approved by: pfg (mentor)
Differential Revision: https://reviews.freebsd.org/D12131
11:46:11 - r324626
(4 days 8 hours ago)
by trasz
Affects: 
(7 files)
/head/sys/dev/usb/template/*
Replace some magic numbers in usb_template(4) code with #defines.
There should be no functional changes.

Reviewed by: hselasky
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12670
11:28:41 - r324625
(4 days 8 hours ago)
by jilles
Affects:  /head/etc/rc.subr
rc.subr: Remove test that is always true.

The code above always sets _pidcmd to a non-empty value.
10:59:31 - r324624
(4 days 9 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/dev/smbus/smb.c
MFC r324156:
Improve smb(4) devfs interactions.
08:03:14 - r324623
(4 days 11 hours ago)
by bapt
Affects:  /head/usr.sbin/ctld/uclparse.c
Fix ctld segfaulting when using ucl conf file format and having duplicated
lun or target

Submitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>
MFC after: 3 days
Sponsored by: blade
Differential Revision: https://reviews.freebsd.org/D12646
02:40:13 - r324622
(4 days 17 hours ago)
by cy
Affects:  /head/include/stddef.h
Sync (make same) the offsetof macro definition in include/ with the
definition of the same in sys/sys/. The problem was discovered while
working on implementing a new C11 gets_s() for libc. (The new gets_s()
requires rsize_t found in include/stddef.h.) The solution to sync the two
definitions was suggested by ed@ while discussing D12667.

Suggested by: ed
MFC after: 2 weeks
2017 - 10 - 14   (5 days ago)
23:25:44 - r324621
(4 days 20 hours ago)
by rlibby
Affects:  /head/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
mlx4: use enum constants instead of const vars for case exprs

Follow up from r324201 to fix compilation with gcc, which complains
about non-ICE case expressions.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D12675
19:02:52 - r324620
(5 days ago)
by fsu
Affects:  /head/sys/fs/fuse/fuse_ipc.c
/head/sys/fs/fuse/fuse_vnops.c
Add extended attributes support to fuse kernel module.

Author: kem
Reviewed by: cem, pfg (mentor)
Approved by: pfg (mentor)
MFC after: 2 weeks

Differential Revision: https://reviews.freebsd.org/D12485
18:38:36 - r324619
(5 days 1 hour ago)
by brooks
Affects: 
(18 files)
/head/usr.bin/procstat/*
Switch procstat from subcommand flags to verbs

- Use an enumerated value instead of separate flags for commands
- Look for a verb if no command flag is set
- Lookup the "xocontainer" value based on the command
- Document the new command verbs in the man-page

Submitted by: kdrakehp@zoho.com
Differential Revision: https://reviews.freebsd.org/D10916
17:51:25 - r324618
(5 days 2 hours ago)
by markj
Affects: 
(2 files)
/stable/11/sys/kern/uipc_shm.c
MFC r324146:
Have uiomove_object_page() keep accessed pages in the active queue.
16:49:39 - r324617
(5 days 3 hours ago)
by brooks
Affects: 
(2 files)
/stable/10/lib/libc/gen/tls.c
MFC r324243:

Remove an unneeded and incorrect memset().

On Variant I TLS architectures (aarch64, arm, mips, powerpc, and riscv)
the __libc_allocate_tls function allocates thread local storage memory
with calloc(). It then copies initialization data over the portions with
non-zero initial values. Before this change it would then pointlessly
zero the already zeroed remainder of the storage. Unfortunately the
calculation was wrong and it would zero TLS_TCB_SIZE (2*sizeof(void *))
additional bytes.

In practice, this overflow only matters if the TLS segment is sized such
that calloc() allocates less than TLS_TCB_SIZE extra memory. Even
then, the likely result will be zeroing part of the next bucket. This
coupled with the impact being confined to Tier II platforms means there
will be no security advisory for this issue.

Reviewed by: kib, dfr
Discussed with: security-officer (delphij)
Found by: CHERI
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12547
16:23:25 - r324616
(5 days 3 hours ago)
by brooks
Affects: 
(2 files)
/stable/11/lib/libc/gen/tls.c
MFC r324243:

Remove an unneeded and incorrect memset().

On Variant I TLS architectures (aarch64, arm, mips, powerpc, and riscv)
the __libc_allocate_tls function allocates thread local storage memory
with calloc(). It then copies initialization data over the portions with
non-zero initial values. Before this change it would then pointlessly
zero the already zeroed remainder of the storage. Unfortunately the
calculation was wrong and it would zero TLS_TCB_SIZE (2*sizeof(void *))
additional bytes.

In practice, this overflow only matters if the TLS segment is sized such
that calloc() allocates less than TLS_TCB_SIZE extra memory. Even
then, the likely result will be zeroing part of the next bucket. This
coupled with the impact being confined to Tier II platforms means there
will be no security advisory for this issue.

Reviewed by: kib, dfr
Discussed with: security-officer (delphij)
Found by: CHERI
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12547
10:02:59 - r324615
(5 days 9 hours ago)
by tuexen
Affects: 
(6 files)
/head/sys/netinet/*
Code cleanup, not functional change.

This avoids taking a pointer of a packed structure which allows simpler
compilation of the userland stack.

MFC after: 1 week
04:27:58 - r324614
(5 days 15 hours ago)
by mjg
Affects:  /head/sys/sys/vmmeter.h
Fix wrong v_free_count annotation - (f) instead of (a)

Reported by: alc
00:47:30 - r324613
(5 days 19 hours ago)
by mjg
Affects:  /head/sys/kern/kern_mutex.c
mtx: fix up owner_mtx after r324609

Now that MTX_UNOWNED is 0 the test was alwayas false.
2017 - 10 - 13   (6 days ago)
22:40:57 - r324612
(5 days 21 hours ago)
by jhb
Affects: 
(4 files)
/stable/10/sys/ufs/ffs/ffs_softdep.c
/stable/11/sys/ufs/ffs/ffs_softdep.c
MFC 324039: Don't defer wakeup()s for completed journal workitems.

Normally wakeups() are performed for completed softupdates work items
in workitem_free() before the underlying memory is free()'d.
complete_jseg() was clearing the "wakeup needed" flag in work items to
defer the wakeup until the end of each loop iteration. However, this
resulted in the item being free'd before it's address was used with
wakeup(). As a result, another part of the kernel could allocate this
memory from malloc() and use it as a wait channel for a different
"event" with a different lock. This triggered an assertion failure
when the lock passed to sleepq_add() did not match the existing lock
associated with the sleep queue. Fix this by removing the code to
defer the wakeup in complete_jseg() allowing the wakeup to occur
slightly earlier in workitem_free() before free() is called.
21:58:44 - r324611
(5 days 22 hours ago)
by jhb
Affects: 
(4 files)
/stable/10/sys/kern/vfs_cache.c
/stable/11/sys/kern/vfs_cache.c
MFC 324073: Use UMA_ALIGNOF() for name cache UMA zones.

This fixes kernel crashes due to misaligned accesses to the 64-bit
time_t embedded in struct namecache_ts in MIPS n32 kernels.
21:54:34 - r324610
(5 days 22 hours ago)
by mjg
Affects:  /head/sys/sys/vmmeter.h
/head/sys/vm/vm_page.c
/head/sys/vm/vm_phys.h
Reduce traffic on vm_cnt.v_free_count

The variable is modified with the highly contended page free queue lock.
It unnecessarily shares a cacheline with purely read-only fields and is
re-read after the lock is dropped in the page allocation code making the
hold time longer.

Pad the variable just like the others and store the value as found with
the lock held instead of re-reading.

Provides a modest 1%-ish speed up in concurrent page faults.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D12665
20:31:56 - r324609
(5 days 23 hours ago)
by mjg
Affects:  /head/sys/sys/mutex.h
mtx: change MTX_UNOWNED from 4 to 0

The value is spread all over the kernel and zeroing a register is
cheaper/shorter than setting it up to an arbitrary value.

Reduces amd64 GENERIC-NODEBUG .text size by 0.4%.

MFC after: 1 week
20:29:35 - r324608
(5 days 23 hours ago)
by kp
Affects:  /head/etc/devd/usb.conf
Regenerate usb.conf
19:41:35 - r324607
(6 days ago)
by kp
Affects:  /head/sys/dev/usb/serial/u3g.c
/head/sys/dev/usb/usbdevs
Support the D-Link DWM-222 LTE Dongle

Submitted by: Daniel Hänschke <jailedemon@googlemail.com>
19:27:33 - r324606
(6 days ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/src/linux_schedule.c
Make the PHOLD in linux_wait_event_common() unconditional.

After some in-progress work is committed, this would otherwise be the only
instance of #if(n)def NO_SWAPPING in the tree. Moreover, the requisite
opt_vm.h include was missing, so the PHOLD/PRELE calls were always being
compiled in anyway.

MFC after: 1 week
18:30:32 - r324605
(6 days 1 hour ago)
by emaste
Affects:  /head/targets/pseudo/userland/gnu/Makefile.depend
clean up remnants of removed GPL software

send-pr r267486
texinfo r276551
ranlib r286332
sdiff r298823
rcs r307351
diff r317209
18:23:08 - r324604
(6 days 1 hour ago)
by emaste
Affects:  /head/targets/pseudo/userland/gnu/Makefile.depend
Remove additional groff leftovers (r319664)
17:15:17 - r324603
(6 days 2 hours ago)
by emaste
Affects:  /head/ObsoleteFiles.inc
ObsoleteFiles.inc: correct year on libstand removal
17:11:08 - r324602
(6 days 2 hours ago)
by jhb
Affects: 
(4 files)
/stable/10/sys/vm/uma.h
/stable/11/sys/vm/uma.h
MFC 324072: Add UMA_ALIGNOF().

This is a wrapper around _Alignof() that sets the alignment for a zone
to the alignment required by a given type. This allows the compiler to
determine the proper alignment rather than having the programmer try to
guess.
16:31:50 - r324601
(6 days 3 hours ago)
by alc
Affects:  /head/sys/kern/kern_sendfile.c
Address two problems with sendfile(..., SF_NOCACHE) and apply one
"optimization". First, sendfile(..., SF_NOCACHE) frees pages without
checking whether those pages are mapped. This can leave the system
with mappings to free or repurposed pages. Second, a page can be
busied between the time of the current busy test and acquiring the
object lock. Essentially, the test performed before the object lock
is acquired can only be regarded as an optimization to short-circuit
further work on the page. It cannot, however, be relied upon to prove
that it is safe to free the page. Third, when sendfile(..., SF_NOCACHE)
was originally implemented, vm_page_deactivate_noreuse() did not yet
exist. Use vm_page_deactivate_noreuse() instead of vm_page_deactivate(),
because it comes closer to freeing the page.

In collaboration with: glebius
Discussed with: gallatin, kib, markj
X-MFC after: r324448
16:23:05 - r324600
(6 days 3 hours ago)
by kib
Affects:  /head/sys/vm/swap_pager.c
Evaluate the real size of the sblk_zone.

Submitted by: ota@j.email.ne.jp
PR: 221356
Reviewed by: alc, markj
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D12660
15:16:57 - r324599
(6 days 4 hours ago)
by gjb
Affects: 
(10 files)
/head/release/arm/*
Increase the arm/armv6 and arm/armv7 images from 2.5GB to 3GB,
since the RPI2 (at least) does not fit in 2.5GB.

While here, add a missing BOARDNAME to RPI2.conf.

Sponsored by: The FreeBSD Foundation
15:02:29 - r324598
(6 days 5 hours ago)
by br
Affects:  /head/sys/dev/hwpmc/hwpmc_core.c
/head/sys/dev/hwpmc/hwpmc_intel.c
/head/sys/dev/hwpmc/pmc_events.h
o Support for Kabylake CPU PMCs (fall down to PMC_CPU_INTEL_SKYLAKE).
o Fix bugs in events descriptions for Skylake, Skylake Xeon and Haswell.

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12654
14:14:46 - r324597
(6 days 5 hours ago)
by hselasky
Affects:  /head/sys/compat/linuxkpi/common/src/linux_compat.c
Don't call selrecord() outside the select system call in the LinuxKPI, because
then td->td_sel is NULL and this will result in a segfault inside selrecord().
This happens when only using kqueue() to poll for read and write events.
If select() and kqueue() is mixed there won't be a segfault.

Reported by: Johannes Lundberg
MFC after: 1 week
Sponsored by: Mellanox Technologies
13:56:44 - r324596
(6 days 6 hours ago)
by markj
Affects: 
(3 files)
/stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c
/stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c
MFC r324373:
Avoid adding an extra "0x" prefix before pointer formats.
13:53:19 - r324595
(6 days 6 hours ago)
by emaste
Affects:  /head/sys/vm/vm_kern.c
ANSIfy vm_kern.c

PR: 222673
Submitted by: ota@j.email.ne.jp
MFC after: 1 week
13:47:55 - r324594
(6 days 6 hours ago)
by emaste
Affects:  /head/usr.bin/truss/main.c
truss: mention 'H' in usage

r295930 introduced the 'H' option to display thread IDs, but did not add
the option to usage().

PR: 222837
Submitted by: Oliver Kiddle <okiddle@yahoo.co.uk>
MFC after: 1 week
11:11:53 - r324593
(6 days 8 hours ago)
by ae
Affects:  /head/sys/netpfil/ipfw/ip_fw2.c
Fix regression in handling O_FORWARD_IP opcode after r279948.

To properly handle 'fwd tablearg,port' opcode, copy sin_port value from
sockaddr_in structure stored in the opcode into corresponding hopstore
field.

PR: 222953
MFC after: 1 week
11:01:33 - r324592
(6 days 9 hours ago)
by ae
Affects:  /head/sbin/ipfw/tables.c
Return 'errno' value from the table_do_modify_record(), it is expected
by table_modify_record().

This makes quiet operations with tables really quiet.

PR: 222953
MFC after: 1 week
09:42:05 - r324591
(6 days 10 hours ago)
by avg
Affects:  /head/sys/kern/vfs_mount.c
remove process and jail directory machinations from dounmount

The manipulations done by mountcheckdirs() are not that useful during
the unmount, they can bring about unexpected security consequences.

Thic change effectively reverts the change in r73241.

The change also allows to simplify the handling of rootvnode global
variable.

Discussed with: mckusick, mjg, kib
Reviewed by: trasz
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D12366
09:21:41 - r324590
(6 days 10 hours ago)
by avg
Affects:  /head/usr.sbin/i2c/i2c.8
/head/usr.sbin/i2c/i2c.c
i2c(8): clean up and clarify read operation

The code went to a lot of trouble to issue either a start+stop condition
or a repeated start condition only to follow it with a stop condition
and a read(2) call that issues a new start condition.
So, fix the read in I2C_MODE_REPEATED_START mode by using I2CREAD ioctl
within the running transaction. This obviously requires that the slave
address has the read bit set which was not required before.

Another problem was with width parameter of zero and
I2C_MODE_REPEATED_START mode. In that case we issued a repeated start
without any preceding start.

While here, remove the redundant (unused) argument to I2CSTOP throughout
the program.
Also, clarify the meaning of -w option, especially "-w 0", in the manual
page.

Reviewed by: no one
Differential Revision: https://reviews.freebsd.org/D12331
09:14:05 - r324589
(6 days 10 hours ago)
by avg
Affects: 
(3 files)
/stable/10/sys/geom/mirror/g_mirror.c
/stable/10/sys/geom/mirror/g_mirror.h
MFC r323612: gmirror: treat ENXIO as disk disconnect, not media error
09:13:08 - r324588
(6 days 10 hours ago)
by avg
Affects: 
(3 files)
/stable/11/sys/geom/mirror/g_mirror.c
/stable/11/sys/geom/mirror/g_mirror.h
MFC r323612: gmirror: treat ENXIO as disk disconnect, not media error
09:11:24 - r324587
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
MFC r323528: MFV r323527: 5815 libzpool's panic function doesn't set global
panicstr
09:10:37 - r324586
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/11/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
MFC r323528: MFV r323527: 5815 libzpool's panic function doesn't set global
panicstr
09:07:58 - r324585
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
MFC r323525: MFV r323523: 8331 zfs_unshare returns wrong error code for smb
unshare failure
09:06:57 - r324584
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
MFC r323525: MFV r323523: 8331 zfs_unshare returns wrong error code for smb
unshare failure
09:05:32 - r324583
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
MFC r323524: MFV r316932: 6280 libzfs: unshare_one() could fail with
EZFS_SHARENFSFAILED
09:05:20 - r324582
(6 days 10 hours ago)
by avg
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
MFC r323524: MFV r316932: 6280 libzfs: unshare_one() could fail with
EZFS_SHARENFSFAILED
07:50:44 - r324581
(6 days 12 hours ago)
by bapt
Affects: 
(8 files)
/stable/11/contrib/mdocml/*
MFC: r324362

Import mandoc 1.14.3
06:49:07 - r324580
(6 days 13 hours ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_input.h
[net80211] don't try to follow a NULL rxs pointer down the sink.

It's smelly, and we already checked earlier whether we needed to.
05:14:54 - r324579
(6 days 14 hours ago)
by sephe
Affects: 
(2 files)
/stable/11/sys/dev/hyperv/netvsc/if_hn.c
MFC 324517

  hyperv/hn: Enable transparent VF by default.

  Sponsored by: Microsoft
05:09:56 - r324578
(6 days 14 hours ago)
by sephe
Affects: 
(6 files)
/stable/11/sys/dev/hyperv/netvsc/*
MFC 324489,324516

324489
  hyperv/hn: Workaround erroneous hash type observed on WS2016.

  Background:
  - UDP 4-tuple hash type is unconditionally enabled in Hyper-V on WS2016,
  which is _not_ affected by NDIS_OBJTYPE_RSS_PARAMS.
  - Non-fragment UDP/IPv4 datagrams' hash type is delivered to VM as
  TCP_IPV4.

  Currently this erroneous behavior only applies to WS2016/Windows10.

  Force l3/l4 protocol check, if the RXed packet's hash type is TCP_IPV4,
  and the Hyper-V is running on WS2016/Windows10. If the RXed packet is
  UDP datagram, adjust mbuf hash type to UDP_IPV4.

  Sponsored by: Microsoft

324516
  hyperv/hn: Workaround erroneous hash type observed on WS2016 for VF.

  The background was described in r324489.

  Sponsored by: Microsoft
05:02:39 - r324577
(6 days 15 hours ago)
by sephe
Affects: 
(3 files)
/stable/11/sys/dev/hyperv/include/hyperv.h
/stable/11/sys/dev/hyperv/vmbus/hyperv.c
MFC 324488

  hyperv/vmbus: Expose Hyper-V major version.

  Sponsored by: Microsoft
04:55:54 - r324576
(6 days 15 hours ago)
by sephe
Affects: 
(2 files)
/stable/11/sys/dev/hyperv/vmbus/vmbus.c
MFC 324487

  hyperv/vmbus: Add tunable to pin/unpin event tasks.

  Event tasks are pinned to their respective CPU by default, in the same
  fashion as they were.

  Unpin the event tasks by setting hw.vmbus.pin_evttask to 0, if certain
  CPUs serve special purpose.

  Sponsored by: Microsoft
02:29:43 - r324575
(6 days 17 hours ago)
by sephe
Affects: 
(2 files)
/stable/10/sys/dev/hyperv/netvsc/if_hn.c
MFC 324517

  hyperv/hn: Enable transparent VF by default.

  Sponsored by: Microsoft
02:26:39 - r324574
(6 days 17 hours ago)
by sephe
Affects: 
(6 files)
/stable/10/sys/dev/hyperv/netvsc/*
MFC 324489,324516

324489
  hyperv/hn: Workaround erroneous hash type observed on WS2016.

  Background:
  - UDP 4-tuple hash type is unconditionally enabled in Hyper-V on WS2016,
  which is _not_ affected by NDIS_OBJTYPE_RSS_PARAMS.
  - Non-fragment UDP/IPv4 datagrams' hash type is delivered to VM as
  TCP_IPV4.

  Currently this erroneous behavior only applies to WS2016/Windows10.

  Force l3/l4 protocol check, if the RXed packet's hash type is TCP_IPV4,
  and the Hyper-V is running on WS2016/Windows10. If the RXed packet is
  UDP datagram, adjust mbuf hash type to UDP_IPV4.

  Sponsored by: Microsoft

324516
  hyperv/hn: Workaround erroneous hash type observed on WS2016 for VF.

  The background was described in r324489.

  Sponsored by: Microsoft
02:16:35 - r324573
(6 days 17 hours ago)
by sephe
Affects: 
(3 files)
/stable/10/sys/dev/hyperv/include/hyperv.h
/stable/10/sys/dev/hyperv/vmbus/hyperv.c
MFC 324488

  hyperv/vmbus: Expose Hyper-V major version.

  Sponsored by: Microsoft
02:01:03 - r324572
(6 days 18 hours ago)
by sephe
Affects: 
(2 files)
/stable/10/sys/dev/hyperv/vmbus/vmbus.c
MFC 324487

  hyperv/vmbus: Add tunable to pin/unpin event tasks.

  Event tasks are pinned to their respective CPU by default, in the same
  fashion as they were.

  Unpin the event tasks by setting hw.vmbus.pin_evttask to 0, if certain
  CPUs serve special purpose.

  Sponsored by: Microsoft

 


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

Page generated in 18 ms, 196 revisions printed. Current time is 2017-10-19 20:02:43. All times are in UTC/GMT.