257466 Commits

Author SHA1 Message Date
macallan
f08bfa866c effectively enforce fan speed limits, deal with negatives properly 2018-03-21 15:41:34 +00:00
maxv
41c8a9b391 Add XXX (we don't handle IPv6 Jumbograms), and whitespace. 2018-03-21 15:36:28 +00:00
maxv
6a2702e705 Fix an untriggerable memory leak. carp_prepare_ad does not fail, so switch
it to void.
2018-03-21 15:33:25 +00:00
roy
38d01a8d5e Sprinkle more soroverflow(). 2018-03-21 14:23:54 +00:00
roy
d96ab75caf Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
2018-03-21 12:37:12 +00:00
wiz
5e9aa3e698 Merge altq(4) HISTORY changes. 2018-03-21 10:21:17 +00:00
wiz
11eb922ab3 Improve HISTORY section. 2018-03-21 10:20:33 +00:00
maxv
2369055670 Don't read the L4 payload after IPPROTO_AH when handling IPv6 packets.
AH must be considered as the payload, otherwise a

	block all
	pass in proto ah from any
	pass out proto ah from any

configuration will actually block everything, because NPF checks the
protocol against the one found after AH, and not AH itself.

In addition it may have been a problem for stateful connections; an AH
packet sent by an attacker with an incorrect authentication and a correct
TCP/UDP/whatever payload from an active connection could manage to change
NPF's FSM state, which would perhaps have altered the legitimate
connection with the authenticated remote IPsec host.

Note that IPv4 already doesn't go beyond AH, which is the correct
behavior.
2018-03-21 10:08:16 +00:00
eadler
9a5cd7c512 [bsd-family-tree] announce NetBSD 7.1.2 & 6.0.6
rearrange some elements to better reflect the release timings

ok pgoyette@
2018-03-21 09:54:39 +00:00
sevan
88ca81af9f Add a CAVEATS section to give a heads up about not using pf LKM with ALTQ.
Found via https://www.netbsd.org/docs/network/pf.html#altq
2018-03-20 20:13:33 +00:00
maxv
089fb64594 (Re)Fix handling of segment register faults. My previous attempt did fix
faults occuring when reloading %es/%ds/%fs/%gs, but it did not fix faults
occuring when executing 'iretq', because before iretq we needed to do +16
in %rsp, and the resulting stack layout was not the one kernuser_reenter()
expected (tf_trapno and tf_err were not there).

So now: pop tf_trapno and tf_err right away in intrfastexit(), and update
the layout in kernuser_reenter() accordingly. The resulting code is
actually simpler.

Tested by "hardcoding" an iretq fault; the process correctly receives a
SIGSEGV.

(Note that segment register faults do not happen in the wild, you really
need to try hard to trigger one.)
2018-03-20 18:27:58 +00:00
sevan
03341862d1 Extend HISTORY section to match altq(4) 2018-03-20 17:15:20 +00:00
sevan
6b21cf551d As per ALTQ(9), refer to ALTQ as a system which is a framework. 2018-03-20 17:13:54 +00:00
sevan
380bb32c23 Add HISTORY section. 2018-03-20 16:17:56 +00:00
maxv
e63bb96852 Remove the sysretq fault handler. It is broken with SVS, and not really
needed anyway. Initially I had added it so that if such a fault was
received the kernel would panic "cleanly" instead of crashing in a
potentially undefined way.

I'll re-add this handler later.
2018-03-20 14:26:49 +00:00
ragge
15745cf6c7 Change the driver to map the data structures onto the qbus. 2018-03-20 13:30:40 +00:00
bouyer
684eede062 Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".

Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.

Proposed on tech-kern@ on Dec 29.
2018-03-20 12:14:52 +00:00
nonaka
729ac788b7 regen 2018-03-20 11:24:14 +00:00
nonaka
49f3256455 Add Intel Wireless AC 9260. 2018-03-20 11:23:06 +00:00
nonaka
7be486cf1f efiboot: fix to find boot partition process.
NetBSD related partitions with no bootme flag set are also candidates
for boot partition.
2018-03-20 10:21:01 +00:00
nonaka
da0c851c92 efiboot: boot device is always efi_distlist first element. 2018-03-20 10:19:33 +00:00
nonaka
c3874e88d0 efiboot: more pager. 2018-03-20 10:18:10 +00:00
nonaka
7a39eefeb5 efiboot: fix it can't boot from HDD. 2018-03-20 10:16:17 +00:00
ryo
2c083542f7 separate cputypes.h for CPU_ID_* from armreg.h,
and add some implementor IDs, CortexA55,73,75 IDs.

(preliminary changes for merging aarch64)
2018-03-20 10:14:29 +00:00
knakahara
4581c3b228 Fix race about writing adapter->link_active for ixv(4).
adapter->link_active is updated by ixv_update_link_status() only.
The function is called from the following two functions.
    - ixv_media_status()
    - ixv_handle_link()

ixv_media_status() calls ixv_update_link_status() with holding
IXGBE_CORE_LOCK, however ixv_handle_link() calls it without
holding IXGBE_CORE_LOCK, the same as ixg(4).

ok by msaitoh@n.o.
2018-03-20 09:50:33 +00:00
knakahara
8540bcaed8 Fix race about writing adapter->link_active for ixg(4).
adapter->link_active is updated by ixgbe_update_link_status() only.
The function is called from the following four functions.
    - ixgbe_media_status()
    - ixgbe_local_timer1()
    - ixgbe_stop()
    - ixgbe_handle_link()

The functions other than ixgbe_handle_link() call ixgbe_update_link_status()
with holding IXGBE_CORE_LOCK, however ixgbe_handle_link() calls it without
holding IXGBE_CORE_LOCK. That can cause race. So, add IXGBE_CORE_LOCK to
ixgbe_handle_link().

Tested by msaitoh@n.o and me.
2018-03-20 09:46:25 +00:00
ragge
9b5db8c705 gcc 5.5 has no problem with -O2 on boot. 2018-03-19 17:29:08 +00:00
ryo
0bcaff6ff5 move "defparam opt_machdep.h BOOT_ARGS" to files.evbarm from various places 2018-03-19 17:11:24 +00:00
roy
03ee279e62 rtsock: log dropped messages that we cannot report to userland 2018-03-19 16:34:48 +00:00
roy
a893a6a039 socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
2018-03-19 16:32:30 +00:00
roy
ffd39b7c9d socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
2018-03-19 16:31:24 +00:00
roy
320ba6e2bf socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.
2018-03-19 16:26:25 +00:00
bouyer
14c7c433bd Make sunxi_ccu_div_set_rate() work on non-SUNXI_CCU_DIV_TIMES_TWO
clocks.
2018-03-19 16:19:17 +00:00
bouyer
a1f84860f6 Add some more A10/A20 clocks definitions; related to display engines.
The video PLLs requires a new clock type, SUNXI_CCU_FRACTIONAL
2018-03-19 16:18:30 +00:00
ragge
a3eeb1cb45 Use a common routine ubmap() that setup the map registers as needed,
not expecting everything to be below 4M.  This solves the problem
that large kernels cannot be loaded reported on port-vax.
2018-03-19 15:43:45 +00:00
ragge
732d8d4a00 Do not use movc3 to copy boot program, it may be larger than 64k. 2018-03-19 15:37:56 +00:00
martin
de52eb4819 XXX stub it completely for now to make it compile 2018-03-19 13:26:02 +00:00
christos
16ebd747ed XXX: don't reference the global for now so that kernels without ccd build. 2018-03-19 13:04:01 +00:00
martin
268b4832d4 Nowadays we can create new kernel threads late after boot, so if we are
unable to find physically continous pages for their uarea, just allocate
them via uvm_km_alloc(), that is: make cpu_uarea_alloc() fail instead
of panic. cpu_uarea_free() already deals with this.

Should fix PR port-alpha/53077.

Discussed with maxv and mrg.
2018-03-19 10:31:56 +00:00
mlelstv
a23ee50408 Check device parameter to avoid segfaults. Agument synopsis for -l option. 2018-03-19 09:06:20 +00:00
ryo
0a54329285 sunxi: mmc: increase max number of descriptors available for DMA transfers
patch from jmcneill@
2018-03-19 08:57:57 +00:00
ozaki-r
d52b83d757 ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)
Requested by mrg@
2018-03-19 08:41:21 +00:00
ozaki-r
3cbd26226a Pull out a sleepable function (in6_selectsrc) from a pserialize read section 2018-03-19 03:14:08 +00:00
msaitoh
d714ebf51d s/been been/been/ in comment. 2018-03-19 03:12:09 +00:00
msaitoh
f96d27e840 s/copy copy/copy/ in comment. 2018-03-19 03:11:39 +00:00
christos
2256e8d4b1 remove another error decl. 2018-03-19 00:21:50 +00:00
christos
664f132ddf remove error decl 2018-03-18 23:26:38 +00:00
christos
6c5623dc1b - use the conditional from the header file
- fix compilation
2018-03-18 23:22:15 +00:00
pgoyette
17d316f55e Declare 'error' if needed 2018-03-18 22:48:00 +00:00
christos
e634efa8ef factor out the ccd COMPAT_60 code. 2018-03-18 20:33:52 +00:00