Commit Graph

263501 Commits

Author SHA1 Message Date
roy ae8e2e2858 curses: Fix inverted logic when drawing LR corner with auto margins
Thanks to M. Levinson.
2018-11-30 04:38:14 +00:00
christos 90de07325c Add base-256 test (Micha Gorny) 2018-11-30 00:53:41 +00:00
christos a4c163faee Add base-256 decoding support (Micha Gorny) 2018-11-30 00:53:11 +00:00
jmcneill 0cc465725e Add Amazon.com EC2 virtual 16650-compatible PCI serial device 2018-11-29 23:53:44 +00:00
jmcneill fb426d292a regen 2018-11-29 23:53:15 +00:00
jmcneill 522b527d43 Add Amazon.com UART, NVMe, and ENA PCI IDs. 2018-11-29 23:52:49 +00:00
macallan 05bcc97a8b rasops_do_cursor():
- simplify & sanitize the unaligned case
- use only 32bit accesses
... no longer crash with odd sized fonts in 8bit
2018-11-29 23:44:50 +00:00
jmcneill 0c3a3fed64 Add hw.wsdisplay.multicons sysctl that can be used to disable mirroring wsdisplay output to serial port. 2018-11-29 23:18:40 +00:00
palle 4b227dc8bd sun4v: fix incorrect calculation of phys addr for the mdesc - now the virtual-devices can (again) be detected (worked previously...) 2018-11-29 20:58:36 +00:00
jakllsch e964f5aa03 use %u for u_int, rather than %d; corrects printing of frequencies at or above 2**31 Hz 2018-11-29 20:33:09 +00:00
maxv a026d6cb92 Rewrite the gpa map/unmap functions. Dig holes in the mapped areas when
there is an overlap. Close to what Qemu expects.
2018-11-29 19:55:20 +00:00
jakllsch 1d5cb2a3a0 Correct abuses of aprint_error_dev(9). 2018-11-29 18:53:42 +00:00
maxv 1eb384e338 Improve my kern_time.c::rev1.192, systematically clear the buffers we get
from 'ptimer_pool' to prevent more leaks.
2018-11-29 17:40:12 +00:00
wiz 8be75e9e02 new openssl versions out 2018-11-29 16:04:21 +00:00
maxv 2ce19e3fc7 Fix info leak. There is one branch where 'status' is not initialized at
all.

	+ Possible info leak: [len=4, leaked=4]
	| #0 0xffffffff80baf397 in kleak_copyout
	| #1 0xffffffff80b56d0c in sys_wait6
	| #2 0xffffffff80259c42 in syscall
2018-11-29 12:37:22 +00:00
maxv 2e300bd3f8 Fix stack info leak.
+ Possible info leak: [len=136, leaked=92]
	| #0 0xffffffff80baf397 in kleak_copyout
	| #1 0xffffffff80bd4155 in ptrace_copyout_siginfo
	| #2 0xffffffff80bd5348 in do_ptrace
	| #3 0xffffffff80bd40fe in sys_ptrace
	| #4 0xffffffff80259c42 in syscall
2018-11-29 11:45:52 +00:00
jmcneill 05b033f63e Add nvme at pci 2018-11-29 11:23:49 +00:00
maxv 590d64ce40 Fix kernel info leak, 4 bytes of padding at the end of struct sigaction.
+ Possible info leak: [len=32, leaked=4]
	| #0 0xffffffff80baf327 in kleak_copyout
	| #1 0xffffffff80bd9ca8 in sys___sigaction_sigtramp
	| #2 0xffffffff80259c42 in syscall
2018-11-29 10:27:36 +00:00
ozaki-r 74109b2db3 Don't validate the source address of forwarding IPv6 packets (same as IPv4) 2018-11-29 10:02:52 +00:00
ozaki-r 2050bad43a Don't run DAD on link-up if it's explicitly disabled 2018-11-29 09:54:22 +00:00
ozaki-r 42cd9a0569 Introduce and use ip_dad_enabled() and ip6_dad_enabled() functions 2018-11-29 09:51:20 +00:00
christos f04c2e3e34 Fix off by one <tsahara at iij> 2018-11-29 03:10:20 +00:00
jmcneill 79bb851b07 Allow non-power of 2 counts, and support alloc/release/alloc patterns for a device as long as the ITT size is sufficient 2018-11-28 22:54:11 +00:00
jmcneill fd3e895773 Force a matching com@puc by seg/bus/dev/func to be the console device if specified in SPCR 2018-11-28 22:29:36 +00:00
jmcneill 8d8682e28a Add support for a "force_console" property, where when set, reuses the console dev configuration 2018-11-28 22:28:46 +00:00
jmcneill 6cab6729b0 Add calls to if_attach and if_deferred_start_init 2018-11-28 21:31:32 +00:00
mlelstv 555789a933 Move counting involuntary switches into mi_switch. preempt() passes that
information by setting a new LWP flag.

While here, don't even try to switch when the scheduler has no other LWP
to run. This check is currently spread over all callers of preempt()
and will be removed there.

ok mrg@.
2018-11-28 19:46:22 +00:00
mlelstv d7158461a0 Revert previous for a better fix. 2018-11-28 19:36:43 +00:00
jmcneill d1b4960443 Avoid kpause while cold 2018-11-28 19:15:32 +00:00
ryo 66fe064a07 Comment out implementation specific registers to avoid illegal instruction trap on ThunderX 2018-11-28 19:13:15 +00:00
jmcneill 9a00c52551 Our softc is the private data of self, not parent. Spotted by mlelstv@ 2018-11-28 19:07:49 +00:00
jmcneill 02aad920e9 Use correct PCI BAR offsets 2018-11-28 19:06:54 +00:00
jdolecek 31ebcc75c2 whitespace fix, NFC 2018-11-28 16:51:41 +00:00
maxv 2f18cc3a90 Fix kernel info leak.
+ Possible info leak: [len=32, leaked=16]
	| #0 0xffffffff80baf3a7 in kleak_copyout
	| #1 0xffffffff80b940f8 in sys___timer_settime50
	| #2 0xffffffff80259c42 in syscall
2018-11-28 15:10:40 +00:00
bad 67035901a5 Adapt ena_rx_checksum() to NetBSD.
It wasn't ported to the NetBSD conventions of indicating hardware checkum
status.

Compile tested only.
2018-11-28 11:50:48 +00:00
hannken 6ac427e315 Redo the access check for setting va_flags in zfs_netbsd_setattr().
Use user flag UF_NODUMP instead of UF_IMMUTABLE for the test as it
is the only user flag supported by all tested file systems.

PR kern/47656 test zfs_flags.
2018-11-28 10:01:28 +00:00
hannken e4ec60fc8e Add missing access check for REMOVE into zfs_netbsd_lookup().
PR kern/47656 test zfs_dirperms.
2018-11-28 09:58:58 +00:00
hannken 5cbc5ce853 Add missing access check for setting va_Xtime into zfs_netbsd_setattr().
PR kern/47656 test zfs_times.
2018-11-28 09:57:59 +00:00
hannken 1d96c4a33f We expect VOP_ACCESS() to return EACCESS as general error.
Change zfs_netbsd_access() to translate the common EPERM to EACCES.
2018-11-28 09:57:16 +00:00
hannken bc6110ce9c Don't try to release a NULL vnode in zfs_netbsd_rename(). 2018-11-28 09:56:40 +00:00
hannken 29da203472 Remove an early test for "source and target are equal" from zfs_rename()
that broke BSD semantics.
2018-11-28 09:56:09 +00:00
hannken 6d68550383 Add missing sa_buf_rele() into zfs_zget_cleaner(). 2018-11-28 09:55:36 +00:00
hannken 1f58a7d1b1 Always unbusy pages in zfs_putapage() after the data has been written
into the DMU.  Running fsx no longer hangs the kernel.
2018-11-28 09:55:06 +00:00
mlelstv 7b268d74f8 Fix statistics in case mi_switch didn't actually switch LWPs. 2018-11-28 09:44:49 +00:00
ryo 18fe7aba1f support boot option "-1" to disable multiprocessor boot, and "-z" to set AB_SILENT flag. 2018-11-28 09:16:19 +00:00
blymn ee3d5db25b * Increase minimum finger width to prevent entering scroll mode erroneously
* Attempt to clarify what the sysctl variables for finger scroll do
* Add hysteresis to validity check so changing it does not get rejected

Thanks to Martin Husemann and Michael van Elst for reporting the issues.
2018-11-28 09:14:03 +00:00
msaitoh fe21bc8f27 The register offset of the mask and pending register is depend on the 64bit
address capable bit, so fix the definition of PCI MSI vector mask and pending
register. This problem was not a real bug because PCI_MSI{MASK,PENDING} were
not used from anywhere.
2018-11-28 08:26:07 +00:00
msaitoh 24fd30a235 Fix comment. No functional change. 2018-11-28 08:19:19 +00:00
ryo 6fe68c25d4 don't pass illegal cpu index to cpu_lookup(). it may cause KASSERT. 2018-11-28 08:16:46 +00:00
ryo ac6a092d65 don't exec 32bit binary on the cpu that has no aarch32. 2018-11-28 08:12:15 +00:00