bluhm [Wed, 2 Mar 2022 20:16:43 +0000 (20:16 +0000)]
Merge two comments describing the locks into one.
tb [Wed, 2 Mar 2022 19:52:19 +0000 (19:52 +0000)]
Simplify .gz handling a bit
Combine strlcpy + strlcat into a single snprintf and remove a few
unnecessary parentheses.
ok deraadt millert
tb [Wed, 2 Mar 2022 17:53:03 +0000 (17:53 +0000)]
Unwrap a line
krw [Wed, 2 Mar 2022 17:47:11 +0000 (17:47 +0000)]
Abstract the memory allocation, scsibus_softc data copying and
flag setting bits of creating a scsi_link into scsi_alloc_link().
Shrinks the bloated scsi_probe_link() a bit, makes it possible to
eventually create a useable scsi_link even when scsi_probe_link()
can't attach a device.
Developed from part of a diff submitted by Scott Nicholas via
tech@.
tb [Wed, 2 Mar 2022 17:45:39 +0000 (17:45 +0000)]
whitespace
jsing [Wed, 2 Mar 2022 17:39:56 +0000 (17:39 +0000)]
Provide additional ASN1_OBJECT test coverage.
claudio [Wed, 2 Mar 2022 16:51:43 +0000 (16:51 +0000)]
Adapt prefix_adjout_update() the same way as prefix_adjout_withdraw()
and to the accounting in the function.
OK tb@
kettenis [Wed, 2 Mar 2022 16:35:49 +0000 (16:35 +0000)]
The firmware for the bwfm(4) variants in Apple Silicon Macs has variants
for different module types, module vendors and module revisions. Make
our driver use the same naming scheme as Asahi Linux.
ok patrick@
claudio [Wed, 2 Mar 2022 14:49:25 +0000 (14:49 +0000)]
Correct prefix_adjout_destroy() prototype
claudio [Wed, 2 Mar 2022 14:44:46 +0000 (14:44 +0000)]
Refactor prefix_adjout_withdraw()
Just pass the prefix to be withdrawn to the function and move the lookup
up. Adjust how the various accounting vars are updated so that the
values are decremented in the right cases. Do the same accounting dance
for prefix_adjout_destroy(). Adjust rde_up_flush_upcall() to directly
call prefix_adjout_withdraw() without calling it via up_generate_updates().
OK tb@
krw [Wed, 2 Mar 2022 13:58:08 +0000 (13:58 +0000)]
Move the code obtaining the LUN 0 scsi_link used to determine the
LUNs available to a target into scsi_get_target_luns(). Clearer
code and prep for future changes.
No functional change.
Extracted from a larger diff submitted by Scott Nicholas via
tech@.
jsg [Wed, 2 Mar 2022 13:09:56 +0000 (13:09 +0000)]
drm/i915/dg2: Print PHY name properly on calibration error
From Matt Roper
d064d0c39405a7f0fc76d9b70ce9fb3bf434fe05 in linux 5.15.y/5.15.26
28adef861233c6fce47372ebd2070b55eaa8e899 in mainline linux
jsg [Wed, 2 Mar 2022 13:07:51 +0000 (13:07 +0000)]
drm/edid: Always set RGB444
From Maxime Ripard
143dafa60aa7f0894a8f1b63b001e3a6f30169a0 in linux 5.15.y/5.15.26
ecbd4912a693b862e25cba0a6990a8c95b00721e in mainline linux
jsg [Wed, 2 Mar 2022 13:06:03 +0000 (13:06 +0000)]
drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV
From Ville Syrjala
0726fca0b6cc26a9ee6b0a0ac8984b8be0c62fb8 in linux 5.15.y/5.15.26
ec663bca9128f13eada25cd0446e7fcb5fcdc088 in mainline linux
jsg [Wed, 2 Mar 2022 13:04:05 +0000 (13:04 +0000)]
drm/i915: Correctly populate use_sagv_wm for all pipes
From Ville Syrjala
1b4445e09df83c397343ef8ab6b3ab560a4831ff in linux 5.15.y/5.15.26
afc189df6bcc6be65961deb54e15ec60e7f85337 in mainline linux
jsg [Wed, 2 Mar 2022 13:01:22 +0000 (13:01 +0000)]
drm/i915: Widen the QGV point mask
From Ville Syrjala
7782e3c4e5390d217604a73a095db14d48c8b714 in linux 5.15.y/5.15.26
3f33364836aacc28cd430d22cf22379e3b5ecd77 in mainline linux
jsg [Wed, 2 Mar 2022 12:58:57 +0000 (12:58 +0000)]
drm/amdgpu: do not enable asic reset for raven2
From Chen Gong
8840d963e56685f8750c710b1d567a283712c554 in linux 5.15.y/5.15.26
1e2be869c8a7247a7253ef4f461f85e2f5931b95 in mainline linux
jsg [Wed, 2 Mar 2022 12:57:11 +0000 (12:57 +0000)]
drm/amdgpu: disable MMHUB PG for Picasso
From Evan Quan
70b2413ac30c88a049f179d674d29d1f6af1d29a in linux 5.15.y/5.15.26
f626dd0ff05043e5a7154770cc7cda66acee33a3 in mainline linux
jsg [Wed, 2 Mar 2022 12:53:45 +0000 (12:53 +0000)]
drm/amd: Check if ASPM is enabled from PCIe subsystem
From Mario Limonciello
ea44fcee7e3d87725423c904306a99cd42bd24b7 in linux 5.15.y/5.15.26
7294863a6f01248d72b61d38478978d638641bee in mainline linux
bluhm [Wed, 2 Mar 2022 12:53:15 +0000 (12:53 +0000)]
The return value of in6_pcbnotify() is never used. Make it a void
function.
OK gnezdo@ mvs@ florian@ sashan@
jsg [Wed, 2 Mar 2022 12:50:08 +0000 (12:50 +0000)]
drm/amd/pm: fix some OEM SKU specific stability issues
From Evan Quan
c00e4c01f470f0446556bd99af899bfa26dd9fae in linux 5.15.y/5.15.26
e3f3824874da78db5775a5cb9c0970cd1c6978bc in mainline linux
jsg [Wed, 2 Mar 2022 12:48:18 +0000 (12:48 +0000)]
drm/amd/display: Protect update_bw_bounding_box FPU code.
From Bas Nieuwenhuizen
211b67fb5a49c9f6e6a63d9b94ea96bf2e39341a in linux 5.15.y/5.15.26
1432108d00e42ffa383240bcac8d58f89ae19104 in mainline linux
jsg [Wed, 2 Mar 2022 12:45:40 +0000 (12:45 +0000)]
revert rev 1.6, local change to use DC_FP_START()/DC_FP_END() in
update_bw_bounding_box()
a linux 5.15.26 patch adds this to the callers
kettenis [Wed, 2 Mar 2022 12:45:35 +0000 (12:45 +0000)]
Recognize the cores on Apple's M1 Pro/Max SoCs.
ok jsg@
kettenis [Wed, 2 Mar 2022 12:44:48 +0000 (12:44 +0000)]
Add RTC support to aplsmc(4). The SMC firmware distributed with macOS 12.x
has a method to read the counter that forms the base of the RTC. This seems
to be the preferred way to access the RTC going forward. The RTC offset is
still stored in the SPMI PMU, but we can use the nvmem interface to read
and write that. This makes the RTC work on systems with the M1 Pro/Max SoC.
Sprinkle some #ifdef SMALL_KERNEL around and enable the driver on RAMDISK
kernels.
ok patrick@
kettenis [Wed, 2 Mar 2022 12:35:14 +0000 (12:35 +0000)]
Add nvmem support and make this available on all Apple SPMI PMUs. Restrict
the RTC interface to the "sera" PMU found on Apple M1 systems.
ok patrick@
kettenis [Wed, 2 Mar 2022 12:00:46 +0000 (12:00 +0000)]
Add an interface to write to an nvmem cell.
ok patrick@
landry [Wed, 2 Mar 2022 11:43:52 +0000 (11:43 +0000)]
Add openvpn ports (udp/1194 & tcp/1194) to /etc/services
Registered at IANA since 2004, also present on Linux & FreeBSD
ok sthen@ stsp@ jca@
jsing [Wed, 2 Mar 2022 11:28:00 +0000 (11:28 +0000)]
Rewrite ASN1_OBJECT content to ascii/text conversion.
Rewrite the ASN1_OBJECT content to ascii/text conversion code using CBB and
CBS. Currently there is a strange split with i2t_ASN1_OBJECT() calling
OBJ_obj2txt() which implements the conversion, while OBJ_txt2obj() calls
back into the misnamed a2d_ASN1_OBJECT() function. Move the conversion
code into asn1/a_object.c and have OBJ_txt2obj() call that instead.
ok inoguchi@ tb@
florian [Wed, 2 Mar 2022 11:10:43 +0000 (11:10 +0000)]
Nothing uses kv_flags.
John (j AT bitminer.ca) pointed out that we didn't correctly
initialize struct kv and might use slower KV_FLAG_GLOBBING path in
kv_find depending on stack garbage. Instead of fixing the
initialization just delete kv_flags from struct kv.
OK claudio, tb
jmc [Wed, 2 Mar 2022 09:39:41 +0000 (09:39 +0000)]
make searches for makefile before Makefile;
from raf czlonka
stsp [Wed, 2 Mar 2022 09:35:24 +0000 (09:35 +0000)]
Document u-boot workaround required for unattended boot of edgerouter 6p.
ok afresh1@ kevlo@, who both ran into the same issue
claudio [Wed, 2 Mar 2022 09:27:34 +0000 (09:27 +0000)]
Convert a few last struct members from u_intXY_t to uintXY_t. Now all
structs use consistent integer types.
OK jsg@ mvs@
bluhm [Tue, 1 Mar 2022 23:53:03 +0000 (23:53 +0000)]
Remove outdated comment about v4-mapped v6 addresses. They are not
supported anymore.
dv [Tue, 1 Mar 2022 21:46:19 +0000 (21:46 +0000)]
vmd(8): gracefully handle hitting data limits when starting a vm
With recent changes to login.conf(5) to restrict daemon datasize
to a finite value, users can now hit resource limits when attempting
to start a vm.
This change fixes the error path when hitting the limit. vmd(8)
will no longer abort and memory error messages are relayed to the
user.
While here, address potential under-reads/writes using atomicio
when relaying data between the child vm process and vmd's vmm
process.
Original diff from tedu@. OK mlarkin@.
kettenis [Tue, 1 Mar 2022 21:29:10 +0000 (21:29 +0000)]
Apple M1 Pro/Max SoCs come with a new version of the interrupt controller.
This version appears to be more scalable (supports more cores, more
interrupts) but is still fairly similar to the previous generation so
it makes sense for them to share a driver. One major difference is that
it seems that the new interrupt controller no longer has the ability to
have external interrupts target specific CPU cores. Instead it delivers
them to whichever core is willing to handle the interrupt. Since this
currently isn't compatible with what OpenBSD wants we disable the
delivery of external interrupts to the secondary cores by setting some
bits in an implementation-defined system register.
This makes OpenBSD run on M1 Pro/Max machines.
ok jsg@
sthen [Tue, 1 Mar 2022 21:19:11 +0000 (21:19 +0000)]
Support mtime/atime/ctime extended headers in !SMALL builds.
These are becoming quite common in distributed software (including
tars produced by Python and Go) and often standard timestamps are
not set, resulting in extracted files dated as the epoch.
Lots of help from tb@, ok tb@ millert@
kettenis [Tue, 1 Mar 2022 20:45:27 +0000 (20:45 +0000)]
The display controller sits behind a DART. We must make sure we keep
that DART enabled with the mappings provided by the firmware. Otherwise
the display controller can no longer access the framebuffer and the
display goes black.
ok jsg@
florian [Tue, 1 Mar 2022 18:34:21 +0000 (18:34 +0000)]
Update to libunbound 1.15.0; heavy lifting by sthen in unbound(8).
Upstream renamed parse_edns_from_pkt to parse_edns_from_query_pkt and
added two arguments (config_file and comm_point) that we don't use,
adjust callers in frontend accordingly.
florian [Tue, 1 Mar 2022 18:30:23 +0000 (18:30 +0000)]
Upstream renamed parse_extract_edns to
parse_extract_edns_from_response_msg and parse_edns_from_pkt to
parse_edns_from_query_pkt in libunbound 1.14.0.
Both funktions work equally well for us but it would look weird to use
the "from_response_msg" function on the query so switch to
parse_edns_from_pkt in preparation for the libunbound update.
testing & OK sthen
nicm [Tue, 1 Mar 2022 15:20:22 +0000 (15:20 +0000)]
Don't convert codes for special keys (Tab, Enter, Escape).
krw [Tue, 1 Mar 2022 14:39:30 +0000 (14:39 +0000)]
Tweak SCSI section to clarify that SCSIDEBUG enables probing/attachment
debug info, with any additional debug info being requested via SCSIDEBUG_*
options.
Pointed out by Scott Nicholas.
jsg [Tue, 1 Mar 2022 11:50:37 +0000 (11:50 +0000)]
__i2c_transfer() should not lock the bus
i2c_transfer() locks the bus
claudio [Tue, 1 Mar 2022 09:53:42 +0000 (09:53 +0000)]
up_dump_prefix() should not clear the p->flags before possibly calling
prefix_adjout_destroy(). Doing so will restult in a double pt_unref()
call because prefix_adjout_destroy() no longer notices that the prefix
was an actuall withdraw and wrongly calls prefix_unlink().
For updates the PREFIX_FLAG_UPDATE flag needs to be cleared after
removing the prefix from the update RB tree.
Adjust the EoR codepath in a similar way. EoR have a NULL pt_entry and
so prefix_adjout_destroy() is unable to do the RB_REMOVE.
This fixes the regress errors reported by anton@
OK tb@
claudio [Tue, 1 Mar 2022 09:46:22 +0000 (09:46 +0000)]
Rewrite some comments to hopefully be easier to understand.
No code change.
claudio [Tue, 1 Mar 2022 09:39:36 +0000 (09:39 +0000)]
Remove another empty line
claudio [Tue, 1 Mar 2022 09:38:06 +0000 (09:38 +0000)]
Reshuffle functions for better order and remove an excessive empty line.
jsg [Tue, 1 Mar 2022 08:07:38 +0000 (08:07 +0000)]
change some defines to static inline functions
anton [Tue, 1 Mar 2022 06:13:17 +0000 (06:13 +0000)]
ci(1) populates the author keyword using getlogin(2), therefore favor
logname(1) when normalizing the output.
jsg [Tue, 1 Mar 2022 04:08:03 +0000 (04:08 +0000)]
change some defines to static inline functions
djm [Tue, 1 Mar 2022 01:59:19 +0000 (01:59 +0000)]
pack pollfd array before server_accept_loop() ppoll() call,
and terminate sshd if ppoll() returns errno==EINVAL
avoids spin in ppoll when MaxStartups > RLIMIT_NOFILE, reported by
Daniel Micay
feedback/ok deraadt
tedu [Tue, 1 Mar 2022 01:22:11 +0000 (01:22 +0000)]
add rtable capability to login.conf.
from Matthew Martin
dtucker [Mon, 28 Feb 2022 21:56:29 +0000 (21:56 +0000)]
Remove unused ivbits argument from chacha_keysetup to match other
instances in the tree. ok deraadt@
sthen [Mon, 28 Feb 2022 21:23:38 +0000 (21:23 +0000)]
provide a login class for vmd, the "daemon" class now has a datasize
limit which is a bit low for VMs. only done on amd64 as vmd is only
provided there. ok deraadt@
krw [Mon, 28 Feb 2022 16:17:37 +0000 (16:17 +0000)]
#include <disktab.h> not needed for successful compile.
Last #include of disktab.h in the tree.
kettenis [Mon, 28 Feb 2022 15:51:02 +0000 (15:51 +0000)]
The IOMMUs integrated on Apple's M1 Pro/MaxJ SoC use a different page table
layout where the physical (CPU) address needs to be shifted to allow for the
larger physical address space implemented in these SoCs. Make apldart(4)
handle this new page table layout based on the compatible property.
ok jsg@
visa [Mon, 28 Feb 2022 15:49:57 +0000 (15:49 +0000)]
Remove unneeded symbol name lookup.
krw [Mon, 28 Feb 2022 14:48:11 +0000 (14:48 +0000)]
Shuffle some SCSIDEBUG code to simplify code, tersify the
emitted verbiage, and show INQUIRY header & vendor info early so
humans can more easily determine what scsi_probe_link() will
do.
No functional change outside SCSIDEBUG.
claudio [Mon, 28 Feb 2022 14:32:01 +0000 (14:32 +0000)]
Instead of handrolling what is mostly prefix_link/prefix_unlink in
prefix_move() and prefix_adjout_update() use the functions by
refactoring them a bit so they work in these cases.
Move the pftable update and prefix evaluate call to prefix_add
make nexthop_link() a noop for prefixes of the Adj-RIB-Out and
in prefix_unlink() don't clear p->pt after the pt_unref() call.
In prefix_adjout_* functions make sure to call prefix_unlink() when
a prefix is linked and gets removed or replaced.
OK tb@
claudio [Mon, 28 Feb 2022 12:52:38 +0000 (12:52 +0000)]
In the Adj-RIB-Out specific dump functions assert that PREFIX_FLAG_ADJOUT
is set. Similar checks are done for updates and withdraws.
OK tb@
nicm [Mon, 28 Feb 2022 09:34:57 +0000 (09:34 +0000)]
Exit on SIGHUP before attach also, GitHub issue 3084.
nicm [Mon, 28 Feb 2022 09:24:22 +0000 (09:24 +0000)]
Map control keys back to an ASCII uppercase letter when passing them on
as extended keys.
jsg [Mon, 28 Feb 2022 09:01:29 +0000 (09:01 +0000)]
remove some unused defines
jsg [Mon, 28 Feb 2022 02:40:16 +0000 (02:40 +0000)]
add pcie_aspm_enabled() for the next linux 5.15.y release
dlg [Mon, 28 Feb 2022 00:12:11 +0000 (00:12 +0000)]
add the mbuf tags that prevent output loops.
mostly copied from vxlan where the tag is checked in output and
set in encap. etherip appears to be one of the first drivers i
reworked, so it's a bit crufty. the ipv4 vs ipv6 handling could
be done better.
mortimer [Sun, 27 Feb 2022 23:45:55 +0000 (23:45 +0000)]
Enable unwind tables on all clang architectures.
Fixes backtraces on i386 (tested by bluhm) and armv7.
OK bluhm@
millert [Sun, 27 Feb 2022 22:14:56 +0000 (22:14 +0000)]
The At macro doesn't accept v8, v9 or v10. Noticed by jmc@
bluhm [Sun, 27 Feb 2022 20:30:30 +0000 (20:30 +0000)]
Add gzip-static option to httpd. This allows to deliver precompressed
files with content-encoding gzip.
from prx at si3t dot ch; OK tracey@
kettenis [Sun, 27 Feb 2022 17:36:52 +0000 (17:36 +0000)]
Adjust definition of DART_L1_TABLE to what Linux uses.
ok jsg@
millert [Sun, 27 Feb 2022 15:02:08 +0000 (15:02 +0000)]
Use ',' in custom separator example and change shell prompt to non-root.
jca [Sun, 27 Feb 2022 13:22:32 +0000 (13:22 +0000)]
Enable libedit line editing
Sync our hardcoded config with what cmake detects in ports/devel/llvm.
Brought up privately by cheloha@, then by Andrei on tech@, input and ok
gnezdo@
bluhm [Sun, 27 Feb 2022 10:14:01 +0000 (10:14 +0000)]
Fix whitespace and uninitialized variable in dt(4).
OK mpi@
jmc [Sun, 27 Feb 2022 07:13:31 +0000 (07:13 +0000)]
tweak the opening paragraph for readability, and tidy up one of the examples;
ok millert
krw [Sun, 27 Feb 2022 02:27:55 +0000 (02:27 +0000)]
SC_DEBUG() requires an initialized scsi_link. Shuffle
code to make it so.
Pointed out by clang when prodded with SCSIDEBUG.
naddy [Sun, 27 Feb 2022 01:33:59 +0000 (01:33 +0000)]
include rejected signature algorithm in error message and not the
(useless) key type; ok djm@
bluhm [Sat, 26 Feb 2022 20:14:06 +0000 (20:14 +0000)]
Allow pledged pf ioctl test to pass also when pf is disabled.
millert [Sat, 26 Feb 2022 17:42:12 +0000 (17:42 +0000)]
setuserenv: a missing /etc/login.conf file is not an error.
The code to handle LOGIN_SETENV (and thus LOGIN_SETALL) returned
an error if /etc/login.conf could not be opened. We should simply
return success from setuserenv() in this case like we do for the
other flags. From Matthew Martin, OK deraadt@
jsing [Sat, 26 Feb 2022 16:45:31 +0000 (16:45 +0000)]
Add regress coverage for ASN1_OBJECT public interfaces.
otto [Sat, 26 Feb 2022 16:14:42 +0000 (16:14 +0000)]
Currently malloc caches a number of free'ed regions up to 128k
in size. This cache is indexed by size (in # of pages), so it is
very quick to check. Some programs allocate and deallocate larger
allocations in a frantic way. Accomodate those programs by also
keeping a cache of regions between 128k and 2M, in a cache of variable
sized regions.
Tested by many in snaps; ok deraadt@
kettenis [Sat, 26 Feb 2022 13:38:46 +0000 (13:38 +0000)]
regen
kettenis [Sat, 26 Feb 2022 13:38:11 +0000 (13:38 +0000)]
Add Broadcom BCM4387.
claudio [Sat, 26 Feb 2022 11:48:50 +0000 (11:48 +0000)]
Remove excessive ;
dlg [Sat, 26 Feb 2022 04:46:34 +0000 (04:46 +0000)]
add the mbuf tag that prevents loops in vxlan_encap, not vxlan_output.
vxlan_output calls ether_output, which will do arp for ipv4 packets.
if arp hasn't resolved an address for a peer yet, it will queue the
packet and transmit it again after resolution completes. the way
it outputs is to call the interface output routine again, which is
vxlan_output.
if we tag the packet in vxlan_output before arp, and then arp calls
vxlan_output again, it looks like a loop and drops it. moving the
tagging to when we add all the encap headers in vxlan_encap avoids
this issue.
dlg [Sat, 26 Feb 2022 02:15:45 +0000 (02:15 +0000)]
have another go at fixing assert "sc->sc_dev == NUM" failed.
claudio figured it out. his clue was that multiple concurrent calls
to tunopen (or tapopen) will share a vnode. because tunopen can sleep,
multiple programs can be inside tunopen for the same tun interface at
the same time, all with references against the same vnode.
at the same time as this another thread/program can call VOP_REVOKE
via tun_clone_destroy (eg, ifconfig tun1 destroy does this).
VOP_REVOKE marks a vnode as bad, which in turn means that subsequent
open()s of a tun interface will get a brand new vnode.
so multiple threads holding references to a vnode can be sleeping in
tun_dev_open on the interface cloner lock. one thread wins and takes
ownership of the tun interface, then another thread can destroy that tun
interface, calls VOP_REVOKE which calls tun_dev_close to tear down the
vnodes association with the tun interface and mark the vnode as bad.
the thread that called tun_clone_destroy then creates another instance
of the interface by calling tun_clone_create immediately.
one of the original threads with the old vnode reference wakes up and
takes ownership of the new tun_softc. however, because the vnode is bad,
all the vnode ops have been replaced with the deadfs ops. the close() op
on the old vnode is now a nop from the point of view of tun interfaces.
the old vnode is no longer associated with tun and tap and will now
never call tun_dev_close (via tunclose or tapclose), which in turn means
sc_dev won't get cleared.
another thread can now call tun_clone_destroy against the new instance
of tun_softc. this instance has sc_dev set, so it tries to revoke it,
but there's no vnode associated with it because the old vnode reference
is dead.
because this second call to VOP_REVOKE couldnt find a vnode, it
can't call tunclose against it, so sc_dev is still set and this
KASSERT fires.
claudio and i came up with the following, which is to have tun_dev_open
check the state of the vnode associated with the current open call
after all the sleeping and potential tun_clone_destroy and
tun_clone_create calls. if the vnode has been made bad/dead after
all the sleeping, it returns with ENXIO.
Reported-by: syzbot+5e13201866c43afbfbf6@syzkaller.appspotmail.com
ok claudio@ visa@
guenther [Fri, 25 Feb 2022 23:51:03 +0000 (23:51 +0000)]
Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.com
Revert the pr_usrreqs move: syzkaller found a NULL pointer deref
and I won't be available to monitor for followup issues for a bit
bluhm [Fri, 25 Feb 2022 22:18:44 +0000 (22:18 +0000)]
To fix crashes seen by Hrvoje with pfsync, IPsec and parallel
forwarding, protect tdb flags and lists in pfsync with a mutex.
help and OK sashan@
tedu [Fri, 25 Feb 2022 18:29:32 +0000 (18:29 +0000)]
use setall for setusercontext, to make it simpler to inherit new changes.
note that the addition of setenv doesn't do much, since doas will rewrite
the environment anyway (but added variables are accessible in keepenv,
should anybody be using that feature).
tedu [Fri, 25 Feb 2022 18:24:01 +0000 (18:24 +0000)]
add setrtable to pledge("id"). from Matthew Martin
ok deraadt
rob [Fri, 25 Feb 2022 18:05:49 +0000 (18:05 +0000)]
A few additional changes related to the now 32 bit accounting flag.
Pointers from and discussions with millert and deraadt.
Ok millert@, deraadt@, bluhm@
rob [Fri, 25 Feb 2022 17:31:40 +0000 (17:31 +0000)]
Whitespace.
tb [Fri, 25 Feb 2022 16:00:39 +0000 (16:00 +0000)]
fix indent and other minor KNF nits
visa [Fri, 25 Feb 2022 13:51:02 +0000 (13:51 +0000)]
Enable cduart(4) on arm64.
OK kettenis@
claudio [Fri, 25 Feb 2022 12:56:12 +0000 (12:56 +0000)]
The pointer returned by pt_fill() can be directly used in most cases.
There is no need for an extra local variable.
Noticed by and OK tb@
claudio [Fri, 25 Feb 2022 11:36:54 +0000 (11:36 +0000)]
For add-path send the Adj-RIB-Out needs to handle multiple paths per
prefix. For this extend the RB trees of the Adj-RIB-Out to also consider
the path_id. Add functions to lookup a prefix without path_id so that
bgpctl works. Rename functions so that all Adj-RIB-Out specific functions
start with prefix_adjout_
For now the path_id_tx in the Adj-RIB-Out is forced to 0 since
up_generate_updates() is not ready to handle more than one path per prefix.
OK tb@
dtucker [Fri, 25 Feb 2022 09:46:24 +0000 (09:46 +0000)]
Remove the char * casts from arguments to do_lstat, do_readdir and
do_stat paths since the underlying functions now take a const char *.
Patch from vapier at gentoo.org.
guenther [Fri, 25 Feb 2022 08:36:01 +0000 (08:36 +0000)]
Move pr_attach and pr_detach to a new structure pr_usrreqs that can
then be shared among protosw structures, following the same basic
direction as NetBSD and FreeBSD for this.
Split PRU_CONTROL out of pr_usrreq into pru_control, giving it the
proper prototype to eliminate the previously necessary casts.
ok mvs@ bluhm@
guenther [Fri, 25 Feb 2022 08:33:26 +0000 (08:33 +0000)]
in6_ioctl() is declared in in6_var.h as it's used in if_umb.c, so
don't declare it again in the .c file
ok dlg@ mvs@ bluhm@
djm [Fri, 25 Feb 2022 02:09:27 +0000 (02:09 +0000)]
save an unneccessary alloc/free, based on patch from
Martin Vahlensieck; ok dtucker@
beck [Thu, 24 Feb 2022 22:05:06 +0000 (22:05 +0000)]
Get rid of SHA1 for comparing CRL's - use SHA512 just like we do for certs.
ok tb@
tb [Thu, 24 Feb 2022 21:07:03 +0000 (21:07 +0000)]
Remove accidentally committed debug code.