Commit Graph

268235 Commits

Author SHA1 Message Date
wiz afa9490a07 Quote the name "Ed" to avoid confusion with the macro "Ed". 2019-06-11 12:49:21 +00:00
skrll 19cd50e907 Trailing whitespace 2019-06-11 12:48:30 +00:00
kamil 93e6f7a330 Correct outdated note that posix_spawn(3) is implemented with vfork(2)
The original FreeBSD libc code uses vfork(2), it's not the case for NetBSD
as there is a dedicated kernel syscall.
2019-06-11 12:47:34 +00:00
wiz 8a8727e49a Use more markup, fix some typos. 2019-06-11 11:57:14 +00:00
mrg 3e5e960fa5 add a method to add user accounts or ssh keys to the embedded
(installable) images which may be run entirely headless and
have no current method to edit the installation without another
netbsd host to modify the root (FFS) partition.

creds_msdos reads the creds.txt file from the msdos boot
partition and provides 4 basic methods:

	sshkeyfile <user> <path on msdos>
	sshkey <user> <entry>
	useraddhash <user> <passwd hash>
	useradd <user> <passwd>

the first two create a user with ssh key(s), and the second
two create a user with a password.  if the last method is used
and raw passwords are given, the creds.txt file will be
shredded and deleted by rm -P.


inspired by a request from a pine64 user.  ok jmcneill@.
2019-06-11 10:50:57 +00:00
blymn 1c4bb036d6 Fixed bug in curses library keyname, test now passes. 2019-06-11 10:23:36 +00:00
blymn aa404db794 Bracket strings being validated with markers to ensure sneaky whitespeace
is noticed.
2019-06-11 10:22:35 +00:00
blymn febeea01e0 Fix typo for unknown key keyname return. 2019-06-11 10:17:24 +00:00
hannken cfba2bba58 There is no 1:1 relation between cv_signal() and cv_timedwait() as
the latter implicitly calls cv_signal() on error.

This leads to "tq_waiting > 0" with "tq_running == 0" and the
taskq stalls.

Change task_executor() to increment and decrement "tq_waiting"
and always check and run the queue after cv_timedwait().

Use mstohz(), fix timeout and sort includes.

Addresses PR port-xen/54273: "zpool create pool xbd2" panics DOMU kernel
2019-06-11 09:05:33 +00:00
hannken 94984370e5 Try to retrieve the per-disk maximum transfer size and use it instead
of MAXPHYS.  Eagerly waiting for the merge of tls-maxphys.

Addresses PR port-xen/54273: "zpool create pool xbd2" panics DOMU kernel
2019-06-11 09:04:37 +00:00
gson dd9a375876 In the "got %d/%d" message printed at the end of the pingsize test,
make the latter number show the actual number of ICMP packets the test
attempted to send.  Thus, the two numbers can now be meaningfully
compared, and their difference indicates the number of packets lost.
2019-06-11 08:34:01 +00:00
blymn 347a95cdfb Fix dupwin test. 2019-06-11 08:09:35 +00:00
blymn 77b858f20e fix derwin test. 2019-06-11 08:00:38 +00:00
mrg b436459a98 turn on MKLLVMRT for aarch64 X11 builds.
with llvmpipe vs swrast, on pinebook 1080p i see 6x speed up for glxgears,
seamonkey & google maps is significantly faster, and ksudoku is workable.
2019-06-11 04:52:44 +00:00
kamil 0b4f3508ae Add posix_spawn(3) ATF tests in t_ptrace_wait*
New tests verify whether forking process reports forking events to a
debugger.

Right now there is no support in the kernel for this system.
2019-06-10 22:16:06 +00:00
kamil 9faafe843f Add more verbosity to debug messages in t_ptrace_wait
Log func() file:line for each debug message.

Most messages are similar one with the other and this change allows easier
navigation in the code.
2019-06-10 21:18:04 +00:00
isaki 4ed2212903 Use AUDIO_SCALEDOWN() macro rather than seemingly strange ifdefs.
Discussed on source-changes-d.
2019-06-10 13:49:39 +00:00
isaki b64d6e1850 Add missing newline to some error messages. 2019-06-10 13:28:08 +00:00
isaki b67d71a659 Call get_props() once at attach. 2019-06-10 13:12:51 +00:00
mrg fb1e2f4d33 it's html not himl. should fix build. 2019-06-10 10:28:41 +00:00
ryo 99c2eaf5bc since uvm_faut() will fail if cache maintain instructions (e.g., "dc cvau".
that has ESR.WnR=1 = write access) for a read only page causes a data abort trap,
It shoulde be treat the access type as read access in a data abort with
cache operation (ESR_ISS_DATAABORT_CM=1)

pointed out and tested by mrg@. thanks
2019-06-10 05:56:15 +00:00
mrg cc4760dbd4 mark several things that are only built with MKLLVMRT=yes with 'llvmrt'.
from kre.
2019-06-10 00:51:46 +00:00
chs c7c4f4753b shmctl(SHM_LOCK) does not need to mess with mappings of the shm segment,
uvm_obj_wirepages() is sufficient.  this fixes the problem reported in
https://syzkaller.appspot.com/bug?id=71f9271d761f5b6ed517a18030dc04f0135e6179
2019-06-10 00:35:47 +00:00
christos 4261787c4e merge conflicts, regen man pages. 2019-06-09 18:44:29 +00:00
christos 3f3c3d73c1 new openssl 2019-06-09 18:44:05 +00:00
christos cd43014a0b new openssl man page 2019-06-09 18:42:43 +00:00
christos a3b08d9350 Import 1.1.1c:
Changes between 1.1.1b and 1.1.1c [28 May 2019]

  *) Add build tests for C++.  These are generated files that only do one
     thing, to include one public OpenSSL head file each.  This tests that
     the public header files can be usefully included in a C++ application.

     This test isn't enabled by default.  It can be enabled with the option
     'enable-buildtest-c++'.
     [Richard Levitte]

  *) Enable SHA3 pre-hashing for ECDSA and DSA.
     [Patrick Steuer]

  *) Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
     This changes the size when using the genpkey app when no size is given. It
     fixes an omission in earlier changes that changed all RSA, DSA and DH
     generation apps to use 2048 bits by default.
     [Kurt Roeckx]

  *) Reorganize the manual pages to consistently have RETURN VALUES,
     EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust
     util/fix-doc-nits accordingly.
     [Paul Yang, Joshua Lock]

  *) Add the missing accessor EVP_PKEY_get0_engine()
     [Matt Caswell]

  *) Have apps like 's_client' and 's_server' output the signature scheme
     along with other cipher suite parameters when debugging.
     [Lorinczy Zsigmond]

  *) Make OPENSSL_config() error agnostic again.
     [Richard Levitte]

  *) Do the error handling in RSA decryption constant time.
     [Bernd Edlinger]

  *) Prevent over long nonces in ChaCha20-Poly1305.

     ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
     for every encryption operation. RFC 7539 specifies that the nonce value
     (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
     and front pads the nonce with 0 bytes if it is less than 12
     bytes. However it also incorrectly allows a nonce to be set of up to 16
     bytes. In this case only the last 12 bytes are significant and any
     additional leading bytes are ignored.

     It is a requirement of using this cipher that nonce values are
     unique. Messages encrypted using a reused nonce value are susceptible to
     serious confidentiality and integrity attacks. If an application changes
     the default nonce length to be longer than 12 bytes and then makes a
     change to the leading bytes of the nonce expecting the new value to be a
     new unique nonce then such an application could inadvertently encrypt
     messages with a reused nonce.

     Additionally the ignored bytes in a long nonce are not covered by the
     integrity guarantee of this cipher. Any application that relies on the
     integrity of these ignored leading bytes of a long nonce may be further
     affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
     is safe because no such use sets such a long nonce value. However user
     applications that use this cipher directly and set a non-default nonce
     length to be longer than 12 bytes may be vulnerable.

     This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
     Greef of Ronomon.
     (CVE-2019-1543)
     [Matt Caswell]

  *) Ensure that SM2 only uses SM3 as digest algorithm
     [Paul Yang]
2019-06-09 17:47:39 +00:00
jmcneill 123489f29f Init bpll in a way that brings the big cluster's PLL out of "slow mode".
While here, fix a few typos in the cpul's rate table.
2019-06-09 16:14:53 +00:00
christos edd36b2506 fix format 2019-06-09 15:39:18 +00:00
christos 4d21270441 make this compile again without ddb 2019-06-09 14:18:29 +00:00
mrg 2e7079bce8 rearrange some parts of attach/detach to avoid partial-attach
leading to detach crash.
2019-06-09 13:35:47 +00:00
blymn 1a6faca1b0 Add a script that allows a check file to be created by cutting and
pasting the contents of the square brackets in the "Excess nn bytes
from slave" message emitted when the director is running in verbose
mode (-v).
2019-06-09 07:54:55 +00:00
blymn 94110ecce1 Adjust check files for changes in cursor positioning. 2019-06-09 07:49:42 +00:00
blymn 437fe1c40c Add an extra parameter to the h_run function so flags can be passed
to the director.
2019-06-09 07:48:47 +00:00
blymn 2a780e62ed Rework previous fix for getch cursor position when cursor is moved
without refresh.  If the window is not dirty but the window cursor
position does not match curscr then move the cursor.  This fixes
the issues seen in PR lib/54263.
2019-06-09 07:40:14 +00:00
mrg dbb56f6daa add ARMDisassembler for the arm section. fixes linkage issue.
unfortunately, this doesn't work.  something generates code
with an R_ARM_REL32 relocation and the
llvm::RuntimeDyldELF::resolveARMRelocation() function doesn not
support this and boom:

500       switch (Type) {
501       default:
502         llvm_unreachable("Not implemented relocation type!");
2019-06-09 01:56:49 +00:00
chs bedbd941f8 in uvm_map_protect(), do a pmap_update() before possibly switching from
removing pmap entries to creating them.  this fixes the problem reported in
https://syzkaller.appspot.com/bug?id=cc89e47f05e4eea2fd69bcccb5e837f8d1ab4d60
2019-06-08 23:48:33 +00:00
rjs a050c7fb30 Don't need 'extern' for function prototypes. 2019-06-08 23:23:34 +00:00
mrg 293a231ba2 make this compile. now arm64 gdb works again. yay. 2019-06-08 14:59:01 +00:00
pgoyette 5d52412ab2 Add MAMR 2019-06-08 13:13:01 +00:00
christos c2e5191aa6 add a section for arch64-nbsd and regen. 2019-06-08 12:47:43 +00:00
skrll b7b4035a9a Fix comment 2019-06-08 11:57:27 +00:00
isaki bdcaee555c Improve checking and displaying property.
- Full/half duplex and independentness are valid only on bidirectional
  device.
- MMAP is no longer hardware driver's property.
2019-06-08 08:20:10 +00:00
isaki ede47d01be Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
  This eliminates need for audio.c to take care of such (old)
  drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
  It is handled in the audio layer now.
2019-06-08 08:02:36 +00:00
maxv d1002cd7eb Change the NVMM API to reduce data movements. Sent to tech-kern@. 2019-06-08 07:27:44 +00:00
christos f8cd48a361 deduplicate the elf auxv builder code, welcome to 8.99.43 2019-06-07 23:35:52 +00:00
christos 51b44ee7a9 new origin test 2019-06-07 21:32:34 +00:00
christos da8b7648ed Add a $ORIGIN test 2019-06-07 21:18:16 +00:00
christos 5a434f2f8b Sync auxv vector generation with exec_elf.c. Fixes $ORIGIN on compat_netbsd32.
Found by zerous as part of GSoC
2019-06-07 20:13:54 +00:00
gson 1430c33c98 Add a regression test for PR bin/54154, or in other words, make sure
we get notified in a timely manner if gdb's XML support disappears
again.
2019-06-07 19:05:15 +00:00