258842 Commits

Author SHA1 Message Date
msaitoh
2455f9685a Fix panic or hangup when "sysctl -w hw.ixgN.debug=1".
XXX pullup-8
2018-05-14 09:21:36 +00:00
wiz
f56171bd03 End sentence with a dot. 2018-05-14 06:52:33 +00:00
lukem
94c0b8f918 locate: fix support for multiple databases
Ensure that the first database is correctly added when
more than one database is provided.

Fixes problem I introduced in rev 1.17 on 2009-04-12,
and noticed recently by Simon.
2018-05-14 05:17:10 +00:00
ozaki-r
146c9cdc07 Protect if_deferred_start_softint with KERNEL_LOCK if the interface isn't MP-safe 2018-05-14 02:55:46 +00:00
ozaki-r
4f93a8de81 Protect packet input routines with KERNEL_LOCK and splsoftnet
if_input, i.e, ether_input and friends, now runs in softint without any
protections.  It's ok for ether_input itself because it's already MP-safe,
however, subsequent routines called from it such as carp_input and agr_input
aren't safe because they're not MP-safe.  Protect if_input with KERNEL_LOCK.

if_input can be called from a normal LWP context.  In that case we need to
prevent interrupts (softint) from running by splsoftnet to protect non-MP-safe
codes (e.g., carp_input and agr_input).

Pointed out by mlelstv@
2018-05-14 02:55:03 +00:00
ozaki-r
efe7f42bce Use if_is_mpsafe (NFC) 2018-05-14 02:53:29 +00:00
ozaki-r
b51605482b Restore TCP header inclusions for TCP_SIGNATURE 2018-05-14 02:16:29 +00:00
jakllsch
f9bfbd2481 With the hope it fixes PR #52911, be extra paranoid about assuring the
Device Context DMA memory is sync'd immediately before reading from it.
2018-05-14 00:26:02 +00:00
kamil
334427c45d Add a new ptrace(2) ATF exploit for: CVE-2018-8897 (POP SS debug exception)
The original expolit and mitigation have been developed by Maxime Villard.

I've reworked the shared code and adapted for the ATF context.
I've included PIE-aware version (RIP/EIP relative) and introduced
additional comments to the explanation how to trigger the flaw.

This test passes on NetBSD/8.99.17.

Sponsored by <The NetBSD Foundation>
2018-05-13 23:14:47 +00:00
kamil
2439331646 Refactor code in ATF ptrace(2) tests
Move the can_we_set_dbregs() auxiliary function from t_ptrace_x86_wait.h
to a common file t_ptrace_wait.h. This allows using this function for
checking whether the DBREGS set operations in ptrace(2) are accessible for
a user.

Sponsored by <The NetBSD Foundation>
2018-05-13 23:01:25 +00:00
jmcneill
21a656eccc Battery charge state is invalid until we refresh the first time 2018-05-13 22:58:58 +00:00
sevan
a9f8ca9aa6 Document history. 2018-05-13 22:44:58 +00:00
khorben
0e64fed944 Fix spello in a comment 2018-05-13 22:42:51 +00:00
sjg
7ccc79ce72 Just skip polling job token pipe.
The sigchld pipe ensures no busy wait.

PR: 53285
Reviewed by:
2018-05-13 22:13:28 +00:00
sevan
5b9008f556 Add another APM, advanced power management. 2018-05-13 18:52:00 +00:00
maxv
c9afc618e9 Clarify ESP-in-UDP. 2018-05-13 18:39:06 +00:00
maxv
88bfc8dc97 Remove unused calls to nat_t_ports_get. 2018-05-13 18:34:59 +00:00
maya
955e09c869 Add APM, APM, APU and ZFS
From Nikolai Lifanov in PR misc/53147
2018-05-13 16:53:04 +00:00
macallan
8d6d7e3684 fix the fix 2018-05-13 16:03:25 +00:00
christos
717134319c make this compile again. 2018-05-13 14:55:35 +00:00
christos
9f866c5113 correct the function name. 2018-05-13 14:45:23 +00:00
christos
e7f0fa0971 PR/53285: Andreas Gustafsson: Build times tripled with make/job.c 1.193
Revert previous:
    2018.05.12.15.14.49/bracket.db:build_wall_time=4896.09
    2018.05.12.18.17.04/bracket.db:build_wall_time=16268.98
2018-05-13 12:10:36 +00:00
jmcneill
c60207086a Use IRQs to update status whenever we can. Reduces the amount of work that
needs to be done whenever sysmon_envsys refreshes sensors.
2018-05-13 11:13:02 +00:00
jmcneill
254f45d965 Mixer improvements:
- outputs.master switches between line and hp volume control, depending
   on jack sense
 - add outputs.source to override jack sense output routing
 - (playback) line and hp controls are in the input class
 - (capture) line and mic controls are in the record class
2018-05-13 01:01:37 +00:00
christos
2bd1a590c2 PR/53280: Andreas Gustafsson: Fix panic in the fdpass test. This is probably
the only 32 bit binary in the tests...
2018-05-13 00:04:23 +00:00
jmcneill
c0b821c014 Pass mixer requests to the codec. It is the responsibility of the codec
to decide whether or not to dispatch to an aux device.
2018-05-12 23:51:06 +00:00
sjg
68df7c9526 Skip setting wantToken.
polling the job token pipe adds a lot of overhead
for little gain.
For now, just leave wantToken=0

And avoid busy waiting when no tokens are available and
no jobs are running.

Reviewed by: christos
2018-05-12 18:17:04 +00:00
jmcneill
7c280e5b7f Increase PAGER_MAP_DEFAULT_SIZE to 512MB (from 16MB) 2018-05-12 15:14:49 +00:00
jdolecek
8433f1df35 adjust description for ubc_uiomove() to not reference lenp variable (that part
was carried over from ubc_alloc() description), and instead mention the restriction
to ubc_winsize
2018-05-12 15:03:19 +00:00
jdolecek
ce01706455 remove ubc_alloc(9) and ubc_release(9) from ubc(9) from the documentation, they
are internal (static) functions

pointed out by Matthew Green in private email
2018-05-12 14:49:34 +00:00
mlelstv
4d7fa4351b Support dump on wedges. 2018-05-12 10:33:06 +00:00
jmcneill
9a41f73f52 Trigger shutdown on POKLIRQ instead of POKSIRQ.
POKSIRQ is triggered if POK remains low for less than IRQLEVEL. This makes
it way too easy to accidentally trigger shutdown. POKLIRQ is triggered if
POK hold time is greater than IRQLEVEL, which is much more reasonable for
this use case.
2018-05-12 01:31:07 +00:00
jmcneill
fe04378444 Disable lineout by default. If HP is not plugged at boot, we get an
unplug event. However, no plug event when HP is plugged at boot.
2018-05-11 23:05:41 +00:00
macallan
aded75a0cd fix tpyo 2018-05-11 22:51:33 +00:00
jmcneill
76bf467c77 Add HP jack detect support. When HP is present, mute lineout. 2018-05-11 22:51:12 +00:00
jmcneill
f5ee043234 Attach aux devices to the codec 2018-05-11 22:49:19 +00:00
jmcneill
75928fe597 Add APIs for linking dai devices and jack detection 2018-05-11 22:48:55 +00:00
macallan
da2cd058bc deal with IPIs on U3/HT machines, only install OpenPIC IPI goop on actual
OpenPIC hardware
2018-05-11 22:48:38 +00:00
macallan
b7a74ff5f6 use 128 as IPI_VECTOR to avoid overlap wth hardware interrupts 2018-05-11 22:39:59 +00:00
macallan
8d46e69c1b disable the MULTIPROCESSOR case in pmap_syncicache() because:
- __syncicache() wants a virtual address, not a pa
- this crashes on G5 SMP
- the rest of the function does the same as __syncicache() except it turns
  the MMU off first so physical addresses work
with this, my PCIe G5 boots SMP
2018-05-11 22:23:33 +00:00
sevan
658d9240b5 remove definition of LUA_USE_APICHECK, it is a build time option for Lua
itself. Not for modules.
2018-05-11 20:19:25 +00:00
sevan
838100b8e4 Match sequence of flags with usage()
Following on from mandoc -Tlint, drop Pp macro before Bl and Tn macro.
2018-05-11 16:36:57 +00:00
maxv
336c2eba16 ENOBUFS -> EACCES when updating the replay counter. 2018-05-11 15:43:07 +00:00
sevan
736983f1a9 Add IFS - internal field separator. 2018-05-11 14:42:03 +00:00
sevan
697bac7239 Move HTTP Keyserver Protocol entry to the correct file. 2018-05-11 14:39:25 +00:00
maxv
65f0aceba1 Retire ICMPPRINTFS, it's annoying and it doesn't build. 2018-05-11 14:38:28 +00:00
maxv
7e3f605c35 Dedup: introduce rip6_sbappendaddr. Same as IPv4. 2018-05-11 14:25:50 +00:00
maxv
fdef4a4ef3 Make sure we have at least an IP header, and remove pointless XXXs (there
is no issue).
2018-05-11 14:07:58 +00:00
maxv
2afab7aa0f static 2018-05-11 13:56:43 +00:00
maxv
664e7a5a33 Improve comment, it's not just IPv4. 2018-05-11 13:52:48 +00:00