Commit Graph

11772 Commits

Author SHA1 Message Date
jdolecek
c8af0e8068 fix free() on unitialized value for list -c when there are no
assigned interrupts
2018-06-22 22:50:53 +00:00
kamil
c623d35930 Fix invalid free(3) in sysinst(8)
The path variable is assigned with an allocation on the heap with
strdup(3). Later this pointer is changed with strsep(3) and this caused
invalid free(3).

Store the original pointer in a new helper variable opath and pass it to
free(3). With this change, the problem is going away.

Detected with MKSANITIZER=yes with AddressSanitizer.
2018-06-21 23:05:28 +00:00
msaitoh
d6138c5ea5 Whitespace fix. No functional change. 2018-06-20 04:04:50 +00:00
christos
10a71a2955 PR/53371: Thomas Barabosch: Potential memory leak in usr.sbin/ndp/ndp.c 2018-06-16 13:09:41 +00:00
christos
a583d89315 PR/53367: Thomas Barabosch: Integer overflow in usr.sbin/dumplfs
While here use the "e" functions to always check for allocation errors.
2018-06-15 15:16:05 +00:00
christos
c85e5e1ae4 PR/53365: Thomas Barabosch: memory leak in route6d
XXX: pullup 7, 8
2018-06-14 16:17:18 +00:00
christos
2357fc5dd5 use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
zafer
061f0fcc8a Set default homeperm values before writing usermgmt.conf file and honor values in it instead of ignoring it.
Fixes PR bin/40324 by Guy Yur
2018-06-10 07:52:05 +00:00
nonaka
4312665c73 fix usage of `arp -d'. 2018-06-08 04:24:12 +00:00
christos
9e3f92993e add missing brace. 2018-06-03 18:59:45 +00:00
martin
197cc46010 Default console device and speed to that used by syinst 2018-06-03 14:38:28 +00:00
martin
fe12f91a5e Reorder fetch options: http before ftp 2018-06-03 13:23:58 +00:00
martin
c52e6b59cd In the generated /etc/fstab, do not use the (temporary, during sysinst)
path name for the file in the comment, but instead the one it will
have on the target system.
2018-06-03 13:18:06 +00:00
martin
2575b4dcc3 Add an option to install onto a pre-configured wedge.
Greatly simmplifies (U)EFI setups (but does not fully automate them yet).
2018-06-03 13:16:30 +00:00
chs
ba2539a980 merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
2018-05-28 21:04:59 +00:00
wiz
f99a590c77 Sort options in usage. 2018-05-28 12:42:45 +00:00
wiz
5d25ef3799 Document -l, -r, and -w, based on input by jmcneill@
Bump date.
2018-05-28 12:42:02 +00:00
thorpej
033d68f1b3 Add support for light sensors that report Illuminance in lux. 2018-05-27 01:39:00 +00:00
wiz
5e5fa70115 Merge single-letter options. Use more markup. 2018-05-26 12:40:06 +00:00
jmcneill
5c5ebc1dee Add -v flag which prints the full path of each device node when dumping
the full tree.
2018-05-26 10:21:41 +00:00
christos
8841d3f7b9 Fix reproducible builds
XXX: pullup-8
2018-05-20 03:09:02 +00:00
thorpej
b936dffb43 Overhaul of GPIO interrupt support (that wasn't even used by anything).
- Remove the old, not-expressive-enough interrupt flags, and replace them
  with a new set of interrupt-specific flags that can express a wide
  variety of interrupt configurations (pos, neg, and double-edge, high
  and low level).
- Remove old, unused gpio_pin_ctl_intr() and gpio_pin_irqen(), and
  replace them with gpio_intr_establish(), gpio_intr_disestablish(),
  and gpio_intr_str().  Corresponding fields in the gpio_chipset_tag
  are also added for back-end controllers, which now handle the actual
  dispatch of GPIO interrupts in order to properly support level-triggered
  interrupts as well as interoperate properly with FDT-registered
  interrupts.

Piggy-back on the 8.99.18 version bump.

Inspired by initial work from Brad Spencer.
PR kern/51676
2018-05-19 13:59:06 +00:00
joerg
b77ea2f710 deconst -> __UNCONST, the former involves UB with NULL arithmetic. 2018-05-18 12:23:22 +00:00
nat
71f2adc779 Use the correct tag options. 2018-05-15 04:25:25 +00:00
wiz
f56171bd03 End sentence with a dot. 2018-05-14 06:52:33 +00:00
sevan
a9f8ca9aa6 Document history. 2018-05-13 22:44:58 +00:00
maxv
5fdd88f8ba Rename allocopy -> xstrdup, and simplify. 2018-05-09 07:30:21 +00:00
maxv
f96ffcb41d Clean up. 2018-05-09 07:21:08 +00:00
maxv
b5155ff2f3 Remove dead/broken code. 2018-05-09 07:05:42 +00:00
ryo
cc7da5d4e5 TGran64 indication was actually the opposite 2018-05-08 11:42:43 +00:00
christos
2ed636d665 grow AF_UNIX receive buffer size 2018-05-06 19:16:36 +00:00
ryo
2972297404 add aarch64 support for cpuctl identify. 2018-05-03 15:47:36 +00:00
maxv
5d73803e75 Remove now unused tcpip.h includes. Some were already unused before. 2018-05-03 07:13:48 +00:00
kre
925396b4ac Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.
2018-05-01 21:28:39 +00:00
kre
c45b0e7cfe PR install/53220
Don't call pm_lvm_find() unless have_lvm

pm_lvm_find() assumes that data structs (lvms) has been allocated
for it to use, which doesn't happen if !have_lvm

This avoids a sysinst core dump when the lvm command is not installed
(such as when installing from the embedded RAM root filesys in an
INSTALL kernel.)
2018-05-01 21:26:41 +00:00
christos
bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
uwe
a04344bae9 Fix missed s/vnconfig/vndconfig/ in an example. 2018-05-01 09:03:49 +00:00
martin
371d88511b Simplify and get rid of external "grep" dependency which is not available
on all install meadia.
Sugested by kre.
2018-05-01 09:01:45 +00:00
martin
88cbfee136 vnconfig has been renamed to vndconfig. Pointed out by kre. 2018-05-01 08:27:39 +00:00
roy
f8583dbb8c Back out part of the prior commit where we added space for IPV6_HOPLIMIT
to the sending control message buffer.
That code never worked on ERLITE, so I elected to set socket options
instead but forgot to revert this part.
2018-04-24 18:31:48 +00:00
maxv
d7a1d2ebf3 Clean up the IPsec ifdefs, same as ping6. 2018-04-23 18:59:03 +00:00
maxv
b9ad8ce8f1 ... another occurrence of OLDRAWSOCKET ... 2018-04-23 10:23:38 +00:00
maxv
b279793f85 Remove dead code. 2018-04-23 10:22:18 +00:00
maxv
4953d3d3b9 Remove CPPFLAGS+=-DUSE_RFC3542, it's not used anymore. 2018-04-23 10:19:11 +00:00
maxv
11bf0879e5 Remove dead/broken code. We want to favor RFC3542 over RFC2292. No
functional change.
2018-04-23 10:14:12 +00:00
maxv
832b034324 Remove dead code. 2018-04-23 09:58:35 +00:00
maxv
6cf02a93b7 Remove now unused code. 2018-04-23 09:47:03 +00:00
wiz
744b9e9d12 Remove -g from SYNOPSIS. 2018-04-23 07:13:50 +00:00
maxv
e65ec2be3d Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.
2018-04-23 06:42:02 +00:00
wiz
7734da6b73 Minor improvements. 2018-04-21 09:31:08 +00:00