Commit Graph

295931 Commits

Author SHA1 Message Date
uwe 8d7f698117 Terminus Font: Import IBM-encoded versions from 4.49.1
Terminus Font is a clean, fixed width bitmap font, designed for long
(8 and more hours per day) work with computers.

The font has a very good script coverage and subsets with other
encodings can be imported in the future.

This commit imports IBM437 encoded (WSDISPLAY_FONTENC_ISO) subsets
converted to WSF format.  wsfont metadata are stored in the files, so
you can load them without any additional arguments to wsfontload(8).
2022-05-14 14:02:08 +00:00
christos b47b148d83 PR/56831: Eric van Gyzen: race condition in tests/kernel/t_sysv.c
https://cgit.freebsd.org/src/commit/?id=20917cac7bcf216225a7b66f7b3a56f3764c5acc
2022-05-14 14:02:03 +00:00
rillig 05f8af99c7 make: clean up comments in Var_Parse 2022-05-14 12:25:16 +00:00
rillig a1f9277b31 libdns: suppress a few lint warnings that occur too often 2022-05-14 11:43:25 +00:00
rillig f6f9bb2e4a libxcb: suppress lint warnings that are not useful 2022-05-14 11:26:23 +00:00
rillig b6f12bc4a7 libmpc: suppress wrong lint warnings 2022-05-14 11:12:31 +00:00
hgutch 25ac767b16 PR 56829: Fix "map" call to Open Firmware and no longer mess up OFW stack.
This unbreaks miniroot.fs.

Thanks to Björn Johannesson for originally pointing this out and to
mrg@ for pointing out the actual issue and suggesting a fix.
2022-05-14 07:11:23 +00:00
skrll ae907af48b Add some special NOPs to help qemu.
thanks to Helge Deller for the heads-up.
2022-05-14 06:07:53 +00:00
skrll bbf56d84ab *** empty log message *** 2022-05-14 05:35:55 +00:00
rin e92a5d6027 Apply extra-delay quirk to "Intel 9 Series SATA Controller (AHCI)";
without the quirk, the controller fails to probe some HDD models,
at least "Seagate ST2000DM008".

Info and patch provided by Tiago Seco, thanks!
2022-05-14 04:04:55 +00:00
manu 83998c6d7b Add ISO and JIS keyboard layouts for ADB to USB emulation
The layout is configurable using sysctl machdep.adbkbdX.emulate_usb:
0 = no emulation
1 = ANSI
2 = ISO (new with this change)
3 = JIS (new with this change)

Default value is detected using the ADB keyboard handler id. JIS
default is disabled until it is tested.
2022-05-14 01:16:55 +00:00
rillig 0988b72d86 make: document platform dependency in string pattern matching
No unit test for this edge case since all other unit tests are platform-
independent.

To reproduce:
$ make clean
$ make -s PROG=s-make NOMAN=yes USER_CFLAGS=-fsigned-char
$ make clean
$ make -s PROG=u-make NOMAN=yes USER_CFLAGS=-funsigned-char
$ make clean
$ range=$(lua -e 'print(("[%c-%c]"):format(0xe4, 0x61))')
$ ./s-make -V "\${:UM:M$range}\${:UN:N$range}"
M
$ ./u-make -V "\${:UM:M$range}\${:UN:N$range}"
N
2022-05-13 21:42:30 +00:00
rillig 0d91daccca make: clean up low-level comments, eliminate common subexpression
No functional change.
2022-05-13 20:37:01 +00:00
tnn c134dae6c1 nvmm_x86_vmx.c: remove an #ifdef DIAGNOSTIC, it is wrong since r1.66 2022-05-13 19:34:47 +00:00
skrll c408bb6b55 port-hppa/56830: RAS support is slightly incorrect on hppa
When searching for RAS use tf_iioq_head without the HPPA_PC_PRIV_MASK bits
set.
2022-05-13 18:40:02 +00:00
brad 3cdfb747ad Add LINKS and MLINKS to the ddns-confgen Makefile to provide
tsig-keygen.  This helps to allow pkgsrc/security/acmesh to function
and should be provided in all BIND >= 9.13 installs anyway.
2022-05-13 16:39:32 +00:00
reinoud c9995d4cca Fix typo dallocate -> deallocate 2022-05-13 15:02:34 +00:00
msaitoh 389b4ba759 Add MFI_DEBUG and MFII_DEBUG. 2022-05-13 10:45:24 +00:00
msaitoh c9235442c9 Fix compile error when MFII_DEBUG is set. Whitespace fix. 2022-05-13 10:44:38 +00:00
msaitoh add8649ccb Improve DNPRINTF. No functional change. 2022-05-13 10:41:42 +00:00
riastradh 281d5d34fd rkv1crypto(4): Fix units in RNG repeated-output health test.
This code was intended to check whether the two 4-word halves of an
8-word, 32-byte, 256-bit sample were repeated.

Instead, it accidentally checked whether the first 4 _bytes_ of the
two halves were repeated.

The effect was a false alarm rate of 1/2^32, instead of a false alarm
rate of 1/2^128, with no change on the true alarm rate in the event
of an RNG wedged producing all-zero or all-one bits.  1/2^128 is an
acceptable false alarm rate; 1/2^32, not so much.

(The false alarm right might be higher if the samples are not
perfectly uniformly distributed, which they most likey aren't,
although the documentation doesn't give any details other than
suggesting it's a ring oscillator under the hood, which provides
entropy from jitter induced by thermal noise.  This driver records
half a bit of entropy per bit of sample to be reasonably
conservative.)
2022-05-13 09:49:44 +00:00
riastradh fc15b5cfe6 cprng(9): Fix accidental 4x seed size.
With SHA-256, NIST Hash_DRBG takes an preferred 440-bit/55-byte seed.
It's a weird number, and I'm not sure where it comes from (a quick
skim of SP800-90A doesn't turn anything up), but it's certainly
sufficient (256-bit/32-byte seed is almost certainly enough) so it's
not a problem to use something larger; Hash_DRBG can absorb seeds of
arbitrary lengths and larger seeds can't really hurt security (with
minor caveats like HMAC RO quirks that don't apply here).

Except -- owing to a typo, we actually used a 1760-bit/220-byte seed,
because I wrote `uint32_t seed[...]' instead of `uint8_t seed[...]'.
Again: not a problem to use a seed larger than needed.  But let's
draw no more than we need out of the entropy pool!

Verified with CTASSERT(sizeof(seed) == 55).  (Assertion omitted from
this commit because we might swap out Hash_DRBG for something else
with a different seed size like 32 bytes.)
2022-05-13 09:40:25 +00:00
riastradh ec85059186 entropy(9): Update comment about where entropy_extract is allowed.
As of last month, it is forbidden in all hard interrupt context.
2022-05-13 09:40:02 +00:00
riastradh 59f579f5f3 entropy(9): Note rules about how to use entropy_extract output. 2022-05-13 09:39:52 +00:00
riastradh 14db0e2545 x86/pmap: Feed entropy_extract output through nist_hash_drbg.
The entropy pool algorithm is NOT designed to provide backtracking
resistance on its own -- it MUST be combined with a PRNG/DRBG that
provides that.

The only reason we use entropy_extract here is that cprng(9) is not
available yet (which in turn is because kmem and other basic kernel
facilities aren't available yet), but nist_hash_drbg doesn't have any
initialization order requirements, so we'll just use it directly.
2022-05-13 09:39:40 +00:00
uwe 8229f4f760 wsfont(4): WSDISPLAYIO_LDFONT requires device opened for writing. 2022-05-12 23:17:42 +00:00
blymn 6bb8042d10 Make clrtoeol match the ncurses behaviour where it seems to make the
rest of line foreground.  This fixes a display oddity in mutt.
2022-05-12 22:25:38 +00:00
uwe d5bbf827ba wsfontload: O_RDONLY is enough to list the fonts with -l 2022-05-12 22:08:55 +00:00
rillig f95ee9f3cc lint: merge duplicate grammar rules for __alignof__ expr
This allows expressions like '__alignof__(ptr)->member', just as with
'sizeof'.

The upper rule in the grammar was preferred over the lower rule since it
shifted the T_LPAREN instead of reducing unary_expression.  Its
implementation invoked undefined behavior if the expression was NULL
since it didn't assign anything to $$.
2022-05-12 20:57:49 +00:00
rillig c1ebf8f4b6 tests/lint: add more tests for __alignof__ 2022-05-12 20:49:21 +00:00
rillig 6ddc1e42c5 lint: add message text to newly added call to gnuism
Required by check-msgs.lua.
2022-05-12 20:22:58 +00:00
martin 5c90dc2171 We have 130 shift/reduce conflicts now 2022-05-12 18:47:29 +00:00
christos 4449645d98 gcc allows __alignof__(unary-expression) 2022-05-12 17:31:30 +00:00
msaitoh 486bc7571f I think MFI_BBU_STATE_LEARN_CYC_REQ is not an error. 2022-05-12 12:05:04 +00:00
msaitoh eb962e5f56 Use IBBU's data structure for iBBU-09. 2022-05-12 12:04:09 +00:00
msaitoh ae9b0c8b60 No functional change.
- Reduce diff against OpenBSD
   - Whitespace fix.
   - Sort some defines and structures.
   - Add comment.
 - KNF.
2022-05-12 12:00:58 +00:00
msaitoh 82a0234b4c Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change. 2022-05-12 11:56:29 +00:00
rillig a59a352eb2 lint: add support for __alignof__ expr, a GCC extension
Seen in lib/libc/gmon/gmon.c:153.
2022-05-12 00:28:01 +00:00
rillig 6300d02a63 lint: fix support for __alignof__, add support for __alignof
Broken since lex.c 1.129 from yesterday.
2022-05-12 00:18:35 +00:00
rillig 91bf128de4 tests/lint: adjust tests to reflect missing support of __alignof__
The change in lex.c 1.129 attempted to add support for __alignof, in
addition to the existing support for __alignof__.  It failed by removing
support for __alignof__, while allowing the plain 'alignof' instead.
2022-05-12 00:09:44 +00:00
markd 581fa5e879 Regen 2022-05-11 20:46:47 +00:00
markd 7181af40a8 Add some Broadcom / LSI RAID cards. 2022-05-11 20:44:05 +00:00
bouyer c268ad12e6 bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomry
which is still (and will stay) mapped.

Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen.
There may be others.
2022-05-11 17:22:20 +00:00
bouyer f0cf370635 In bootstrap, after switching to a new page table make sure that
now-unused memory is unmapped.
2022-05-11 16:22:46 +00:00
christos 5cc3f6153a gcc also allows __alignof 2022-05-11 15:46:25 +00:00
msaitoh 87f2497bd7 Add support for iBBU-09 to show BBU voltage, current and temp correctly. 2022-05-11 15:30:33 +00:00
msaitoh f89804ee2b mfii(4): Set stripe size correctly for BIOCVOL. Same as mfi.c rev. 1.75. 2022-05-11 15:24:45 +00:00
msaitoh 3f57ccbb37 KNF. s/u_quad_t/uint64_t/. No functional change. 2022-05-11 15:20:54 +00:00
andvar adb5d710d2 fix various typos in comments. 2022-05-11 14:58:00 +00:00
andvar 25fd8e90e3 s/varible/variable/ 2022-05-11 13:58:43 +00:00