Commit Graph

291611 Commits

Author SHA1 Message Date
uwe f9113856a8 wsmoused: support absolute mouse position events
Tested with VirtualBox Guest Addtions.
2021-11-24 14:34:51 +00:00
jmcneill 47ed2bf4a1 arm64: acpi: Set capacity_dmips_mhz for CPUs
The GICC structure describes a relative power efficiency for each
processor. Use this value as-is for the capacity_dmips_mhz value of a
cpu. This makes the assumption that "more efficient" means "slower".
2021-11-24 10:01:24 +00:00
thorpej cb0c5a1873 Decorate the SuperH signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-24 02:01:15 +00:00
thorpej d7b75e6eaa Teach the LLVM-derived unwinder about the DWARF pseudo-registers defined
by GCC for SuperH for GBR, MACH, MACL, and SR.
2021-11-24 00:21:59 +00:00
thorpej f5f80c0753 Temporary hack to work around incorrect/missing unwind info for
the t_sig_backtrace test case on ARM when compiled with optimization.
2021-11-23 23:29:55 +00:00
thorpej 389a070437 Decorate the ARM signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-23 18:45:53 +00:00
pho 55da09bdbb Make LINUX_FIOCLEX and LINUX_FIONCLEX work
These ioctls were declared in linux_termios.h but were not actually
handled.
2021-11-23 17:54:08 +00:00
thorpej 445de9ccf9 Because the PC is not a general purpose register on aarch64, we need
to use DWARF pseudo-register for the signal trampoline return address.

Adjust the style to match other platforms.
2021-11-23 02:49:55 +00:00
blymn fc986dbc59 Don't waste time setting the dirty flag multiple times. 2021-11-22 21:25:25 +00:00
thorpej 3c9111595d Revert unintended commit. 2021-11-22 16:41:32 +00:00
thorpej 4ee192103f Gah, fix two typos. 2021-11-22 16:41:00 +00:00
thorpej 241ca3464c Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for AArch64 to hold the return address where the signal trampoline
will resume.
2021-11-22 16:40:01 +00:00
nia f82f784eae doc: new key generation method for cgdconfig(8) 2021-11-22 16:06:19 +00:00
nia 47fbfd2f6a cgdconfig(8): add some console feedback when calculating the number
of pkcs5_pbkdf2 iterations
2021-11-22 16:04:03 +00:00
christos 1aef28dab7 undef a couple more. 2021-11-22 15:09:16 +00:00
nia 1569bcc0b3 cgdconfig(8): Add an argon2id password-based key generation method
This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

	memory (integer, in kilobytes)
	parallelism (integer, usually the number of CPU cores)
	version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@
2021-11-22 14:34:35 +00:00
nia 5a3dc90041 crypt(3): document some of the memory units we're dealing with 2021-11-22 14:30:24 +00:00
martin 45639db1d3 Fix typo. Pointed out by bch - thanks! 2021-11-22 12:30:34 +00:00
msaitoh 7ded535d1b Add LLDP and MACSec. 2021-11-22 05:57:25 +00:00
msaitoh 47b0514fcf Modify comment:
s/Netbios/NetBIOS/
 s/PPPOE/PPPoE/
2021-11-22 05:50:29 +00:00
msaitoh d0735544b6 s/repsonse/response/ in comment. 2021-11-22 05:33:57 +00:00
kre ccfbc41ccb PR bin/53550
/bin/sh's processing of here doc expansions has changed.   Now it happens
in the context of the parent shell, so side effects are visible there,
just like all other redirection expansions.

We need to stop testing that that doesn't happen, and instead test
that it does.   This is that change.

Add another test case which is testing exactly the example from the PR
(well, with a different exit status, 1 is too generic and could happen
by accident) to make sure we don't reintroduce that bug sometime.
2021-11-22 05:21:54 +00:00
kre 16d8557100 PR bin/53550
Here we go again...   One more time to redo how here docs are
processed (it has been a few years since the last time!)

This is actually a relatively minor change, mostly to timimg
(to just when things happen).   Now here docs are expanded at the
same time the "filename" word in a redirect is expanded, rather than
later when the heredoc was being sent to its process.  This actually
makes things more consistent - but does break one of the ATF tests
which was testing that we were (effectively) internally inconsistent
in this area.

Not all shells agree on the context in which redirection expansions
should happen, some make any side effects visible to the parent shell
(the majority do) others do the redirection expansions in a subshell
so any side effcts are lost.   We used to have a foot in each camp,
with the majority for everything but here docs, and the minority for
here docs.   Now we're all the way with LBJ ... (or something like that).
2021-11-22 05:17:43 +00:00
kre d4ae1f8bcf More tests that were doing ... | atf_check ...
which allows the atf_check to fail without causing the test to fail
(unless this is the (very) last command in the test case, in which case it
will fail with what can be interpreted as an internal error)/

Check for this failing and explicitly atf_fail whwn it does.
2021-11-22 05:07:15 +00:00
thorpej 93b0ea009f Decorate the m68k signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-21 23:58:09 +00:00
thorpej a2dfa8a4c3 Teach the LLVM-derived unwinder about the alternate DWARF pseudo-register
that GCC defines for the PC / return address.  This is simply an alias for
the same internal PC register number.
2021-11-21 23:34:44 +00:00
thorpej f8ce691891 Decorate the powerpc signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-21 21:31:24 +00:00
thorpej 2944d33d0c Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for PPC32 to hold the return address where the signal trampoline
will resume, as well as for the CTR and XER registers.
2021-11-21 21:15:17 +00:00
kre 2efc6dabce Deal with a lot more pipes into atf_check missed last time. 2021-11-21 20:50:35 +00:00
kre 9b13765f1a Improve the however-many-negatives wording even more. 2021-11-21 16:23:20 +00:00
rillig a24edb48c0 tests/indent: demonstrate wrong formatting of type names in declarations 2021-11-21 11:02:25 +00:00
skrll d7a401a8a2 Add parentheses 2021-11-21 10:53:01 +00:00
rillig 6daab9f371 lint: rename list_add to list_add_ref and list_add_copy to list_add
The function for copying the string is used more often, so use the
simpler name for it.

No functional change.
2021-11-21 10:39:47 +00:00
rillig 35bfecd412 lint: remove redundant function prototypes 2021-11-21 10:08:10 +00:00
hannken ae0245f0df Test kernel/kqueue/t_timer, subtests abstime, basic_timer and timer_units
often fail when run on QEMU because QEMU misses clock interrupts.

Always check timespec against expected "tv_sec" and use an "4 * tv_sec"
upper bound when run under QEMU.

Now becomes part of PR kern/43997 "Kernel timer discrepancies".
2021-11-21 09:35:39 +00:00
skrll 9d134cf530 PR port-evbarm/40307 options KGDB doesn't work for some evbarm hosts
Apply patch from Lloyd Parkes with some KNF tweaks from me.
2021-11-21 08:44:28 +00:00
skrll 7804a487ed Trailing whitespace. 2021-11-21 08:25:26 +00:00
simonb 2dc7bd6f38 Add some { } around an if body that is followed by an "else {". 2021-11-21 05:09:15 +00:00
thorpej a7d9970d1b Use the DWARF pseudo-register for the signal trampoline return address. 2021-11-20 19:26:20 +00:00
thorpej 834c26d8b1 Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for Alpha to hold the return address where the signal trampoline
will resume.
2021-11-20 19:06:21 +00:00
thorpej 9d3f86a921 - Teach the LLVM-derived unwinder about the DWARF pseudo-registers defined
by GCC for MIPS64 to hold the MDHI and MDLO registers, as well as the return
  address where the signal trampoline will resume.
- In the MIPS64 validFloatVectorRegister(), compare against the internal
  register numbers, not the DWARF register numbers.
2021-11-20 18:19:18 +00:00
rillig 94af68f3a6 make: use correct plural form in debug message 2021-11-20 17:51:48 +00:00
rillig b07ab6259c tests/make: finish a previously unfinished sentence in a comment 2021-11-20 17:47:33 +00:00
rillig f1e674693c tests/lint: fix negation in explanation for strict bool mode 2021-11-20 17:27:46 +00:00
rillig 87e5866877 sh.1: replace triple negation with single negation, fix typo 2021-11-20 17:18:31 +00:00
rillig 95e11159ea tests/indent: clean up and extend tests 2021-11-20 16:54:17 +00:00
martin 775f6854d7 Note that USE_FORT changes for xorg require a clean build. 2021-11-20 16:18:18 +00:00
christos 44a07dbdbd PR/56496: Hauke Fath: etcupdate(8) merge formatting issue
Follow suit and turn off OXTABS by default

FreeBSD did that in 1994:

r3505 | wollman | 1994-10-10 20:16:28 -0400 (Mon, 10 Oct 1994) | 5 lines
    Turn off OXTABS by default.  Inspection of systems here finds no commercial
    systems with it on by default (or the equivalent flag) and terminal control
    sequences confuse it greatly.  (Try running `ls' under bash in an XTerm,
    for instance.)

OpenBSD did that in 2019:

date: 2019/03/12 11:01:25;  author: nicm;  state: Exp;  lines: +2 -2;
commitid: XOmQAZHjspUKWzDx;
    Almost all terminals now support hardware tabs so default to OXTABS off.

    This makes three changes: adds the ht capability to the standard lines
    in gettytab(5); removes OXTABS from TTYDEF_OFLAG in ttydefaults.h (the
    defaults used by pty(4) - diff from martijn); and only sets OXTABS on
    terminals which lack hts and tbc in tset(1) (from Thomas Dickey
    upstream).

    Addresses problems reported by tedu.

    ok millert
2021-11-20 14:52:22 +00:00
christos 88c7966bab Merge common code for the chdir cases (Piyush Sachdeva)
I also deduplicated some more code
2021-11-20 14:28:29 +00:00
rillig 7ff923e370 indent/tests: remove outdated comment
This task was resolved in the previous commit.
2021-11-20 13:14:34 +00:00