yasuoka [Fri, 9 Feb 2024 11:59:23 +0000 (11:59 +0000)]
Don't assume MPPE-{Send,Recv}-Keys are used only for MS-CHAP (or
16 bytes length). initial diff from markus
stsp [Fri, 9 Feb 2024 11:24:52 +0000 (11:24 +0000)]
qwx pci code must include bpfilter.h, too; spotted by kettenis
bluhm [Fri, 9 Feb 2024 11:05:22 +0000 (11:05 +0000)]
Enable igc(4) on sparc64.
OK deraadt@ jan@
stsp [Fri, 9 Feb 2024 09:59:01 +0000 (09:59 +0000)]
make ifconfig display the Tx rate selected by qwx firmware
stsp [Fri, 9 Feb 2024 09:55:17 +0000 (09:55 +0000)]
add missing node reference counting to qwx's Tx completion path
stsp [Fri, 9 Feb 2024 09:53:50 +0000 (09:53 +0000)]
remove qwx debug prints for management frame events we are already handling
tb [Fri, 9 Feb 2024 09:53:05 +0000 (09:53 +0000)]
zlib: sync with upstream
dtucker [Fri, 9 Feb 2024 08:56:59 +0000 (08:56 +0000)]
Expand the set of ciphers, MACs and KEX methods in the PuTTY interop tests.
dtucker [Fri, 9 Feb 2024 08:47:42 +0000 (08:47 +0000)]
Factor out PuTTY setup and call when needed.
This allows us to avoid PuTTY key setup when it's not needed, which
speeds up the overall test run by a couple of percent.
yasuoka [Fri, 9 Feb 2024 07:46:32 +0000 (07:46 +0000)]
Refactor some functions to prepare accounting support.
tb [Fri, 9 Feb 2024 07:43:52 +0000 (07:43 +0000)]
Remove a useless EVP_MD_CTX_init() call
The hash was just created with EVP_MD_CTX_new(), so we memset a calloced
piece of memory to 0.
yasuoka [Fri, 9 Feb 2024 07:41:32 +0000 (07:41 +0000)]
Add nochroot parameter to module_drop_privilege() so that modules can
use unveil(2) instead of chroot(2) if need.
kettenis [Thu, 8 Feb 2024 20:50:34 +0000 (20:50 +0000)]
Upstream Linux finally settled on the compatible for the JH7100 Ethernet
MAC. Keep the preliminary one for now since the upstream device tree
doesn't include the USB controller yet.
ok miod@
miod [Thu, 8 Feb 2024 20:30:54 +0000 (20:30 +0000)]
Oops, commited wrong version of CLEANFILES in previous.
miod [Thu, 8 Feb 2024 20:28:53 +0000 (20:28 +0000)]
Feed more generated files to the clean target; joint work with naddy@
tb [Thu, 8 Feb 2024 17:49:27 +0000 (17:49 +0000)]
infcover: print size_t with %zu. from upstream
martijn [Thu, 8 Feb 2024 17:38:41 +0000 (17:38 +0000)]
Add tests to make sure that snmpd adheres to the RFC2578 section 7.1
octet string primitive limitations. The integer based ones are
restricted by the AgentX protocol and can't be tested.
martijn [Thu, 8 Feb 2024 17:34:09 +0000 (17:34 +0000)]
RFC2578 section 7.1 specifies the ranges and in the case of opaque the
format to which the values need to adhere. Implement checks, so that we
don't send illegal values to the client.
OK tb@
martijn [Thu, 8 Feb 2024 17:09:51 +0000 (17:09 +0000)]
No that we load MIB files at snmpd start-up chances that the sleep build
into the regress test don't suffice anymore for slow regress machines.
(Ab)use the agentx socket (which gets created after all the MIB files
have been parsed) to detect if snmpd is available. For now we poll at
0.1s intervals for a total of 100 tries.
found by and earlier diff tested by and OK anton@
stsp [Thu, 8 Feb 2024 14:36:22 +0000 (14:36 +0000)]
repair QWX_DEBUG build
stsp [Thu, 8 Feb 2024 14:35:07 +0000 (14:35 +0000)]
implement qwx_dp_tx_process_htt_tx_complete()
stsp [Thu, 8 Feb 2024 14:33:40 +0000 (14:33 +0000)]
fix qwx_dp_shadow_start_timer()
We must count all Tx attempts in order to avoid the Tx shadow
timeout handler resetting Tx ring pointers when it shouldn't.
stsp [Thu, 8 Feb 2024 14:31:53 +0000 (14:31 +0000)]
remove qwx(4) dp_tx debug prints which should not have been committed
jsg [Thu, 8 Feb 2024 13:00:21 +0000 (13:00 +0000)]
ldo bits need to be shifted
found by "'(data & (3 << 4)) == 1' is always false" smatch warning
tested by kettenis@ on VisionFive 2 1.2A and jmatthew@ on 1.3B
ok kettenis@
stsp [Thu, 8 Feb 2024 11:23:33 +0000 (11:23 +0000)]
handle qwx(4) firmware roaming events
Gets rid of 'qwx_wmi_tlv_op_rx: unsupported event id 0xb001' in dmesg.
However, roaming does not work yet because the driver's newstate handler
does not handle resulting state transitions.
stsp [Thu, 8 Feb 2024 11:20:29 +0000 (11:20 +0000)]
mark full qwx(4) Tx queues, such that the OACTIVE mechanism will be used
Not quite tested yet. It is very hard to fill the queues at present
because Tx operation will freeze when we try. To be investigated next.
stsp [Thu, 8 Feb 2024 11:16:49 +0000 (11:16 +0000)]
fix use of uninitialized variable m in qwx_dp_rx_reap_mon_status_ring()
Found by jsg@
stsp [Thu, 8 Feb 2024 11:13:01 +0000 (11:13 +0000)]
fix uninitialized return from qwx_qmi_load_file_target_mem()
Fortunately this case could only be reached with an empty firmware file.
Found by jsg@
stsp [Thu, 8 Feb 2024 11:09:53 +0000 (11:09 +0000)]
handle fragmented mbuf DMA segments in the qwx(4) Tx path
Fixes qwx0: failed to map Tx buffer: 27
stsp [Thu, 8 Feb 2024 11:06:50 +0000 (11:06 +0000)]
set the mbuf length for received data frames in qwx(4)
Fixes CCMP decryption errors in the Rx path.
deraadt [Thu, 8 Feb 2024 02:22:42 +0000 (02:22 +0000)]
sync
jsg [Thu, 8 Feb 2024 00:15:53 +0000 (00:15 +0000)]
correct size in ipv6 address comparison
found by "'&a->sin6_addr' too small (16 vs 28)" smatch error
ok jca@
jsg [Thu, 8 Feb 2024 00:05:46 +0000 (00:05 +0000)]
correct size in mac address comparison
found by "'(selbs->ni_macaddr)' too small (6 vs 32)" smatch error
ok stsp@ jca@ phessler@
jsg [Thu, 8 Feb 2024 00:00:16 +0000 (00:00 +0000)]
fix off-by-one in bounds test
found by "buffer overflow 'sc->sc_pins[i]->funcs' 10 <= 10" smatch error
ok miod@ kettenis@
jsg [Wed, 7 Feb 2024 23:53:44 +0000 (23:53 +0000)]
fix anchortypes bounds test
found by "buffer overflow 'anchortypes' 10 <= 12" smatch error
feedback and ok sashan@, ok miod@ on an earlier version
bluhm [Wed, 7 Feb 2024 23:52:20 +0000 (23:52 +0000)]
Add missing #ifdef INET6 to fix ramdisk build.
bluhm [Wed, 7 Feb 2024 23:40:40 +0000 (23:40 +0000)]
Use the route generation number also for IPv6.
Implement route6_cache() to check whether the cached route is still
valid and otherwise fill caching parameter of struct route_in6.
Also count cache hits and misses in netstat. in_pcbrtentry() uses
route cache now.
OK claudio@
kettenis [Wed, 7 Feb 2024 22:35:08 +0000 (22:35 +0000)]
Add Allwinner H616 support.
ok uaa@
kettenis [Wed, 7 Feb 2024 22:34:39 +0000 (22:34 +0000)]
Add Allwinner H616 support.
ok uaa@
uaa [Wed, 7 Feb 2024 22:00:38 +0000 (22:00 +0000)]
add allwinner H616 support
ok kettenis@
millert [Wed, 7 Feb 2024 21:24:58 +0000 (21:24 +0000)]
Add and install the zonenow.tab file.
This is a table where each row stands for a timezone where civil
timestamps are predicted to agree from now on.
miod [Wed, 7 Feb 2024 20:54:53 +0000 (20:54 +0000)]
Use tlb_flush() rather than complete invalidation in pmap_set_modify().
This has been missed in 1.68.
jca [Wed, 7 Feb 2024 20:54:20 +0000 (20:54 +0000)]
riscv64 fix: Handle relaxation reductions of more than 65536 bytes
Upstream commit:
https://github.com/llvm/llvm-project/commit/
9d37ea95df1b84cca9b5e954d8964c976a5e303e
Already needed at least by ports/math/hdf5, prerequisite if we want to
enable linker relaxation (clang upstream defaults).
ok kettenis@
tb [Wed, 7 Feb 2024 20:52:55 +0000 (20:52 +0000)]
sync with base (comment-only change)
tb [Wed, 7 Feb 2024 20:52:24 +0000 (20:52 +0000)]
sync with upstream
tb [Wed, 7 Feb 2024 20:51:38 +0000 (20:51 +0000)]
sync with zlib.h
ok jmc
tb [Wed, 7 Feb 2024 20:51:19 +0000 (20:51 +0000)]
Sync doc-comment for deflateInit2 with upstream
miod [Wed, 7 Feb 2024 20:32:54 +0000 (20:32 +0000)]
Fix signedness to make sure we don't left shift into the sign bit.
anton [Wed, 7 Feb 2024 19:26:58 +0000 (19:26 +0000)]
Infer rdomains from environment variables N1 and N2 like many others in
regress/sys/net already does. No functional change as the defaults
remains the same.
mpi [Wed, 7 Feb 2024 19:07:42 +0000 (19:07 +0000)]
Prevent tuples to be used as map key, associative array is what we want.
tb [Wed, 7 Feb 2024 17:22:01 +0000 (17:22 +0000)]
libkeynote: use DSA_generate_parameters_ex()
DSA_generate_parameters() was deprecated in 2002. Its removal was blocked
because someone added "enhanced DSA support" to rust-openssl. Fortunately
this was fixed recently by the pyca people. So we can remove it now.
Of course, DSA_generate_parameters_ex() wasn't an improvement. While it no
longer uses the old callback version, it also needs a DSA object passed in
thus making it more annoying for callers.
ok jsing
martijn [Tue, 6 Feb 2024 15:36:11 +0000 (15:36 +0000)]
Let the config parser make use of the mib_string2oid().
If a descriptor is not found in the loaded MIB files it falls back to
the old smi_oid2string(), which then throws a deprecation warning. This
won't trigger for most cases in the default install, but the
UCD-DISKIO-MIB and dependencies aren't included (yet?) (which can be
fixed by manually including them via "mib directory") and there's a
couple of misspellings (e.g. mib_2 vs mib-2, and
usmStatsNotInTimeWindow vs usmStatsNotInTimeWindows).
Feedback and OK tb@
stsp [Tue, 6 Feb 2024 14:18:15 +0000 (14:18 +0000)]
implement basic bpf(4) support for qwx(4)
This is sufficient to capture 802.11 frames with tcpdump -y IEEE802_11_RADIO.
Meta-data such as RSSI and channel number is not yet recorded.
tobhe [Tue, 6 Feb 2024 13:10:56 +0000 (13:10 +0000)]
Pass struct iked directly to ca_reset() instead of passing it via ps
discussed with markus@
martijn [Tue, 6 Feb 2024 12:44:27 +0000 (12:44 +0000)]
Replace most smi_oid2string() calls with the new mib_oid2string().
smi_oid2string() is still called from trap handle context to not break
any existing scripts.
OK tb@
martijn [Tue, 6 Feb 2024 12:39:13 +0000 (12:39 +0000)]
Load MIB files during startup. The default directory is
/usr/share/snmp/mibs, but one or more directories can be configured via
the "mib directory" option.
OK tb@
yasuoka [Tue, 6 Feb 2024 10:53:20 +0000 (10:53 +0000)]
Fix the radius standard module to remove the specified attribute from
response properly.
yasuoka [Tue, 6 Feb 2024 05:39:28 +0000 (05:39 +0000)]
Tweak previous. Passing "dns" to pledge(2) is suitable for the purpose.
input deraadt, ok tobhe
jca [Tue, 6 Feb 2024 05:07:28 +0000 (05:07 +0000)]
Add risc-v support code for clang -msave-restore
ok kettenis@
jca [Tue, 6 Feb 2024 05:00:12 +0000 (05:00 +0000)]
Fix RTARCH in our Makefile and lets us access riscv-specific implementations
This brings us fp_mode.c used in softfloat code, and muldi3.S used when
the target ISA doesn't have the Multiply extension.
ok kettenis@
jsg [Tue, 6 Feb 2024 04:07:51 +0000 (04:07 +0000)]
drm/amdgpu: Fix missing error code in 'gmc_v6/7/8/9_0_hw_init()'
From Srinivasan Shanmugam
7110e98840ee6b7009304b1e41c8e6930452a48e in linux-6.6.y/6.6.16
16da399091dca3d1e48109086403587af37cc196 in mainline linux
jsg [Tue, 6 Feb 2024 04:05:39 +0000 (04:05 +0000)]
drm/amdkfd: only flush mes process context if mes support is there
From Jonathan Kim
3c0a7eac9e7883317e2010bc525a3f1c4847587c in linux-6.6.y/6.6.16
24149412dfc71f7f4a54868702e9145e396263d3 in mainline linux
jsg [Tue, 6 Feb 2024 04:04:12 +0000 (04:04 +0000)]
drm: using mul_u32_u32() requires linux/math64.h
From Stephen Rothwell
8de8f000ffe1c930d0cdf73cfce91b0d1746c3bc in linux-6.6.y/6.6.16
933a2a376fb3f22ba4774f74233571504ac56b02 in mainline linux
jsg [Tue, 6 Feb 2024 04:01:06 +0000 (04:01 +0000)]
drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'
From Srinivasan Shanmugam
5ea4007636b27800fa01555428aa9c198aeb5bf4 in linux-6.6.y/6.6.16
d7a254fad873775ce6c32b77796c81e81e6b7f2e in mainline linux
jsg [Tue, 6 Feb 2024 03:59:48 +0000 (03:59 +0000)]
drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'
From Srinivasan Shanmugam
25c2de1fbd8ee13008791a3c131f5fed02b3ccec in linux-6.6.y/6.6.16
8a44fdd3cf91debbd09b43bd2519ad2b2486ccf4 in mainline linux
jsg [Tue, 6 Feb 2024 03:58:02 +0000 (03:58 +0000)]
drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'
From Srinivasan Shanmugam
b02831b8a5b687138df4662ff914aa3defc2499e in linux-6.6.y/6.6.16
fac4ebd79fed60e79cccafdad45a2bb8d3795044 in mainline linux
jsg [Tue, 6 Feb 2024 03:56:23 +0000 (03:56 +0000)]
drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
From Srinivasan Shanmugam
0ee4c5829fb3cfb8b168956be9a28ede5996a8f8 in linux-6.6.y/6.6.16
6616b5e1999146b1304abe78232af810080c67e3 in mainline linux
jsg [Tue, 6 Feb 2024 03:55:02 +0000 (03:55 +0000)]
drm/amdgpu: fix avg vs input power reporting on smu7
From Alex Deucher
d0bc6be623ba7270ad71fee9a8af6843420e7191 in linux-6.6.y/6.6.16
25852d4b97572ff62ffee574cb8bb4bc551af23a in mainline linux
jsg [Tue, 6 Feb 2024 03:53:15 +0000 (03:53 +0000)]
drm/amdkfd: Fix lock dependency warning with srcu
From Philip Yang
752312f6a79440086ac0f9b08d7776870037323c in linux-6.6.y/6.6.16
2a9de42e8d3c82c6990d226198602be44f43f340 in mainline linux
jsg [Tue, 6 Feb 2024 03:51:59 +0000 (03:51 +0000)]
drm/amdkfd: Fix lock dependency warning
From Felix Kuehling
28d2d623d2fbddcca5c24600474e92f16ebb3a05 in linux-6.6.y/6.6.16
47bf0f83fc86df1bf42b385a91aadb910137c5c9 in mainline linux
jsg [Tue, 6 Feb 2024 03:50:16 +0000 (03:50 +0000)]
drm/amdgpu: apply the RV2 system aperture fix to RN/CZN as well
From Alex Deucher
08dde830ab24cfcb855b198f7dbe7d3637f623bc in linux-6.6.y/6.6.16
16783d8ef08448815e149e40c82fc1e1fc41ddbf in mainline linux
jsg [Tue, 6 Feb 2024 03:47:54 +0000 (03:47 +0000)]
drm/amdkfd: Fix iterator used outside loop in 'kfd_add_peer_prop()'
From Srinivasan Shanmugam
583e0a336bfbf3f2fb2badc7d1980dadfb3611f0 in linux-6.6.y/6.6.16
b1a428b45dc7e47c7acc2ad0d08d8a6dda910c4c in mainline linux
jsg [Tue, 6 Feb 2024 03:46:37 +0000 (03:46 +0000)]
drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
From Srinivasan Shanmugam
ff5aefbbd82ea7eee61606ff7cce56bfac269010 in linux-6.6.y/6.6.16
bf2ad4fb8adca89374b54b225d494e0b1956dbea in mainline linux
jsg [Tue, 6 Feb 2024 03:45:17 +0000 (03:45 +0000)]
drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'
From Srinivasan Shanmugam
aa1791b280ed36005226e031a622091fa7e5382e in linux-6.6.y/6.6.16
13a1851f923d9a7a78a477497295c2dfd16ad4a4 in mainline linux
jsg [Tue, 6 Feb 2024 03:43:45 +0000 (03:43 +0000)]
Re-revert "drm/amd/display: Enable Replay for static screen use cases"
From Ivan Lipski
90df72694a5b7ca2a415eb3baeb9f385cee8033c in linux-6.6.y/6.6.16
d6398866a6b47e92319ef6efdb0126a4fbb7796a in mainline linux
jsg [Tue, 6 Feb 2024 03:40:18 +0000 (03:40 +0000)]
drm/amdgpu: Let KFD sync with VM fences
From Felix Kuehling
0d35c8977be8f220931d437d568f64a7028d0115 in linux-6.6.y/6.6.16
ec9ba4821fa52b5efdbc4cdf0a77497990655231 in mainline linux
jsg [Tue, 6 Feb 2024 03:38:48 +0000 (03:38 +0000)]
drm/amd/display: Fix minor issues in BW Allocation Phase2
From Meenakshikumar Somasundaram
cef7f96a0a4c00f761248cd714b086c1256992cb in linux-6.6.y/6.6.16
aa5dc05340eb97486a631ce6bccb8d020bf6b56b in mainline linux
jsg [Tue, 6 Feb 2024 03:36:14 +0000 (03:36 +0000)]
drm/amdgpu: Fix ecc irq enable/disable unpaired
From Stanley Yang
0a8fc4e007b933d46f079a1d9ab8539a4d8439ef in linux-6.6.y/6.6.16
a32c6f7f5737cc7e31cd7ad5133f0d96fca12ea6 in mainline linux
jsg [Tue, 6 Feb 2024 03:34:28 +0000 (03:34 +0000)]
drm/amd/display: Only clear symclk otg flag for HDMI
From Alvin Lee
49b4cab7bcbdfe621162405502283fc9cb3ef77f in linux-6.6.y/6.6.16
dff45f03f508c92cd8eb2050e27b726726b8ae0b in mainline linux
jsg [Tue, 6 Feb 2024 03:32:50 +0000 (03:32 +0000)]
drm/amd/display: make flip_timestamp_in_us a 64-bit variable
From Josip Pavic
4033887acddcbb15280091f0a125ac0829cffdc8 in linux-6.6.y/6.6.16
6fb12518ca58412dc51054e2a7400afb41328d85 in mainline linux
jsg [Tue, 6 Feb 2024 03:29:53 +0000 (03:29 +0000)]
drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap
From Wang Beyond
e7a0ee45c653784edda5e36bae6ae3c75fd5e7a8 in linux-6.6.y/6.6.16
94aeb4117343d072e3a35b9595bcbfc0058ee724 in mainline linux
jsg [Tue, 6 Feb 2024 03:25:50 +0000 (03:25 +0000)]
drm/amdkfd: fix mes set shader debugger process management
From Jonathan Kim
3a950c56dea199d65bc98db348c017856aa2f194 in linux-6.6.y/6.6.16
bd33bb1409b494558a2935f7bbc7842def957fcd in mainline linux
jsg [Tue, 6 Feb 2024 03:23:27 +0000 (03:23 +0000)]
drm/amd/display: Force p-state disallow if leaving no plane config
From Alvin Lee
e9ca61a7e6b0d323547067e1dde64a97476e1696 in linux-6.6.y/6.6.16
9a902a9073c287353e25913c0761bfed49d75a88 in mainline linux
jsg [Tue, 6 Feb 2024 03:21:45 +0000 (03:21 +0000)]
drm/amd/display: For prefetch mode > 0, extend prefetch if possible
From Alvin Lee
6750d1de747f4d2db0046a25b069e15341f6a9ba in linux-6.6.y/6.6.16
dd4e4bb28843393065eed279e869fac248d03f0f in mainline linux
jsg [Tue, 6 Feb 2024 03:20:00 +0000 (03:20 +0000)]
drm/mipi-dsi: Fix detach call without attach
From Tomi Valkeinen
daf57c5ce16e907405d8a59a4f2be20e204906e4 in linux-6.6.y/6.6.16
90d50b8d85834e73536fdccd5aa913b30494fef0 in mainline linux
jsg [Tue, 6 Feb 2024 03:17:19 +0000 (03:17 +0000)]
drm/framebuffer: Fix use of uninitialized variable
From Tomi Valkeinen
9b3fbff86a623a0ec053d5a4ab432956cb025c1f in linux-6.6.y/6.6.16
f9af8f0c1dc567a5a6a6318ff324c45d80d4a60f in mainline linux
jsg [Tue, 6 Feb 2024 03:15:49 +0000 (03:15 +0000)]
drm/drm_file: fix use of uninitialized variable
From Tomi Valkeinen
2cde325e185b43accae56a23c18b2e735245197a in linux-6.6.y/6.6.16
1d3062fad9c7313fff9970a88e0538a24480ffb8 in mainline linux
jsg [Tue, 6 Feb 2024 03:14:23 +0000 (03:14 +0000)]
drm/amd/display: Fix MST PBN/X.Y value calculations
From Ilya Bakoulin
01e7578c7cd3d8815fae130ac74b1303c056bd2d in linux-6.6.y/6.6.16
94bbf802efd0a8f13147d6664af6e653637340a8 in mainline linux
jsg [Tue, 6 Feb 2024 03:13:06 +0000 (03:13 +0000)]
drm/amd/display: Fix tiled display misalignment
From Meenakshikumar Somasundaram
1c563c04509080b374af5adf8e1c45718e3f37bf in linux-6.6.y/6.6.16
c4b8394e76adba4f50a3c2696c75b214a291e24a in mainline linux
bluhm [Tue, 6 Feb 2024 00:18:53 +0000 (00:18 +0000)]
Invert broken check of panic string in if_linkstate().
original bug report from syzkaller
Reported-by: syzbot+d19060a65721eb432a72@syzkaller.appspotmail.com
broken fix found by Hrvoje Popovski
hint to the problem and OK deraadt@
bluhm [Mon, 5 Feb 2024 23:16:39 +0000 (23:16 +0000)]
Add netstat counter for route cache.
To optimize route caching, count cache hits and misses. This is
shown in netstat -s for both inet and inet6. Reuse the old IPv6
forward cache counter. Sort ip6s_wrongif consistently. For now
only IPv4 cache counter has been implemented.
OK mvs@
dv [Mon, 5 Feb 2024 21:58:09 +0000 (21:58 +0000)]
Cleanup fcntl(3) usage and fd lifetimes in vmd(8).
Remove extraneous fcntl(3) usage for setting fd features that can
be set at time of open(2), pipe2(2), or socketpair(2). Also cleans
up pty creation switching to using functions from libutil instead
of direct ioctl(2) calls.
ok mlarkin@, original diff ok claudio@ as well.
deraadt [Mon, 5 Feb 2024 21:41:52 +0000 (21:41 +0000)]
sync
jmc [Mon, 5 Feb 2024 21:33:00 +0000 (21:33 +0000)]
remove /f from "show buf", which was used for softdep info
and is no longer relevant after softdep removal;
confirmed by miod
mvs [Mon, 5 Feb 2024 20:21:38 +0000 (20:21 +0000)]
Use `sb_mtx' mutex(9) to protect `sb_timeo_nsecs'. In most places
solock() is still held because other 'sockbuf' members require it, but
in so{g,s}etopt() paths solock() is avoided.
ok bluhm
job [Mon, 5 Feb 2024 19:23:58 +0000 (19:23 +0000)]
Check whether all data in eContent has been consumed
It is possible that a given ASN.1 template generated d2i_*() function
didn't consume all data, so there is a potential for malleability.
The econtent is a sequence (which means it could be the concatenation
of several DER "blobs"). d2i_*() would only deserialize the first one
and not notice blobs following it.
OK tb@
deraadt [Mon, 5 Feb 2024 19:08:29 +0000 (19:08 +0000)]
support newer mfii devices; ok jmatthew
deraadt [Mon, 5 Feb 2024 19:08:10 +0000 (19:08 +0000)]
sync
deraadt [Mon, 5 Feb 2024 19:07:45 +0000 (19:07 +0000)]
newer mfii devices; ok jmatthew
mvs [Mon, 5 Feb 2024 18:27:47 +0000 (18:27 +0000)]
Don't send route messages while rebooting after panic. Syskaller exposed
[1] that if_downall() tries to send route messages and triggers panic
again but in knote(9) layer.
1. https://syzkaller.appspot.com/bug?extid=
d19060a65721eb432a72
ok bluhm