Displaying 1 50 of 315,539 commits (0.028s)

FreeBSD — head ObsoleteFiles.inc, head/share/misc man.template Makefile

Remove the old man.template

In FreeBSD we only use mdoc(7) format. A template is available as mdoc.template
The usage of man(7) format is discouraged and this file was driving people into
the front direction as a template to use.

FreeBSD — head/share/misc pci_vendors

update to 2017.05.25

MFC after:        2 days
Delta File
+180 -79 head/share/misc/pci_vendors
+180 -79 1 file

FreeBSD — head/crypto/openssl Configure Makefile, head/crypto/openssl/apps enc.c progs.pl

Merge OpenSSL 1.0.2l.

FreeBSD — vendor-crypto/openssl 1.0.2l

Tag OpenSSL 1.0.2l.
Delta File
+0 -0 vendor-crypto/openssl/1.0.2l/
+0 -0 1 file

FreeBSD — vendor-crypto/openssl/dist Configure Makefile, vendor-crypto/openssl/dist/apps enc.c progs.pl

 Import OpenSSL 1.0.2l.

FreeBSD — head/share/man/man4 mpr.4, head/sys/dev/mpr mpr_mapping.c mpr_sas_lsi.c

Fix several problems with mapping code.

Reviewed by:    ken, scottl, asomers, ambrisko, mav
Approved by:        ken, mav
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D10861

FreeBSD — head/share/man/man4 mps.4, head/sys/dev/mps mps_mapping.c mps_sas_lsi.c

Fix several problems with mapping code.

Reviewed by:    ken, scottl, asomers, ambrisko, mav
Approved by:        ken, mav
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D10878

FreeBSD — head/release Makefile.ec2, head/release/tools ec2.conf

Turn on support for the Amazon "Elastic Network Adapter" in EC2 AMIs.

X-MFC-after:        318647 + fixes for some lock ordering warnings

FreeBSD — stable/11/lib/libc/sys open.2

MFC r318314

Add information to open(2) man page about the O_VERIFY flag.

PR:                219262
Reviewed by:        bjk wblock
Approved by:        sjg (mentor)
Obtained from:        Juniper Networks, Inc.
Delta File
+10 -0 stable/11/lib/libc/sys/open.2
+10 -0 1 file

FreeBSD — head/usr.bin/diff3 diff3.1

Update the diff3 manpage to reflect the fact the version in freebsd does
not use temporary files nor uses a /usr/libexec/diff3prog
Delta File
+1 -21 head/usr.bin/diff3/diff3.1
+1 -21 1 file

FreeBSD — head/usr.sbin/bsdconfig/console keymap, head/usr.sbin/bsdconfig/share keymap.subr

Fix long standing issue in bsdconfig's keymap selection

Since the translation to vt as terminal emulator, the keymaps files
path has changed and this change does not get followed in bsdconfig.
This implicates boot time warnings about a wrong keymap file, what
is very confusing for the new users and for me too, so initialize
the default keymaps search path depending on terminal type.

Differential Revision:        https://reviews.freebsd.org/D8734
Submitted by:        Oliver Pinter <oliver.pinter at hardenedbsd.org>
Reviewed by:        ed, jilles, dteske
MFC after:        3 days
X-MFC-to:        stable/11
Sponsored by:        HardenedBSD
Signed-off-by:        Oliver Pinter <oliver.pinter at hardenedbsd.org>

FreeBSD — head/usr.bin/diff3/tests diff3_test.sh

For now comment tests for arguments which are not in par with GNU diff3 yet

FreeBSD — head/usr.bin/diff3 diff3.c

Remove the MAX_CHECK macro, it was initially used to test if a file was a
text file or not.

The check is not done by diff3 but by diff (the argument -a is directly passed
to diff(1))
Delta File
+0 -2 head/usr.bin/diff3/diff3.c
+0 -2 1 file

FreeBSD — head/usr.bin diff3, head/usr.bin/diff3 diff3.c diff3.1

Import working progress BSD diff3

import bsd diff3 from OpenBSD.
Differences with OpenBSD:
- lots of warning fixed
- no shell wrapper with diff3 actually living in libexec
- capsicumized

Keep it disconnected as it is not yet good enough to replace GNU diff

The motivation to import it now it to allow other people to jump in and also to
have an open development on it

Obtained from:        OpenBSD

FreeBSD — projects doctools

Abandon the doctools project

The new plan is to totally remove the roff toolchain from base as there are too
many corner cases to switch the roff toolchain
Delta File
+0 -0 projects/doctools/
+0 -0 1 file

FreeBSD — stable/10/sys/netpfil/ipfw dn_aqm_pie.c dn_sched_fq_pie.c

MFC r318511

The result of right shifting a negative signed value is implementation
defined.  On machines without arithmetic shift instructions, zero bits
may be shifted in from the left, giving a large positive result instead
of the desired divide-by power-of-2.  Fix this by operating on the
absolute value and compensating for the possible negation later.

Reverse the order of the underflow/overflow tests and the exponential
decay calculation to avoid the possibility of an erroneous overflow
detection if p is a sufficiently small non-negative value.  Also
check for negative values of prob before doing the exponential decay
to avoid another instance of of right shifting a negative value.

Tested by:        Rasool Al-Saadi <ralsaadi at swin.edu.au>

FreeBSD — stable/11/sys/netpfil/ipfw dn_aqm_pie.c dn_sched_fq_pie.c

MFC r318511

The result of right shifting a negative signed value is implementation
defined.  On machines without arithmetic shift instructions, zero bits
may be shifted in from the left, giving a large positive result instead
of the desired divide-by power-of-2.  Fix this by operating on the
absolute value and compensating for the possible negation later.

Reverse the order of the underflow/overflow tests and the exponential
decay calculation to avoid the possibility of an erroneous overflow
detection if p is a sufficiently small non-negative value.  Also
check for negative values of prob before doing the exponential decay
to avoid another instance of of right shifting a negative value.

Tested by:        Rasool Al-Saadi <ralsaadi at swin.edu.au>

FreeBSD — head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD ProcessMonitor.cpp

lldb: map TRAP_CAP to a trace trap

In the absense of a more specific handler for TRAP_CAP (generated by
ENOTCAPABLE or ECAPMODE while in capability mode) treat it as a trace
trap.

Example usage (testing the bug in PR219173):

% proccontrol -m trapcap lldb usr.bin/hexdump/obj/hexdump -- -Cv -s 1 /bin/ls
...
(lldb) run
Process 12980 launching
Process 12980 launched: '.../usr.bin/hexdump/obj/hexdump' (x86_64)
Process 12980 stopped
* thread #1, stop reason = trace
    frame #0: 0x0000004b80c65f1a libc.so.7`__sys_lseek + 10
...

In the future we should have LLDB control the trapcap procctl itself
(as it does with ASLR), as well as report a specific stop reason.
This change eliminates an assertion failure from LLDB for now.

FreeBSD — head Makefile.inc1

Now that roff documentation has been disconnected from the build, it is no
longer necessary to have groff(1) as a bootstrap tool
Delta File
+0 -15 head/Makefile.inc1
+0 -15 1 file

FreeBSD — stable/11/contrib/llvm/include/llvm/MC ConstantPools.h, stable/11/contrib/llvm/lib/MC ConstantPools.cpp

MFC r318655:

Pull in r302416 from upstream llvm trunk (by Martin Storsjö):

  [ARM] Clear the constant pool cache on explicit .ltorg directives

  Multiple ldr pseudoinstructions with the same constant value will
  reuse the same constant pool entry. However, if the constant pool is
  explicitly flushed with a .ltorg directive, we should not try to
  reference constants in the previous pool any longer, since they may
  be out of range.

  This fixes assembling hand-written assembler source which repeatedly
  loads the same constant value, across a binary size larger than the
  pc-relative fixup range for ldr instructions (4096 bytes). Such
  assembler source already uses explicit .ltorg instructions to emit
  constant pools with regular intervals. However if we try to reuse
  constants emitted in earlier pools, they end up out of range.

  This makes the output of the testcase match what binutils gas does
  (prior to this patch, it would fail to assemble).

  Differential Revision: https://reviews.llvm.org/D32847

This should fix "out of range pc-relative fixup value" errors, when

    [3 lines not shown]

FreeBSD — head ObsoleteFiles.inc, head/share/doc Makefile

In preparation for the removal of the roff toolchain, disconnect the
roff documentation from the build.

Those documents will be added to the doc tree and distributed as PDF from
the documentation website. As they are valuable has history, but do not match
current FreeBSD

Further more, the ascii format we were using to distribute them is not really
accurate for such documents.

more details:
https://lists.freebsd.org/pipermail/freebsd-arch/2017-May/018211.html

FreeBSD — head/sys/arm/mv mv_pci.c

Unmask legacy interrupts on Marvell PCIE controller

This patch fixes a bug introduced with commit:
r294510  "Remove an extra '!' found by clang 3.8."

'!' was removed without inverting the logic, which
broke PCIe legacy interrupts operation for Marvell
controllers.

Submitted by: Michal Mazur <mkm at semihalf.com>
Obtained from: Semihalf
Sponsored by: Netgate
Delta File
+1 -1 head/sys/arm/mv/mv_pci.c
+1 -1 1 file

FreeBSD — head/lib/libsysdecode sysdecode_socket_protocol.3 flags.c, head/usr.bin/truss syscalls.c

Improve the decoding of the third argument of the socket() call.

Decoding of the third argument depends on the first one. For doing this,
add a corresponding function to libsysdecode.

Thanks to jhb@ for suggesting this.

FreeBSD — head/sys/arm/mv mv_common.c

Add workaround for CESA MBUS windows with 4GB DRAM

Armada 38x SoC's equipped with 4GB DRAM suffer freeze
during CESA operation, if MBUS window opened at given
DRAM CS reaches end of the address space. Apply a workaround
by setting the window size to the closest possible
value, i.e. divide it by 2 (it has to be power-of-2).

Submitted by: Marcin Wojtas <mw at semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10724
Delta File
+16 -1 head/sys/arm/mv/mv_common.c
+16 -1 1 file

FreeBSD — head/sys/arm/mv mv_common.c

Fix PM recognition on recent Marvell boards

PM status is only supported on Kirkwood and Disvovery.
Cleanup the code to properly report its state on
other platforms.

Submitted by: Wojciech Macek <wma at semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10718
Delta File
+14 -5 head/sys/arm/mv/mv_common.c
+14 -5 1 file

FreeBSD — head/sys/arm/mv files.mv, head/sys/arm/mv/armada wdt.c

Introduce separate watchdog driver for Armada to fix phony DELAY

DELAY is a problematic routine called all over the kernel.
Armada38x using CA-9 CPUs are using mpcore timer to count events
and measure time but DELAY in the mpcore timer code is a weak
function reference and therefore will be replaced by the platform
implementation if the one is introduced. Since Armada38x uses
on-chip watchdog to which the driver is merged with the on-chip timer
driver there will be a platform DELAY implementation.
The latter however will not use any HW timers as it will not attempt
to configure any. Phony busy loop will be used instead.

To fix that we introduce a separate watchdog driver for Armada platforms,
(currently only A38X) and stop using Marvell timer driver. That
switches DELAY to the desired implementation.

Submitted by: Zbigniew Bodek <zbb at semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10710

FreeBSD — head/sys/arm/mv mvreg.h, head/sys/arm/mv/armada38x armada38x.c

Enable SCU Speculative linefills to L2 on Armada 38x

Submitted by: Marcin Wojtas <mw at semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10709

FreeBSD — head/sys/arm/mv mv_common.c

Fix memory corruption while configuring CPU windows on Marvell SoCs

Resolving CPU windows from localbus entry caused buffer overflow
and memory corruption. Fix wrong indexing and ensure the index
does not exceed table size.

Submitted by: Wojciech Macek <wma at semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10720
Delta File
+12 -0 head/sys/arm/mv/mv_common.c
+12 -0 1 file

FreeBSD — head/share/doc/papers/timecounter timecounter.ms

Fix rendering with modern groff

Reported by:        tj

FreeBSD — head/release/tools vmimage.subr

Enable DHCP and IPv6 autoconfig on non-cloud VM images.

PR:                203653
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Delta File
+5 -0 head/release/tools/vmimage.subr
+5 -0 1 file

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

Further expand the r318785 entry, noting vfs.zfs.debugflags can be
set in loader.conf(5), whereas vfs.zfs.debug_flags could not.

Submitted by:        avg
Sponsored by:        The FreeBSD Foundation

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

Document r312790, EC2 IPv6 by default.

Sponsored by:        The FreeBSD Foundation

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

Document r318660, Amazon EFS support in the NFS client.

Sponsored by:        The FreeBSD Foundation

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

Document r318660, various NFS client fixes.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/dev/vmware/vmxnet3 if_vmx.c

fix vmxnet3 crash when LRO is enabled

The crash can occur when all of the following conditions are true:
- a packet consists of multiple segements (requires LRO enabled)
- there has been a failure to allocate an mbuf for the packet and
  the packet has to be dropped
- a host (vmware) still owned at least one segment of the packet,
  so the driver had to wait for another interrupt to proceed to
  discarding the remaning segment(s)

Reviewed by:        rstone
MFC after:        2 weeks
Sponsored by:        Panzura
Differential Revision: https://reviews.freebsd.org/D10874
Delta File
+14 -0 head/sys/dev/vmware/vmxnet3/if_vmx.c
+14 -0 1 file

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

Document r318785, vfs.zfs.debug_flags -> vfs.zfs.debugflags rename.

Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/10 UPDATING

MFC r318863:
  Replace stale handbook URL with the proper oneb.
Delta File
+1 -1 stable/10/UPDATING
+1 -1 1 file

FreeBSD — stable/11 UPDATING

MFC r318863:
  Replace stale handbook URL with the proper one.
Delta File
+1 -1 stable/11/UPDATING
+1 -1 1 file

FreeBSD — head UPDATING

Replace stale handbook URL with the proper on.

MFC after:        0 days
Delta File
+1 -1 head/UPDATING
+1 -1 1 file

FreeBSD — user/pho/stress2/misc bio.sh

Improve error handling and return error status.

Sponsored by:        Dell EMC Isilon
Delta File
+26 -9 user/pho/stress2/misc/bio.sh
+26 -9 1 file

FreeBSD — head/etc/mtree BSD.root.dist

Create /net by default, for autofs.

MFC after:        2 weeks
Delta File
+2 -0 head/etc/mtree/BSD.root.dist
+2 -0 1 file

FreeBSD — head/sys/dev/sound/pcm buffer.c, head/sys/tools/sound snd_fxdiv_gen.awk

Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of
binary data from sound.ko and the kernel.

MFC after:                3 days

FreeBSD — head/lib Makefile

[lib] disable libc++experimental on mips platforms for now.

This breaks at least mips32 platform builds.

Reviewed by:        dim
Delta File
+1 -1 head/lib/Makefile
+1 -1 1 file

FreeBSD — head UPDATING

Bump UPDATING to cover the ath shuffle.
Delta File
+25 -0 head/UPDATING
+25 -0 1 file

FreeBSD — head/sys/dev/ath if_ath_rx.c, head/sys/dev/ath/ath_hal ah_desc.h ah_internal.h

[ath] [ath_hal] retire AH_SUPPORT_AR5416 changing anything.

Yes, the memory bloat is large, but it's 2017 and I'll fix it later
by making it runtime configurable / per-chip configurable if I ever need to.

FreeBSD — head/sys/dev/ath ah_osdep_ar5416.c ah_osdep_ar5212.c, head/sys/dev/ath/ath_dfs/null dfs_null.c

[ath] [ath_hal] (etc, etc) - begin the task of re-modularising the HAL.

In the deep past, when this code compiled as a binary module, ath_hal
built as a module.  This allowed custom, smaller HAL modules to be built.
This was especially beneficial for small embedded platforms where you
didn't require /everything/ just to run.

However, sometime around the HAL opening fanfare, the HAL landed here
as one big driver+HAL thing, and a lot of the (dirty) infrastructure
(ie, #ifdef AH_SUPPORT_XXX) to build specific subsets of the HAL went away.
This was retained in sys/conf/files as "ath_hal_XXX" but it wasn't
really floated up to the modules themselves.

I'm now in a position where for the reaaaaaly embedded boards (both the
really old and the last couple generation of QCA MIPS boards) having a
cut down HAL module and driver loaded at runtime is /actually/ beneficial.

This reduces the kernel size down by quite a bit.  The MIPS modules look
like this:

adrian at gertrude:~/work/freebsd/head-embedded/src % ls -l 
../root/mips_ap/boot/kernel.CARAMBOLA2/ath*ko
-r-xr-xr-x  1 adrian  adrian    5076 May 23 23:45 
../root/mips_ap/boot/kernel.CARAMBOLA2/ath_dfs.ko
-r-xr-xr-x  1 adrian  adrian  100588 May 23 23:45 

    [67 lines not shown]

FreeBSD — stable/10/sys/dev/cxgbe adapter.h t4_main.c

MFC r318014, r318091, r318125, and r318263.

r318014:
cxgbe(4): Fixes related to the knob that controls link autonegotiation.

- Do not leak the adapter lock in sysctl_autoneg.
- Accept only 0 or 1 as valid settings for autonegotiation.
- A fixed speed must be requested by the driver when autonegotiation is
  disabled otherwise the firmware will reject the l1cfg command.  Use
  the top speed supported by the port for now.

r318091:
cxgbe(4): Do not assume that if_qflush is always followed by inteface-down.

r318125:
Adjust whitespace and fix a comment.  No functional change.

r318263:
cxgbe(4): netmap-only interrupts for a VI do not have an associated rxq
or ofld_rxq and should be ignored by vi_intr_iq.

Sponsored by:        Chelsio Communications

FreeBSD — stable/11/sys/dev/cxgbe adapter.h t4_main.c

MFC r318014, r318091, r318125, and r318263.

r318014:
cxgbe(4): Fixes related to the knob that controls link autonegotiation.

- Do not leak the adapter lock in sysctl_autoneg.
- Accept only 0 or 1 as valid settings for autonegotiation.
- A fixed speed must be requested by the driver when autonegotiation is
  disabled otherwise the firmware will reject the l1cfg command.  Use
  the top speed supported by the port for now.

r318091:
cxgbe(4): Do not assume that if_qflush is always followed by inteface-down.

r318125:
Adjust whitespace and fix a comment.  No functional change.

r318263:
cxgbe(4): netmap-only interrupts for a VI do not have an associated rxq
or ofld_rxq and should be ignored by vi_intr_iq.

Sponsored by:        Chelsio Communications

FreeBSD — stable/10/release Makefile, stable/10/release/scripts pkg-stage.sh

MFC r318646:
 Allow PORTSDIR to be overridden in the pkg-stage target.

PR:                218393
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/11/usr.sbin/efivar efivar.8

MFC r318599, r318643:
 r318599 (bjk):
  Updates for efivar.8

  Fix spelling, appease igor and mandoc -Tlint, and adopt the
  language style to be more consistent with our corpus.

 r318643:
  Correct the "first appeared in" version for efivar(8).

Sponsored by:        The FreeBSD Foundation
Delta File
+16 -18 stable/11/usr.sbin/efivar/efivar.8
+16 -18 1 file