Displaying 1 50 of 331,709 commits (0.026s)

FreeBSD — stable/10/sys/amd64/amd64 fpu.c cpu_switch.S, stable/10/sys/i386/i386 swtch.s

MFC r335072, r335089, r335131, r335132:
Enable eager FPU context switch on i386 and amd64.

CVE:  CVE-2018-3665
Tested by:        emaste (smoke boot)

FreeBSD — head/usr.bin/ar ar.c read.c

usr.bin/ar: use standard 2-Clause FreeBSD license

Many licenses on ar files contained small variations from the standard
FreeBSD license text. To avoid license proliferation switch to the usual
2-clause FreeBSD license after obtaining permission from all copyright
holders.

Approved by:        jkoshy, kaiw, kientzle
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D14561
Delta File
+14 -12 head/usr.bin/ar/ar.c
+14 -12 head/usr.bin/ar/read.c
+14 -12 head/usr.bin/ar/util.c
+42 -36 3 files

FreeBSD — stable/11/sys/amd64/amd64 exception.S

MFC r332994 (by tychon):
Handle potential alignment adjustment of the exception frame by hardware.

FreeBSD — head Makefile.inc1 Makefile.libcompat, head/share/mk bsd.init.mk sys.mk

Reduce exec and fstat overhead for non-build targets.

This is mostly targetting 'make showconfig' and 'make test-system-*' for
the benefit of makeman and universe-one-clang work.

Sponsored by:        Dell EMC

FreeBSD — head/share/man/man5 src.conf.5

Regenerate for SYSTEM_LINKER
Delta File
+17 -1 head/share/man/man5/src.conf.5
+17 -1 1 file

FreeBSD — head Makefile.inc1 Makefile, head/share/mk bsd.linker.mk bsd.compiler.mk

Add WITH_SYSTEM_LINKER, on by default, that avoids building lld when possible.

This works similar to WITH_SYSTEM_COMPILER added in r300354.  It only
supports lld via WITH_LLD_BOOTSTRAP.

When both SYSTEM_COMPILER and SYSTEM_LINKER logic passes then libclang
will not build in cross-tools.  If either check fails though then
libclang is built.

The .info is reworked to notify when libclang will be built since if
either clang or lld needs to be rebuilt, but not the other, the
notification can lead to confusion on why "clang is building".

-fuse-ld= is not used with this method so some combinations of compiler
and linker are expected to fail.

A new 'make test-system-linker' target is added to see the logic results.

Makefile.inc1:
  CROSS_BINUTILS_PREFIX support had to be moved higher up so that XLD
  could be set and MK_LLD_BOOTSTRAP disabled before checking SYSTEM_LINKER
  logic as done with SYSTEM_COMPILER.  This also required moving where
  bsd.linker.mk was read since XLD needs to be set before parsing it.  This
  creates a situation where src.opts.mk can not test LINKER_FEATURES or
  add LLD_BOOTSTAP to BROKEN_OPTIONS.

    [4 lines not shown]

FreeBSD — head/lib/clang/libllvm Makefile

Fix sources needed for lld.

lld always needs these DWARF sources, as well as other default and extra
tools. XDL seems to be the best fit list.

Remove MK_LLD_IS_LD check from SRCS_MIW which is now reduced to just a
few files for llvm-objdump.

Sponsored by:        Dell EMC
Differential Revision:        https://reviews.freebsd.org/D15915
Delta File
+25 -25 head/lib/clang/libllvm/Makefile
+25 -25 1 file

FreeBSD — head Makefile.inc1, head/lib/clang/libllvm Makefile

Rework WITHOUT_LLD/TOOLCHAIN fix from r327892 for cross-tools.

MK_LLD is for the installed lld while MK_LLD_BOOTSTRAP is for the build
tool.  For WITH_SYSTEM_LINKER it is necesarry to separate the logic of
these two.  When building libllvm TOOLS_PREFIX will be defined and
MK_LLD_BOOTSTRAP should be checked instead.

Sponsored by:        Dell EMC
Differential Revision:        https://reviews.freebsd.org/D15837

FreeBSD — head Makefile.inc1, head/gnu/usr.bin/binutils/ld Makefile

Rework how the ld link is handled in WORLDTMP from r322811.

LLD_BOOTSTRAP (build) is independent of LLD_IS_LD (installed) so they
should not be based on each other.

This is related to upcoming WITH_SYSTEM_LINKER work.

Reviewed by:        emaste
Sponsored by:        Dell EMC
Differential Revision:        https://reviews.freebsd.org/D15836

FreeBSD — head/sys/arm64/arm64 pmap.c, head/sys/arm64/include pmap.h

Add pmap_mapdev_attr for arm64

This is needed for efifb.
arm and ricv pmap (the two arch with arm64 that uses subr_devmap) have very
different implementation so for now only add this for arm64.

Tested with efifb on Pine64 with a few other patches.

Reviewed by:        cognet
Differential Revision:        https://reviews.freebsd.org/D15294

FreeBSD — head/sys/arm64/rockchip if_dwc_rk.c

if_rk_dwc: Disable setting delays for now

The values for tx/rx delays differs accross the different DTS.
Mainline Linux set it to 0x24/0x18
Mostly-Vendor u-boot (the one maintained and developped) to 0x18/0x18
Mostly-Vendor linux (the one maintained and developped) to 0x26/0x11

By experience only 0x18/0x18 works so until the issue is resolved rely on
the bootloader settings.

FreeBSD — head/sys/arm64/rockchip rk_gpio.c

rk_gpio: Read the correct register for gpio read

Reported by:        jmcneill
Delta File
+1 -1 head/sys/arm64/rockchip/rk_gpio.c
+1 -1 1 file

FreeBSD — head/sys/arm64/rockchip if_dwc_rk.c

if_rk_dwc: Fix delays handling

The property are named {t,r}x_delay and not {t,r}-delay.
The upper bits of the register are a mask of which bits is allowed
to be written, set it otherwise we write nothing.
OF_getencprop returns <0 = for an error.

Pointy Hat: myself
Reported by:        jmcneill (delay and mask bits)

FreeBSD — head/sys/dev/ofw ofw_cpu.c

Attach dev.cpu nodes on powerpc SMT cores, using only the first found thread

Summary: In order to use cpufreq(4), a dev.cpu attachment must be created.  If
the IBM property is found denoting SMT, attach only to the first thread setup,
so that a cpufreq device can bind.

Reviewed by:        nwhitehorn
Differential Revision: https://reviews.freebsd.org/D15921
Delta File
+37 -4 head/sys/dev/ofw/ofw_cpu.c
+37 -4 1 file

FreeBSD — head/sys/kern subr_kdb.c kern_jail.c

Instead of using hand-rolled loops where not needed switch them
to FOREACH_PROC_IN_SYSTEM() to have a single pattern to look for.

Reviewed by:        kib
MFC after:        2 weeks
Sponsored by:        iXsystems, Inc.
Differential Revision:        https://reviews.freebsd.org/D15916

FreeBSD — head/sys/arm/arm generic_timer.c

Move the SYSINIT to allow userspace access to the ARM generic timer later
in the boot. It doesn't need to be early, so move it to the SI_ORDER_ANY
stage of SI_SUB_SMP.

Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/sys/arm/arm/generic_timer.c
+1 -1 1 file

FreeBSD — head/sys/dev/psci smccc.c

Move the SMCCC SYSINIT later in the boot so the psci driver has attached.

Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/sys/dev/psci/smccc.c
+1 -1 1 file

FreeBSD — head/sys/dev/psci smccc.h

Fix the SMCCC signatures, they are all 32-bit calls. This fixes SMCCC
version detection.

Sponsored by:        DARPA, AFRL
Delta File
+3 -3 head/sys/dev/psci/smccc.h
+3 -3 1 file

FreeBSD — head/share/man/man4 ddb.4, head/sys/kern vfs_cache.c

Sometimes it is helpful to get the path for a vnode.
Implement a ddb function walking the namecache to do this.

Reviewed by:                jhb, mjg
Inspired by:                gdb macro from jhb (old version)
Sponsored by:                iXsystems, Inc.
Differential Revision:        https://reviews.freebsd.org/D14898

FreeBSD — stable/11/sys/sys param.h

Bump the __FreeBSD_version after recent LinuxKPI updates to force
recompilation of external kernel modules.

This is a direct commit.

Sponsored by:   Mellanox Technologies
Delta File
+1 -1 stable/11/sys/sys/param.h
+1 -1 1 file

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux export.h module.h

MFC r334775:
Move the EXPORT_SYMBOL_XXX() function macros into own header file.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux kernel.h

MFC r334958:
Implement the kstrtobool() and kstrtobool_from_user() functions
in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/asm uaccess.h

MFC r334953:
Implement the user_access_begin(), user_access_end(), usafe_get_user() and
unsafe_put_user() function macros in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux slab.h

MFC r334778:
Define ARCH_KMALLOC_MINALIGN in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — head/sys/security/mac_veriexec veriexec_metadata.c veriexec_fingerprint.c

Fix build breakage in veriexec for 32-bit architectures.

fsid_t and ino_t are 64-bit entities, use uintmax_t typecast to ensure we
can print it on 32-bit or 64-bit architectures by using the %ju format for
prints.

Obtained from:        Juniper Networks, Inc.

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux time.h ktime.h

MFC r334777:
Wrap timespec64 into timespec in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux device.h

MFC r334774:
Implement the dev_pm_set_driver_flags() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux list.h

MFC r334720:
Make some list functions RCU safe in the LinuxKPI.
While at it rename hlist_add_after() into hlist_add_behind().

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux wait.h

MFC r334717:
Implement the __add_wait_queue_entry_tail() function in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux wait.h

MFC r334715:
Implement the might_sleep_if() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux wait.h

MFC r334714:
Rename two structure field members while keeping backwards compatibility in
the LinuxKPI. Add a comment saying in which Linux version this change was made.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux wait.h, stable/11/sys/compat/linuxkpi/common/src linux_schedule.c

MFC r334713:
Implement the init_wait_entry() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/asm atomic.h

MFC r334712 and r334718:
Implement the atomic_dec_if_positive() function in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux ktime.h

MFC r334711:
Implement the ktime_compare() and ktime_after() functions in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/asm msr.h

MFC r334710:
Implement the rdmsrl_safe() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux workqueue.h, stable/11/sys/compat/linuxkpi/common/src linux_work.c

MFC r334664:
Declare and set the global "system_highpri_wq" workqueue structure pointer
in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux workqueue.h

MFC r334663:
Implement the INIT_DELAYED_WORK_ONSTACK() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux sched.h

MFC r334661:
Implement the task_pid_vnr() function macro in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux mm.h

MFC r334660:
Add "access" function pointer to the "vm_operations_struct" structure
in the LinuxKPI. While at it document when to use the "virtual_address" or
the "address" field in the "vm_fault" structure.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux math64.h

MFC r334659:
Implement mul_u32_u32() function in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux timer.h

MFC r334658:
Implement timer_setup() and from_timer() function macros in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux scatterlist.h

MFC r334484:
Implement the __sg_alloc_table_from_pages() function based on the existing
sg_alloc_table_from_pages() function in the LinuxKPI.

This basically allow segments to have a limit, max_segment.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux radix-tree.h, stable/11/sys/compat/linuxkpi/common/src linux_radix.c

MFC r334483:
Implement radix_tree_iter_delete() in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux hrtimer.h, stable/11/sys/compat/linuxkpi/common/src linux_hrtimer.c

MFC r334482:
Improve high resolution timer support in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/sys/compat/linuxkpi/common/include/linux gfp.h

MFC r334481:
Add more GFP macro definitions in the LinuxKPI.

Submitted by:        Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Mellanox Technologies
Sponsored by:        Limelight Networks

FreeBSD — stable/11/usr.sbin/sysrc sysrc

MFC r334303: sysrc(8): Test variable names for invalid characters

PR:                bin/187461
Reported by:        ebay at looksharp.net
Sponsored by:        Smule, Inc.
Delta File
+12 -0 stable/11/usr.sbin/sysrc/sysrc
+12 -0 1 file

FreeBSD — stable/11/lib/libdpv dpv.3, stable/11/lib/libfigpar figpar.3

MFC r330878-r330879, r330939, r330948: Man-page updates

r330878: Fix typo and lint/igor warnings
r330879: Fix lint/igor warnings
r330939: Use full month in dpv(3), figpar(3), and bsdconfig(8) manuals
r330948: Bump copyright following recent changes

Sponsored by:        Smule, Inc.

FreeBSD — stable/10/lib/libdpv dialog_util.c util.c

dpv(3): MFC r330943, r335264

r330943:
Fix bad error messages from dpv(3)

Before = dpv: <__func__>: posix_spawnp(3): No such file or directory
 After = dpv: <path/cmd>: No such file or directory

Most notably, show the 2nd argument being passed to posix_spawnp(3)
so we know what path/cmd failed.

Also, we don't need to have "posix_spawnp(3)" in the error message
nor the function because that can [a] change and [b] traversed using
a debugger if necessary.

r335264:
Fix comparison between pointer and char literal

PR:                misc/204252
Reported by:        David Binderman <dcb314 at hotmail.com>
Sponsored by:        Smule, Inc.

FreeBSD — stable/11/lib/libdpv dialog_util.c util.c

dpv(3): MFC r330943, r335264

r330943:
Fix bad error messages from dpv(3)

Before = dpv: <__func__>: posix_spawnp(3): No such file or directory
 After = dpv: <path/cmd>: No such file or directory

Most notably, show the 2nd argument being passed to posix_spawnp(3)
so we know what path/cmd failed.

Also, we don't need to have "posix_spawnp(3)" in the error message
nor the function because that can [a] change and [b] traversed using
a debugger if necessary.

r335264:
Fix comparison between pointer and char literal

PR:                misc/204252
Reported by:        David Binderman <dcb314 at hotmail.com>
Sponsored by:        Smule, Inc.

FreeBSD — stable/11/usr.sbin/sysrc sysrc

MFC r335277:

sysrc(8): Exit with failure on API error

Fix exit status when f_sysrc_set() fails. Errors in the underlying API
provided by bsdconfig(8) -- /usr/share/bsdconfig/sysrc.subr -- were not
being communicated back to the command-line. This was affecting ansible
modules using sysrc as they were not able to accurately test for error.

PR:                bin/211448
Reported by:        Christian Schwarz <me at cschwarz.com>
Sponsored by:        Smule, Inc.
Delta File
+5 -3 stable/11/usr.sbin/sysrc/sysrc
+5 -3 1 file