Commit Graph

305776 Commits

Author SHA1 Message Date
rillig 873c42efc3 make: provide more context information for parse/evaluate errors 2024-04-20 10:18:55 +00:00
rillig 7202b80324 libntp: clean up MKREPRO_TIMESTAMP handling
NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool.  The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.

Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.
2024-04-20 08:03:08 +00:00
isaki 1dc7b48cb9 Fix typo in comment. 2024-04-20 05:38:40 +00:00
andvar 6b3c6f1ba6 s/Resorce/Resource/ in comment and log message. 2024-04-19 21:24:00 +00:00
rillig 6e59c25695 tests/lint: show how to trigger message 207 2024-04-19 20:59:18 +00:00
jakllsch 466d1a15ac fix copy/paste-o 2024-04-19 16:04:28 +00:00
jakllsch 7386dcbbb8 Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
 - bail out if MKREPRO_TIMESTAMP is not defined
 - bail out if resulting __DATE__/__TIME__ replacement strings are empty
2024-04-19 14:58:18 +00:00
jakllsch 05916288da The substitute __DATE__ should be %b %e %Y per a C18 draft
Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.
2024-04-19 13:34:15 +00:00
christos b844656e78 PR/58170: Yoshitaka Tokugawa: Remove blocking statement when the requestor
asks for for an address that is in the cache and that access is prevented
by a cache acl because the querier has no way to know that this access is
denied, so it is not an abuse.
2024-04-19 12:35:28 +00:00
ozaki-r a8ea6d9dcd frag6: fix calculation of fragment length
Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)
2024-04-19 05:04:06 +00:00
riastradh f09779b4fc ip6_output: Initialize plen for ip6_hopopts_input.
This funny little block in ip6_process_hopopts assumes it is
initialized as and behaves differently depending on whether it's zero
or not:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#976

In the other call site, it is initialized to ip6->ip6_plen:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#561

Reported-by: syzbot+587e3b707bdfe533283f@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=587e3b707bdfe533283f
2024-04-19 00:55:35 +00:00
riastradh b7772f668d dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode.
Member access of a null pointer is undefined, even if the result
should also be null because vi_vnode is at the start of vnode_impl.

Reported-by: syzbot+a4b2d13c0d6d4dac2d07@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=a4b2d13c0d6d4dac2d07
2024-04-19 00:45:41 +00:00
riastradh a346ed41ae radeon_acpi.c: ifdef out unused function on NetBSD.
Should fix syzkaller build.
2024-04-18 23:33:15 +00:00
jakllsch 1784c46724 Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__ 2024-04-18 19:23:53 +00:00
jakllsch 2c9c248e72 Install xsetwallpaper(1) manual page
Should fix PR 58172.
2024-04-18 19:17:14 +00:00
mlelstv 043f83d920 Renamed border/boundary variables to better describe their use.
Fix edge default values, factor out percentage calculation for more consistent
values. Use device_printf/DPRINTF to show errors instead of aprint variants.
Print raw input for debugging.

Correct capability parsing. Old devices were probed with nonexistent
commands and then used undefined boundary values that made them unusuable.

Fixes PR 57874.
2024-04-18 17:35:53 +00:00
skrll c41df0aeb5 Fix types in pmap_page_clear_attributes so that the top bits of
the u_long mdpg_attrs aren't dropped giving atomic_cas_ulong no
chance of completing if any of the top bits is set.

Update pmap_page_set_attributes for consistency.

An ATF test run completed for me with this fix.

port-riscv/58006: ATF tests no longer complete on riscv-riscv64
2024-04-18 12:16:23 +00:00
andvar 9626b6b63f s/resoure/resource/ in comments. 2024-04-18 10:32:03 +00:00
macallan de3a34d3b3 allow mapping of blitter registers 2024-04-18 04:52:43 +00:00
riastradh 4b9c628dc5 tap(4): Just use mutex_enter.
PR kern/58167
2024-04-17 18:52:54 +00:00
riastradh cf439d6998 tap(4): Use DETACH_FORCE with config_detach.
It doesn't make a difference here, because tap_detach never fails,
but let's make it more obvious at the call site that failure is
forbidden here.

No functional change intended.

PR kern/58166
2024-04-17 18:52:39 +00:00
riastradh 22440558de tap(4): Prune dead branches around tap_dev_destroyer.
No functional change intended.

PR kern/58166
2024-04-17 18:52:25 +00:00
riastradh a1472611d7 tap(4): Prune dead branches around tap_dev_close.
No functional change intended.

PR kern/58166
2024-04-17 18:32:13 +00:00
riastradh 212c9b3b52 modules/examples/fopsmapper: KNF, sprinkle comments
Missing: MP-safety; this is a kind of broken example.
2024-04-17 18:10:27 +00:00
riastradh 01905a679e sys/conf.h: Need sys/types.h for dev_t, devmajor_t. 2024-04-17 18:01:29 +00:00
christos 97246cf21d more plugin set fixes 2024-04-17 13:23:32 +00:00
andvar 9833779ad2 Regen. 2024-04-17 11:43:59 +00:00
andvar 62176de36c Add VIA VX900 HDMI. 2024-04-17 11:42:47 +00:00
macallan 7e941987be turn LEDs off when shutting down 2024-04-17 07:47:48 +00:00
skrll 8b50ae5697 Re-enable HEARTBEAT 2024-04-17 06:11:56 +00:00
gutteridge f9cbc07bc5 ftp.1: drop a sentence that's no longer accurate 2024-04-17 02:46:03 +00:00
maya c58b87a41e Add support for a range of USB serial adapters
From Cameron Williams in PR kern/58127
2024-04-17 02:34:45 +00:00
maya adfd544e25 Regen after usbdevs change 2024-04-17 02:33:04 +00:00
maya 78157b5b06 Add some USB serial adapters
From Cameron Williams in PR kern/58127
2024-04-17 02:32:08 +00:00
christos 0b7c760b94 Add comparison function so that it can be used to provide a stable sort
(Jan-Benedict Glaw)
2024-04-16 23:43:08 +00:00
christos 2ab201d46f Set LC_ALL=C before calling sort so that it works consistently. Unfortunately
ENVIRON["LC_ALL"] = "C"; does not work like in gawk (Jan-Benedict Glaw)
2024-04-16 23:40:36 +00:00
christos eda85bc164 Be more explicit with sort fields to produce consistent results with gnu
sort (Jan-Benedict Glaw)
2024-04-16 23:30:19 +00:00
christos 2f8da1f3f1 fix compat build of filter-aaaa.so.0 2024-04-16 19:15:36 +00:00
maya 79aee05283 restore amd64 live image support for resize root after combined mbr/gpt commit
we need to resize_gpt now, as it takes precedence over mbr/disklabel
this change brings us to behave like the evbarm images.

XXX: we don't seem to touch disklabel and MBR, but they exist. Not sure whether
that has any negative repercussions, maybe another system might regard MBR as the
sole source of truth when GPT also exists.
2024-04-16 16:13:44 +00:00
riastradh 770c9d5352 drm: Set CONFIG_ACPI in linux/acpi.h and make it build.
Leave a little ACPI-related functionality disabled for now, like
getting EDID out of ACPI -- needs a bit more work to make this work,
and I don't have hardware to work on that.

Should help with failures of the forms:

- unable to locate a BIOS ROM
- bios: unable to locate usable image

on various machines.
2024-04-16 14:34:01 +00:00
riastradh a5106e9076 opensolaris/sys/sys/elf.h: Omit needless __ELF_WORD_SIZE. 2024-04-16 14:29:33 +00:00
riastradh cb8d2cb71d nouveau: Rework nouveau2netbsd hack to get ACPI stuff. 2024-04-16 14:26:53 +00:00
martin 0e23ad0629 mipsn64 has ld.elf_so-n32 for compat (and -o32), not ld.elf_so-64 2024-04-16 14:15:53 +00:00
kalvisd 6534916c0f vax/unimpl_emul.S: Initialise locations storing floating-point values with
a constant of the appropriate format
2024-04-16 00:03:30 +00:00
martin 124fe5e84c Mipsn64* has no 64bit compat, its userland is native n64 - instead it
has n32 compat.
2024-04-15 12:24:53 +00:00
simonb 586f421948 Add a newline to a printf message. 2024-04-15 08:06:36 +00:00
skrll 127563b6bc Fix alignment of ddb 'ps/[lw]' output. LID matches PID and has more digits. 2024-04-15 06:48:06 +00:00
andvar cec4798ac1 s/force_comile_error/force_compile_error/ 2024-04-14 18:02:55 +00:00
rillig 9c7f0367c1 make: make string matching platform-independent
Previously, whether the character range '[a-ä]' matched, depended on the
signedness of the plain 'char' type.  Since make operates on byte
strings and does not support UTF-8 or other multi-byte character
encodings, this edge case is not expected to occur in practice.

No change in the unit tests as this edge case is not covered by tests.
2024-04-14 15:21:20 +00:00
skrll 58b60df6e8 kern/58149: aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived
Apply the kernel diff from the PR

1. sendsig_siginfo() previously assumed that user SP was always aligned to
   16 bytes and could call signal handlers with SP misaligned. This is a
   wrong assumption because aarch64 demands that SP is aligned *only while*
   it's being used to access memory. Now it properly aligns it before
   pusing anything on the stack.

2. cpu_mcontext_validate() used to check if _REG_SP was aligned and
   considered the ucontext invalid otherwise. This meant if a signal was
   sent to a process whose SP was misaligned, the signal handler would fail
   to return because the ucontext passed from the kernel was an invalid
   one. Now setcontext(2) doesn't complain about misaligned SP.
2024-04-14 12:51:16 +00:00