gutteridge
0a4cb760d3
pci_machdep.c & pci_msi_machdep.c: comment fixes
...
Correct spelling and grammar in some comments.
2023-11-21 23:22:23 +00:00
gutteridge
cd080f1e3c
if_wm.c: fix spelling and grammar in a comment
2023-11-21 23:09:40 +00:00
thorpej
30e97ef49a
Expose alpha_print_instruction_context to not-_KERNEL.
2023-11-21 22:27:41 +00:00
thorpej
bb5982f8bb
pal_opname(): Make the static buffer for unknown PALcode ops large enough
...
to hold all possible values.
alpha_print_instruction(): Make this private if not-_KERNEL.
2023-11-21 22:25:16 +00:00
thorpej
2d93273ebd
Move alpha/alpha/db_instruction.h -> alpha/include/alpha_instruction.h
2023-11-21 22:19:12 +00:00
thorpej
4130e3fd1a
Ensure that all fields of db_regs[] are initialized.
2023-11-21 21:53:06 +00:00
thorpej
eea5a8dc2f
Adjust proc/lwp access for user-space (crash(8)).
2023-11-21 21:23:56 +00:00
thorpej
94d7e4ea33
Reduce db_trace.c's exposure to proc/lwp.
2023-11-21 20:40:24 +00:00
thorpej
e3bf466230
decode_prologue(): Make pc a db_addr_t, not a db_expr_t.
...
db_stack_trace_print_ra(): Missed one direct reference to XentSys; fix.
2023-11-21 20:29:47 +00:00
thorpej
8a3d61b79c
Refactor the special symbol handling out of db_trace.c into
...
db_interface.c, and abstract it away from having to read kernel
symbols directly.
2023-11-21 19:59:07 +00:00
thorpej
f5ae7971ac
Don't access insns or frame values directly; use db_read_bytes().
2023-11-21 18:57:29 +00:00
thorpej
df08d03b69
Don't open-code tailq access.
2023-11-21 17:52:51 +00:00
riastradh
82de273b52
pax(9): Rework header file more coherently to nix some needless #ifs.
...
Cleans up some of the fallout from PR kern/57711 fixes.
Could do a little more to nix PAX_SEGVGUARD conditionals but maybe
not worth it.
2023-11-21 14:35:36 +00:00
riastradh
fddc6b2f61
ddb: New db_stack_trace_print_ra.
...
Takes an optional extra argument for the return address so that the
stack parser has a chance to use instruction-dependent interpretation
of the frame to find parent frames.
Implemented only on Alpha for now, which needs it. Other
architectures just ignore the extra argument.
PR port-alpha/57716
XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-21 14:35:01 +00:00
martin
0d92cf4b8d
Stopgap build fix for kernels w/o PAX_MPROTECT after the fixes
...
for PR 57711: mark variable as unused (sometimes, e.g. in macppc kernels).
2023-11-21 12:12:26 +00:00
riastradh
bf53af405a
exec: Map noaccess part of stack with prot=NONE, maxprot=READ|WRITE.
...
This way, setrlimit(RLIMT_STACK) can grant READ|WRITE access when
increasing the stack size.
PR kern/57711
XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-21 00:09:18 +00:00
thorpej
9c0baf1c81
pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
...
length or odd starting address, unload the map and return EINVAL. Some
controllers get really upset if a DMA segment has an odd address or length.
This can happen if a physio user performs a virtually-contiguous I/O that
starts at an odd address and spans a page boundary where the resulting
physical pages are discontiguous. The EINVAL return will cause the upper
layers in the ATA code to re-try the I/O using PIO, which should (will
in all of my tests) succeed.
PR port-alpha/56434
2023-11-20 21:59:38 +00:00
thorpej
60465b0c92
Revert previous. I'm going to make a slight change to the patch, and
...
want it collapsed into a single commit to make it easier to pull into
netbsd-10.
2023-11-20 21:45:34 +00:00
jschauma
6f86118736
sort
2023-11-20 21:16:41 +00:00
jschauma
52a375a636
+ML-KEM module-lattice based key-encapsulation mechanism
...
(I previously added "KEM", but now that Kyber is ML-KEM it comes up frequently
enough that 'wtf ml; 'wtf kem' doesn't help folks find the answer.)
2023-11-20 21:11:20 +00:00
martin
a018a4a90d
Force alignment of disk buffers to at least 8 byte.
...
Fixes PR 56434.
2023-11-20 18:03:55 +00:00
thorpej
b76919cb23
pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
...
length, unload the map and return EIO. Some controllers get really upset
if a DMA segment has an odd length. This can happen if a physio user
performs a virtually-contiguous I/O that starts at an odd address and spans
a page boundary where the resulting physical pages are discontiguous.
Ultimately, it's up to the physio user to paint inside the lines, but this
will prevent the disk controller from wandering off into the weeds, at least.
PR port-alpha/56434
2023-11-20 15:16:46 +00:00
riastradh
2fb69068d1
t_setrlimit: Verify changing RLIMIT_STACK affects access to stack.
...
PR kern/57711
XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-20 13:05:17 +00:00
thorpej
eb8ffb4139
cy_isa_probe(): No need to put a ~3KB cy_softc on the stack.
2023-11-20 04:26:34 +00:00
simonb
eb82852fbe
Note some large xstate stack objects what Somebody(tm) should look at
...
when they find some round tuits.
2023-11-20 03:05:48 +00:00
rillig
f2b68e81c5
make: replace 'variable expression' with 'expression' in comments
...
No binary change.
2023-11-19 22:50:11 +00:00
rillig
da2f1f9711
tests/make: replace 'variable expressions' with 'expressions'
2023-11-19 22:32:44 +00:00
rillig
9b7d6ecc6b
make: replace 'variable expression' with 'expression' in diagnostics
2023-11-19 22:06:15 +00:00
rillig
1da4da3f90
tests/make: replace 'variable expression' with 'expression'
...
Each expression is based on a variable, there's no need for the
verbosity. The wording in make's diagnostics will be changed in a
follow-up commit.
2023-11-19 21:47:52 +00:00
thorpej
fcff5c1ce7
Add some VirtIO devies. virtio-scsi and virtio-rng are tested a bit,
...
virtio-blk does not work, virtio-net not yet tested.
2023-11-19 20:01:48 +00:00
thorpej
4eae46258c
On alpha and sparc64, use VirtIO 1.0 and VIRTIO_F_ACCESS_PLATFORM so
...
that DMA to PCI-attached VirtIO devices works properly. This is needed
for Qemu to select the appropriate address space for PCI DMA.
2023-11-19 19:49:44 +00:00
thorpej
cef9d3987a
Define the VIRTIO_F_ACCESS_PLATFORM, VIRTIO_F_RING_PACKED,
...
VIRTIO_F_ORDER_PLATFORM, and VIRTIO_F_SR_IOV feature bits.
2023-11-19 19:47:03 +00:00
christos
d5d5b72237
minimize diffs with FreeBSD.
2023-11-19 18:57:11 +00:00
riastradh
ad71ebb55e
eventfd(2): Prune dead branch.
...
Fallout from PR kern/57703 fix.
XXX pullup-10
2023-11-19 17:16:00 +00:00
rillig
5bc28d828b
tests/make: cover all code paths for the ':mtime' modifier
2023-11-19 12:11:34 +00:00
rillig
3793f72151
make: produce more accurate error message for invalid ':mtime' argument
2023-11-19 11:47:49 +00:00
rillig
b2af676a83
tests/make: test non-integer fallback in ':mtime' modifier
2023-11-19 11:37:44 +00:00
rillig
f66367c683
make: extract detection of ':from=to' to a separate function
...
No functional change.
2023-11-19 11:30:28 +00:00
rillig
ed28212fc3
tests/make: test and explain exporting of variables
2023-11-19 09:45:19 +00:00
riastradh
36d181a381
eventfd(2): Omit needless micro-optimization causing PR kern/57703.
...
Unfortunately, owing to PR kern/57705 and PR misc/57706, it isn't
convenient to flip the xfail switch on a test for this bug. So we'll
do that separately. (But I did verify that a rumpified version of
the test postd to PR kern/57703 failed without this change, and
passed with this change.)
PR kern/57703
XXX pullup-10
2023-11-19 04:13:37 +00:00
isaki
73f18b1897
m68k: Remove an unused variable since rev 1.1.
...
Detected by clang15 (nono emulator has imported and used this FPE).
2023-11-19 03:58:15 +00:00
rillig
7d1632466c
make: clean up the modifier ':[...]'
...
No functional change.
2023-11-18 20:19:08 +00:00
riastradh
8328a6ed14
t_fdrestart: Mark some tests no longer xfail.
...
Backing out ad's changes last month seemed to fix the symptoms
(although I'm pretty sure this logic is still broken, more to come).
PR kern/57659
2023-11-18 19:46:55 +00:00
rillig
e9fa0ae34a
tests/make: test parsing of the ':?' modifier
2023-11-18 19:25:43 +00:00
tsutsui
1f61a19806
binutils.old: apply the same fix for mips gas from binutils.
...
> binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
> Fixes PR/57680.
2023-11-17 23:08:27 +00:00
tsutsui
67fd179468
binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
...
Fixes PR/57680.
Should be pulled up to netbsd-10, netbsd-9, and netbsd-8.
2023-11-17 23:06:05 +00:00
tsutsui
b07612095a
Move more changes pulled up to netbsd-10 from CHANGES to CHANGES.prev.
2023-11-17 22:46:19 +00:00
tsutsui
4d5d8831a5
Remove a duplicated entry of OpenSSL 3.0.9 import.
2023-11-17 22:14:16 +00:00
tsutsui
57dd1ae608
Fix formats for "Recent changes" pages on www.NetBSD.org.
2023-11-17 21:52:14 +00:00
tsutsui
249d26efae
Move a pulled up newsmips LCD-MONO framebuffer entry to CHANGES.prev.
2023-11-17 21:48:12 +00:00