Commit Graph

275704 Commits

Author SHA1 Message Date
htodd ee948d74b4 Remove ufs_wapbl.c from Makefile. 2020-04-12 01:39:57 +00:00
riastradh f6b4b12115 Reject overly large widths, from mlelstv.
We are returning an ACPI_INTEGER (= uint64_t), so it doesn't make
sense to handle more than 64 bits.

Apparently there are some ACPIs out there that ask for unreasonably
large widths here.  Just reject those requests, rather than writing
past the caller's stack buffer.

Previously we attempted to fix this by copying byte by byte as large
as the caller asked, in order to avoid the undefined behaviour of
shifting past the size of ACPI_INTEGER, but that just turned a shift
(which might have been harmless on real machines) into a stack buffer
overflow (!).

ok msaitoh
2020-04-12 01:12:03 +00:00
simonb f5b458adeb Regen. 2020-04-12 01:11:56 +00:00
riastradh b30a235b91 KNF 2020-04-12 01:11:52 +00:00
riastradh bb9c42c5fc Revert acpi_ec.c 1.76.
We will do this another way, and separate KNF fixes from the critical
functional change.

ok msaitoh
2020-04-12 01:11:43 +00:00
riastradh 0aae29f3a4 Revert acpi_ec.c 1.77.
We will do this another way.

ok msaitoh
2020-04-12 01:11:23 +00:00
simonb a91470c59b Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part
on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support
for multi-port chipsets and uses the common umodem framework instead of
being a standalone driver.

Thanks to skrll@ for much USB clue and mrg@ for financing the
development of this driver.
2020-04-12 01:10:53 +00:00
christos 57004306d0 remove removed file 2020-04-12 00:04:45 +00:00
christos 1712f82d5c We can only use the SHA3 assembly routines if we have VSX 2020-04-11 22:41:06 +00:00
christos fea87f652c fix tyop 2020-04-11 20:48:53 +00:00
christos 2d9fc2191e Via enh at google dot com in tech-userlevel. Fix handling of
EXT_FRAC{H,L}BITS (although we don't need to since we don't have them).
2020-04-11 20:28:28 +00:00
jdolecek e9acb25cbb revert previous - physio arranges for tranfer directly to user-provided
buffers, which are generally not DEV_BSIZE-aligned
2020-04-11 17:52:01 +00:00
jdolecek 09a46b6e04 remove noncompilable WAPBL_DEBUG_INODES
PR kern/49554 by Thomas Klausner
2020-04-11 17:43:54 +00:00
jdolecek 171fa94db7 adjust to work with updated dkwedge_bsdlabel.c - provide geteblk() and
brelse() which just allocate/free the memory
2020-04-11 17:21:16 +00:00
gson ce24a0bfcd Double the timeout for the bn test case; 360 seconds is no longer
sufficient under qemu since the latest openssl update.
2020-04-11 16:55:33 +00:00
jdolecek b8ae4d6eb4 now that getebuf() et.al. always returns DEV_BSIZE-aligned buffers
and rest of kernel code doing disk I/O was also converted over to it,
it's finally safe to remove the code to handle misaligned buffers

leave just KASSERT() in place
2020-04-11 16:15:34 +00:00
jdolecek 46bb4d7779 print 'backend features' instead of just 'features' for the detected backend
features, so that it's clear it's just capability rather than something
actually used by the frontend driver
2020-04-11 16:02:41 +00:00
jdolecek 89c40d7e6d allocate buffer for disk I/O via geteblk() instead of malloc(), so they
are properly aligned; e.g. readdisklabel() does the same

also removed the DKW_MALLOC()/DKW_FREE()/DKW_REALLOC() macros as apparently
unnecessary, these files don't seem to be compiled into any userland tools

dkwedge_gpt.c confirmed working, others compile-tested only
2020-04-11 16:00:34 +00:00
jdolecek ed25d94c88 for bmempools set align, not ioff 2020-04-11 14:48:19 +00:00
jdolecek 550ba56bfe explicitly use DEV_BSIZE align for all bmempools
this is required for Xen xbd(4) in order to not have to use bounce buffers

the alignment is implicitly provided when POOL_REDZONE is not active,
this change makes it also aligned when POOL_REDZONE _is_ active - that is
when (!KMSAN && (DIAGNOSTIC || KASAN))
2020-04-11 14:38:26 +00:00
jdolecek 2971660000 convert to bus_dma(9), no explicit xpmap_*() calls any more
as part of this move some global arrays into struct xnetback_instance,
and fix race for xnetif_lookup()
2020-04-11 11:48:20 +00:00
jdolecek 718f3cb496 put xenbus dmat into xenbus_device so it's available also for backend
devices which don't use autoconfig, remove from attach args
2020-04-11 11:01:12 +00:00
rin 92a204309a Revert previous:
http://mail-index.netbsd.org/source-changes/2020/02/20/msg114173.html

Comment turned out to be wrong, and KASSERT fires for oea.

XXX
Need to revisit shortly...
2020-04-11 09:15:23 +00:00
maxv 87ce06e203 The vectors allow for up to 0x80 bytes of instructions, but we've reached
this limit already, so implement the handler functions outside, and jump
to them. This allows to add instructions in the future.

Sent to ryo@ and skrll@.
2020-04-11 09:02:04 +00:00
jdolecek 6e03bbeb5a enable the workaround for Microsoft transceiver v8.0 too - PR kern/55161
while here enable also for v7.0, it's likely to have same problem
2020-04-11 06:57:32 +00:00
jdolecek 66d4bbd347 regen 2020-04-11 06:55:48 +00:00
jdolecek 3e1adefbdf add Microsoft 2.4GHz Transceiver V8.0 - PR kern/55161
add also V7.0, found the ID
2020-04-11 06:54:59 +00:00
ryo adc5085fcd Fixed to not use the "br" instruction. Branch Target Identification (BTI) doesn't like "br".
requested by maxv@
2020-04-11 05:12:52 +00:00
christos 407ffe11fc Add new t_extattr 2020-04-11 01:51:14 +00:00
ad 5ff779fe83 Match the naming convention in the file. 2020-04-11 01:46:47 +00:00
macallan 4ac14a66d7 don't try to read a 32bit property into a uint8_t.
Now headphone detection works properly on machines which have the gpio's
polarity reversed, like Quicksilver and TiBook.
2020-04-11 01:42:56 +00:00
ad 58f2e14adf NetBSD 9.99.56 - struct buf changed 2020-04-10 23:58:48 +00:00
ad f1ed81b8fc PR kern/54979 (radixtree might misbehave if ENOMEM)
- radix_tree_insert_node(): if the insert failed due to ENOMEM, roll back
  any updates made to the tree.

- radix_tree_grow(): either succeed or fail, never make partial adjustments
  to the tree.

- radix_tree_await_memory(): allocate & free the maximum possible number of
  nodes required by any insertion.
2020-04-10 23:43:05 +00:00
christos 34f2ea29f7 New extended attributes test (does not work until we commit kernel changes) 2020-04-10 22:58:47 +00:00
ad b5adab0e05 vfs_mountroot(): don't needlessly grab a second reference to the root vnode
(the kernel never chdirs) nor a lock on it.
2020-04-10 22:34:36 +00:00
ad 5e0de1ec0e Rename radix_tree_node_clean_p() to radix_tree_node_sum() and have it return
the computed sum.  Use to replace any_children_tagmask().  Simpler & faster.
2020-04-10 21:56:41 +00:00
gutteridge c8a27b6c18 audioplay.1: generalize a reference to web browsers 2020-04-10 21:33:27 +00:00
jdolecek 1fdedfbf0b gnttab_get_status_frames frame_list is array if uint64_t values, not u_long
like gnttab_setup_table, fix to use uint64_t

fixes compilation on i386 with XEN3PAE_DOM[0U], pointed out by kre@
2020-04-10 21:03:20 +00:00
jdolecek 5a64191052 remove commented out __XEN_INTERFACE_VERSION__ option, it comes via std.xen 2020-04-10 20:56:56 +00:00
jdolecek f802b05404 use ETHER_ADDR_LEN on one more place 2020-04-10 19:08:10 +00:00
christos 79cd6eb656 regen 2020-04-10 18:32:11 +00:00
christos 73ec163364 Fix all the random __SHIFTOUT casts by introducing an intermediate macho,
and then deleting and fixing the rest.
2020-04-10 18:32:00 +00:00
christos df41b55bad Fix typo 2020-04-10 18:23:22 +00:00
tsutsui edf49f7cd3 Update a link to "CLOCK-Pro" paper. 2020-04-10 18:17:56 +00:00
jdolecek 537501ecfc convert to bus_dma(9), remove now not necessary XENPVHVM redefines 2020-04-10 18:03:06 +00:00
ad 960b41883d uvmspace_exec(): set VM_MAP_DYING for the duration, so pmap_update() is not
called until the pmap has been totally cleared out after pmap_remove_all(),
or it can confuse some pmap implementations.
2020-04-10 17:26:46 +00:00
ad 83f44bb607 Remove buffer reference counting, now that it's safe to destroy b_busy after
waking any waiters.
2020-04-10 17:18:04 +00:00
ad e0bb7e8edd - Make this needed sequence always work for condvars, by not touching the CV
again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.
2020-04-10 17:16:21 +00:00
tsutsui 4c1178c516 Drop the entry for Yasushi Yamasaki, per recent ad clause removal. 2020-04-10 17:02:33 +00:00
ad dd8f0c8fbf Cosmetic changes 2020-04-10 16:55:40 +00:00