Commit Graph

268824 Commits

Author SHA1 Message Date
sevan
f6d2123b3a Add bicycle day 2019-07-23 18:28:59 +00:00
sevan
7ee66b61a5 REPL 2019-07-23 18:13:47 +00:00
martin
b1fa9754c7 For upgrade / re-install allow the currently running system as a target
in the "disk" selection.
2019-07-23 18:13:40 +00:00
jmcneill
e2c9e98290 Normalize clk name to prevent sysctl_createv from failing 2019-07-23 17:44:03 +00:00
rin
80a8c0d4ef Enable us to enter DDB from serial console when WSDISPLAY_MULTICONS
is enabled. This is necessary for machines on which framebuffer
console cannot be disabled at run time.

opt_wsdisplay_compat.h is generated for all ports including those
that do not support wscons.

OK Jared
2019-07-23 17:39:36 +00:00
maxv
ec49b45e02 1) If the descriptor length is bigger than the USB string descriptor
itself, error out. Otherwise there is a small overflow (seen on KASAN,
    with bLength=255).
 2) Make sure we have a config descriptor header, otherwise there are small
    overflows (seen on KASAN, with wTotalLength=1).
 3) Once we have the complete config descriptor, make sure its size didn't
    change in the meantime. Otherwise there could be severe overflows.
 4) Make sure we have a bos descriptor header, otherwise overflow, same
    as 2).

ok mrg@ skrll@
2019-07-23 17:21:33 +00:00
martin
0c91c88eda Fix the "reinstall sets" action. 2019-07-23 16:02:32 +00:00
jmcneill
e84b77e306 Add cn_halt function, disable interrupts when halting 2019-07-23 15:56:14 +00:00
jmcneill
0d0e1e46ad Call cn_halt on the old console device 2019-07-23 15:55:49 +00:00
rin
5804d68668 Note DMA support for SCSI adapters found on 660/840AV. 2019-07-23 15:29:24 +00:00
martin
c2ed2005cc When searching for a partition that may be the root partition for upgrading,
allow "/", "/targetroot" and "/altroot" as potential last mount points.
2019-07-23 15:23:14 +00:00
rin
0ed3032a3b PR port-mac68k/24883
Support DMA xfer for SCSI adapter of AV Mac (660/840AV), written by
Michael Zucca.

This improves disk I/O performance by nearly one order of magnitude.
In addition, interrupt storm due to heavy disk PIO is resolved.

I'm deeply grateful to Michael Zucca for his analysis of DMA engine
and submission of PR. I also thank Izumi Tsutsui (useful comments on
port-mac68k@) and Martin Husemann (test on 660AV).
2019-07-23 15:19:07 +00:00
rin
b416e565c0 For drivers whose framebuffer is located not page-aligned, permit
offset of mmap up to (length of framebuffer) + (page offset of base
address of framebuffer). This is necessary in order to map the
highest page of framebuffer correctly, see,
http://cvsweb.netbsd.org/bsdweb.cgi/xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c#rev1.35
2019-07-23 14:34:11 +00:00
wiz
8e1346dbb3 Remove superfluous Li; rename section to match standards. 2019-07-23 14:28:24 +00:00
wiz
ea75629060 Add RCS Id. 2019-07-23 14:24:02 +00:00
wiz
7f55a9275e New sentence, new line. Avoid formatting punctuation. Remove superfluous Pp. 2019-07-23 14:20:22 +00:00
wiz
eed20ae12c Try improving a description. 2019-07-23 14:18:20 +00:00
christos
755b70304b remove stray brace 2019-07-23 13:10:11 +00:00
martin
85d19b8858 Avoid a buffer overrun with too many interfaces. 2019-07-23 12:37:23 +00:00
jmcneill
ed005302f3 No need for console=fb handling with WSDISPLAY_MULTICONS 2019-07-23 12:34:47 +00:00
jmcneill
146d8d9cef Add support for WSDISPLAY_MULTICONS 2019-07-23 12:34:05 +00:00
jmcneill
31039b9bf6 Attach uarts on pass 4, matching GENERIC64 2019-07-23 12:32:40 +00:00
jmcneill
6a84c46fd2 pckbd_cngetc: Set type=0 and return if no data is available 2019-07-23 12:28:52 +00:00
skrll
c644c2667e Don't busy wait for a character in plcom_common_getc, but instead
return -1 if there are no characters available.

Fixes WSDISPLAY_MULTICONS for RaspberryPI and GENERIC.

Thanks to jmcneill@ for the hint
2019-07-23 12:13:47 +00:00
skrll
61d75e1821 Trailing whitespace 2019-07-23 12:10:38 +00:00
uwe
f9f52b4a0c Use .Dl for displays with single command. Specify .Bl -width with the
same formatting as the actual tags.
2019-07-23 11:02:29 +00:00
uwe
800ba6691b strfile is installed, don't claim it isn't. 2019-07-23 10:40:55 +00:00
christos
585d8da984 put the NULL check immediately after the allocation 2019-07-23 10:19:35 +00:00
christos
113f06a345 PR/54399: Sören Tempel: Uninitialized memory access in libedit history.
Initialize the buffer using calloc. While here change all malloc(a * sizeof(b))
to calloc(a, sizeof(b)). XXX: should fix realloc similarly.
2019-07-23 10:18:52 +00:00
uwe
4d25743b11 Prettify formatting. 2019-07-23 09:50:27 +00:00
christos
38ee0c7eda PR/54400: Sören Tempel: out-of-bounds read in libedit c_delbefore 2019-07-23 09:47:16 +00:00
msaitoh
9af4574bab Add IT8655 support. 2019-07-23 09:38:53 +00:00
msaitoh
a2ee02a7ae Define RETA_ENTRY_MASK_Q(used in RSS redirection table) correctly.
Found by UBSan.
2019-07-23 09:37:08 +00:00
hannken
d233d0f45b Create "dtrace_taskq" here like FreeBSD does.
PR kern/54397: Panic when loading a DTrace module whilst DTrace is running
2019-07-23 09:06:12 +00:00
rmind
c52ca7f90f NPF portmap: add a workaround for archs without 64-bit CAS. 2019-07-23 08:25:52 +00:00
rin
a491818de0 PR port-mac68k/24883
Style-only changes in preparation to import AV DMA code:

- G/C unused from esp_softc
- clean up headers:
    - prefer <sys/bus.h> over <machine/bus.h>
    - G/C unused
    - sort
- staticify private functions and variables
- stop using inline qualifier for functions called via function pointers
- use C99 initializer
- provide bus_space_vaddr(9) and use it, instead of using member of
  bus_handle_t directly
- use uint*_t:
    - u_char --> uint8_t
    - u_int*_t --> uint*_t
- use proper names from ncr53c9xreg.h instead of magic numbers
- and some KNF, and etc.

No functional changes intended.
2019-07-23 07:52:53 +00:00
hannken
b83fa74ac8 Move local changes to files below "external/cddl/osnet/dist/" and
remove now unneeded files from "external/cddl/osnet/sys/sys/".

- sys/sys/bitmap.h -> dist/uts/common/sys/bitmap.h
- sys/sys/callb.h -> dist/uts/common/sys/callb.h

Stop including "cpupart.h", not needed for build.
2019-07-23 07:46:22 +00:00
hkenken
0656a7fbc7 Modified enet_attach_common(). 2019-07-23 06:36:36 +00:00
martin
9aa5d31cf0 Add a note to rebuild jemalloc w/o debugging 2019-07-23 06:35:40 +00:00
martin
8576992150 Disable JEMALLOC_DEBUG, it served us well, but now we want performance
back. Discussed with christos.
2019-07-23 06:31:20 +00:00
knakahara
445b9abee3 vmx(4) can be detached now. 2019-07-23 04:50:05 +00:00
ozaki-r
f9e037adf1 setkey: document getspi and update 2019-07-23 04:32:06 +00:00
ozaki-r
ac002ee323 tests: add tests for getspi and udpate 2019-07-23 04:31:25 +00:00
ozaki-r
8e5aa2c9b8 setkey: enable to use the getspi API
If a specified SPI is not zero, tell the kernel to use the SPI by using
SADB_EXT_SPIRANGE.  Otherwise, the kernel picks a random SPI.

It enables to mimic racoon.
2019-07-23 04:30:32 +00:00
ozaki-r
58b6a74e54 ipsec: fix a regression of the update API
The update API updates an SA by creating a new SA and removing an existing SA.
The previous change removed a newly added SA wrongly if an existing SA had been
created by the getspi API.
2019-07-23 04:29:26 +00:00
nonaka
889dcccd73 kdump(1): Symbolic printing for MALLOC_OPTIONS="U". 2019-07-23 01:54:51 +00:00
rmind
dadc88e3b0 NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
  userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.
2019-07-23 00:52:01 +00:00
rmind
ac03b3fba2 - nvpair_create_stringf: use the in-kernel vasprintf().
- Make nvlist_add_stringf() availabe in the kernel.
2019-07-23 00:49:16 +00:00
kre
8ad10c91e9 Amend the previous change: we can have (almost) the best of both
worlds, as when the first arg (which should be the format) contains
no % conversions, and there are more args, the results are unspecified
(according to POSIX).

We can use this so the previous usage
	printf -- format arg...
(which is stupid, and pointless, but used to work) continues to
simply ignore the -- (unspecified results mean we can do whatever
feels good...)

This brings back the #if 0'd block from the previous modification
(so there is no longer anything that needs cleaning up later) but runs
the getopt() loop it contained only when there are at least 2 args
(so any 1 arg printf always uses that arg as the format string,
whatever it contains, including just "--") and also only when the
first (format) arg contains no '%' characters (which guarantees no %
conversions without needing to actually parse the arg).  This is the
(or a) "unspecified results" case from POSIX, so we are free to do
anything we like - including assuming that we might have options
(we don't) and pretending to process them.
2019-07-22 17:34:31 +00:00
wiz
d3d2abdc28 Move bcm43xx to /libdata/firmware, where all the other firmwares live.
Deprecate /usr/libdata/firmware.
2019-07-22 14:47:51 +00:00