Commit Graph

12453 Commits

Author SHA1 Message Date
christos 82bbf8637f We don't have smbfs anymore. 2020-04-04 17:05:06 +00:00
ad 9f344847ca Make makelists() a little bit faster. 2020-04-04 16:40:50 +00:00
reinoud 22a7e85942 Indent the makefs(8) options for UDF like the other filesystems described. 2020-04-04 13:44:57 +00:00
roy 134f8ca66a postinstall: add checks for _dhcpcd to do_uid and do_gid
Thanks to jmcneill@
2020-04-02 13:44:46 +00:00
roy 22fcb0ce30 postinstall: move dhcpcd files to the chroot 2020-04-02 13:04:09 +00:00
martin 103d2d1e66 Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values) 2020-03-30 12:19:28 +00:00
martin 3d593cdb32 Support partition type ZFS 2020-03-30 10:42:49 +00:00
ad 71e41cec30 No need for warnx() if !LOCKDEBUG 2020-03-27 00:17:08 +00:00
kre 1083ca28cc Fix the build, use %jd and (intmax_t) cast for big numbers, off_t
and ptrdiff_t aren't always the same size.
2020-03-26 04:25:28 +00:00
christos bc2a90737a improve error messages. 2020-03-25 20:17:48 +00:00
martin 989c6e9048 PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
2020-03-16 06:48:17 +00:00
martin e1e8b0b2d4 The (unused) md_pre_disklabel() function needs to return success, otherwise
all installations will be aborted.
2020-03-09 17:10:31 +00:00
rin 186c59a8c7 Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.
2020-03-09 05:10:19 +00:00
christos fbd525a3da Add primitive LOCKDEBUG support. 2020-03-09 01:54:31 +00:00
maya e8183c3622 Remove note that has been incorrect for a while.
Thanks ottavio for the heads up.
2020-03-06 20:07:26 +00:00
martin 34fc30f813 PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations. 2020-03-04 11:15:06 +00:00
nisimura 5ef06edbc3 - show " refcount %d" for consistency
- fix an extra : bug which was introduced rev 1.17
2020-03-03 08:56:05 +00:00
nakayama eb7c30f064 Fix the fixup script to follow the URL change in /etc/motd (http->https).
PR install/54990, pullup-9
2020-02-25 10:27:01 +00:00
riastradh 2d468aafe8 Fix userland references to LFS_ORPHAN_NEXTFREE.
Forgot to grep for these or do a full distribution build, oops!
2020-02-23 15:11:33 +00:00
martin bcf119c046 Remove unused "rel" global variable and make the -r option a no-op. 2020-02-19 21:51:21 +00:00
martin 9990dbf0aa Do not force -Os optimization (unless SMALLPROG) 2020-02-19 21:49:48 +00:00
martin 561693de2d Rever previous: the d_packname in struct disklabel is not NUL terminated.
Disable the warning instead.
2020-02-19 21:45:09 +00:00
martin fe36d07293 Move sysinst man page next to the source 2020-02-19 21:42:53 +00:00
martin f16eda658a Use strlcpy in a few places to guarnatee 0-terminated strings 2020-02-19 18:08:03 +00:00
martin 0e36a5a930 Finish conversion to generic partitioning backend 2020-02-10 16:08:58 +00:00
martin 1b607b5c42 Do not use -P for tar extractions - the in tree tar has been fixed. 2020-02-10 14:55:53 +00:00
fox d56b4ad409 usr.sbin/ypserv: Suppress -Werror=format-truncation= error.
Add GCC_NO_FORMAT_TRUNCATION makedbm.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:52:48 +00:00
fox 505bb4b586 usr.sbin/timed: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION master.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:13:28 +00:00
fox 709709c6c1 usr.sbin/srtconfig: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to srtconfig.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:10:31 +00:00
fox 5f234ad7f3 usr.sbin/fstyp: Fix -Werror=conversion error.
Type cast the size_t to uint32_t to prevent implicit type conversion errors.

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

Reviewed by: kamil@
2020-02-08 12:56:56 +00:00
maxv 081da2e4c3 Retire KLEAK.
KLEAK was a nice feature and served its purpose; it allowed us to detect
dozens of info leaks on the kernel->userland boundary, and thanks to it we
tackled a good part of the infoleak problem 1.5 years ago.

Nowadays however, we have kMSan, which can detect uninitialized memory in
the kernel. kMSan supersedes KLEAK: it can detect what KLEAK was able to
detect, but in addition, (1) it operates in all of the kernel and not just
the kernel->userland boundary, (2) it requires no user interaction, and (3)
it is deterministic and not statistical.

That makes kMSan the feature of choice to detect info leaks nowadays;
people interested in detecting info leaks should boot a kMSan kernel and
just wait for the magic to happen.

KLEAK was a good ride, and a fun project, but now is time for it to go.

Discussed with several people, including Thomas Barabosch.
2020-02-08 07:07:06 +00:00
fox 47c90ff9dc usr.sbin/altq: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to quip_client.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-08 01:01:31 +00:00
fox 77e17afddc usr.sbin/altq: Revert the strlcpy(3) change since this changes expected behavior from strncpy(3).
Reviewed by: kamil@
2020-02-07 21:53:20 +00:00
fox c308ca874b usr.sbin/altq: Fix -Wstringop-truncation warning.
Looks like the original intention was to truncate the string at len.

Replace strncpy(3) with strlcpy(3).

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

Reviewed by: kamil@
2020-02-07 20:13:26 +00:00
martin 6c253ac2a4 Only a single partition can ever have the "extend" flag (grow to available
size).
2020-02-06 20:17:04 +00:00
martin 04b0ec0dc6 Fix copy&pasto in previous - from kre. 2020-02-06 19:53:10 +00:00
martin d767a2bd18 Make re-install sets also work for an explicit selected root wedge 2020-02-06 19:50:04 +00:00
martin 53cb08e207 Reformat a query to add an automatically detected swap partition
so it fits on narrow screens.
2020-02-06 19:41:57 +00:00
martin 38baaacf51 PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.
2020-02-06 19:08:38 +00:00
martin 5dd26405c9 PR bin/54944: explicitly reject GPT protective MBRs. 2020-02-06 18:07:22 +00:00
martin 7cc1a7bbc8 PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab. 2020-02-06 16:28:10 +00:00
martin bc25142e5e Do not assum a partitioning scheme that supports innner partitions always
needs to actually have such partitions defined.
2020-02-06 15:08:04 +00:00
martin c37ad2b6d5 Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.
2020-02-06 11:55:18 +00:00
martin e25168ca3e Remove a bogus assert: when reading disklabel partitions and the outer
(MBR) partitioning has changed, but the changes have not yet been written
back to disk, we need to ignore the kernels idea of the disklabel and
instead continue with an empty one.
2020-02-06 11:46:35 +00:00
martin 8ef7426ad0 PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).
2020-02-06 10:47:33 +00:00
martin 6588e96561 bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)
2020-02-06 10:42:06 +00:00
martin bef52f433c PR install/54921: skip non-user partitions when checking for overlaps 2020-02-03 13:09:29 +00:00
martin 8f8ab8791d PR install/54921: message "ordering" takes a %s argument. 2020-02-03 10:37:46 +00:00
martin 6bcc9cde3d remove unused "emptypart" message (or moved to ifdef notyet area) 2020-02-03 10:29:34 +00:00
christos 05e238b7cc change the autofs file to be user writable. 2020-01-30 13:54:05 +00:00