]> xenbits.xensource.com Git - freebsd.git/log
freebsd.git
5 years agoRemove useless extra definition of libedit flags
bapt [Thu, 12 Sep 2019 15:44:53 +0000 (15:44 +0000)]
Remove useless extra definition of libedit flags

Note that all the line editor part is done in the libntp

5 years agoSIOCSIFNAME: Do nothing if we're not actually changing
kevans [Thu, 12 Sep 2019 15:36:48 +0000 (15:36 +0000)]
SIOCSIFNAME: Do nothing if we're not actually changing

Instead of throwing EEXIST, just succeed if the name isn't actually
changing. We don't need to trigger departure or any of that because there's
no change from consumers' perspective.

PR: 240539
Reviewed by: brooks
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D21618

5 years agoFollow up r352244: kenv: tighten up assertions
kevans [Thu, 12 Sep 2019 14:34:46 +0000 (14:34 +0000)]
Follow up r352244: kenv: tighten up assertions

As I like to forget: static kenv var formatting is actually such that an
empty environment would be double null bytes. We should make sure that a
non-zero buffer has at least enough for this, though most of the current
usage is with a 4k buffer.

5 years agokenv: assert that an empty static buffer passed in is "empty"
kevans [Thu, 12 Sep 2019 13:51:43 +0000 (13:51 +0000)]
kenv: assert that an empty static buffer passed in is "empty"

Garbage in the passed-in buffer can cause problems if any attempts to read
the kenv are inadvertently made between init_static_kenv and the first
kern_setenv -- assuming there is one.

This is cheap and easy, so do it. This also helps rule out some class of
bugs as one tries to debug; tunables fetch from the static environment up
until SI_SUB_KMEM + 1, and many of these buffers are global ~4k buffers that
rely on BSS clearing while others just grab a page of free memory and use it
(e.g. xen).

5 years agoig4(4): Fix SDA HOLD time set too low on Skylake controllers
wulf [Thu, 12 Sep 2019 12:33:09 +0000 (12:33 +0000)]
ig4(4): Fix SDA HOLD time set too low on Skylake controllers

Execution of "Soft reset" command (IG4_REG_RESETS_SKL) at controller init
stage sets SDA_HOLD register value to 0x0001 which is often too low for
normal operation.

Set SDA_HOLD back to 28 after reset to restore controller functionality.

PR: 240339
Reported by: imp, GregV, et al.
MFC after: 3 days

5 years agoRemove usesless readline compat includes which will reinclude readline.h
bapt [Thu, 12 Sep 2019 08:54:48 +0000 (08:54 +0000)]
Remove usesless readline compat includes which will reinclude readline.h
itself.

This simplifies the upcoming update to newer libedit.

5 years agoImport tzdata 2019c
philip [Thu, 12 Sep 2019 00:19:16 +0000 (00:19 +0000)]
Import tzdata 2019c

Changes: https://github.com/eggert/tz/blob/2019c/NEWS

MFC after: 3 days

5 years agobuf: Add B_INVALONERR flag to discard data
cem [Wed, 11 Sep 2019 21:24:14 +0000 (21:24 +0000)]
buf: Add B_INVALONERR flag to discard data

Setting the B_INVALONERR flag before a synchronous write causes the buf
cache to forcibly invalidate contents if the write fails (BIO_ERROR).

This is intended to be used to allow layers above the buffer cache to make
more informed decisions about when discarding dirty buffers without
successful write is acceptable.

As a proof of concept, use in msdosfs to handle failures to mark the on-disk
'dirty' bit during rw mount or ro->rw update.

Extending this to other filesystems is left as future work.

PR: 210316
Reviewed by: kib (with objections)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D21539

5 years agogetsockopt.2: clarify that SO_TIMESTAMP is not 100% reliable
asomers [Wed, 11 Sep 2019 19:48:32 +0000 (19:48 +0000)]
getsockopt.2: clarify that SO_TIMESTAMP is not 100% reliable

When SO_TIMESTAMP is set, the kernel will attempt to attach a timestamp as
ancillary data to each IP datagram that is received on the socket. However,
it may fail, for example due to insufficient memory. In that case the
packet will still be received but not timestamp will be attached.

Reviewed by: kib
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D21607

5 years agofusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode
asomers [Wed, 11 Sep 2019 19:29:40 +0000 (19:29 +0000)]
fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode

When communicating with a FUSE server that implements version 7.8 (or older)
of the FUSE protocol, the FUSE_WRITE request structure is 16 bytes shorter
than normal. The protocol version check wasn't applied universally, leading
to an extra 16 bytes being sent to such servers. The extra bytes were
allocated and bzero()d, so there was no information disclosure.

Reviewed by: emaste
MFC after: 3 days
MFC-With: r350665
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21557

5 years agoping: Verify whether a datagram timestamp was actually received.
asomers [Wed, 11 Sep 2019 18:54:45 +0000 (18:54 +0000)]
ping: Verify whether a datagram timestamp was actually received.

ping(8) uses SO_TIMESTAMP, which attaches a timestamp to each IP datagram at
the time it's received by the kernel.  Except that occasionally it doesn't.
Add a check to see whether such a timestamp was actually set before trying
to read it.  This fixes segfaults that can happen when the kernel doesn't
attach a timestamp.

The bug has always existed, but prior to r351461 it manifested as an
implausible round-trip-time, not a segfault.

Reported by: pho
MFC after: 3 days
MFC-With: 351461

5 years agoAvoid unneeded call to arc4random() in syncache_add()
gallatin [Wed, 11 Sep 2019 18:48:26 +0000 (18:48 +0000)]
Avoid unneeded call to arc4random() in syncache_add()

Don't call arc4random() unconditionally to initialize sc_iss, and
then when syncookies are enabled, just overwrite it with the
return value from from syncookie_generate(). Instead, only call
arc4random() to initialize sc_iss when syncookies are not
enabled.

Note that on a system under a syn flood attack, arc4random()
becomes quite expensive, and the chacha_poly crypto that it calls
is one of the more expensive things happening on the
system. Removing this unneeded arc4random() call reduces CPU from
about 40% to about 35% in my test scenario (Broadwell Xeon, 6Mpps
syn flood attack).

Reviewed by: rrs, tuxen, bz
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21591

5 years agoOnly skip problematic test in CI env.
lwhsu [Wed, 11 Sep 2019 18:40:05 +0000 (18:40 +0000)]
Only skip problematic test in CI env.

PR: 237450
Sponsored by: The FreeBSD Foundation

5 years agoping: fix a string in an error message
asomers [Wed, 11 Sep 2019 18:08:40 +0000 (18:08 +0000)]
ping: fix a string in an error message

MFC after: 3 days

5 years agoriscv: Add missing header
kp [Wed, 11 Sep 2019 18:07:15 +0000 (18:07 +0000)]
riscv: Add missing header

r352218 missing an include statement, causing the build to fail.

Submitted by: Nicholas O'Brien (nickisobrien_gmail.com)
Sponsored by: Axiado

5 years agoUpdate comments and ordering in linux*_dummy.c
emaste [Wed, 11 Sep 2019 17:56:48 +0000 (17:56 +0000)]
Update comments and ordering in linux*_dummy.c

- sort alphabetically
- getcpu arrived in Linux 2.6.19
- fanotify_* arrived in 2.6.36

5 years agolinuxulator: add stub arm64 linux_genassym.c
emaste [Wed, 11 Sep 2019 17:29:44 +0000 (17:29 +0000)]
linuxulator: add stub arm64 linux_genassym.c

This will be fleshed out in the future but allows us to build the arm64
linuxulator using the same infrastructure as x86.

5 years agolinuxulator: memfd_create first appeared in Linux 3.17
emaste [Wed, 11 Sep 2019 17:05:49 +0000 (17:05 +0000)]
linuxulator: memfd_create first appeared in Linux 3.17

Reference: http://man7.org/linux/man-pages/man2/memfd_create.2.html

5 years agolinuxulator: seccomp syscall first appeared in Linux 3.17
emaste [Wed, 11 Sep 2019 17:04:13 +0000 (17:04 +0000)]
linuxulator: seccomp syscall first appeared in Linux 3.17

Reference: http://man7.org/linux/man-pages/man2/seccomp.2.html

5 years agoAvoid the use of the non-portable -D argument to ls.
brooks [Wed, 11 Sep 2019 17:01:31 +0000 (17:01 +0000)]
Avoid the use of the non-portable -D argument to ls.

This was used to store the mtime of the source file in a commment in a
generated header file.  This is of little-to-no diagnostic value and
the result doesn't even end up in the source tree.

Reported by: arichardson
Reviewed by: arichardson
MFC after: 1 days
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D21605

5 years agoTemporarily skip flakey test case sys.kern.ptrace_test.ptrace__getppid
lwhsu [Wed, 11 Sep 2019 16:24:03 +0000 (16:24 +0000)]
Temporarily skip flakey test case sys.kern.ptrace_test.ptrace__getppid

PR: 240510
Sponsored by: The FreeBSD Foundation

5 years agoriscv: Small fix to CPU compatibility identification
kp [Wed, 11 Sep 2019 16:16:53 +0000 (16:16 +0000)]
riscv: Small fix to CPU compatibility identification

fdt_is_compatible_strict() inspects the first compatible property.
We need to inspect the following properties for 'riscv'.
ofw_bus_node_is_compatible() does a recursive search.

This patch fixes "Can't find CPU" error message when bootverbose = true.

Submitted by: Nicholas O'Brien (nickisobrien_gmail.com)
Reviewed by: philip, kp
Sponsored by: Axiado
Differential Revision: https://reviews.freebsd.org/D21576

5 years agolocale: initialize variables to make gcc happy
yuripv [Wed, 11 Sep 2019 16:00:03 +0000 (16:00 +0000)]
locale: initialize variables to make gcc happy

Reported by: jenkins

5 years agoWith the recent commit of ktls, we no longer have a
rrs [Wed, 11 Sep 2019 15:41:36 +0000 (15:41 +0000)]
With the recent commit of ktls, we no longer have a
sb_tls_flags, its just the sb_flags. Also the ratelimit
code, now that the defintion is in sockbuf.h, does not
need the ktls.h file (or its predecessor).

Sponsored by: Netflix Inc

5 years agolocale: more output fixes
yuripv [Wed, 11 Sep 2019 15:39:28 +0000 (15:39 +0000)]
locale: more output fixes

- make abday, day, abmon, mon, am_pm output quoting match linux
- workaround localeconv() issue for mon_grouping and grouping (PR172215)
- for other values not available in default locale, output -1 instead of
  127 (CHAR_MAX) as returned by localeconv()

With these changes, output of `locale` and `locale -k` for all keywords
specified by POSIX exactly matches the linux one.

PR: 237752
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D21599

5 years agofw_stub.awk: use @generated tag in generated files
emaste [Wed, 11 Sep 2019 13:35:22 +0000 (13:35 +0000)]
fw_stub.awk: use @generated tag in generated files

Multiple tools use @generated to identify generated files (for example,
in a review Phabricator will by default hide diffs in enerated files).
Use the @generated tag in makesyscalls.sh as we've done for other
generated files.

5 years agoAssume all the short args have optional args so allocate space for the
imp [Wed, 11 Sep 2019 13:34:19 +0000 (13:34 +0000)]
Assume all the short args have optional args so allocate space for the
':'. It's slightly wasteful, but much easier (and the savings in bytes
at runtime would be tiny, but the code to do it larger).

Submitted by: Sebastian Huber

5 years agobectl(8): Add a "check" command
kevans [Wed, 11 Sep 2019 13:27:10 +0000 (13:27 +0000)]
bectl(8): Add a "check" command

This command simply returns 0 at the moment and explicitly takes no
arguments. This should be used by utilities wanting to see if bectl can
operate on the system they're running, or with a specific root (`bectl -r`).
It may grow more checks than "will libbe successfully init" in the future,
but for now this is enough as that checks for the dataset mounted at "/" and
that it looks capable of being a BE root (e.g. it's not a top-level dataset)

bectl commands can now specify if they want to be silent, and this will turn
off libbe_print_on_error so they can control the output as needed. This is
already used in `bectl check`, and may be turned on in the future for some
other commands where libbe errors are better suppressed as the failure mode
may be obvious.

Requested by: David Fullard
MFC after: 3 days

5 years agolinux: add trivial renameat2 implementation
emaste [Wed, 11 Sep 2019 13:01:59 +0000 (13:01 +0000)]
linux: add trivial renameat2 implementation

Just return EINVAL if flags != 0.  The Linux man page documents one
case of EINVAL as "The filesystem does not support one of the flags in
flags."

After r351723 userland binaries will try using new system calls.

Reported by: mjg
Reviewed by: mjg, trasz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21590

5 years agoregen linuxulator sysent after r352208
emaste [Wed, 11 Sep 2019 12:58:53 +0000 (12:58 +0000)]
regen linuxulator sysent after r352208

5 years agomake linux_renameat2 args consistent with linux_renameat
emaste [Wed, 11 Sep 2019 12:58:06 +0000 (12:58 +0000)]
make linux_renameat2 args consistent with linux_renameat

Use 'dfd' consistently for a directory fd.

5 years agoUse true and false when dealing with bool type in the LinuxKPI.
hselasky [Wed, 11 Sep 2019 08:24:47 +0000 (08:24 +0000)]
Use true and false when dealing with bool type in the LinuxKPI.
No functional change.

MFC after: 1 week
Sponsored by: Mellanox Technologies

5 years agoFix synchronous work drain issue in the LinuxKPI.
hselasky [Wed, 11 Sep 2019 08:20:13 +0000 (08:20 +0000)]
Fix synchronous work drain issue in the LinuxKPI.

A work callback may restart itself. Loop in the drain function to see if the
work has been rescheduled and stop the subsequent reschedules, if any.

MFC after: 1 week
Sponsored by: Mellanox Technologies

5 years agoFix broken DECLARE_TASKLET() macro after r347852.
hselasky [Wed, 11 Sep 2019 07:53:49 +0000 (07:53 +0000)]
Fix broken DECLARE_TASKLET() macro after r347852.

MFC after: 1 week
Sponsored by: Mellanox Technologies

5 years agoReadd _el_fn_sh_complete for backward compatibility
bapt [Wed, 11 Sep 2019 07:03:17 +0000 (07:03 +0000)]
Readd _el_fn_sh_complete for backward compatibility

This function is not needed anymore, it allows old sh binary to continue
to run and avoid breaking backward compatibility.
Note that is now just calls the regular _el_fn_complete which does a proper
job at quoting.

Discussed with: jilles

5 years agoFix assumptions of only one device per SES slot.
mav [Wed, 11 Sep 2019 03:25:30 +0000 (03:25 +0000)]
Fix assumptions of only one device per SES slot.

It is typical to have one, but no longer true for multi-actuator HDDs
with separate LUN for each actuator.

MFC after: 4 days
Sponsored by: iXsystems, Inc.

5 years agoRemove struct ata_res_pass16, unneeded after r352082.
mav [Tue, 10 Sep 2019 23:51:46 +0000 (23:51 +0000)]
Remove struct ata_res_pass16, unneeded after r352082.

MFC after: 4 days

5 years ago- fix a minor typo
jgh [Tue, 10 Sep 2019 22:44:09 +0000 (22:44 +0000)]
- fix a minor typo

PR: 240447
Submitted by: brigadir15@gmail.com
MFC after: 1 week

5 years agoRemove unnecessary entries from the previous commit.
jkim [Tue, 10 Sep 2019 22:24:42 +0000 (22:24 +0000)]
Remove unnecessary entries from the previous commit.

5 years agoIn am335x_dmtpps, use a spin mutex to interlock between PPS capture and PPS
ian [Tue, 10 Sep 2019 22:08:34 +0000 (22:08 +0000)]
In am335x_dmtpps, use a spin mutex to interlock between PPS capture and PPS
ioctl(2) handling.  This allows doing the pps_event() work in the polling
routine, instead of using a taskqueue task to do that work.

Also, add PNPINFO, and switch to using make_dev_s() to create the cdev.

Using a spin mutex and calling pps_event() from the polling function works
around the situation which requires more than 2 sets of timecounter
timehands in a single-core system to get reliable PPS capture.  That problem
would happen when a single-core system is idle in cpu_idle() then gets woken
up with an event timer event which was scheduled to handle a hardclock tick.
That processing path would end up calling tc_windup 3 or 4 times between
when the tc polling function was called and when the taskqueue task would
eventually run, and with only two sets of timehands, the th_generation count
would always be too old to allow the captured PPS data to be used.

5 years agoloader: vidconsole should set LINES and COLUMNS
tsoome [Tue, 10 Sep 2019 21:53:42 +0000 (21:53 +0000)]
loader: vidconsole should set LINES and COLUMNS

Set LINES and COLUMNS based on terminal dimensions.

5 years agolualoader: Revert to ASCII menu frame for serial console
kevans [Tue, 10 Sep 2019 21:30:38 +0000 (21:30 +0000)]
lualoader: Revert to ASCII menu frame for serial console

The box drawing characters we use aren't necessarily safe with a serial
console; for instance, in the report by npn@, these were causing his xterm
to send back a sequence that lua picked up as input and halted the boot.
This is less than ideal.

Fallback to ASCII frames for console with 'comconsole' in it.  This is a
partial revert r338108 by imp@ -- instead of removing the menu entirely and
disabling color/cursor sequences, just reverting the default frame to ASCII
is enough to not break in this setup.

Reported by: npn
Triaged and recommended by: tsoome

5 years agoMerge OpenSSL 1.1.1d.
jkim [Tue, 10 Sep 2019 21:08:17 +0000 (21:08 +0000)]
Merge OpenSSL 1.1.1d.

5 years agognop: Fix initial value for the wdelayprob
oshogbo [Tue, 10 Sep 2019 20:27:44 +0000 (20:27 +0000)]
gnop: Fix initial value for the wdelayprob

Reported by: Chuck Silvers <chuq@chuq.com>

5 years agocache: avoid excessive relocking on entry removal during lookup
mjg [Tue, 10 Sep 2019 20:19:29 +0000 (20:19 +0000)]
cache: avoid excessive relocking on entry removal during lookup

Due to lock ordering issues (bucket lock held, vnode locks wanted) the code
starts with trylocking which in face of contention often fails. Prior to
the change it would loop back with a possible yield.

Instead note we know what locks are needed and can take them in the right
order, avoiding retries. Then we can safely re-lookup and see if the entry
we are looking for is still there.

On a 104-way box poudriere would result in constant retries during an 11h
run as seen in the vfs.cache.zap_and_exit_bucket_fail counter.

before: 408866592
after :         0

However, a new stat reports:
vfs.cache.zap_and_exit_bucket_relock_success: 32638

Note this is only a bandaid over current design issues.

Tested by: pho
Sponsored by: The FreeBSD Foundation

5 years agocache: change the formula for calculating lock array sizes
mjg [Tue, 10 Sep 2019 20:11:00 +0000 (20:11 +0000)]
cache: change the formula for calculating lock array sizes

It used to be mp_ncpus * 64, but this gives unnecessarily big values for small
machines and at the same time constraints bigger ones. In particular this helps
on a 104-way box for which the count is now doubled.

While here make cache_purgevfs less likely. Currently it is not efficient in
face of contention due to lock ordering issues. These are fixable but not worth
it at the moment.

Sponsored by: The FreeBSD Foundation

5 years agocache: assorted cleanups
mjg [Tue, 10 Sep 2019 20:08:24 +0000 (20:08 +0000)]
cache: assorted cleanups

Sponsored by: The FreeBSD Foundation

5 years agoReplace redundant code with a few new vm_page_grab facilities:
jeff [Tue, 10 Sep 2019 19:08:01 +0000 (19:08 +0000)]
Replace redundant code with a few new vm_page_grab facilities:
 - VM_ALLOC_NOCREAT will grab without creating a page.
 - vm_page_grab_valid() will grab and page in if necessary.
 - vm_page_busy_acquire() automates some busy acquire loops.

Discussed with: alc, kib, markj
Tested by: pho (part of larger branch)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21546

5 years agoAdd powerpc support to libkvm probe function
luporl [Tue, 10 Sep 2019 18:46:32 +0000 (18:46 +0000)]
Add powerpc support to libkvm probe function

PowerPC kernels are of DYN type, instead of EXEC.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D21583

5 years agoUse the sleepq lock rather than the page lock to protect against wakeup
jeff [Tue, 10 Sep 2019 18:27:45 +0000 (18:27 +0000)]
Use the sleepq lock rather than the page lock to protect against wakeup
races with page busy state.  The object lock is still used as an interlock
to ensure that the identity stays valid.  Most callers should use
vm_page_sleep_if_busy() to handle the locking particulars.

Reviewed by: alc, kib, markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21255

5 years agoRemove dirs (and their now-empty parents) empty since r344779
imp [Tue, 10 Sep 2019 17:51:22 +0000 (17:51 +0000)]
Remove dirs (and their now-empty parents) empty since r344779

5 years agoRemove dir empty since r327952
imp [Tue, 10 Sep 2019 17:50:00 +0000 (17:50 +0000)]
Remove dir empty since r327952

5 years agoRemove dir empty since r314564
imp [Tue, 10 Sep 2019 17:49:18 +0000 (17:49 +0000)]
Remove dir empty since r314564

5 years agoRemove dirs empty since r280031
imp [Tue, 10 Sep 2019 17:47:38 +0000 (17:47 +0000)]
Remove dirs empty since r280031

5 years agoRemove dir empty since r276851
imp [Tue, 10 Sep 2019 17:46:30 +0000 (17:46 +0000)]
Remove dir empty since r276851

5 years agoImport OpenSSL 1.1.1d.
jkim [Tue, 10 Sep 2019 17:40:53 +0000 (17:40 +0000)]
Import OpenSSL 1.1.1d.

5 years agoRemove empty directory after r297894
imp [Tue, 10 Sep 2019 17:31:06 +0000 (17:31 +0000)]
Remove empty directory after r297894

5 years agoRemove empty dir after r342815 (pt 2, oops)
imp [Tue, 10 Sep 2019 17:30:05 +0000 (17:30 +0000)]
Remove empty dir after r342815 (pt 2, oops)

5 years agoRemove empty dir after r288683
imp [Tue, 10 Sep 2019 17:26:46 +0000 (17:26 +0000)]
Remove empty dir after r288683

5 years agoRemove empty dir after r342815
imp [Tue, 10 Sep 2019 17:26:20 +0000 (17:26 +0000)]
Remove empty dir after r342815

5 years agoRemove dir empty since r214734
imp [Tue, 10 Sep 2019 17:20:24 +0000 (17:20 +0000)]
Remove dir empty since r214734

5 years agoRemove dirs empty since r336203
imp [Tue, 10 Sep 2019 17:19:43 +0000 (17:19 +0000)]
Remove dirs empty since r336203

5 years agoRemove directory empty after r266735
imp [Tue, 10 Sep 2019 16:58:19 +0000 (16:58 +0000)]
Remove directory empty after r266735

5 years agoRemove empty directory after r215937
imp [Tue, 10 Sep 2019 16:57:35 +0000 (16:57 +0000)]
Remove empty directory after r215937

5 years agoRemove empty directory after r342871
imp [Tue, 10 Sep 2019 16:56:43 +0000 (16:56 +0000)]
Remove empty directory after r342871

5 years agoRemove empty directory imported with r342935
imp [Tue, 10 Sep 2019 16:53:16 +0000 (16:53 +0000)]
Remove empty directory imported with r342935

5 years agoRemove empty directory imported with r238438
imp [Tue, 10 Sep 2019 16:51:52 +0000 (16:51 +0000)]
Remove empty directory imported with r238438

5 years agoRemove now-empty directory after r288337
imp [Tue, 10 Sep 2019 16:50:38 +0000 (16:50 +0000)]
Remove now-empty directory after r288337

5 years agoRemove now-empty directories after r272458
imp [Tue, 10 Sep 2019 16:48:49 +0000 (16:48 +0000)]
Remove now-empty directories after r272458

5 years agoRemove gateworks directories left over from r336136
imp [Tue, 10 Sep 2019 16:43:05 +0000 (16:43 +0000)]
Remove gateworks directories left over from r336136

5 years agoRemove empty tap/tun modules directories after r347241
imp [Tue, 10 Sep 2019 16:41:00 +0000 (16:41 +0000)]
Remove empty tap/tun modules directories after r347241

5 years agoRemove leftover usr.bin/send-pr after r338042
imp [Tue, 10 Sep 2019 16:40:00 +0000 (16:40 +0000)]
Remove leftover usr.bin/send-pr after r338042

5 years agoRemove empty directory after r342256
imp [Tue, 10 Sep 2019 16:38:52 +0000 (16:38 +0000)]
Remove empty directory after r342256

5 years agoRemove empty directory aftre r336532
imp [Tue, 10 Sep 2019 16:37:32 +0000 (16:37 +0000)]
Remove empty directory aftre r336532

5 years agoRemove more directories left over from nand removal
imp [Tue, 10 Sep 2019 16:36:09 +0000 (16:36 +0000)]
Remove more directories left over from nand removal

5 years agoRemove empty directories after drm removal
imp [Tue, 10 Sep 2019 16:35:31 +0000 (16:35 +0000)]
Remove empty directories after drm removal

5 years agoRemove empty directories left over from nand removal
imp [Tue, 10 Sep 2019 16:30:06 +0000 (16:30 +0000)]
Remove empty directories left over from nand removal

5 years agoAdd R_PPC_IRELATIVE relocation
luporl [Tue, 10 Sep 2019 16:16:05 +0000 (16:16 +0000)]
Add R_PPC_IRELATIVE relocation

Pre-requisite for most ifunc related changes.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D21587

5 years agolocale: handle day, abday, mon, abmon, am_pm keywords
yuripv [Tue, 10 Sep 2019 15:09:46 +0000 (15:09 +0000)]
locale: handle day, abday, mon, abmon, am_pm keywords

All of these are defined as mandatory by POSIX.

While here, mark all non-standard ones as FreeBSD-only as
other systems (at least, GNU/Linux and illumos) do not handle
them, so we should not encourage their use.

PR: 237752
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D21490

5 years agoCallout drain does not have to be followed by a callout stop call.
hselasky [Tue, 10 Sep 2019 14:33:07 +0000 (14:33 +0000)]
Callout drain does not have to be followed by a callout stop call.
Fix bogus code.

MFC after: 1 week
Sponsored by: Mellanox Technologies

5 years agoImport libedit 2019-09-10
bapt [Tue, 10 Sep 2019 14:30:10 +0000 (14:30 +0000)]
Import libedit 2019-09-10

Compared to current version in base:
- great improvements on the Unicode support
- full support for filename completion including quoting
  which means we do not need anymore our custom addition)
- Improved readline compatiblity

Upgrading libedit has been a pain in the past, because somehow we never
managed to properly cleanup the tree in lib/libedit and each merge has always
been very painful. After years of fighting give up and refresh a merge from
scrarch properly in contrib.

Note that the switch to this version will be done in another commit.

5 years agoTag import of libedit snapshot 2019-09-10
bapt [Tue, 10 Sep 2019 13:56:36 +0000 (13:56 +0000)]
Tag import of libedit snapshot 2019-09-10

5 years agoUpdate libedit to snapshot 2019-09-10
bapt [Tue, 10 Sep 2019 13:55:44 +0000 (13:55 +0000)]
Update libedit to snapshot 2019-09-10

5 years agoFix build for the platforms where db_expr_t is not long
lwhsu [Tue, 10 Sep 2019 08:51:11 +0000 (08:51 +0000)]
Fix build for the platforms where db_expr_t is not long

Sponsored by: The FreeBSD Foundation

5 years agoFix bad path
bapt [Tue, 10 Sep 2019 08:28:44 +0000 (08:28 +0000)]
Fix bad path

Reported by: zeising

5 years agoStop linking to libl by specifying we do not need yywrap
bapt [Tue, 10 Sep 2019 08:19:46 +0000 (08:19 +0000)]
Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

5 years agoRemove a blankline wrongly added in r351781
bapt [Tue, 10 Sep 2019 07:56:57 +0000 (07:56 +0000)]
Remove a blankline wrongly added in r351781

5 years agoRemove mklocale(1) and colldef(1) which are deprecated since FreeBSD 11
bapt [Tue, 10 Sep 2019 07:54:49 +0000 (07:54 +0000)]
Remove mklocale(1) and colldef(1) which are deprecated since FreeBSD 11

In FreeBSD 11 along with the rework on the collation, mklocale(1) and colldef(1)
has been replaced by localedef(1) (a note has been added to the manpage to state
it).
mklocale(1) and colldef(1) has been kept around to be able to build older
versions of FreeBSD. None of the version requiring those tools are supported
anymore so it is time to remove them from base

5 years agoIn FreeBSD 11 localedef(1) has replaced the mklocale(1) and colldef(1)
bapt [Tue, 10 Sep 2019 07:47:52 +0000 (07:47 +0000)]
In FreeBSD 11 localedef(1) has replaced the mklocale(1) and colldef(1)
tools to generate the locales data. state it in the libc manpages.

MFC after: 3 days

5 years agoRemove reference to mklocale regarding the nls directory
bapt [Tue, 10 Sep 2019 07:40:45 +0000 (07:40 +0000)]
Remove reference to mklocale regarding the nls directory

mklocale never had anything to do with the content of this directory

MFC after: 3 days

5 years agoStop linking to libl by specifying we do not need yywrap
bapt [Tue, 10 Sep 2019 07:28:27 +0000 (07:28 +0000)]
Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

5 years agoStop linking to libl by specifying we do not need yywrap
bapt [Tue, 10 Sep 2019 07:26:38 +0000 (07:26 +0000)]
Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

5 years agoStop linking to libl by specifying we do not need yywrap
bapt [Tue, 10 Sep 2019 07:25:37 +0000 (07:25 +0000)]
Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

5 years agoStop linking to libl by specifying we do not need yywrap
bapt [Tue, 10 Sep 2019 07:23:01 +0000 (07:23 +0000)]
Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

5 years agoby specifyng we do not use yywrap we can avoid linking to libl and liby
bapt [Tue, 10 Sep 2019 07:20:32 +0000 (07:20 +0000)]
by specifyng we do not use yywrap we can avoid linking to libl and liby

MFC after: 3 days

5 years agoconfig: do not link against libl, it is not needed
bapt [Tue, 10 Sep 2019 07:14:39 +0000 (07:14 +0000)]
config: do not link against libl, it is not needed

MFC after: 3 days

5 years agoFix 'calendar -a' in several ways.
glebius [Tue, 10 Sep 2019 04:21:48 +0000 (04:21 +0000)]
Fix 'calendar -a' in several ways.

o Do not run any iconv() processing in -a. The locale of root user is not
  what is desired by most of the users who receive their calendar mail.
  Just assume that users store their calendars in a format that is readable
  to them. This fixes regression from r344340.
o fork() and setusercontext(LOGIN_SETALL) for every user. This makes LANG
  set inside a calendar file mostly excessive, as we will pick up user's
  login class LANG.
o This also executes complex function cal() that parses user owned files
  with appropriate user privileges.
  Previously it was run with privileges dropped only temporary for execution
  of cal(), and fully dropped only before invoking sendmail (see r22473).

Reviewed by: bapt (older version of patch)

5 years agoRemove pointless playing with LC_TIME, which should have been done in r205821.
glebius [Tue, 10 Sep 2019 04:01:41 +0000 (04:01 +0000)]
Remove pointless playing with LC_TIME, which should have been done in r205821.

5 years agoAppease Clang false-positive Werrors in r352112
cem [Tue, 10 Sep 2019 01:56:47 +0000 (01:56 +0000)]
Appease Clang false-positive Werrors in r352112

Reported by: bcran

5 years agoddb(4): Add 'show route <dest>' and 'show routetable [<af>]'
cem [Mon, 9 Sep 2019 22:54:27 +0000 (22:54 +0000)]
ddb(4): Add 'show route <dest>' and 'show routetable [<af>]'

These commands show the route resolved for a specified destination, or
print out the entire routing table for a given address family (or all
families, if none is explicitly provided).

Discussed with: emaste
Differential Revision: https://reviews.freebsd.org/D21510