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.

2016 - 07 - 01   (yesterday)
23:18:49 - r302313
( 51 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_l2t.c
cxgbe(4): Avoid a NULL dereference while dumping the L2 table. Entries
used by switching filters that rewrite L2 information do not have any
associated ifnet.

Approved by: re@ (gjb@)
Sponsored by: Chelsio Communications
21:09:30 - r302312
(3 hours 1 minute ago)
by nwhitehorn
Affects:  /head/sys/boot/fdt/fdt_loader_cmd.c
/head/sys/boot/powerpc/ofw/ofwfdt.c
Clean up some FDT-related code in the PowerPC bootloader, improving error
checking and robustness. Prevents errors and crashes in FDT commands on
PowerMac G5 systems.

Approved by: re (gjb)
20:25:59 - r302311
(3 hours 44 minutes ago)
by skreuzer
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document 300777, Add support for GPIO, Sensors and interrupts on AXP209 PMIC

Approved by: re (gjb, implicit, relnotes)
20:19:02 - r302310
(3 hours 51 minutes ago)
by skreuzer
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r299688, Add support for H3 SoC

Approved by: re (gjb, implicit, relnotes)
20:16:35 - r302309
(3 hours 54 minutes ago)
by skreuzer
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r263698, Add code for enabling second CPU core for A20 SoC.

Approved by: re (gjb, implicit, relnotes)
20:11:28 - r302308
(3 hours 59 minutes ago)
by kib
Affects:  /head/sys/kern/kern_event.c
When a process knote was attached to the process which is already exiting,
the knote is activated immediately. If the exit1() later activates
knotes, such knote is attempted to be activated second time. Detect
the condition by zeroed kn_ptr.p_proc pointer, and avoid excessive
activation.

Before r302235, such knotes were removed from the knlist immediately
upon activation.

Reported by: truckman
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
19:58:13 - r302307
(4 hours 12 minutes ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_amrr.c
[net80211] teach AMRR to log the initial MCS rate as "MCS X"

Otheriwse it logs it as the rate value, which is 0x80 (MCS flag) + MCS,
which isn't that helpful.

Approved by: re (gjb)
07:27:33 - r302306
(16 hours 43 minutes ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/dwc_otg.c
Fix detection of USB device disconnects in USB host mode when the USB
device is connected directly to the USB port of the DWC OTG, in this
case a RPI-zero.

PR: 210695
Approved by: re (gjb)
MFC after: 1 week
05:48:45 - r302305
(18 hours 21 minutes ago)
by delphij
Affects: 
(35 files)
/head/contrib/expat/*
MFV r302260: expat 2.2.0

Approved by: re (kib)
03:21:51 - r302304
(20 hours 48 minutes ago)
by gjb
Affects:  /svnadmin/conf/mailer.conf
Premptively create the mail hook for stable/11 commits.

Although we are a week away from stable/11 being branched,
the mailing list was created early.

Thanks to: postmaster (flo)
Sponsored by: The FreeBSD Foundation
00:00:35 - r302303
(1 day ago)
by gjb
Affects:  /head/sys/conf/newvers.sh
Update 11.0 to ALPHA6.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
2016 - 06 - 30   (2 days ago)
19:32:45 - r302302
(1 day 4 hours ago)
by bz
Affects:  /head/sys/netpfil/ipfw/ip_fw_nat.c
In case of the global eventhandler make sure the current VNET
is still operational before doing any work; otherwise we might
run into, e.g., destroyed locks.

PR: 210724
Reported by: olevole olevole.ru
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Obtained from: projects/vnet
Approved by: re (gjb)
19:09:44 - r302301
(1 day 5 hours ago)
by bz
Affects: 
(79 files)
/projects/vnet/_scripts/*
Add various shell scripts and the initial conductor tests (which did
not work reliably--which is why I resorted to shell scripts again).

Some of these scripts were built up over the years, copied, pasted, mangled,
and re-adjusted. A lot of this would benefit from a more formal proper
framework to be run regularly.

I ended up running most of these in parallel in endless loops.
See jail-vnet.sh for a start.

Sponsored by: The FreeBSD Foundation; and others
17:16:22 - r302300
(1 day 6 hours ago)
by bz
Affects:  /projects/vnet/sys/netpfil/ipfw/ip_fw_nat.c
In case of the global eventhandler make sure the current VNET
is still operational before doing any work; otherwise we might
run into, e.g., released locks.

PR: 210724
Reported by: olevole olevole.ru
Sponsored by: The FreeBSD Foundation
15:04:03 - r302299
(1 day 9 hours ago)
by bz
Affects: 
(41 files)
/projects/vnet/*
MfH @r302298

Sponsored by: The FreeBSD Foundation
15:01:07 - r302298
(1 day 9 hours ago)
by bz
Affects: 
(5 files)
/head/sys/contrib/ipfilter/netinet/*
Virtualise ipfilter.
Split initializzation an teardown into module (global state) and VNET
(per virtual network stack) parts. Virtualise global state, which is
not "const".

Cleanup eventhandlers, so that we can make use of the passed in argument
to get the vnet state from the ifp; disable the "cloner" event as it is
too early, has no state, and can fire before initialisation (see comment
in the source).

Handle the dynamic sysctls specially. The problem is that "ipmain"
is the virtualized struct, but the fields used for the sysctls are
hanging off memory allocated and attached to the virtualized "ipmain"
thus standard VNET macros and sysctl handling do not work.
We still say it is VNET sysctls to get the proper protection checks
in the VIMAGE case; to solve the problem of accessing the right bit
of memory hanging of each per-VNET ipmain, we use a dedicated handler
function wrapping around sysctl_ipf_int() undoing the base calculation
from kern_sysctl.c and then adding the passed-in offset into the right
struct depending on handler. A bit of a mess exposing VNET-internals
this way but the only way to keep the code without having to massively
restructure ipf internals.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation
Obtained from: projects/vnet
MFC after: 2 weeks
Reviewed by: cy
Differential Revision: https://reviews.freebsd.org/D7000
14:55:49 - r302297
(1 day 9 hours ago)
by mav
Affects:  /head/sys/cddl/contrib/opensolaris/common/acl/acl_common.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c
/head/sys/cddl/contrib/opensolaris/uts/common/sys/acl.h
Revert r299454 and r299448.

Those changes were found confusing FreeBSD libc ACL code, that doesn't
differentiate ACL for directories and files, and report ACLs for all
directories created after those patches as non-trivial. On the other
side these changes were considered wrong from POSIX and NFSv4 points of
view. Until further investigation done upstream, revert those changes
locally in preparation for FreeBSD 11.0 release.

Approved by: re (hrs)
14:53:46 - r302296
(1 day 9 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ipf.c
Remove dead code.

Approved by: re@ (hrs@)
MFC after: 1 week
12:44:15 - r302295
(1 day 11 hours ago)
by mm
Affects: 
(38 files)
/stable/10/contrib/libarchive/*
/stable/10/lib/libarchive/tests/Makefile
/stable/10/usr.bin/*
MFC r302075:

Update libarchive to 3.2.1 (bugfix and security fix release)

List of vendor fixes:
- fix exploitable heap overflow vulnerability in Rar decompression
  (vendor issue 719, CVE-2016-4302, TALOS-2016-0154)
- fix exploitable stack based buffer overflow vulnebarility in mtree
  parse_device functionality (vendor PR 715, CVE-2016-4301, TALOS-2016-0153)
- fix exploitable heap overflow vulnerability in 7-zip read_SubStreamsInfo
  (vendor issue 718, CVE-2016-4300, TALOS-2016-152)
- fix integer overflow when computing location of volume descriptor
  (vendor issue 717)
- fix buffer overflow when reading a crafred rar archive (vendor issue 521)
- fix possible buffer overflow when reading ISO9660 archives on machines
  where sizeof(int) < sizeof(size_t) (vendor issue 711)
- tar and cpio should fail if an input file named on the command line is
  missing (vendor issue 708)
- fix incorrect writing of gnutar filenames that are exactly 512 bytes
  long (vendor issue 682)
- allow tests to be run from paths that are equal or longer than 128
  characters (vendor issue 657)
- add memory allocation errors in archive_entry_xattr.c (vendor PR 603)
- remove dead code in archive_entry_xattr_add_entry() (vendor PR 716)
- fix broken decryption of ZIP files (vendor issue 553)
- manpage style, typo and description fixes

Post-3.2.1 vendor fixes:
- fix typo in cpio version reporting (Vendor PR 725, 726)
- fix argument range of ctype functions in libarchive_fe/passphrase.c
- fix ctype use and avoid empty loop bodies in WARC reader

Security: CVE-2016-4300, CVE-2016-4301, CVE-2016-4302
08:51:50 - r302294
(1 day 15 hours ago)
by mm
Affects: 
(9 files)
/head/contrib/libarchive/libarchive/*
/head/contrib/libarchive/libarchive_fe/passphrase.c
MFV r302264:

Sync libarchive with vendor, bugfixes for tests:
- fix tests on filesystems without birthtime support, e.g. UFS1 (1)
- vendor issue #729: avoid use of C99 for-scope declarations in
  test_write_format_gnutar_filenames.c

MFC after: 1 week
PR: 204157 (1)
Approved by: re (hrs)
06:06:35 - r302293
(1 day 18 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_output.c
This patch fixes two bugs related to the setting of the I-Bit
for SCTP DATA and I-DATA chunks.
* For fragmented user messages, set the I-Bit only on the last
  fragment.
* When using explicit EOR mode, set the I-Bit on the last
  fragment, whenever SCTP_SACK_IMMEDIATELY was set in snd_flags
  for any of the send() calls.

Approved by: re (hrs)
MFC after: 1 week
05:18:37 - r302292
(1 day 18 hours ago)
by wma
Affects:  /head/sys/sys/buf_ring.h
ARM, ARM64: Workaround for buf_ring reordering

  This patch offers a workaround to buf_ring reordering
  visible on armv7 and armv8. This is supposed to be
  removed once new buf_ring implementation is integrated
  into the tree.

  Obtained from: Semihalf
  Reviewed by: alc,emaste
  Differential Revision: https://reviews.freebsd.org/D6986
  Approved by: re (gjb)
04:58:19 - r302291
(1 day 19 hours ago)
by wma
Affects:  /head/sys/arm64/include/vmparam.h
ARM64: fix DMAP calculation

  Use arithmetic operators instead of logical. This fixes
  DMAP ranges calculation for ThunderX Dual Socket.

  Obtained from: Semihalf
  Sponsored by: Cavium
  Reviewed by: zbb
  Differential Revision: https://reviews.freebsd.org/D7023
  Approved by: re (gjb)
01:33:14 - r302290
(1 day 22 hours ago)
by bz
Affects:  /head/sys/netpfil/ipfw/ip_fw2.c
/head/sys/netpfil/ipfw/ip_fw_log.c
Move the ipfw_log_bpf() calls from global module initialisation to
per-VNET initialisation and virtualise the interface cloning to
allow a dedicated ipfw log interface per VNET.

Approved by: re (gjb)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
01:32:12 - r302289
(1 day 22 hours ago)
by bz
Affects:  /head/sys/contrib/ipfilter/netinet/ip_fil.h
/head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
/head/sys/contrib/ipfilter/netinet/ip_nat.c
Remove unused global variables as well as unused memory
allocations from ipfilter in preparation for VNET support.

Suggested by: cy (see D7000)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
2016 - 06 - 29   (3 days ago)
23:56:24 - r302288
(2 days ago)
by cperciva
Affects:  /head/release/tools/ec2.conf
Enable indirect segment I/Os by default in the Xen blkfront driver when
running on EC2. Due to improvements in EC2, the performance penalty which
was present on some EC2 instances no longer exists, and enabling this
feature now consistently yields ~20% higher throughput with equal or lower
latency.

Reverts: r286063
Approved by: re (gjb)
MFC after: 2 weeks
Relnotes: Improved disk throughput on EC2
23:33:44 - r302287
(2 days ago)
by gonzo
Affects:  /head/sys/mips/malta/gt_pci.c
Fixed FreeBSD/mips MALTA support for QEMU

Recource management functions in GT PCI controller driver
treated memory/IO resources as KSEG1 addresses, later during
activation these values would be increased by KSEG1 base again
rendering the address invalid and causing "bus error" trap.

Actual logic was converted to use real physical addresses,
so mapping takes place only during activation.

Submitted by: Aleksandr Rybalko <ray@FreeBSD.org>
Approved by: re (gjb)
22:54:01 - r302286
(2 days 1 hour ago)
by bdrewery
Affects:  /head/contrib/bmake/meta.c
Flush every line when using meta mode and no -j or with -B.

Otherwise the output is buffered and it appears that make is stuck on something
long-running. This problem is not present with -j as it uses different
code that was already flushing.

Discussed with: sjg
Approved by: re (blanket, META_MODE)
Sponsored by: EMC / Isilon Storage Division
22:39:22 - r302285
(2 days 1 hour ago)
by bdrewery
Affects:  /head/sys/modules/aic7xxx/ahd/Makefile
WITH_META_MODE: Avoid false-positive error due to missing .meta with build
commands.

Sponsored by: EMC / Isilon Storage Division
Approved by: re (blanket, META_MODE)
18:19:05 - r302284
(2 days 5 hours ago)
by sobomax
Affects: 
(4 files)
/head/sys/geom/uzip/*
1.Improve handling around last compressed block of the file, which is
  necessary because CLOOP format lacks explicit EOF or length, so that
  in the presence of padding or when the CLOOP is put onto a larger
  partition upper level provider size may be larger. Bound amount
  of extra data that we might touch to the max length of the compressed
  block and detect zero-padding in the last cluster, which when
  sector is all-zero might cause us to emit bogus I/O error after
  decompression of that fails. To not make code any more complicated
  that it needs to be deal with it in lazy-manner, i.e. when we
  first access that specific cluster.

  This change also fixes stupid mistake in the LZMA code, inherited
  from geom_lzma, which does not share length of the output buffer
  buffer with the decompression routine, so that in the presence
  of corrupted or purposedly tailored data may easily cause heap
  overflow and kernel memory corruption.

  Beef up validation of the CLOOP TOC by checking that lengths of
  all but the last compressed clusters match upper limit set by
  the decompressor and improve some error diagnostic output while
  I am here.

2.Add kern.geom.uzip.attach_to tunable to artifically limit
  attaching uzip to certain devices in the dev tree only.

  For example the following only makes us attaching to the
  GPT labels:

  kern.geom.uzip.attach_to="gpt/*"

3.Add kern.geom.uzip.noattach_to, which does opposite to the (2)
  above, i.e. prevents geom_uzip from tasting / attaching to
  providers matching some pattern. By default we don't attach
  to our own kind, i.e. kern.geom.uzip.noattach_to="*.uzip".
  It saves us quite some CPU cycles, esp on low-end embedded
  systems.

Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D7013
17:25:46 - r302283
(2 days 6 hours ago)
by avos
Affects: 
(5 files)
/head/sys/net80211/*
net80211: fix LOR/deadlock in ieee80211_ff_node_cleanup().

Add new lock for stageq (part of ieee80211_superg structure) and
ni_tx_superg (part of ieee80211_node structure);
drop com_lock protection where it is used to protect them.

While here, drop duplicate OPACKETS counter incrementation.

ni_tx_ampdu is not protected with it (however, it is also used without
locking in other places; probably, it requires some other solution
to be thread-safe).

Tested with RTL8188CUS (AP) and RTL8188EU (STA).

NOTE: Since this change breaks KBI, all wireless drivers need to be
recompiled.

Reviewed by: adrian
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D6958
16:45:01 - r302282
(2 days 7 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.init.mk
Don't warn about needing filemon for makeman.

r287879 wasn't quite enough here since Makefile.inc1 is running
'make -C release -V VERSION' and hitting the warning.

Reported by: lattera
Sponsored by: EMC / Isilon Storage Division
Approved by: re (blanket, META_MODE)
16:41:37 - r302281
(2 days 7 hours ago)
by sbruno
Affects:  /head/sys/cam/scsi/scsi_all.c
Correct PERSISTENT RESERVE OUT command and populate scsi_cmd->length.

PR: 202625
Submitted by: niakrisn@gmail.com
Reviewed by: scottl kenm
Approved by: re (gjb)
MFC after: 2 weeks
16:34:56 - r302280
(2 days 7 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/powerpc/machdep.c
Fix fat-fingering: #if AIM should have been #ifdef AIM to avoid failures on
Book-E kernels.

Approved by: re (gjb)
Pointy hat to: nwhitehorn
14:40:43 - r302279
(2 days 9 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/mmu_oea.c
/head/sys/powerpc/powerpc/machdep.c
Do not rely on firmware having pre-enabled the MMU in a reasonable way for
late boot: enable it explicitly after installing the page tables. If booting
from an FDT, also make sure to escape the firmware's MMU context early
before overwriting firmware page tables.

Approved by: re (gjb)
11:48:42 - r302278
(2 days 12 hours ago)
by emaste
Affects:  /head/lib/libcxxrt/Version.map
libcxxrt: correct mangled "typeinfo name" symbols in Version.map

r260553 added missing C++ typinfos to libcxxrt's version script.
It appears that a number of duplicate mangled symbols were added due to
a cut and paste error. Switch the second instances to _ZTS*,
typeinfo name for *.

Found by lld, which produces an error or warning for duplicate symbols.

Reviewed by: dim
Approved by: re (gjb)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7011
11:39:37 - r302277
(2 days 12 hours ago)
by bz
Affects: 
(32 files)
/projects/vnet/*
MfH @r302276

Sponsored by: The FreeBSD Foundation
11:06:13 - r302276
(2 days 13 hours ago)
by hselasky
Affects: 
(12 files)
/stable/9/lib/libusb/*
MFC r301956, r301957, r301964, r301966, r301968, r301969, r302080,
  r302125 and r302171:

Added multiple new LibUSB v1.0 API functions.
Streams support is only available in FreeBSD 10+.
Refer to the individual commits for more details.
10:58:36 - r302275
(2 days 13 hours ago)
by hselasky
Affects: 
(11 files)
/stable/10/lib/libusb/*
MFC r301956, r301957, r301964, r301966, r301968, r301969, r302080,
  r302125 and r302171:

Added multiple new LibUSB v1.0 API functions.
Refer to the individual commits for more details.
10:47:44 - r302274
(2 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/8/lib/libusb/libusb10.c
MFC r301842:
Implement code to stop all USB endpoints before executing a USB device
reset command, alternate setting command or set configuration
command. Else LibUSB v1.0 will not re-open the endpoints which the
kernel closes and the USB application might wait infinitely for
transfers to complete.
10:46:10 - r302273
(2 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/lib/libusb/libusb10.c
MFC r301842:
Implement code to stop all USB endpoints before executing a USB device
reset command, alternate setting command or set configuration
command. Else LibUSB v1.0 will not re-open the endpoints which the
kernel closes and the USB application might wait infinitely for
transfers to complete.
10:43:31 - r302272
(2 days 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/lib/libusb/libusb10.c
MFC r301842:
Implement code to stop all USB endpoints before executing a USB device
reset command, alternate setting command or set configuration
command. Else LibUSB v1.0 will not re-open the endpoints which the
kernel closes and the USB application might wait infinitely for
transfers to complete.
10:40:34 - r302271
(2 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/ofed/include/linux/etherdevice.h
/stable/10/sys/ofed/include/linux/random.h
MFC r301544:
Fallback to arc4rand() in the LinuxKPI when read_random() returns
zero. This can happen for virtual machines.

Sponsored by: Mellanox Technologies
10:33:11 - r302270
(2 days 13 hours ago)
by hselasky
Affects: 
(6 files)
/stable/10/sys/dev/mlx5/*
MFC r301545:
Add SR-IOV guest support to the mlx5en driver.

This patch adds the missing pieces needed for device setup using the
mlx5en driver inside a virtual machine which is providing hardware
access through SR-IOV.

Sponsored by: Mellanox Technologies
10:29:52 - r302269
(2 days 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/mlx5/mlx5_core/mlx5_vport.c
MFC r302139:
Use correct Q-counter output array.

Sponsored by: Mellanox Technologies
10:25:32 - r302268
(2 days 13 hours ago)
by hselasky
Affects: 
(6 files)
/stable/8/sys/dev/usb/controller/xhci.c
/stable/8/sys/dev/usb/controller/xhci.h
/stable/8/sys/dev/usb/controller/xhcireg.h
MFC r302076:
Update the definition for number of scratch pages to match the latest
version of the XHCI specification. Make sure the code can handle the
maximum number of allowed scratch pages.

Submitted by: Shichun_Ma@Dell.com
10:23:19 - r302267
(2 days 13 hours ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/dev/usb/controller/xhci.c
/stable/9/sys/dev/usb/controller/xhci.h
/stable/9/sys/dev/usb/controller/xhcireg.h
MFC r302076:
Update the definition for number of scratch pages to match the latest
version of the XHCI specification. Make sure the code can handle the
maximum number of allowed scratch pages.

Submitted by: Shichun_Ma@Dell.com
10:21:45 - r302266
(2 days 13 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/usb/controller/xhci.c
/stable/10/sys/dev/usb/controller/xhci.h
/stable/10/sys/dev/usb/controller/xhcireg.h
MFC r302076:
Update the definition for number of scratch pages to match the latest
version of the XHCI specification. Make sure the code can handle the
maximum number of allowed scratch pages.

Submitted by: Shichun_Ma@Dell.com
07:55:45 - r302265
(2 days 16 hours ago)
by smh
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
Allow ZFS ARC min / max to be tuned at runtime

Prior to this change ZFS ARC min / max could only be changed using
boot time tunables, this allows the values to be tuned at runtime
using the sysctls:
* vfs.zfs.arc_max
* vfs.zfs.arc_min

When adjusting ZFS ARC minimum the memory used will only reduce
to the new minimum given memory pressure.

Reviewed by: allanjude
Approved by: re (gjb)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D5907
07:00:15 - r302264
(2 days 17 hours ago)
by mm
Affects: 
(9 files)
/vendor/libarchive/dist/*
Update vendor/libarchive to git 084ef320b8fc62e3fd3acb762fe6175d48d7829c

Vendor issues fixed:
#686: Correctly grow buffer in archive_string_append_from_wcs_in_codepage()
FreeBSD PR #204157: Fix test on filesystems without birthtime support

PR: 204157
06:55:30 - r302263
(2 days 17 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
/head/sys/dev/cxgbe/tom/t4_listen.c
cxgbe(4): Do not bring up an interface when IFCAP_TOE is enabled on it.
The interface's queues are functional after VI_INIT_DONE (which is short
of interface-up) and that's all that's needed for t4_tom to communicate
with the chip.

Approved by: re@ (gjb@)
Sponsored by: Chelsio Communications
06:42:20 - r302262
(2 days 17 hours ago)
by cem
Affects:  /head/sys/dev/usb/quirk/usb_quirk.c
/head/sys/dev/usb/usbdevs
USB: Add Garmin FR230 device quirk (broken INQUIRY)

PR: 210544
Reviewed by: hps
Approved by: re
06:25:23 - r302261
(2 days 17 hours ago)
by delphij
Affects:  /vendor/expat/2.2.0
Tag expat 2.2.0.
06:24:30 - r302260
(2 days 17 hours ago)
by delphij
Affects: 
(34 files)
/vendor/expat/dist/*
Vendor import of expat 2.2.0 (trimmed).
06:04:45 - r302259
(2 days 18 hours ago)
by dchagin
Affects: 
(2 files)
/stable/10/sys/compat/linux/linux_socket.c
MFC r302213:

Fix a bug introduced in r283433.

[1] Remove unneeded sockaddr conversion before kern_recvit() call as the from
argument is used to record result (the source address of the received message)
only.

[2] In Linux the type of msg_namelen member of struct msghdr is signed but
native
msg_namelen has a unsigned type (socklen_t). So use the proper storage to fetch
fromlen
from userspace and than check the user supplied value and return EINVAL if it
is less
than 0 as a Linux do.

Reported by: Thomas Mueller <tmueller at sysgo dot com> [1]
Tested by: Thomas Mueller <tmueller at sysgo dot com> [both]
Reviewed by: kib@
05:21:25 - r302258
(2 days 18 hours ago)
by bz
Affects:  /head/sys/net/if.c
Several device drivers call if_alloc() and then do further checks and
will cal if_free() in case of conflict, error, ..
if_free() however sets the VNET instance from the ifp->if_vnet which
was not yet initialized but would only in if_attach(). Fix this by
setting the curvnet from where we allocate the interface in if_alloc().
if_attach() will later overwrite this as needed. We do not set the home_vnet
early on as we only want to prevent the if_free() panic but not change any
of the other housekeeping, e.g., triggered through ifioctl()s.

Reviewed by: brooks
Approved by: re (gjb)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7010
01:50:30 - r302257
(2 days 22 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
/head/Makefile.libcompat
WITH_SYSTEM_COMPILER: Avoid using GCC4.8+ logic on native GCC4.2 platforms.

As the XXX notes, these should really be checking MK_GNUCXX since there is
already a version check in share/mk/src.opts.mk to disable it. Fixing that
here is more complex though. This could also be using X_COMPILER_FEATURES
but uses X_COMPILER_VERSION to keep in sync with the src.opts.mk logic.

Tested by: andreast
Sponsored by: EMC / Isilon Storage Division
Approved by: re (gjb)
2016 - 06 - 28   (4 days ago)
20:10:30 - r302256
(3 days 4 hours ago)
by phk
Affects:  /head/sbin/natd/natd.c
Do not coredump if the packet is too long in the global (non-interface
associated) instance.

The result is that the packet is dropped without an indication
that smaller MTU is advisable, which is not optimal, but better
than a NULL pointer deref.

Approved by: re (glebius)
19:53:16 - r302255
(3 days 4 hours ago)
by bdrewery
Affects:  /head/lib/libc/rpc/Makefile.inc
/head/lib/libc/yp/Makefile.inc
Use on crypto.x and rpc.x from the source tree.

This fixes the build when DESTDIR may be blank or not yet populated.
It also fixes reproducibility.

Submitted by: brooks
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D6455
18:32:15 - r302254
(3 days 5 hours ago)
by sbruno
Affects:  /head/sys/cam/scsi/scsi_all.c
Revert svn r302253 at the request/review of Ken M. This commit is
incorrect.

PR: 202625
Approved by: re (implicit)
18:08:47 - r302253
(3 days 6 hours ago)
by sbruno
Affects:  /head/sys/cam/scsi/scsi_all.c
Correct PERSISTENT RESERVE OUT command and populate scsi_cmd->length.

PR: 202625
Submitted by: niakrisn@gmail.com
Reviewed by: scottl
Approved by: re (hrs)
MFC after: 2 weeks
16:43:23 - r302252
(3 days 7 hours ago)
by kib
Affects:  /head/sys/kern/kern_ntptime.c
Currently the ntptime code and resettodr() are Giant-locked. In
particular, the Giant is supposed to protect against parallel
ntp_adjtime(2) invocations. But, for instance, sys_ntp_adjtime() does
copyout(9) under Giant and then examines time_status to return syscall
result. Since copyout(9) could sleep, the syscall result might be
inconsistent.

Another and more important issue is that if PPS is configured,
hardpps(9) is executed without any protection against the parallel
top-level code invocation. Potentially, this may result in the
inconsistent state of the ntptime state variables, but I cannot say
how serious such distortion is. The non-functional splclock() call in
sys_ntp_adjtime() protected against clock interrupts calling hardpps()
in the pre-SMP era.

Modernize the locking. A mutex protects ntptime data. Due to the
hardpps() KPI legitimately serving from the interrupt filters (and
e.g. uart(4) does call it from filter), the lock cannot be sleepable
mutex if PPS_SYNC is defined. Otherwise, use normal sleepable mutex
to reduce interrupt latency.

Reviewed by: imp, jhb
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
Differential revision: https://reviews.freebsd.org/D6825
16:42:40 - r302251
(3 days 7 hours ago)
by kib
Affects:  /head/sys/kern/subr_clock.c
/head/sys/kern/subr_rtc.c
Do not use Giant to prevent parallel calls to CLOCK_SETTIME(). Use
private mtx in resettodr(), no implementation of CLOCK_SETTIME() is
allowed to sleep.

Reviewed by: imp, jhb
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
X-Differential revision: https://reviews.freebsd.org/D6825
16:41:50 - r302250
(3 days 7 hours ago)
by kib
Affects:  /head/sys/kern/kern_sig.c
Complete r302215. TDF_SBDRY | TDF_SERESTART and TDF_SBDRY |
TDF_SEINTR flags values, unlike TDF_SBDRY, must be treated almost as
if TDF_SBDRY is not set for STOP signal delivery. The only difference
is that sig_suspend_threads() should abort the sleep instead of doing
immediate suspension.

Reported by: ngie
Sponsored by: The FreeBSD Foundation
MFC after: 12 days
Approved by: re (gjb)
16:41:02 - r302249
(3 days 7 hours ago)
by bz
Affects:  /projects/vnet/sys/netpfil/ipfw/ip_fw2.c
/projects/vnet/sys/netpfil/ipfw/ip_fw_log.c
Virtualize the ipfw BPF logging interface allowing one to be created
per VNET.

Sponsored by: The FreeBSD Foundation
13:42:50 - r302248
(3 days 10 hours ago)
by jtl
Affects:  /head/share/man/man5/src.conf.5
Regenerate for WITH_EXTRA_TCP_STACKS updates.

Approved by: re (gjb)
Sponsored by: Juniper Networks
13:37:01 - r302247
(3 days 10 hours ago)
by jtl
Affects: 
(4 files)
/head/share/man/man4/tcp.4
/head/share/man/man9/*
/head/tools/build/options/WITH_EXTRA_TCP_STACKS
Document support for alternate TCP stacks.

Differential Revision: https://reviews.freebsd.org/D6940
Reviewed by: hiren
Approved by: re (gjb)
Sponsored by: Juniper Networks
07:47:42 - r302246
(3 days 16 hours ago)
by cy
Affects:  /head/lib/libc/tests/ssp/Makefile
This commit addresses regression introduceded in r302177
(WITH_SYSTEM_COMPILER: Enable by default) and it's prerequisite: r300354,
caused i386 builds to fail when cross-built on an amd64 host.

Reviewed by: bdrewery, delphij, gjb
Approved by: re (gjb)
07:11:27 - r302245
(3 days 16 hours ago)
by pho
Affects:  /user/pho/stress2/misc/kevent9.sh
Added a regression test.

Sponsored by: EMC / Isilon Storage Division
03:11:07 - r302244
(3 days 20 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/usr.bin/sed/process.c
MFC r301138:
sed(1): convert sed to use REG_STARTEND more explicitly.

This is a followup to previous r302228, which only merged the
incomplete r300684 causing a regression.

Reported by: mi
PR: 209387
Taken from: openbsd-tech (Martijn van Duren)
00:37:34 - r302243
(3 days 23 hours ago)
by kib
Affects: 
(3 files)
/stable/10/sys/vm/vm_meter.c
/stable/10/sys/vm/vm_object.h
MFC r302063:
Avoid the active object marking for vm.vmtotal sysctl.
2016 - 06 - 27   (5 days ago)
23:34:53 - r302242
(4 days ago)
by kib
Affects:  /head/sys/kern/kern_event.c
/head/sys/sys/event.h
Fix userspace build after r302235: do not expose bool field of the
structure, change it to int.

The real fix is to sanitize user-visible definitions in sys/event.h,
e.g. the affected struct knlist is of no use for userspace programs.

Reported and tested by: jkim
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
22:21:29 - r302241
(4 days 1 hour ago)
by bdrewery
Affects: 
(3 files)
/stable/10/sys/dev/filemon/filemon.c
/stable/10/sys/dev/filemon/filemon_wrapper.c
MFC r300809,r300890,r300891:

  r300809:
  filemon exec: Use imgp->execpath rather than vn_fullpath(9).
  r300890:
  exec: Cease tracing if credentials will change with the new image.
  r300891:
  Write to the log using the tracer's credentials.
22:18:52 - r302240
(4 days 1 hour ago)
by bdrewery
Affects:  /stable/9/share/man/man4/filemon.4
/stable/9/sys/dev/filemon/filemon.c
Mark filemon(4) as "experimental" for 9 since it has many unfixed
stability, performance, and audit issues that have not been MFC'd.
22:13:43 - r302239
(4 days 1 hour ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r300793:

  exec: Provide execpath in imgp for the process_exec hook.
22:12:11 - r302238
(4 days 1 hour ago)
by bdrewery
Affects: 
(3 files)
/stable/10/sys/kern/kern_exec.c
/stable/10/sys/sys/imgact.h
MFC r300792,r300851,r301580:

  r300792:
  exec: Add credential change information into imgp for process_exec hook.
  r300851:
  exec: get rid of one vnode lock/unlock pair in do_execve
  r301580:
  Old process credentials for setuid execve must not be dereferenced when the
  process credentials were not changed. This can happen if an error occured
  trying to activate the setuid binary. And on error, if new credentials
  were not yet assigned, they must be freed to not create the leak.
22:10:07 - r302237
(4 days 2 hours ago)
by bdrewery
Affects: 
(14 files)
/stable/10/sys/*
MFC r292384:

  Fix style issues around existing SDT probes.

  ** Changes to sys/netinet/in_kdtrace.c and sys/netinet/in_kdtrace.h skipped.
21:54:19 - r302236
(4 days 2 hours ago)
by kib
Affects:  /head/sys/vm/vm_fault.c
If the vm_fault() handler raced with the vm_object_collapse()
sleepable scan, iteration over the shadow chain looking for a page
could find an OBJ_DEAD object. Such state of the mapping is only
transient, the dead object will be terminated and removed from the
chain shortly. We must not return KERN_PROTECTION_FAILURE unless the
object type is changed to OBJT_DEAD in the chain, indicating that
paging on this address is really impossible. Returning
KERN_PROTECTION_FAILURE prematurely causes spurious SIGSEGV delivered
to processes, or kernel accesses to UVA spuriously failing with
EFAULT.

If the object with OBJ_DEAD flag is found, only return
KERN_PROTECTION_FAILURE when object type is already OBJT_DEAD.
Otherwise, sleep a tick and retry the fault handling.

Ideally, we would wait until the OBJ_DEAD flag is resolved, e.g. by
waiting until the paging on this object is finished. But to do so, we
need to reference the dead object, while vm_object_collapse() insists
on owning the final reference on the collapsed object. This could be
fixed by e.g. changing the assert to shared reference release between
vm_fault() and vm_object_collapse(), but it seems to be too much
complications for rare boundary condition.

PR: 204426
Tested by: pho
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
X-Differential revision: https://reviews.freebsd.org/D6085
MFC after: 2 weeks
Approved by: re (gjb)
21:52:17 - r302235
(4 days 2 hours ago)
by kib
Affects: 
(8 files)
/head/sys/kern/*
/head/sys/sys/*
When filt_proc() removes event from the knlist due to the process
exiting (NOTE_EXIT->knlist_remove_inevent()), two things happen:
- knote kn_knlist pointer is reset
- INFLUX knote is removed from the process knlist.
And, there are two consequences:
- KN_LIST_UNLOCK() on such knote is nop
- there is nothing which would block exit1() from processing past the
  knlist_destroy() (and knlist_destroy() resets knlist lock pointers).
Both consequences result either in leaked process lock, or
dereferencing NULL function pointers for locking.

Handle this by stopping embedding the process knlist into struct proc.
Instead, the knlist is allocated together with struct proc, but marked
as autodestroy on the zombie reap, by knlist_detach() function. The
knlist is freed when last kevent is removed from the list, in
particular, at the zombie reap time if the list is empty. As result,
the knlist_remove_inevent() is no longer needed and removed.

Other changes:

In filt_procattach(), clear NOTE_EXEC and NOTE_FORK desired events
from kn_sfflags for knote registered by kernel to only get NOTE_CHILD
notifications. The flags leak resulted in excessive
NOTE_EXEC/NOTE_FORK reports.

Fix immediate note activation in filt_procattach(). Condition should
be either the immediate CHILD_NOTE activation, or immediate NOTE_EXIT
report for the exiting process.

In knote_fork(), do not perform racy check for KN_INFLUX before kq
lock is taken. Besides being racy, it did not accounted for notes
just added by scan (KN_SCAN).

Some minor and incomplete style fixes.

Analyzed and tested by: Eric Badger <eric@badgerio.us>
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
Differential revision: https://reviews.freebsd.org/D6859
21:50:30 - r302234
(4 days 2 hours ago)
by bdrewery
Affects: 
(44 files)
/stable/10/sys/kern/*
MFC r298819:

  sys/kern: spelling fixes in comments.
21:44:27 - r302233
(4 days 2 hours ago)
by bdrewery
Affects: 
(8 files)
/stable/10/sys/*
MFC r297391:

  Remove some NULL checks for M_WAITOK allocations.
21:37:30 - r302232
(4 days 2 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r285513:

  exec: textvp -> oldtextvp; binvp -> newtextvp
21:35:19 - r302231
(4 days 2 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r285512:

  exec plug a redundant vref + vrele of the image vnode
21:30:37 - r302230
(4 days 2 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r273351:

  Plug unnecessary binvp NULL initialization and test.
21:25:01 - r302229
(4 days 2 hours ago)
by bdrewery
Affects: 
(15 files)
/stable/10/sys/*
MFC r280130:

  cred: add proc_set_cred helper
20:54:02 - r302228
(4 days 3 hours ago)
by pfg
Affects: 
(3 files)
/stable/10/sys/sys/param.h
/stable/10/usr.bin/sed/process.c
sed(1): convert sed to use REG_STARTEND more explicitly.

Summarizing the findings in the OpenBSD list:

This solves a reproduceable issue with very recent Mesa where REG_NOTBOL
combined with a match at the begin of the string causes our regex library
to treat the word as not begin of word.

Bump __FreeBSD_version: JIC we hit the issue in recent Mesa ports.

PR: 209352, 209387 (exp-run)
Taken from: openbsd-tech (Martijn van Duren)
MFC after: 1 month
20:38:38 - r302227
(4 days 3 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/security/audit/audit_syscalls.c
MFC r280121:

  audit: fix cred assignment when A_SETPMASK is used
20:31:56 - r302226
(4 days 3 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/10/sys/kern/kern_exec.c
MFC r296285:

  Correct a comment.
17:01:26 - r302225
(4 days 7 hours ago)
by slm
Affects: 
(7 files)
/stable/10/sys/dev/mps/*
MFC r302031

- No log bit in IOCStatus and endian-safe changes.

Use MPI2_IOCSTATUS_MASK when checking IOCStatus to mask off the log bit, and
make a few more things endian-safe.

- Fix possible use of invalid pointer.

It was possible to use an invalid pointer to get the target ID value. To fix
this, initialize a local Target ID variable to an invalid value and change that
variable to a valid value only if the pointer to the Target ID is not NULL.

- No need to set the MPSSAS_SHUTDOWN flag because it's never used.

- done_ccb pointer can be used if it is NULL.

To prevent this, move check for done_ccb == NULL to before done_ccb is used in
mpssas_stop_unit_done().

- Disks can go missing until a reboot is done in some cases.

This is due to the DevHandle not being released, which causes the Firmware to
not allow that disk to be re-added.

Approved by: ken, scottl, ambrisko (mentors)
16:14:54 - r302224
(4 days 7 hours ago)
by bz
Affects: 
(57 files)
/projects/vnet/*
MfH @r302223

Sponsored by: The FreeBSD Foundation
15:47:25 - r302223
(4 days 8 hours ago)
by bz
Affects:  /projects/vnet/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
/projects/vnet/sys/contrib/ipfilter/netinet/mlfk_ipl.c
DIsable the "cloner" event handler; we are getting interface
events before the firewall is fully initiallized and also no vnet
information thus leading to uninitialised memory accesses.
In addition it is unclear why we need it in first place.
If it turns out to be needed, well need a dedicated event handler
for it.

We make sure ipf_running is initialized statically to something
that indicates really not running; though the problem trying to
address with that was solved differently.

Very specially handle the dynamic sysctls added. The problem is
that "ipmain" is the virtualized struct, but the fields used for
the sysctls are hanging off memory allocated and attached to the
virtualized "ipmain" thus standard VNET macros and sysctl handling
does not work. We still say it is VNET sysctls to get the proper
protection checks in the VIMAGE case; to solve the problem of
accessing the right bit of memory haning of each per-VNET ipmain,
we use a dedicated handler function wrapping around sysctl_ipf_int()
undoing the base calculation from kern_sysctl.c and then adding the
passed-in offset into the right struct depending on handler.
A bit of a mess exposing VNET-internals this way but the only way
to keep the code without having to massively restructure ipf internals.

Sponsored by: The FreeBSD Foundation
06:41:11 - r302222
(4 days 17 hours ago)
by delphij
Affects:  /head/lib/libmagic/Makefile
Fix build: explicitly reference the generated magic.h as dependency
of mkmagic and point its location.

Reported by: jenkins
Pointy hat to: delphij
MFC after: 2 weeks
X-MFC-With: 302221
Approved by: re (kib)
01:29:17 - r302221
(4 days 22 hours ago)
by delphij
Affects: 
(31 files)
/head/contrib/file/*
/head/lib/libmagic/*
MFV r302218: file 5.28.

Relnotes: yes
MFC after: 2 weeks
Approved by: re (gjb)
01:17:00 - r302220
(4 days 22 hours ago)
by sephe
Affects:  /stable/10/sys/dev/hyperv/vmbus/vmbus.c
hyperv/vmbus: Fix mismerge of r301015

Submitted by: Oliver Pinter <oliver.pinter hardenedbsd org>
Sponsored by: Microsoft OSTC
2016 - 06 - 26   (6 days ago)
21:00:11 - r302219
(5 days 3 hours ago)
by delphij
Affects:  /vendor/file/5.28
Tag file 5.28.
20:59:11 - r302218
(5 days 3 hours ago)
by delphij
Affects: 
(28 files)
/vendor/file/dist/*
Vendor import of file 5.28.
20:33:28 - r302217
(5 days 3 hours ago)
by nwhitehorn
Affects: 
(5160 files)
/projects/powernv/*
IFC @ 302214
20:08:42 - r302216
(5 days 4 hours ago)
by kib
Affects:  /head/sys/kern/kern_lockf.c
/head/sys/nlm/nlm_advlock.c
/head/sys/nlm/nlm_prot_impl.c
When sleeping waiting for either local or remote advisory lock,
interrupt sleeps with the ERESTART on the suspension attempts.
Otherwise, single-threading requests are deferred until the locks are
granted for NFS files, which causes hangs.

When retrying local registration of the remotely-granted adv lock,
allow full suspension and check for suspension, for usual reasons.

Reported by: markj, pho
Reviewed by: jilles
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
20:07:24 - r302215
(5 days 4 hours ago)
by kib
Affects: 
(7 files)
/head/sys/fs/fifofs/fifo_vnops.c
/head/sys/kern/*
/head/sys/sys/*
Rewrite sigdeferstop(9) and sigallowstop(9) into more flexible
framework allowing to set the suspension policy for the dynamic block.
Extend the currently possible policies of stopping on interruptible
sleeps and ignoring such sleeps by two more: do not suspend at
interruptible sleeps, but interrupt them with either EINTR or ERESTART.

Reviewed by: jilles
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
18:43:42 - r302214
(5 days 5 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/aim_machdep.c
/head/sys/powerpc/aim/locore64.S
Enter 64-bit mode as early as possible in the 64-bit PowerPC boot sequence.
Most of the effect of setting MSR[SF] is that the CPU will stop ignoring
the high 32 bits of registers containing addresses in load/store
instructions. As such, the kernel was setting it only when it began to
need access to high memory. MSR[SF] also affects the operation of some
conditional instructions, however, and so setting it at late times could
subtly break code at very early times. This fixes use of the FDT mode in
loader, and FDT boot more generally, on 64-bit PowerPC systems.

Hardware provided by: IBM LTC
Approved by: re (kib)
16:59:59 - r302213
(5 days 7 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
Fix a bug introduced in r283433.

[1] Remove unneeded sockaddr conversion before kern_recvit() call as the from
argument is used to record result (the source address of the received message)
only.

[2] In Linux the type of msg_namelen member of struct msghdr is signed but
native
msg_namelen has a unsigned type (socklen_t). So use the proper storage to fetch
fromlen
from userspace and than check the user supplied value and return EINVAL if it
is less
than 0 as a Linux do.

Reported by: Thomas Mueller <tmueller at sysgo dot com> [1]
Reviewed by: kib@
Approved by: re (gjb, kib)
MFC after: 3 days
16:38:42 - r302212
(5 days 7 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctputil.c
This patch fixes two bugs related to the SCTP message recovery
for messages which have been put on the send queue:
* Do not report any DATA or I-DATA chunk padding.
* Correctly deal with the I-DATA chunk header instead of the DATA
  chunk header when the I-DATA extension is used.

Approved by: re (kib)
MFC after: 1 week
14:44:01 - r302211
(5 days 9 hours ago)
by novel
Affects: 
(4 files)
/head/usr.sbin/bhyve/*
/head/usr.sbin/bhyveload/*
bhyve: improve memory size documentation

A couple of minor memory size option related nits:

 - use common name 'memsize' (instead of 'max-size' or just 'size')
 - bhyve: update usage with memsize unit suffix, drop legacy "MB"
  unit
 - bhyveload: update usage with memsize unit suffix
 - bhyve(8): document default size
 - bhyveload(8): use memsize formatting like it's done
  in bhyve(8)

Reviewed by: wblock, grehan
Approved by: re (kib), wblock, grehan
Differential Revision: https://reviews.freebsd.org/D6952
14:18:28 - r302210
(5 days 9 hours ago)
by kib
Affects:  /head/sys/fs/nfsclient/nfs_clnode.c
Clean other flags in ncl_inactive, only. Add comment explaining why other
flags should be unset.

Suggested and reviewed by: rmacklem
Sponsored by: The FreeBSD Foundation
MFC after: 12 days
Approved by: re (gjb)
13:18:03 - r302209
(5 days 10 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/nlm/nlm_advlock.c
MFC r302020:
Handle EDEADLK and EINTR from local adv lock manager.
13:16:02 - r302208
(5 days 10 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/nfsclient/nfs_clvnops.c
MFC r302019:
Do not access NFS data for reclaimed vnode.
12:41:02 - r302207
(5 days 11 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_output.c
This patch fixes a locking bug when a send() call blocks
on an SCTP socket and the association is aborted by the
peer.

Approved by: re (kib)
MFC after: 1 week
00:53:31 - r302206
(5 days 23 hours ago)
by asomers
Affects:  /head/usr.bin/lastcomm/tests/Makefile
/head/usr.sbin/sa/tests/Makefile
Skip lastcomm and sa tests on unsupported architectures

usr.bin/lastcom/tests/Makefile
usr.sbin/sa/tests/Makefile
  Set allow_architectures appropriately. These tests depend on golden
  files that must be generated for each architecture, and haven't yet
  been generated for all of them.

PR: 210566
PR: 204154
Reviewed by: ngie
Approved by: re (gjb)
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6960

 


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

Page generated in 22 ms, 108 revisions printed. Current time is 2016-07-02 00:10:44. All times are in UTC/GMT.