270683 Commits

Author SHA1 Message Date
sevan
7a302a7da7 Update to 2019093001 2019-10-09 22:58:39 +00:00
sevan
ea7c41bfa9 services(5) update 2019-10-09 22:50:14 +00:00
sevan
76b3e0464f sync with latest from IANA 2019-10-09 22:42:14 +00:00
sevan
9ac8dbedac New acpica, ath-hal, bind, unbound, nsd, bozohttpd, expat, gcc, gdb,
jemalloc, less, libdevmapper, libevent, mDNSResponder, ntp, OpenPAM, OpenSSL,
sqlite, tmux.
Adjust byacc version.
2019-10-09 22:13:50 +00:00
christos
b15dac3ccb don't warn for strncpy wtmp fields, they are not NUL terminated. 2019-10-09 22:05:35 +00:00
christos
cc33d2efa6 no error for function cast 2019-10-09 22:05:09 +00:00
christos
04c417de37 no error for string truncation 2019-10-09 21:49:50 +00:00
christos
ec0d0d9190 No error for stringop truncation. 2019-10-09 21:19:28 +00:00
sevan
7fccee0209 new OpenSSH 2019-10-09 21:05:43 +00:00
christos
0819dfb453 bump buffer sizes 2019-10-09 20:59:26 +00:00
mlelstv
7845b7f827 Update firmware from version 0.17 to 0.33. 2019-10-09 19:58:51 +00:00
chs
cf529c6de1 simpler fix for the race between shmat() and shmdt():
change shmat() to hold shm_lock until it is completely done.
2019-10-09 17:47:13 +00:00
chs
a851cc5747 revert rev 1.139 (fixing a race between shmat() and shmdt())
that approach turned out to be too complicated.
2019-10-09 17:44:45 +00:00
maxv
1c9e2a8c1b Add new bits. 2019-10-09 17:28:46 +00:00
christos
a47ebb18b3 add +1 to strlcpy's (Patrick Welche) 2019-10-09 14:31:07 +00:00
wiz
45ba2af5df Fix xref. 2019-10-09 14:20:47 +00:00
maxv
385203089c Memset to prevent stack info leak. 2019-10-09 14:15:40 +00:00
maxv
6ee6b6aeaf Provide a better abstraction for the TPM interface. Report it in the ioctl. 2019-10-09 14:03:57 +00:00
kamil
2dc9ce6014 Document PT_STOP, update PT_KILL in the ptrace(2) man-page
Formatting by <mgorny>
2019-10-09 13:42:37 +00:00
wiz
ebde28641d Fix date. 2019-10-09 13:25:20 +00:00
kamil
2e7e73e2ed Introduce new ptrace(2) operation PT_STOP
It works like:

 - kill(SIGSTOP) for unstopped tracee
 - ptrace(PT_CONTINUE,SIGSTOP) for stopped tracee

The child will be stopped and always possible to be waited (with wait(2)
like calls).

For stopped traccee kill(SIGSTOP) has no effect. PT_CONTINUE+SIGSTOP cannot
be used on an unstopped process (EBUSY).

This operation is modeled after PT_KILL that is similar for the SIGKILL
call. While there, allow PT_KILL on unstopped traced child.

This operation is useful in an abnormal exit of a debugger from a signal
handler, usually followed by waitpid(2) and ptrace(PT_DETACH).
2019-10-09 13:19:43 +00:00
jhigh
0090dad153 added backend support for argon2 password scheme 2019-10-09 13:13:08 +00:00
maxv
dcc7c8c086 Add suspend support for TPM 2.0 chips. Check the TPM response also for 1.2
chips. Unfortunately I cannot really test this change since ACPI suspend
does not work on any of my laptops.
2019-10-09 07:30:58 +00:00
skrll
208170f3b1 Traiing whitespace 2019-10-09 05:59:51 +00:00
msaitoh
53950d8632 All of snd_wnd, snd_cwnd and snd_ssthresh in stuct tcpcb are u_long,
so use u_long and ulmin() instead of u_int and uimin(). Found by lgtm bot.

XXX TCP's sequence number is uint32_t, so it might be good to change some
entries in struct tcpcb to uint32_t instead of u_long. FreeBSD did it.
2019-10-09 05:29:18 +00:00
christos
916f96072a regen 2019-10-09 01:43:35 +00:00
christos
b0424b9dde - cast through void * for rump
- don't generate bogus filenames /dev/null.bottom etc.
2019-10-09 01:43:00 +00:00
christos
7ea1cb15c2 the cast police is looking for me. 2019-10-09 01:18:55 +00:00
bad
689f938f30 Add sun8i-h3-nanopi-duo2.dts and sun8i-h3-nanopi-r1.dts.
The former is untested.
2019-10-08 23:03:01 +00:00
bad
e7368cc71e Cherry pick a few changes from the armbian u-boot patch.
Makes my NanoPi R1 boot reliably.
From https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/add-nano+pi-r1-and-duo2.patch
2019-10-08 23:00:36 +00:00
bad
6e8765caf8 Add sun8i-h3-nanopi-r1.dts and sun8i-h3-nanopi-duo2.dts.
From https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/xxx-add-nanopi-r1-and-duo2.patch
2019-10-08 22:55:58 +00:00
kardel
5f6a8366d7 enable FDT direct configuration.
remove address test as the i2c address can be changed on this device.
2019-10-08 21:16:11 +00:00
christos
bfd64f2ac7 grow the buffer. 2019-10-08 20:02:44 +00:00
christos
cdd1ab83dc remove useless packed attributes 2019-10-08 19:38:38 +00:00
christos
39fd362275 use strlcpy (the buffer is already zeroed) 2019-10-08 19:38:27 +00:00
christos
3df2b62655 remore error(1) comment 2019-10-08 19:21:40 +00:00
christos
991f62167b Change strncpy to either memcpy (when we know the len), or strlcpy (when
we used to NUL terminate explicitly.
2019-10-08 19:17:57 +00:00
maxv
b16b0b556b No I/O ports for TPM-ISA, only MMIO, so remove commented-out options. 2019-10-08 18:50:44 +00:00
christos
bfdd69f658 -Wstringop-truncation is only gcc. 2019-10-08 18:50:34 +00:00
christos
5d573fff76 grow the buffer a little. 2019-10-08 18:47:10 +00:00
maxv
066833e6eb Improvements in tpm(4):
- Remove interrupt support, do polling only, avoids unnecessary trouble.
 - Simplify a few things.
 - Fix the suspend function, the SaveState command is 0x98, not 0x9C.
 - Make the driver MP-safe.
 - Sync the man page with reality.
2019-10-08 18:43:02 +00:00
kamil
f3a317a980 Enhance reliability of ptrace(2) in a debuggee with multiple LWPs
Stop competing between threads which one emits event signal quicker and
overwriting the signal from another thread.

This fixes missed in action signals.

NetBSD truss can now report reliably all TRAP_SCE/SCX/etc events without
reports of missed ones.

his was one of the reasons why debuggee with multiple threads misbehaved
under a debugger.


This change is v.2 of the previously reverted commit for the same fix.

This version contains recovery path that stopps triggering event SIGTRAP
for a detached debugger.
2019-10-08 18:02:46 +00:00
msaitoh
73157c453d Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-10-08 17:41:04 +00:00
msaitoh
011d94aeb6 Copy vge_clrwol() from FreeBSD and call it in vge_attach() to recover from
powerdown mode. Fixes PR kern/41525 reported by Aran Clauson.
2019-10-08 14:26:27 +00:00
uwe
b55215e45d Convert ttynodisc() to devenodev and ttyerr*() to ttyenodev too.
Missed in previous.  Of these - only ttyerrio() is used, the rest are
just courtesy "for those defining their own line disciplines".  So may
be we should bring back ttyerrinput() too.
2019-10-08 12:49:56 +00:00
kamil
60274cdd77 Correct the same expression on both sides of |
PR sw-bug/54610 by David Binderman
2019-10-08 12:29:57 +00:00
mrg
a2fd483377 steal an idea from uwe@ and implement gcc-8 function type cast
friendly methods for sys/conf.h that needs it.

one alias per return type and first function are are needed,
though they can be stubbed to existing code.  the only cost is
the symbol itself, the codegen it the same.
2019-10-08 07:33:14 +00:00
mlelstv
d164e220a0 Merge more changes from FreeBSD/OpenBSD. My two run(4) devices now work
again.
2019-10-08 07:30:58 +00:00
mrg
290d060515 remove unused ttyerrinput. 2019-10-08 07:16:25 +00:00
kre
e291c05efd Remove a (completely harmless) duplicate assignment introduced in a
code merge from FreeBSD in 2017.   NFC.

Pointed out by Roland Illig.
2019-10-08 03:53:57 +00:00