]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoInstall dtrace.h and dependencies
Alex Richardson [Wed, 6 Jan 2021 15:39:10 +0000 (15:39 +0000)]
Install dtrace.h and dependencies

This makes the minimum amount of changes to allow inclusion of dtrace.h
without all the solaris compatibility headers. Installing dtrace.h allows
compiling consumers of libdtrace (e.g. https://github.com/tmetsch/python-dtrace)
without requiring a copy of the source tree.
For python-dtrace I worked around this in https://github.com/tmetsch/python-dtrace/commit/58019c9a12022203a9ffda286dd8b41f1a5ace42
but being able to build the library without installed sources would be
extremely useful.

Reviewed By: gnn
Differential Revision: https://reviews.freebsd.org/D27884

3 years agoReference newfs_msdos(8) from the newfs(8) manual
Mateusz Piotrowski [Thu, 7 Jan 2021 09:22:20 +0000 (10:22 +0100)]
Reference newfs_msdos(8) from the newfs(8) manual

PR: 252484
Reported by: Graham Perrin <grahamperrin@gmail.com>
MFC after: 3 days

3 years agonetmap: bridge: fix NS_MOREFRAG support
Vincenzo Maffione [Thu, 7 Jan 2021 07:00:43 +0000 (07:00 +0000)]
netmap: bridge: fix NS_MOREFRAG support

Support for NS_MOREFRAG is broken, as NS_MOREFRAG is copied from
the TX slot to the RX slot rather than the other way around.
Also, the NS_MOREFRAG must be copied also in case of packet
copy (no zerocopy).

Reported by: rajesh1.kumar_amd.com
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D27980

3 years agoAdd my name/handle/mentor to committers-ports.dot
Neel Chauhan [Thu, 7 Jan 2021 01:30:21 +0000 (17:30 -0800)]
Add my name/handle/mentor to committers-ports.dot

3 years agoFix bug in expanding lost+found direct blocks.
Kirk McKusick [Thu, 7 Jan 2021 00:31:33 +0000 (16:31 -0800)]
Fix bug in expanding lost+found direct blocks.

Reported by:  Peter Holm
Sponsored by: Netflix

3 years agocache: unengrish the comment in previous commit
Mateusz Guzik [Wed, 6 Jan 2021 23:44:05 +0000 (23:44 +0000)]
cache: unengrish the comment in previous commit

Reported by: rpokala, brd

3 years agopfctl: Fix NOCLEAN build
Kristof Provost [Wed, 6 Jan 2021 21:07:25 +0000 (22:07 +0100)]
pfctl: Fix NOCLEAN build

We've created a new pf_ruleset.c file for pfctl and no longer use the
kernel vrsion, but the build system doesn't handle this dependency
change correctly. Delete the dependency file if it contains the kernel
version of the file.

MFC after: 2 weeks

3 years agoarm64: QorIQ: gpio: return BUS_PROBE_DEFAULT
Marcin Wojtas [Wed, 6 Jan 2021 14:18:53 +0000 (15:18 +0100)]
arm64: QorIQ: gpio: return BUS_PROBE_DEFAULT

There is no reason this driver can't return default probe value.

Submitted by: Artur Rojek <ar@semihalf.com>
Reviewed by: emaste, mmel
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D26869

3 years agoarm64: QorIQ: gpio: Cleanup qoriq_gpio_* helpers
Marcin Wojtas [Wed, 6 Jan 2021 14:15:55 +0000 (15:15 +0100)]
arm64: QorIQ: gpio: Cleanup qoriq_gpio_* helpers

Replace various hw reg bit set/clear helpers with a universal
`qoriq_gpio_set` function.

Submitted by: Artur Rojek <ar@semihalf.com>
Reviewed by: mmel
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D26868

3 years agoarm64: QorIQ: gpio: Style cleanups
Marcin Wojtas [Wed, 6 Jan 2021 14:10:42 +0000 (15:10 +0100)]
arm64: QorIQ: gpio: Style cleanups

Make the code more conformant to style(9) and improve the general
readability.

This patch does not alter the driver logic.

Submitted by: Artur Rojek <ar@semihalf.com>
Reviewed by: mmel
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D26867

3 years agobectl(8): sync man page and help text
Robert Wing [Wed, 6 Jan 2021 19:38:25 +0000 (10:38 -0900)]
bectl(8): sync man page and help text

Sync man page with behavior of bectl(8).

Sync help text with man page.

PR:             246697
Reported by: olgeni
Submitted by:   olgeni (with changes)
Reviewed by:    kevans, olgeni
Approved by:    kevans (mentor)
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D27482

3 years agogstat(8): Bump .Dd
Fernando Apesteguía [Wed, 6 Jan 2021 18:03:06 +0000 (19:03 +0100)]
gstat(8): Bump .Dd

Forgotten in cfaa2958dc44c20f56a19fe490ee4d7c02f50bef

PR: 251313
Differential Revision: https://reviews.freebsd.org/D27815

3 years agogstat(8): Document interactive keyboard commands
Fernando Apesteguía [Tue, 29 Dec 2020 21:07:11 +0000 (22:07 +0100)]
gstat(8): Document interactive keyboard commands

gstat(8) allows for <, >, c, f, F and q while in interactive mode.

PR: 251313
Submitted by: bojan_petrovic@fastmail.fm
Approved by: manpages (0mp@)
Differential Revision: https://reviews.freebsd.org/D27815

3 years agoFix a couple of typos and formatting issues
Mateusz Piotrowski [Wed, 6 Jan 2021 15:19:15 +0000 (16:19 +0100)]
Fix a couple of typos and formatting issues

3 years agovtfontcvt is part of bootstrap toolset and should always be built
Toomas Soome [Wed, 6 Jan 2021 12:45:40 +0000 (14:45 +0200)]
vtfontcvt is part of bootstrap toolset and should always be built

Reported by: Peter Jeremy

3 years agoloader: instead of hw.vga.textmode, use screen.textmode
Toomas Soome [Wed, 6 Jan 2021 11:46:34 +0000 (13:46 +0200)]
loader: instead of hw.vga.textmode, use screen.textmode

hw.vga.textmode is directing VT VGA backend to use text mode.

The default screen mode for BIOS loader is text, and default
screen mode for VT VGA backend is graphics (unless we are running on
hypervisor or hw.vga.textmode is set to 1). Using hw.vga.textmode
for loader does remove possibility to have graphical mode VT VGA with
text mode loader.

screen.textmode can have possible values "0" to disable text mode,
and "1" to set text mode.

3 years agoloader: remove left over call to unsetenv()
Toomas Soome [Wed, 6 Jan 2021 11:56:48 +0000 (13:56 +0200)]
loader: remove left over call to unsetenv()

We do not touch kern.vt.fb.default_mode.

3 years agopkg(7): rework the arguments handling
Baptiste Daroussin [Wed, 6 Jan 2021 10:35:22 +0000 (11:35 +0100)]
pkg(7): rework the arguments handling

Rework the arguments handling around using getopt_long:
* add long option support
* add -4 and -6 support to enforce ipv4 or ipv6

While here fix a regression which occured between FreeBSD 12.1 and
FreeBSD 12.2 where pkg bootstrap -y stopped working

PR: 252270
MFC after: 2 weeks
Submitted by: evilham <contact@evilham.com>
Differential Revision: https://reviews.freebsd.org/D27860

3 years agoloader: rewrite vidc_install_font
Toomas Soome [Tue, 5 Jan 2021 22:09:30 +0000 (00:09 +0200)]
loader: rewrite vidc_install_font

Instead of trying to set reasonable register values, save significant
register values, then prepare for font upload and then restore
registers from saved data.

This seems to fix text mode for most cases where text mode breakage
was reported.

3 years agocache: stop pre-checking seqc when starting the lookup
Mateusz Guzik [Wed, 6 Jan 2021 06:12:58 +0000 (07:12 +0100)]
cache: stop pre-checking seqc when starting the lookup

Tested by: pho

3 years agovfs: add vn_seqc_read_notmodify
Mateusz Guzik [Wed, 6 Jan 2021 06:12:49 +0000 (07:12 +0100)]
vfs: add vn_seqc_read_notmodify

3 years agoseqc: add seqc_read_notmodify
Mateusz Guzik [Wed, 6 Jan 2021 06:11:15 +0000 (07:11 +0100)]
seqc: add seqc_read_notmodify

The routine can be used when the caller does not expect to ever have to
wait for anything. Checking later with seqc_consistent retains all the
guarantees.

3 years agocache: skip checking for spurious slashes if possible
Mateusz Guzik [Fri, 1 Jan 2021 04:05:04 +0000 (05:05 +0100)]
cache: skip checking for spurious slashes if possible

Tested by: pho

3 years agocache: combine fast path enabled status into one flag
Mateusz Guzik [Fri, 1 Jan 2021 07:06:12 +0000 (08:06 +0100)]
cache: combine fast path enabled status into one flag

Tested by: pho

3 years agocache: split handling of 0 and non-0 error codes
Mateusz Guzik [Thu, 31 Dec 2020 20:41:32 +0000 (21:41 +0100)]
cache: split handling of 0 and non-0 error codes

Tested by: pho

3 years agocache: deinline state handling
Mateusz Guzik [Thu, 31 Dec 2020 20:23:08 +0000 (21:23 +0100)]
cache: deinline state handling

The intent is to reduce branchfest when finishing the lookup.

Tested by: pho

3 years agocache: stop setting cn_nameptr on entry as matches cn_pnbuf already
Mateusz Guzik [Tue, 5 Jan 2021 08:47:01 +0000 (09:47 +0100)]
cache: stop setting cn_nameptr on entry as matches cn_pnbuf already

While here tidy up other asserts.

3 years agopfctl: Stop sharing pf_ruleset.c with the kernel
Kristof Provost [Thu, 24 Dec 2020 15:02:04 +0000 (16:02 +0100)]
pfctl: Stop sharing pf_ruleset.c with the kernel

Now that we've split up the datastructures used by the kernel and
userspace there's essentually no more overlap between the pf_ruleset.c
code used by userspace and kernelspace.

Copy the userspace bits to the pfctl directory and stop using the kernel
file.

Reviewed by: philip
MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27764

3 years agopf: Convert pfi_kkif to use counter_u64
Kristof Provost [Sun, 13 Dec 2020 16:20:02 +0000 (17:20 +0100)]
pf: Convert pfi_kkif to use counter_u64

Improve caching behaviour by using counter_u64 rather than variables
shared between cores.

The result of converting all counters to counter(9) (i.e. this full
patch series) is a significant improvement in throughput. As tested by
olivier@, on Intel Xeon E5-2697Av4 (16Cores, 32 threads) hardware with
Mellanox ConnectX-4 MCX416A-CCAT (100GBase-SR4) nics we see:

x FreeBSD 20201223: inet packets-per-second
+ FreeBSD 20201223 with pf patches: inet packets-per-second
+--------------------------------------------------------------------------+
|                                                                        + |
| xx                                                                     + |
|xxx                                                                    +++|
||A|                                                                       |
|                                                                       |A||
+--------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   5       9216962       9526356       9343902     9371057.6     116720.36
+   5      19427190      19698400      19502922      19546509     109084.92
Difference at 95.0% confidence
        1.01755e+07 +/- 164756
        108.584% +/- 2.9359%
        (Student's t, pooled s = 112967)

Reviewed by: philip
MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27763

3 years agopf: Allocate and free pfi_kkif in separate functions
Kristof Provost [Sun, 13 Dec 2020 10:36:54 +0000 (11:36 +0100)]
pf: Allocate and free pfi_kkif in separate functions

Factor out allocating and freeing pfi_kkif structures. This will be
useful when we change the counters to be counter_u64, so we don't have
to deal with that complexity in the multiple locations where we allocate
pfi_kkif structures.

No functional change.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27762

3 years agopf: Split pfi_kif into a user and kernel space structure
Kristof Provost [Sat, 12 Dec 2020 14:14:56 +0000 (15:14 +0100)]
pf: Split pfi_kif into a user and kernel space structure

No functional change.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27761

3 years agopf: Change pf_krule counters to use counter_u64
Kristof Provost [Sat, 5 Dec 2020 20:41:42 +0000 (21:41 +0100)]
pf: Change pf_krule counters to use counter_u64

This improves the cache behaviour of pf and results in improved
throughput.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27760

3 years agopf: Remove unused fields from pf_krule
Kristof Provost [Sat, 5 Dec 2020 13:38:12 +0000 (14:38 +0100)]
pf: Remove unused fields from pf_krule

The u_* counters are used only to communicate with userspace, as
userspace cannot use counter_u64. As pf_krule is not passed to userspace
these fields are now obsolete.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27759

3 years agopf: Split pf_rule into kernel and user space versions
Kristof Provost [Sat, 5 Dec 2020 13:32:54 +0000 (14:32 +0100)]
pf: Split pf_rule into kernel and user space versions

No functional change intended.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27758

3 years agopf: Migrate pf_rule and related structs to pf.h
Kristof Provost [Thu, 3 Dec 2020 16:17:39 +0000 (17:17 +0100)]
pf: Migrate pf_rule and related structs to pf.h

As part of the split between user and kernel mode structures we're
moving all user space usable definitions into pf.h.

No functional change intended.

MFC after:      2 weeks
Sponsored by:   Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27757

3 years agopf: Use counter_u64 in pf_src_node
Kristof Provost [Fri, 13 Nov 2020 19:31:51 +0000 (20:31 +0100)]
pf: Use counter_u64 in pf_src_node

Reviewd by: philip
MFC after:      2 weeks
Sponsored by:   Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27756

3 years agopf: Split pf_src_node into a kernel and userspace struct
Kristof Provost [Wed, 23 Dec 2020 13:51:52 +0000 (14:51 +0100)]
pf: Split pf_src_node into a kernel and userspace struct

Introduce a kernel version of struct pf_src_node (pf_ksrc_node).

This will allow us to improve the in-kernel data structure without
breaking userspace compatibility.

Reviewed by: philip
MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27707

3 years agoFix devinfo typo.
Alexander Motin [Tue, 5 Jan 2021 19:56:23 +0000 (14:56 -0500)]
Fix devinfo typo.

Submitted by: Nick Wolff <darkfiberiru@gmail.com>
MFC after:  1 week
Differential Revision: https://reviews.freebsd.org/D27981

3 years agoarm64: genet: Add bcm2711-genet-v5 compatible
Emmanuel Vadot [Tue, 5 Jan 2021 19:50:43 +0000 (20:50 +0100)]
arm64: genet: Add bcm2711-genet-v5 compatible

Later dtb from the RPI Foundation removed the brcm,genet-v5 compatible
for some unknown reason, add brcm,bcm2711-genet-v5 to the list of compatible
device for if_genet

3 years agoUPDATING: we are now in 2021, bye 2020
Baptiste Daroussin [Tue, 5 Jan 2021 16:16:46 +0000 (17:16 +0100)]
UPDATING: we are now in 2021, bye 2020

Reported by: N.J. Mann <njm@njm.me.uk>

3 years agortld: map without PROT_EXEC for relocation
Ed Maste [Mon, 4 Jan 2021 18:55:44 +0000 (13:55 -0500)]
rtld: map without PROT_EXEC for relocation

This makes text segment relocation work under W^X.

Submitted by: Greg V <greg@unrelenting.technology> (original version)
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D27953

3 years agoncurses: document the change requires a clean build
Baptiste Daroussin [Tue, 5 Jan 2021 15:38:05 +0000 (16:38 +0100)]
ncurses: document the change requires a clean build

Reporter by: cy

3 years agoAdd some examples to script.1
Mateusz Piotrowski [Tue, 5 Jan 2021 15:28:32 +0000 (16:28 +0100)]
Add some examples to script.1

While here:

- Split synopsis into two parts. The first explains how to record
  sessions, while the second one explains how to replay (some of)
  the recorded sessions.
- Fix the -width argument of the environment variables list.

MFC after: 1 week

3 years agoImprove readability of the options list
Mateusz Piotrowski [Tue, 5 Jan 2021 14:46:56 +0000 (15:46 +0100)]
Improve readability of the options list

MFC after: 3 days

3 years agoncurses: only keep the version with widechar support
Baptiste Daroussin [Mon, 4 Jan 2021 16:29:40 +0000 (17:29 +0100)]
ncurses: only keep the version with widechar support

Only keep the widechar version of ncurses as libncursesw.so.9

Keep the old name to avoid breaking the ABI compatibility (the non
widechar version libncurses.so.9 is not binary compatible with
libncursesw.so.9) since all ports and base are already only linking
against the widechar version we can simply remove libncurses.so.9

Since the .9 version only lived in the dev branch and never ended in a
release, it is simply removed and not added to any binary compat
package.

Add symlinks to keep build time compatibility for anyone linking against
-lncurses

3 years agoAdd the missing pmcstat log entries
Andrew Turner [Mon, 4 Jan 2021 18:16:10 +0000 (18:16 +0000)]
Add the missing pmcstat log entries

Sponsored by: Innovate UK

3 years agoAdd missing structs to pmclog_entry
Andrew Turner [Mon, 4 Jan 2021 17:44:10 +0000 (17:44 +0000)]
Add missing structs to pmclog_entry

This is used to size allocations so needs to incude all log structs
to ensure its size is correct.

Sponsored by: Innovate UK

3 years agoloader: only use vidc_install_font() with vga controller
Toomas Soome [Mon, 4 Jan 2021 22:43:39 +0000 (00:43 +0200)]
loader: only use vidc_install_font() with vga controller

If the controller does not support VGA, we should not
touch VGA registers.

3 years agoloader: vidc_load_palette() does not need arguments
Toomas Soome [Mon, 4 Jan 2021 21:29:43 +0000 (23:29 +0200)]
loader: vidc_load_palette() does not need arguments

Remove left over argument from vidc_load_palette.

3 years agoHonor the vm page's PG_NODUMP flag on arm and i386.
Alan Cox [Mon, 4 Jan 2021 21:59:05 +0000 (15:59 -0600)]
Honor the vm page's PG_NODUMP flag on arm and i386.

Reviewed by: kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27949

3 years agoRemove now-unused RT_GATEWAY* definitions.
Alexander V. Chernikov [Mon, 4 Jan 2021 21:45:46 +0000 (21:45 +0000)]
Remove now-unused RT_GATEWAY* definitions.

They were used to simplify nexthop transition, hence not needed
 anymore.

3 years agocap_sysctl: expose structures and variables
Mariusz Zaborski [Mon, 4 Jan 2021 19:56:07 +0000 (20:56 +0100)]
cap_sysctl: expose structures and variables

Expose structures and variables that may be used on systems
build without Casper support.

3 years agocasper: convert macros to inline functions
Mariusz Zaborski [Mon, 4 Jan 2021 19:50:58 +0000 (20:50 +0100)]
casper: convert macros to inline functions

In libcasper, the first argument to the function is a structure that
represents a connection to Casper. On systems without Casper, macros
are used to interpose the Casper functions to standard libc ones.
This may cause errors/warnings that the variable is not used.
With the inline function, there is no such problem.

3 years agolib9p: fix building on systems without capser
Mariusz Zaborski [Mon, 4 Jan 2021 19:48:48 +0000 (20:48 +0100)]
lib9p: fix building on systems without capser

PR: 252353

3 years agoSupport overflow count in hwpmc on arm64
Andrew Turner [Tue, 29 Dec 2020 12:44:45 +0000 (12:44 +0000)]
Support overflow count in hwpmc on arm64

We increment the overflow count when receiving an overflow interrupt
with special care to check if it happens while reading the event counter.

Sponsored by: Innovate UK

3 years agoloader: fix powerpc build with gfx_fb
Toomas Soome [Mon, 4 Jan 2021 16:51:58 +0000 (16:51 +0000)]
loader: fix powerpc build with gfx_fb

Need to add stub data and gfx functions to make linking happy.

3 years agoloader: fix mips build with gfx_fb
Toomas Soome [Mon, 4 Jan 2021 16:41:04 +0000 (16:41 +0000)]
loader: fix mips build with gfx_fb

Need to add stub data and gfx functions to make linking happy.

3 years agoarm64: rockchip: rk_clk_mux: Tell the clk framework if we didn't change the clock
Emmanuel Vadot [Mon, 4 Jan 2021 16:30:00 +0000 (17:30 +0100)]
arm64: rockchip: rk_clk_mux: Tell the clk framework if we didn't change the clock

Otherwise the clk framework will not pass the freq change request to the clock
parents.
Fix d03fd8ede2c4
Reported by: br

3 years agoinclude: Use INCSGROUPS for a few files
Emmanuel Vadot [Mon, 14 Dec 2020 17:56:56 +0000 (18:56 +0100)]
include: Use INCSGROUPS for a few files

Instead of using install directly use INCSGROUPS for them.
All those files are the ones we installed when the directory have more .h
files that we don't want to install so they aren't using the LSUBDIR stuff.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27612

3 years agoinclude: Tag the last includes files as part of the -dev package
Emmanuel Vadot [Tue, 15 Dec 2020 12:50:00 +0000 (13:50 +0100)]
include: Tag the last includes files as part of the -dev package

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27618

3 years agopkgbase: rename PKGSIGNKEY to PKG_REPO_SIGNING_KEY
Emmanuel Vadot [Mon, 4 Jan 2021 15:23:10 +0000 (16:23 +0100)]
pkgbase: rename PKGSIGNKEY to PKG_REPO_SIGNING_KEY

this way, it'll be automatically picked up by poudriere
That's quite handy when building pkgbase!

Submitted by: Mina Galić <me@igalic.co>
Reviewed By: bapt, bcr (manpages)
Differential Revision: https://reviews.freebsd.org/D27690

3 years agobsd.incs.mk: Add support to override tags for a specific include group
Emmanuel Vadot [Mon, 14 Dec 2020 17:53:34 +0000 (18:53 +0100)]
bsd.incs.mk: Add support to override tags for a specific include group

With this patch if a Makefile is using the INCSGROUPS mechanisms it can
override the default package for specific includes files using
GROUPPACKAGE=      mynewpackage

While here add a few comments after endif/endfor so it's easier to read.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27611

3 years agopkgbase: Put the last rc files in the rc package
Emmanuel Vadot [Mon, 21 Dec 2020 23:17:17 +0000 (00:17 +0100)]
pkgbase: Put the last rc files in the rc package

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27718

3 years agopkgbase: Install atf and kyua in the tests package
Emmanuel Vadot [Mon, 21 Dec 2020 22:36:31 +0000 (23:36 +0100)]
pkgbase: Install atf and kyua in the tests package

While here make sure that all tests dirs are taggued correctly.

Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D27714

3 years agopkgbase: Install libxo test files in the tests package
Emmanuel Vadot [Mon, 21 Dec 2020 22:35:53 +0000 (23:35 +0100)]
pkgbase: Install libxo test files in the tests package

Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D27713

3 years agomk: Set the DIR tags based on the files one
Emmanuel Vadot [Mon, 21 Dec 2020 22:20:28 +0000 (23:20 +0100)]
mk: Set the DIR tags based on the files one

Otherwise we loose the info as we use bsd.dirs.mk for creating directories.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27712

3 years agopkgbase: Put ppp in it's own package
Emmanuel Vadot [Mon, 21 Dec 2020 17:35:12 +0000 (18:35 +0100)]
pkgbase: Put ppp in it's own package

ppp uses libalias modules which now belong in the natd package.
Avoid bringing a dependancy on natd for the utilities package.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D27711

3 years agopkgbase: Put libalias in the natd package
Emmanuel Vadot [Mon, 21 Dec 2020 17:34:36 +0000 (18:34 +0100)]
pkgbase: Put libalias in the natd package

natd is the main user of the libalias* modules, put them together.

Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D27710

3 years agopkgbase: Put zoneinfo file in their own package
Emmanuel Vadot [Mon, 21 Dec 2020 16:54:23 +0000 (17:54 +0100)]
pkgbase: Put zoneinfo file in their own package

Those files take some amount of diskspace and one might not want them
installed on some situation (mfsdisk, small embedded system etc ...)

Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D27709

3 years agopkgbase: Move bectl to the runtime package
Emmanuel Vadot [Mon, 21 Dec 2020 15:00:02 +0000 (16:00 +0100)]
pkgbase: Move bectl to the runtime package

runtime contain what is needed to boot in single user and repair a
system, bectl could be handy to have in this situation.

Differential Revision: https://reviews.freebsd.org/D27708

3 years agoRemove a space I missed in previous commit
Poul-Henning Kamp [Mon, 4 Jan 2021 14:53:35 +0000 (14:53 +0000)]
Remove a space I missed in previous commit

3 years agomvneta: Fix 64-bit MIB reads
Mark Johnston [Mon, 4 Jan 2021 13:22:21 +0000 (08:22 -0500)]
mvneta: Fix 64-bit MIB reads

It appears we must read MIB values as 2 4-byte words, lower address
first.  A single 8-byte MIB read returns the value with the lower 4
bytes copied into the upper 4 bytes, resulting in bogus byte counter
values.

Reviewed by: mw
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D27870

3 years agomd: Fix a race in mdstart_swap()
Mark Johnston [Mon, 4 Jan 2021 13:21:57 +0000 (08:21 -0500)]
md: Fix a race in mdstart_swap()

Release a grabbed page's busy state only after marking it as referenced.
Otherwise there exists a narrow window where the page could be freed
before the update.  Before r356902 this was not a problem since the
object lock was held.

Discussed with: kib
Sponsored by: The FreeBSD Foundation

3 years agoUse the actual credentials to create the /dev/nmdm* devices.
Poul-Henning Kamp [Mon, 4 Jan 2021 13:18:47 +0000 (13:18 +0000)]
Use the actual credentials to create the /dev/nmdm* devices.

This lets plain users create nmdm pairs, which is useful amongst
other things for running retro-computing emulators etc.

3 years agoRemove -g option support which was removed from bhyve in
Poul-Henning Kamp [Mon, 4 Jan 2021 13:15:50 +0000 (13:15 +0000)]
Remove -g option support which was removed from bhyve in
c4df8cbfde53c376d93f439eac3f45a7b4fc705e

3 years agosbin/camcontrol: use calloc/strlcpy where appropriate.
Xin LI [Mon, 4 Jan 2021 06:52:28 +0000 (22:52 -0800)]
sbin/camcontrol: use calloc/strlcpy where appropriate.

MFC after: 2 weeks

3 years agorockchip: add audio-related clocks to the CRU driver
Oleksandr Tymoshenko [Wed, 30 Dec 2020 00:25:52 +0000 (16:25 -0800)]
rockchip: add audio-related clocks to the CRU driver

- Add I2S and CODEC clocks to CRU driver
- Add support for gate selection to frac clock
- Add setfreq support to mux clock

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D27831

3 years agosh/tests: Add a second kind of binary scripts without #!
Jilles Tjoelker [Sun, 3 Jan 2021 20:27:50 +0000 (21:27 +0100)]
sh/tests: Add a second kind of binary scripts without #!

One of the reasons for git commit
e0f5c1387df23c8c4811f5b24a7ef6ecac51a71a was to make "actually portable
executables" work. Add a test that is more like those.

MFC after: 1 week

3 years agofortune(6): Add EXIT STATUS and HISTORY sections
Gordon Bergling [Sun, 3 Jan 2021 22:50:18 +0000 (23:50 +0100)]
fortune(6): Add EXIT STATUS and HISTORY sections

Obtained from: OpenBSD
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27941

3 years agocache: drop the now spurious doomed check when crossing a mount point
Mateusz Guzik [Sun, 3 Jan 2021 07:35:22 +0000 (08:35 +0100)]
cache: drop the now spurious doomed check when crossing a mount point

3 years agovfs: keep seqc unchanged as long as the vnode is accessible via SMR
Mateusz Guzik [Sun, 3 Jan 2021 07:34:08 +0000 (08:34 +0100)]
vfs: keep seqc unchanged as long as the vnode is accessible via SMR

3 years agobitset.9: add missing MLINKS
Ryan Libby [Sun, 3 Jan 2021 20:52:21 +0000 (12:52 -0800)]
bitset.9: add missing MLINKS

Add MLINKS for new bitset(9) APIs in r364796 /
f8782001804f674dc3aff53053af5ebc3c199f02 and
ae4a8e52072a87bfd49d553b9b14450c626269f8.

Reported by: trasz
Reviewed by: cem
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D27944

3 years agolibprivatezstd: Restrict symbol visibility similar to upstream
Conrad Meyer [Sun, 3 Jan 2021 19:26:01 +0000 (11:26 -0800)]
libprivatezstd: Restrict symbol visibility similar to upstream

We have to relax three symbols to dynamically link zstd(1), but the rest
are the same.

3 years agoloader: fix uboot build with gfx_fb
Toomas Soome [Sun, 3 Jan 2021 10:26:48 +0000 (12:26 +0200)]
loader: fix uboot build with gfx_fb

Need to add stub data and gfx functions to make linking happy.

3 years agoFix vnode locking bug in fuse_vnop_copy_file_range
Alan Somers [Fri, 1 Jan 2021 20:49:30 +0000 (13:49 -0700)]
Fix vnode locking bug in fuse_vnop_copy_file_range

MFC-With: 92bbfe1f0d1f1c4436d1f064a16e5aaf682526ba
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D27938

3 years agobhyve: fix build without casper/capsicum support
Mariusz Zaborski [Sun, 3 Jan 2021 17:17:04 +0000 (18:17 +0100)]
bhyve: fix build without casper/capsicum support

Fix typo introduced in 966026246e62769f3bcd8247a47fe0f4f0433aba.

Pointed out by: jbeich

3 years agosendfile: Clear page pointers when handling a pager error
Mark Johnston [Sun, 3 Jan 2021 16:35:42 +0000 (11:35 -0500)]
sendfile: Clear page pointers when handling a pager error

When INVARIANTS is configred, the sendfile_iodone() callback verifies
that pages attached to the sendfile header are wired, but we unwire all
such pages after a synchronous pager error, before calling
sendfile_iodone().

Reported by: pho
Tested by: pho
Sponsored by: The FreeBSD Foundation

3 years agocam: Remove Giant handling from cam_sim_alloc()
Mark Johnston [Sun, 3 Jan 2021 16:34:10 +0000 (11:34 -0500)]
cam: Remove Giant handling from cam_sim_alloc()

There are no non-MPSAFE SIM drivers left in the tree, verified with
coccinelle.

Reviewed by: scottl, imp
Differential Revision: https://reviews.freebsd.org/D27853

3 years agoEnsure that dirent's d_off field is initialized
Mark Johnston [Sun, 3 Jan 2021 16:32:30 +0000 (11:32 -0500)]
Ensure that dirent's d_off field is initialized

We have the d_off field in struct dirent for providing the seek offset
of the next directory entry.  Several filesystems were not initializing
the field, which ends up being copied out to userland.

Reported by: Syed Faraz Abrar <faraz@elttam.com>
Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27792

3 years agouma: Avoid unmapping direct-mapped slabs
Mark Johnston [Sun, 3 Jan 2021 16:31:00 +0000 (11:31 -0500)]
uma: Avoid unmapping direct-mapped slabs

startup_alloc() uses pmap_map() to map slabs used for bootstrapping the
VM.  pmap_map() may ignore the hint address and simply return a range
from the direct map.  In this case we must not unmap the range in
startup_free().

UMA uses bootstart and bootmem to track the range of KVA into which
slabs are mapped if the direct map is not used.  Unmap a startup slab
only if it was mapped into that range.

Reported by: alc
Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27885

3 years agoAdd old bsdgrep aliases to ObsoleteFiles.inc
Dimitry Andric [Sun, 3 Jan 2021 16:43:20 +0000 (17:43 +0100)]
Add old bsdgrep aliases to ObsoleteFiles.inc

After 8aff76fb37b58a74832831ac1c54a013a64b35e7 there is only one grep,
so the bsdgrep binary and man page aliases can be cleaned up.

3 years agobhyve: fix build without casper/capsicum support
Mariusz Zaborski [Sun, 3 Jan 2021 16:18:22 +0000 (17:18 +0100)]
bhyve: fix build without casper/capsicum support

PR: 252353

3 years agofusefs: only check vnode locks with DEBUG_VFS_LOCKS
Alan Somers [Fri, 1 Jan 2021 21:27:03 +0000 (14:27 -0700)]
fusefs: only check vnode locks with DEBUG_VFS_LOCKS

MFC-With: 37df9d3bba8577fcdd63382ff5a4a5cbb4aa55b4
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D27939

3 years agoFix a vnode locking bug in fuse_vnop_advlock.
Alan Somers [Wed, 30 Dec 2020 23:50:35 +0000 (16:50 -0700)]
Fix a vnode locking bug in fuse_vnop_advlock.

Must lock the vnode before accessing the fufh table.  Also, check for
invalid parameters earlier.  Bug introduced by r346170.

MFC after: 2 weeks

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D27936

3 years agocap_net: CAPNET_CONNECT and CAPNET_CONNECTDNS are not mutually exclusive
Mariusz Zaborski [Sun, 3 Jan 2021 16:10:35 +0000 (17:10 +0100)]
cap_net: CAPNET_CONNECT and CAPNET_CONNECTDNS are not mutually exclusive

Fix the for the CAPNET_CONNECT and CAPNET_CONNECTDNS.
Add test to ensure that this is possible.

3 years agocap_net: allow to use the service without setting the limits
Mariusz Zaborski [Sun, 3 Jan 2021 16:09:20 +0000 (17:09 +0100)]
cap_net: allow to use the service without setting the limits

Add test to ensure that this is possible.

3 years agocapser: add cap_net to the list of services
Mariusz Zaborski [Sun, 3 Jan 2021 15:55:35 +0000 (16:55 +0100)]
capser: add cap_net to the list of services

3 years agozstd: Fix non-FreeBSD CI libzstd build
Conrad Meyer [Sun, 3 Jan 2021 15:39:12 +0000 (07:39 -0800)]
zstd: Fix non-FreeBSD CI libzstd build

Fix non-FreeBSD CI build after v1.4.8.  This definition was only used in
zstd(1), which isn't part of non-FreeBSD CI (I guess).  The ifdef was
added in v1.4.5 import.

Upstream does not currently support shared-linked zstd(1), but I have
proposed https://github.com/facebook/zstd/pull/2450 .  If that is
adopted, we can add -DZSTD_PROGRAMS_LINK_SHARED to our libzstd build and
drop some diffs.

Reported by: uqs

3 years agoUpdate contrib/llvm-project/FREEBSD-Xlist for llvmorg-11.0.1-rc2.
Dimitry Andric [Sun, 3 Jan 2021 13:21:54 +0000 (14:21 +0100)]
Update contrib/llvm-project/FREEBSD-Xlist for llvmorg-11.0.1-rc2.

MFC after: 4 weeks
X-MFC-With: r364284

3 years agoMerge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
Dimitry Andric [Sun, 3 Jan 2021 12:54:24 +0000 (13:54 +0100)]
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
release/11.x llvmorg-11.0.1-rc2-0-g43ff75f2c3f (aka 11.0.1 rc2).

MFC after: 4 weeks
X-MFC-With: r364284