Commit Graph

277457 Commits

Author SHA1 Message Date
sevan
919267d79b Use Dx macro 2020-06-08 20:19:12 +00:00
thorpej
a2b798fdfa Update for proplib(3) API changes. 2020-06-08 20:14:24 +00:00
rillig
c32d14bd2e usr.bin/make: fix test failure
The two files include-sub.mk and include-subsub.mk were never intended to
be test cases on their own.  They belong to include-main.mk.

Fixes PR bin/55360.
2020-06-08 19:50:10 +00:00
sevan
7b7e9ceaac Pp before Bl 2020-06-08 17:28:10 +00:00
sevan
0d0557bb3b white space 2020-06-08 17:19:44 +00:00
maxv
3e534f26ae install fault.h 2020-06-08 16:36:18 +00:00
jmcneill
464d1fd213 Add smscphy(4) 2020-06-08 11:51:48 +00:00
hkenken
6e4c9fda27 Fix wrong divider setting. 2020-06-08 07:48:57 +00:00
rin
b7016d1c78 Remove t_proplib.debug from debug/shl.mi, which is built regardless of MKPIC,
and has been moved into debug/mi.
2020-06-08 05:05:43 +00:00
rin
fe5c2a10ab For /usr/libdata/debug/usr/tests/lib/libprop
- Obsolete t_basic.debug and
- Add t_proplib.debug
2020-06-08 02:54:41 +00:00
mrg
dfee3217ee make find_cpus() static. 2020-06-08 02:27:08 +00:00
lukem
31aae2d731 ftp: exit if lostpeer invoked by a signal
lostpeer() calls too many async-unsafe functions (both directly
and indirectly) to close and cleanup the remote connections,
so just exit after the cleanup if invoked by a signal.

Reported in private mail by Qi Hou.
May also resolve a crash reported by Thomas Klausner.
2020-06-08 01:33:27 +00:00
simonb
1778ca0fd1 Fix tyop in a comment. Thanks riastradh@. 2020-06-08 01:17:05 +00:00
fox
fe9ca5aa84 libexec/httpd: Fix the possible -Werror=stringop-truncation
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@, mrg@
2020-06-07 23:33:02 +00:00
fox
6ed49867f1 external/mpl/dhcp: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:29:16 +00:00
fox
1644357e99 external/cddl/osnet: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:26:54 +00:00
fox
bf982b61a2 tests/lib/libarchive: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:20:52 +00:00
fox
7d0fd7a3da libexec/lfs_cleanerd: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@, riastradh@
2020-06-07 23:15:53 +00:00
christos
c47687a428 make this compile. 2020-06-07 23:15:51 +00:00
fox
9674cee3b8 external/bsd/atf: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:09:34 +00:00
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