nicm [Mon, 23 Aug 2021 17:05:43 +0000 (17:05 +0000)]
args_make_commands_now needs to take an extra reference to the returned
command list since it will be freed already.
nicm [Mon, 23 Aug 2021 12:33:55 +0000 (12:33 +0000)]
Move command argument parsing common functions and don't bother to parse
again if given a command rather than a string.
nicm [Mon, 23 Aug 2021 11:48:21 +0000 (11:48 +0000)]
Key bindings steal a reference to the command instead of adding their
own, it was correct not to add a reference when parsing, but the
bind-key then needs to add one.
nicm [Mon, 23 Aug 2021 11:08:26 +0000 (11:08 +0000)]
Revert one of previous, for some reason it is being freed.
nicm [Mon, 23 Aug 2021 11:04:21 +0000 (11:04 +0000)]
Fix a few memory leaks.
stsp [Mon, 23 Aug 2021 08:59:31 +0000 (08:59 +0000)]
Fix the initial length check in iwx_fill_probe_req() to match iwm(4).
Patch by zxystd from OpenIntelWireless.
nicm [Mon, 23 Aug 2021 08:17:41 +0000 (08:17 +0000)]
Limit width and height to tty correctly, GitHub issue 2843.
nicm [Sun, 22 Aug 2021 15:33:14 +0000 (15:33 +0000)]
Fix handling of leading #s when working out width.
nicm [Sun, 22 Aug 2021 13:48:29 +0000 (13:48 +0000)]
Do not double free expanded path in source-file, also remove some
unnecessary assignments.
nicm [Sun, 22 Aug 2021 13:00:28 +0000 (13:00 +0000)]
Insert alias in the right place, GitHub issue 2842.
anton [Sun, 22 Aug 2021 07:20:40 +0000 (07:20 +0000)]
Since the raw keymap already has a capacity of holding all present keys,
use it as a lookup table using the bit as the index. Removes the need to
linearly scan the same keymap during handling of a key press, not that
performance matters here since the length of the keymap is small but the
code gets a bit simpler and one struct becomes redundant.
While here, fix two incorrect conditionals in ucc_parse_hid() which
compared two different quantities.
deraadt [Sun, 22 Aug 2021 06:26:28 +0000 (06:26 +0000)]
ucc also fails to work here, because there is no wskbd_rawinput
nicm [Sat, 21 Aug 2021 20:57:52 +0000 (20:57 +0000)]
Free value properly.
nicm [Sat, 21 Aug 2021 20:46:43 +0000 (20:46 +0000)]
Preserve argument type in command and convert to string on demand.
nicm [Sat, 21 Aug 2021 18:39:07 +0000 (18:39 +0000)]
Pass typed arguments out of the parser into the arguments list and let
it convert them into strings.
jmc [Sat, 21 Aug 2021 18:28:52 +0000 (18:28 +0000)]
ioc(4) disappeared with sgi removal...
jmc [Sat, 21 Aug 2021 18:18:05 +0000 (18:18 +0000)]
escape two instances of the word "An" in Rs/Re blocks: although mandoc
can handle it, groff does not like it;
nicm [Sat, 21 Aug 2021 17:41:19 +0000 (17:41 +0000)]
Use new syntax for default key bindings.
nicm [Sat, 21 Aug 2021 17:25:32 +0000 (17:25 +0000)]
Stop caring about empty commands, just treat as a null command.
deraadt [Sat, 21 Aug 2021 14:46:25 +0000 (14:46 +0000)]
octeon has no wskbd, so ucc cannot link. the files.usb parts should have
handled this, but they don't. disable until this is revisited.
nicm [Sat, 21 Aug 2021 14:10:08 +0000 (14:10 +0000)]
Remove some members of struct cmd which are no longer used.
nicm [Sat, 21 Aug 2021 14:06:17 +0000 (14:06 +0000)]
Preserve command group when moving temporary list to current list being
buit.
nicm [Sat, 21 Aug 2021 10:28:05 +0000 (10:28 +0000)]
Rename a member to match what it will be in future.
jmc [Sat, 21 Aug 2021 10:27:10 +0000 (10:27 +0000)]
make the description for ucc match exactly;
nicm [Sat, 21 Aug 2021 10:22:38 +0000 (10:22 +0000)]
Add args parsing callback for some future work, currently unused.
nicm [Sat, 21 Aug 2021 08:44:59 +0000 (08:44 +0000)]
Wrap command argument definitions in their own struct.
anton [Sat, 21 Aug 2021 06:52:52 +0000 (06:52 +0000)]
fix indent in previous
gkoehler [Sat, 21 Aug 2021 03:00:02 +0000 (03:00 +0000)]
Switch macppc to ld.lld
Add powerpc to LLD_ARCH. Remove -Wl,-relax flag; ld.bfd needed it,
but ld.lld can't take this flag.
To avoid linker errors on macppc, you need a snapshot where
/usr/bin/ld is LLD.
ok kettenis@ deraadt@
deraadt [Sat, 21 Aug 2021 02:43:35 +0000 (02:43 +0000)]
refactor to resolve unused variable on non-WSDISPLAY_COMPAT_RAWKBD arch
nicm [Fri, 20 Aug 2021 20:08:30 +0000 (20:08 +0000)]
A couple more spacing fixes.
nicm [Fri, 20 Aug 2021 20:04:22 +0000 (20:04 +0000)]
Spacing tweaks.
nicm [Fri, 20 Aug 2021 19:50:16 +0000 (19:50 +0000)]
Hide struct args behind a couple of accessor functions.
nicm [Fri, 20 Aug 2021 19:34:51 +0000 (19:34 +0000)]
Add a couple of const and fix some warnings.
nicm [Fri, 20 Aug 2021 19:08:36 +0000 (19:08 +0000)]
Remove some unnecessary blank lines.
nicm [Fri, 20 Aug 2021 18:59:53 +0000 (18:59 +0000)]
Expose args_value struct (will be needed soon) and add some missing frees.
nicm [Fri, 20 Aug 2021 17:53:54 +0000 (17:53 +0000)]
Add a way to create an empty arguments set.
nicm [Fri, 20 Aug 2021 17:50:42 +0000 (17:50 +0000)]
Remove stray spaces after function names.
nicm [Fri, 20 Aug 2021 17:36:03 +0000 (17:36 +0000)]
Fill colour palette correctly from option for new panes, GitHub issue
2831.
nicm [Fri, 20 Aug 2021 09:06:26 +0000 (09:06 +0000)]
Actually parse contents of {} as a command and then convert to a string
instead of just copying arguments around as strings.
nicm [Fri, 20 Aug 2021 06:30:57 +0000 (06:30 +0000)]
Add a helper function for actually parsing the command.
anton [Fri, 20 Aug 2021 05:26:25 +0000 (05:26 +0000)]
sync
anton [Fri, 20 Aug 2021 05:25:23 +0000 (05:25 +0000)]
add ucc(4) manual, looks good to jmc@
anton [Fri, 20 Aug 2021 05:23:18 +0000 (05:23 +0000)]
Add ucc(4), a driver for USB HID Consumer Control keyboards. Such
keyboard is a pseudo device which is used to expose audio and
application launch keys. My prime motivation is to get the volume mute,
increment and decrement keys to just work on my keyboard without the
need to use usbhidaction(1).
Looks reasonable to kettenis@ mpi@ and ok jcs@
anton [Fri, 20 Aug 2021 05:19:08 +0000 (05:19 +0000)]
add consumer control hid usages, will be used by ucc(4)
kevlo [Fri, 20 Aug 2021 04:54:10 +0000 (04:54 +0000)]
Back out last commit.
deraadt@ pointed out that the operation is correct.
It attaches, but by then it is being pulled. The dying flag is set to
avoid half the kinds of failure conditions. The other half of the failure
conditions are detect on-the-spot.
And it seems when compiled for debug, this on-the-spot check which notices
the device isn't there, has a printf.
djm [Fri, 20 Aug 2021 03:22:55 +0000 (03:22 +0000)]
openssh-8.7
kevlo [Fri, 20 Aug 2021 01:40:51 +0000 (01:40 +0000)]
When plugging and unplugging an adapter continuously, it waits for a timeout
over and over again. The problem is that the device has been unplugged,
but the attach handler still issues USB requests via ure_ctl().
The easiest solution is to deactivate the device proactively in
ure_ctl() when we see that error there.
From Christian Ludwig
kevlo [Fri, 20 Aug 2021 01:33:44 +0000 (01:33 +0000)]
In the attach routine, the hardware bug workaround is only for legacy PCI
interrupts. Move it to the right place.
stsp [Fri, 20 Aug 2021 00:22:54 +0000 (00:22 +0000)]
Revert previous; Turns out the start_hw() functions don't always
work right during the resume path. To be revisited later.
stsp [Thu, 19 Aug 2021 18:45:11 +0000 (18:45 +0000)]
Run more device init code when resuming iwm(4) and iwx(4) devices.
deraadt@ pointed out that the resume code path only ran a small part
of the entire hardware init sequence which runs when the device is
first attached at boot time.
In particular, we didn't wait for device stabilization, and MSI-X
initialization was attempted too early, and the "persistence bit"
workaround was skipped (which, ironically, is supposed to address
a known hardware bug during resume).
Tested by jcs on AX201 and by myself on 8265 with no regressions seen.
schwarze [Thu, 19 Aug 2021 16:55:24 +0000 (16:55 +0000)]
do not crash when a manpath directory contains a symbolic link
that points to a directory rather than to a regular file;
bug reported by Lukas Epple <sternenseemann at systemli dot org>,
and my patch also tested by him on NixOS
schwarze [Thu, 19 Aug 2021 15:21:32 +0000 (15:21 +0000)]
fix the section number in the <title> element for preformatted pages;
minibug reported by Ian <Ropers at gmail dot com> on misc@
patrick [Thu, 19 Aug 2021 14:13:39 +0000 (14:13 +0000)]
Purge the cached nodes when we switch back to SCAN. In case we lost
the connection because an AP is gone away, this makes sure we don't
end up picking a now non-existant AP over and over.
Another problem this works around is that when trying to re-join that
AP, the attempt to connect would not yield any event message from the
firmware, and then we would get stuck. Since we now definitely choose
a different AP, this issue does not show up.
ok stsp@
patrick [Thu, 19 Aug 2021 13:58:40 +0000 (13:58 +0000)]
Consistently use ieee80211_begin_scan() to switch to SCAN.
React to deauth/disassoc and link state events if we're
already past the SCAN stage.
ok stsp@
dlg [Thu, 19 Aug 2021 10:22:00 +0000 (10:22 +0000)]
implement reception of "VLAN 0 priority tagged" packets.
according to 802.1Q, vlan 0 on the wire is special and should be
interpreted as if it was a packet received on the parent interface,
but you get the packet priority information encoded in the vlan
header.
historically we drop vlan tagged packets that don't have a vlan
interface configured for the received tag number. historically we
have deviated from 802.1Q by allowing for the configuration of a
vlan subinterface with the vnetid "unset". this works just like any
other vlan interface, but it uses tag 0 on the wire. however, if
you're in a situation where you're receiving vlan tagged 0 packets
that really are part of the same layer 2 ethernet domain as the
parent inteface, this doesnt work well.
landry@ is in such a situation at work where the network is sending
his OpenBSD boxes packets with VLAN tag 0. sometimes. most of the
time the packets are untagged, which is expected, but sometimes
they have a VLAN header set. this causes problems, particularly
with arp.
this diff does the smallest possible change to enable reception of
these vlan 0 priority tagged packets. if an "unset" vlan interface
is not configured on the parent, then vlan 0 tagged packets get
their header stripped and continue stack processing as if they didnt
have the tag at all.
landry has been running this for months.
ok sthen@ claudio@
stsp [Thu, 19 Aug 2021 06:02:39 +0000 (06:02 +0000)]
Fix an off-by-one in bwfm(4) SSID length checks.
SSIDs are binary data, not NUL-terminated strings.
ok patrick@
stsp [Thu, 19 Aug 2021 06:02:04 +0000 (06:02 +0000)]
Hide detailed firmware error reports from iwn/iwm/iwx by default.
These drivers will now report "fatal firmware error" on a single line
by default and provide the full trace when debugging has been enabled
with e.g. 'ifconfig iwm0 debug'.
ok sthen@ kevlo@
beck [Thu, 19 Aug 2021 03:44:00 +0000 (03:44 +0000)]
Pull roots out of the trust store in the legacy xsc when building chains
to handly by_dir and fun things correctly. - fixes dlg@'s case and
by_dir regress in openssl-ruby
ok jsing@
solene [Wed, 18 Aug 2021 18:10:33 +0000 (18:10 +0000)]
Add veb(4) to the list of pseudo devices that can be created.
ok deraadt@
tb [Wed, 18 Aug 2021 16:06:56 +0000 (16:06 +0000)]
Import regress tests for SM2. Not yet linked to the build.
Part of Github PR #105
tb [Wed, 18 Aug 2021 16:04:32 +0000 (16:04 +0000)]
Import initial code for the SM2 cipher
This adds the SM2 algorithm defined in the Chinese standards
GB/T 32918.1-2016, GB/T 32918.2-2016, GB/T 32918.3-2016,
GB/T 32918.4-2016 and GB/T 32918.5-2017.
This is an ISC licensed implementation contributed by Ribose.inc, based
on the same code that was contributed to OpenSSL by Jack Lloyd. The port
to LibreSSL was done by Ronald Tse and Nickolay Olshevsky.
Github PR #105
I made quite a few cleanup passes on this, but more is needed, some
of which will happen in-tree before this is linked to the build.
ok deraadt inoguchi (a long time ago), jsing
beck [Wed, 18 Aug 2021 15:32:38 +0000 (15:32 +0000)]
Add a check_trust call to the legacy chain validation on chain add, remembering
the result in order to return the same errors as OpenSSL users expect to override
the generic "Untrusted cert" error.
This fixes the openssl-ruby timestamp test.
ok tb@
nicm [Wed, 18 Aug 2021 15:16:33 +0000 (15:16 +0000)]
Need to flatten arguments for aliases.
beck [Wed, 18 Aug 2021 15:10:46 +0000 (15:10 +0000)]
Refactor the legacy chain validation from the chain adding code into its
own function, in preparation for subesquent change. No functional change.
ok tb@
nicm [Wed, 18 Aug 2021 10:15:08 +0000 (10:15 +0000)]
Push the conversion of {} to string up out of the parser and into the
command builder.
jsg [Wed, 18 Aug 2021 10:02:49 +0000 (10:02 +0000)]
drm/i915: Only access SFC_DONE when media domain is not fused off
From Matt Roper
65395b053d03cb662e63cbf2c7e0faef8c15cb8c in linux 5.10.y/5.10.60
24d032e2359e3abc926b3d423f49a7c33e0b7836 in mainline linux
jsg [Wed, 18 Aug 2021 09:59:05 +0000 (09:59 +0000)]
drm/amdgpu: don't enable baco on boco platforms in runpm
From Alex Deucher
95de3592f87e46df63119dd52b4a0e544e519c6b in linux 5.10.y/5.10.60
202ead5a3c589b0594a75cb99f080174f6851fed in mainline linux
jsg [Wed, 18 Aug 2021 09:56:59 +0000 (09:56 +0000)]
drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work
From Anson Jacob
bd80d11a516c78fb74d11e69c67082f36f8ef8e3 in linux 5.10.y/5.10.60
0cde63a8fc4d9f9f580c297211fd05f91c0fd66d in mainline linux
jsg [Wed, 18 Aug 2021 09:54:44 +0000 (09:54 +0000)]
drm/amd/display: Remove invalid assert for ODM + MPC case
From Eric Bernstein
ae311a7418f13be375c29ec4178baa51cd9101ba in linux 5.10.y/5.10.60
c90f6263f58a28c3d97b83679d6fd693b33dfd4e in mainline linux
deraadt [Tue, 17 Aug 2021 20:32:26 +0000 (20:32 +0000)]
sync
nicm [Tue, 17 Aug 2021 20:17:21 +0000 (20:17 +0000)]
Treat a pane that has died the same as no pane when sending data to
control mode clients, GitHub issue 2828.
tb [Tue, 17 Aug 2021 19:44:01 +0000 (19:44 +0000)]
Sync amd64's est.c r1.40 to i386
Tested by Sven F., James Jerkins and myself.
nicm [Tue, 17 Aug 2021 19:37:55 +0000 (19:37 +0000)]
Fix pipe-pane usage.
nicm [Tue, 17 Aug 2021 19:26:42 +0000 (19:26 +0000)]
Do not block with incremental command prompt.
sthen [Tue, 17 Aug 2021 19:19:59 +0000 (19:19 +0000)]
sync
sthen [Tue, 17 Aug 2021 19:19:30 +0000 (19:19 +0000)]
7.1 fw key
anton [Tue, 17 Aug 2021 18:08:51 +0000 (18:08 +0000)]
oops, fix spelling of my own name
nicm [Tue, 17 Aug 2021 16:19:00 +0000 (16:19 +0000)]
Set the right session if detach-on-destroy is off.
deraadt [Tue, 17 Aug 2021 15:29:09 +0000 (15:29 +0000)]
sync
naddy [Tue, 17 Aug 2021 15:25:27 +0000 (15:25 +0000)]
7.1 packages key
deraadt [Tue, 17 Aug 2021 15:13:08 +0000 (15:13 +0000)]
sync
deraadt [Tue, 17 Aug 2021 15:11:48 +0000 (15:11 +0000)]
7.1 base key
deraadt [Tue, 17 Aug 2021 15:03:55 +0000 (15:03 +0000)]
7.0-beta
anton [Tue, 17 Aug 2021 11:30:45 +0000 (11:30 +0000)]
For devices with rechargeable batteries, expose a new boolean sensor
indicating the charging state.
Thanks to Laurence Tratt <laurie at tratt dot net> for testing.
nicm [Tue, 17 Aug 2021 11:20:13 +0000 (11:20 +0000)]
calloc for confirm-before data since the item needs to start NULL.
nicm [Tue, 17 Aug 2021 08:44:52 +0000 (08:44 +0000)]
Be more sophisticated about enabling synchronized updates when there is
an overlay and treat it like the active pane (use for commands which
move the cursor only). When there is an overlay also use it for all
panes and not just the active pane. GitHub issue 2826.
nicm [Tue, 17 Aug 2021 08:22:44 +0000 (08:22 +0000)]
Revert previous; this is not how it should work.
jmc [Tue, 17 Aug 2021 08:19:55 +0000 (08:19 +0000)]
document 11ac as a valid wireless mode; ok stsp
nicm [Tue, 17 Aug 2021 07:14:33 +0000 (07:14 +0000)]
Start sync before drawing popup.
anton [Tue, 17 Aug 2021 05:56:24 +0000 (05:56 +0000)]
Set the battery level sensor status to unknown while the battery is
charging as some devices reports a level of zero during charging.
Prevents certain sensorsd.conf actions from triggering as a battery
level of zero would otherwise set the sensor status to critical.
Thanks to Laurence Tratt <laurie at tratt dot net> for the report.
kevlo [Mon, 16 Aug 2021 14:54:50 +0000 (14:54 +0000)]
Remove obsolete pre-release support code about two early versions of 8260.
No need to access iwx_read_prph and could get the rid of the obsolete comment.
See Linux commit
4adfaf9b2de3a04a9ee9adff6e000e8dbb37bed5
ok stsp@
tb [Mon, 16 Aug 2021 13:54:38 +0000 (13:54 +0000)]
typo in comment
jsg [Mon, 16 Aug 2021 10:38:57 +0000 (10:38 +0000)]
add missing break
ok claudio@
kevlo [Mon, 16 Aug 2021 01:30:27 +0000 (01:30 +0000)]
Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl().
From Brad
krw [Sun, 15 Aug 2021 13:45:42 +0000 (13:45 +0000)]
Don't check & errx() after each and every invocation of
string_from_line(). Just errx() inside string_from_line() if
getline() fails.
Use strcspn() idiom to nuke '\n' returned by getline().
No functional change.
nicm [Sat, 14 Aug 2021 16:26:29 +0000 (16:26 +0000)]
Some other missing palette NULL checks, from oss-fuzz.
millert [Sat, 14 Aug 2021 14:22:26 +0000 (14:22 +0000)]
Fix iostat per-device values when in boot time mode ('b').
The values should be displayed as-is and not normalized based on
the sleep interval. From Anindya Mukherjee
nicm [Sat, 14 Aug 2021 14:00:07 +0000 (14:00 +0000)]
Do not use NULL palette when clearing.
schwarze [Sat, 14 Aug 2021 13:51:46 +0000 (13:51 +0000)]
print a BAGARG message if -T markdown is requested on man(7) input;
suggested by Michael Stapelberg at debian dot org
schwarze [Sat, 14 Aug 2021 11:30:12 +0000 (11:30 +0000)]
when talking about non-blocking I/O, .Xr both FIONBIO and O_NONBLOCK
in the most concise way i managed to come up with;
suggested by martijn@ and OK millert@ martijn@