Commit Graph

277437 Commits

Author SHA1 Message Date
wiz 99aaf50145 Sort option descriptions. 2020-06-07 19:35:15 +00:00
leot 5cd696c2e3 Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
{download-vulnerability-list,audit-packages}.
2020-06-07 15:41:03 +00:00
leot 3acc7de7ef Properly quote printf string
Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
2020-06-07 15:37:04 +00:00
maxv 3c214a3d99 Fix bohr bug triggered only once by syzkaller 2,5 months ago.
In sockopt_alloc(), 'sopt' may already have been initialized with
'sopt->sopt_data = sopt->sopt_buf'. If the allocation fails, we
end up with 'sopt->sopt_data = NULL', and later try to free this
NULL pointer in sockopt_destroy().

Fix that by not modifying 'sopt_data' if the allocation failed.

Difficult to reproduce in normal times, but fault(4) makes it
easy.

Reported-by: syzbot+380cb5d518742f063ad2@syzkaller.appspotmail.com
2020-06-07 15:19:05 +00:00
thorpej 87f84208ec One more libprop-related cat pages fixup. 2020-06-07 14:55:13 +00:00
martin f12e2cb828 Fix debug sets for libprop changes 2020-06-07 10:24:50 +00:00
maxv 857941dbf5 Add fault(4). 2020-06-07 09:45:19 +00:00
thorpej 2992a692c3 NetBSD 9.99.65 -- proplib(3) API additions also impact the kernel ABI. 2020-06-07 06:08:20 +00:00
thorpej abcb66ec85 Update for proplib(3) API changes. 2020-06-07 05:54:00 +00:00
thorpej d147ce2226 Update for proplib(3) API changes. 2020-06-07 05:42:25 +00:00
tsutsui b3d9a749d9 Use -fno-unwind-tables to shrink boot binaries a bit. 2020-06-07 03:02:42 +00:00
tsutsui 7388d8fa24 Fix "illegal exceptoin" error on loading a secondary boot.
Recent gcc/binutils create more than two problem header sections
so the primary bootxx should handle them accordingly.
See my port-mips@ port for more details:
 https://mail-index.netbsd.org/port-mips/2020/06/06/msg000948.html

Should be pulled up to netbsd-9.
2020-06-07 03:00:53 +00:00
thorpej bba3c68329 Update for proplib(3) API changes. 2020-06-07 00:51:48 +00:00
thorpej bcd1eb151d Update for proplib(3) API changes. 2020-06-07 00:12:00 +00:00
ad 354b08d238 uvmexp.ncolors being used where uvmexp.colormask wanted 2020-06-06 23:02:25 +00:00
thorpej aebbed3d12 Update for proplib(3) API changes. 2020-06-06 22:33:23 +00:00
ad 44b8317b39 Correction to previous - set VI_PAGES correctly. 2020-06-06 22:31:40 +00:00
thorpej bde2909f86 Update for proplib(3) API changes. 2020-06-06 22:28:07 +00:00
ad 3ce4840c59 lwp_exit(): add a warning about (l != curlwp) 2020-06-06 22:26:47 +00:00
ad b81fe3a293 Adjust previous. In the condvar case the wakeup might already have been
eaten.
2020-06-06 22:23:59 +00:00
thorpej b1bbd8163d Correct a deprecation warning. 2020-06-06 22:23:31 +00:00
joerg 001816e78d sun2 and vax have no native TLS support, so avoid using modern jemalloc
as it has a couple of nasty race conditions when using TSD.
2020-06-06 22:06:42 +00:00
thorpej 9bc38ca6a6 Don't use deprecated proplib APIs (in the old "basic" test case). 2020-06-06 21:45:07 +00:00
thorpej a792b8435e Improvements to the problib(3) API:
==> Provide a much more complete set of setters and getters for different
    value types in the prop_array_util(3) and prop_dictionary_util(3)
    functions.

==> Overhaul the prop_data(3), prop_number(3), and prop_string(3) APIs
    to be easier to use and less awkwardly named,  Deprecate the old
    awkward names, and produce link-time warnings when they are referenced.

==> Deprecate mutable prop_data(3) and prop_string(3) objects.  The old
    APIs that support them still exist, but will now produce link-time
    warnings when used.

==> When the new prop_string(3) API is used, strings are internally
    de-duplicated as a memory footprint optimization.

==> Provide a rich set of bounds-checked gettter functions in and a
    corresponding set of convenience setters in the prop_number(3) API.

==> Add a new prop_bool_value(3) function that is equivalent to
    prop_bool_true(3), but aligned with the new "value" routines in
    prop_data(3), prop_string(3), and prop_number(3).
2020-06-06 21:25:59 +00:00
wiz 55eb855c31 Use more markup. 2020-06-06 20:38:00 +00:00
wiz c65439fe2c Reduce macro arguments. 2020-06-06 20:30:23 +00:00
wiz 5686c270c9 Remove trailing whitespace. 2020-06-06 20:28:42 +00:00
thorpej 319f97df00 Relax the KASSERT() in pcu_discard_all() to allow non-curlwp if it is
in LSIDL state, which can happen if the new LWP is exiting before it's
ever run, e.g. if an error occurs in _lwp_create(2).
2020-06-06 18:13:01 +00:00
thorpej 9dd0cf5370 Add a test case to ensure that _lwp_create() fails with the
expected error code when a bad new-lwp-id pointer is passed.
2020-06-06 18:11:21 +00:00
nia fcbb6d8f6a FTP 2020-06-06 17:39:35 +00:00
thorpej 30a26bde0a Make libsa's vsnprintf() work as expected when passed a NULL
destinatino buffer.
2020-06-06 15:45:47 +00:00
simonb c012787efc Increase readability by reducing #ifdef using a macro. 2020-06-06 14:30:44 +00:00
gson c2d905cb60 Conditionally enable the formerly #if'ed-out code to use the
WRITE_REGION_1 command for writing blocks of data to the device.
This is to address a performance issue where "ifconfig run0 up" would
take as long as 20-30 seconds when using a UHCI or OHCI host
controller due to the large number of control transfers performed by
the driver in combination with the inability of those host controllers
to perform multiple control transfers per USB frame.  Limit the
transfers to 64 bytes as in the corresponding #if'ed-out code in
FreeBSD.  Currently only enabled for mac_ver 0x5390 as it is the only
version tested so far.
2020-06-06 13:53:43 +00:00
tsutsui c332e97e6f Fix ews4800mips example. Its raw partition is rsd0p, not rsd0c. 2020-06-06 10:22:45 +00:00
skrll b7d6af89fd KNF 2020-06-06 09:03:59 +00:00
skrll 648bd77418 More __BITS. NFCI. 2020-06-06 08:56:30 +00:00
maxv 0f48bfb53e If the frame is not aligned, leave right away. This place probably needs
to be revisited, because %rbp could easily contain garbage.

Reported-by: syzbot+ecb40cf7f8acc102c29b@syzkaller.appspotmail.com
2020-06-06 07:03:21 +00:00
maxv 502296eab3 kMSan: re-set the orig after pool_cache_get_slow(), using the address of
the caller of pool_cache_get_paddr().

Otherwise the orig is just pool_cache_get_paddr(), and that's not really
useful for debugging.
2020-06-06 06:42:54 +00:00
roy c3293770af terminfo(5): Numbre -> Number
Thanks to yukonbob
2020-06-05 22:08:10 +00:00
kamil 0d69ea471e Change const unsigned to preprocessor define
Fixes GCC -O0 build with the stack protector.
2020-06-05 21:48:03 +00:00
sevan b56f55278d IME, SCIM 2020-06-05 19:45:51 +00:00
sjg 39bf2cb2a2 make: add :Or for reverse sort
:Or is more efficient than :O:[-1..1]

Reviewed by: christos
2020-06-05 19:20:46 +00:00
sjg 62b57d3e75 cached_stats: do not conflate stat and lstat
While make uses lstat quite rarely, it does so for reason.
Avoid confusing the results.

Reviewed by: christos
2020-06-05 18:03:59 +00:00
maxv 9259199775 Register eight vHCI buses, and use separate KCOV mailboxes for them. 2020-06-05 17:20:56 +00:00
christos 252a722447 Add support for npfd_flags 2020-06-05 17:10:44 +00:00
christos 481219a259 fix wrong size addition (Andrew Cagney)
XXX: This file is nearly identical with /usr/src/sys/netipsec/key_debug.c
and should be merged.
2020-06-05 15:19:08 +00:00
rin a3321772bf Check x > 0 *before*, not after, using (x - 1) as index of array. 2020-06-05 12:47:28 +00:00
nia d06dd93f7d Remove more bogus tests for 64-bit i386 and SuperH.
These are always false.
2020-06-05 11:16:15 +00:00
simonb 5b6317c60e Rework CVMSEG LM usage a litte:
- remove unused LM slots
 - use #defines for defining the size of CVMSEG LM users

XXX: Need to dynamically set CVMMEMCTL[LMEMSZ] during startup so we can
     both adapt to any future increase in CVMSEG LM usage and not waste
     any more L2 that we need to.
XXX: Still need to move general IOBDMA conf to a different (new?) header.
2020-06-05 09:18:35 +00:00
skrll d78befcef4 Replace calls to usbd_device2interface_handle in u3g_match() and
u3g_attach() with the interface already passed in uiaa->uiaa_iface and
store the interface in sc->sc_iface for later use by u3g_open()/

Also skip Direct IP interfaces in u3g_match() to avoid potential side effects.

PR kern/55330
2020-06-05 08:02:32 +00:00