Displaying 1 50 of 299,294 commits (0.027s)

FreeBSD — head/release/doc/en_US.ISO8859-1/relnotes article.xml

Document r299688, Add support for H3 SoC

Approved by:        re (gjb, implicit, relnotes)

FreeBSD — 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)

FreeBSD — 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)
Delta File
+3 -0 head/sys/kern/kern_event.c
+3 -0 1 file

FreeBSD — 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)
Delta File
+11 -2 head/sys/net80211/ieee80211_amrr.c
+11 -2 1 file

FreeBSD — 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

FreeBSD — head/contrib/expat configure.ac configure.in, head/contrib/expat/doc xmlwf.sgml xmlwf.xml

MFV r302260: expat 2.2.0

Approved by:        re (kib)

FreeBSD — head/sys/conf newvers.sh

Update 11.0 to ALPHA6.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — 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)
Delta File
+5 -1 head/sys/netpfil/ipfw/ip_fw_nat.c
+5 -1 1 file

FreeBSD — projects/vnet _scripts, projects/vnet/_scripts jail-start-lmr-ipfw.sh jail-vnet-netperf.sh

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

FreeBSD — 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

FreeBSD — projects/vnet/contrib/bmake meta.c, projects/vnet/contrib/ipfilter/tools ipf.c

MfH @r302298

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/contrib/ipfilter/netinet mlfk_ipl.c ip_fil_freebsd.c

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

    [4 lines not shown]

FreeBSD — head/sys/cddl/contrib/opensolaris/common/acl acl_common.c, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_acl.c

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)

FreeBSD — head/contrib/ipfilter/tools ipf.c

Remove dead code.

Approved by:        re@ (hrs@)
MFC after:        1 week
Delta File
+0 -17 head/contrib/ipfilter/tools/ipf.c
+0 -17 1 file

FreeBSD — stable/10/contrib/libarchive NEWS, stable/10/contrib/libarchive/cat/test main.c

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)

    [8 lines not shown]

FreeBSD — head/contrib/libarchive/libarchive archive_string.c archive_read_disk_posix.c, head/contrib/libarchive/libarchive/test test_write_format_gnutar_filenames.c main.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)

FreeBSD — 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
Delta File
+9 -5 head/sys/netinet/sctp_output.c
+9 -5 1 file

FreeBSD — 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)
Delta File
+31 -2 head/sys/sys/buf_ring.h
+31 -2 1 file

FreeBSD — 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)
Delta File
+2 -2 head/sys/arm64/include/vmparam.h
+2 -2 1 file

FreeBSD — head/sys/netpfil/ipfw ip_fw_log.c ip_fw2.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

FreeBSD — head/sys/contrib/ipfilter/netinet ip_fil_freebsd.c 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)

FreeBSD — 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
Delta File
+0 -5 head/release/tools/ec2.conf
+0 -5 1 file

FreeBSD — 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 at FreeBSD.org>
Approved by:        re (gjb)
Delta File
+5 -5 head/sys/mips/malta/gt_pci.c
+5 -5 1 file

FreeBSD — 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
Delta File
+1 -0 head/contrib/bmake/meta.c
+1 -0 1 file

FreeBSD — 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)

FreeBSD — head/sys/geom/uzip g_uzip.c g_uzip_lzma.c

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.


    [14 lines not shown]

FreeBSD — head/sys/net80211 ieee80211_superg.c ieee80211_superg.h

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

FreeBSD — 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)
Delta File
+1 -1 head/share/mk/bsd.init.mk
+1 -1 1 file

FreeBSD — head/sys/cam/scsi scsi_all.c

Correct PERSISTENT RESERVE OUT command and populate scsi_cmd->length.

PR:        202625
Submitted by:        niakrisn at gmail.com
Reviewed by:        scottl kenm
Approved by:        re (gjb)
MFC after:        2 weeks
Delta File
+1 -0 head/sys/cam/scsi/scsi_all.c
+1 -0 1 file

FreeBSD — 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

FreeBSD — 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)

FreeBSD — 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
Delta File
+8 -8 head/lib/libcxxrt/Version.map
+8 -8 1 file

FreeBSD — projects/vnet Makefile.libcompat Makefile.inc1, projects/vnet/lib/libc/rpc Makefile.inc

MfH @r302276

Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/9/lib/libusb libusb10_hotplug.c libusb10_desc.c

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.

FreeBSD — stable/10/lib/libusb libusb10_hotplug.c libusb10_desc.c

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.

FreeBSD — 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.
Delta File
+14 -2 stable/8/lib/libusb/libusb10.c
+14 -2 1 file

FreeBSD — 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.
Delta File
+14 -2 stable/9/lib/libusb/libusb10.c
+14 -2 1 file

FreeBSD — 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.
Delta File
+14 -2 stable/10/lib/libusb/libusb10.c
+14 -2 1 file

FreeBSD — stable/10/sys/ofed/include/linux random.h etherdevice.h

MFC r301544:
Fallback to arc4rand() in the LinuxKPI when read_random() returns
zero. This can happen for virtual machines.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/10/sys/dev/mlx5 vport.h driver.h, stable/10/sys/dev/mlx5/mlx5_core mlx5_vport.c

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

FreeBSD — stable/10/sys/dev/mlx5/mlx5_core mlx5_vport.c

MFC r302139:
Use correct Q-counter output array.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/8/sys/dev/usb/controller xhci.h xhci.c

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 at Dell.com

FreeBSD — stable/9/sys/dev/usb/controller xhci.h xhci.c

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 at Dell.com

FreeBSD — stable/10/sys/dev/usb/controller xhci.h xhci.c

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 at Dell.com

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs arc.c 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

FreeBSD — vendor/libarchive/dist CMakeLists.txt configure.ac, vendor/libarchive/dist/build/cmake CheckStructMember.cmake

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

FreeBSD — 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

FreeBSD — head/sys/dev/usb usbdevs, head/sys/dev/usb/quirk usb_quirk.c

USB: Add Garmin FR230 device quirk (broken INQUIRY)

PR:                210544
Reviewed by:        hps
Approved by:        re

FreeBSD — vendor/expat 2.2.0

Tag expat 2.2.0.
Delta File
+0 -0 vendor/expat/2.2.0/
+0 -0 1 file

FreeBSD — vendor/expat/dist configure.ac configure.in, vendor/expat/dist/doc xmlwf.sgml xmlwf.xml

Vendor import of expat 2.2.0 (trimmed).