Commit Graph

270099 Commits

Author SHA1 Message Date
christos
cedcb5f35f Declare fexecve 2019-09-15 22:32:48 +00:00
bad
c296e4670d Also don't add a sysroot at all if a rumpkernel build. 2019-09-15 21:17:08 +00:00
christos
a5a5a01f84 Fix type and remove cast (Yuichiro NAITO/FreeBSD). 2019-09-15 21:09:11 +00:00
bouyer
06ee3e618c Inlcude external/bsd/sljit/conf/files.sljit, so that it's possible to build
a kernel with options SLJIT
2019-09-15 21:04:41 +00:00
gutteridge
4b9e0a77d2 fstab.5: add mention of zfs 2019-09-15 21:04:40 +00:00
bouyer
183863f5f8 Packet filters can return an mbuf chain with fragmented headers, so
m_pullup() it if needed and remove the KASSERT()s.
2019-09-15 21:00:15 +00:00
christos
6f91a43aa9 Document O_EXEC, and add some extra explanation for O_CREAT from FreeBSD. 2019-09-15 20:53:24 +00:00
gutteridge
a55674ceb3 mount_zfs.8: add xref to fstab(5) 2019-09-15 20:51:52 +00:00
christos
9246f6c782 Prevent O_EXEC for mq_open(2), and O_EXEC with a writable fd for open(2). 2019-09-15 20:51:03 +00:00
christos
df668d1f3a fix fexecve 2019-09-15 20:26:51 +00:00
christos
d80924824c - Adjust function signatures
- whitespace
2019-09-15 20:26:27 +00:00
christos
2ce1a98e82 - Add O_EXEC, FEXEC.
- Fix typo.
2019-09-15 20:25:48 +00:00
christos
5c0785385f set VEXEC if FEXEC is set. 2019-09-15 20:24:25 +00:00
christos
35de5f3a54 - Add support for fexecve
- get the vnode from the fd passed instead of calling namei() on the
	  path
	- try to reverse resolve the vnode to extract the pathname
	- deal with not having a resolved path available
- rename variable that was not a pathbuf
2019-09-15 20:23:50 +00:00
christos
09c169e26a adjust for new check_exec signature. 2019-09-15 20:21:12 +00:00
christos
ae5efbe2cd Don't set AT_SUN_EXECNAME if we don't have a fully resolved name. 2019-09-15 20:20:26 +00:00
brad
12ea0a140d Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
2019-09-15 19:38:08 +00:00
maya
5516c5e1ec More indentation 2019-09-15 17:37:25 +00:00
maya
3afe36de52 indentation and whitespace 2019-09-15 17:36:43 +00:00
christos
6d45a93d7f fexecve(2) related additions. 2019-09-15 16:58:11 +00:00
christos
20f72bdb4e documentation for fexecve(2) 2019-09-15 16:55:00 +00:00
christos
7d2cda35f1 Add tests for fexecve(2) 2019-09-15 16:53:58 +00:00
christos
7a5da1b9e8 add t_fcntl 2019-09-15 16:28:09 +00:00
christos
0a76d2ed5a Add F_GETPATH, presented to tech-kern. 2019-09-15 16:25:57 +00:00
macallan
18384b88ef fix non-debug build 2019-09-15 16:16:36 +00:00
kamil
5626006fd5 ps(1): Guard freeing the memory of pinfo with __NO_LEAKS.
No more leaks are detected by LSan/NetBSD as of the LLVM snapshot
(clang10svn) from 2019-09-15.
2019-09-15 15:27:50 +00:00
maxv
2fb7b35dba Note vHCI. 2019-09-15 15:19:49 +00:00
kamil
0f0f8f858b Define __NO_LEAKS in sys/cdefs.h
This preprocessor symbol is intended to be used with leak detecting
software, documenting leaks that are not important to be freed in the
default build version.
2019-09-15 15:18:45 +00:00
tnn
7e3d779810 report A72 errata #859971 workaround status during boot 2019-09-15 15:16:30 +00:00
maxv
a342a8d3c1 Regen for vHCI, IPMI (was forgotten it seems), and srt (for which a man
page is now available).
2019-09-15 15:15:02 +00:00
skrll
2ce102b5b1 __sync_{,x}or_and_fetch_8 should return new value... make it so. 2019-09-15 14:55:04 +00:00
kamil
bcc16256da Add Clang/LLVM specific feature/extension detection macros in sys/cdefs.h
These macros are not supported (as of now) with GCC and there is need to
maintain a fallback that evaluates to 0.
2019-09-15 14:30:26 +00:00
kamil
3b610a6e8d Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3)
Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.
2019-09-15 13:40:46 +00:00
ryoon
2fe677174a Replace major number in MAKEDEV for vhci 2019-09-15 12:54:21 +00:00
maxv
054c8b6dea Wrong major. 2019-09-15 11:45:47 +00:00
skrll
8453e2f7da __sync_or_and_fetch_8 should return new value... make it do that. 2019-09-15 11:14:15 +00:00
maxv
a5267215ad Reset ud_pipe0 to NULL before calling usbd_setup_pipe_flags(). If the call
fails we call usbd_remove_device(), which tries to free ud_pipe0, but it
was already freed.

While here, add two sanity checks, to prevent possible surprises.
2019-09-15 09:24:38 +00:00
maxv
d74a36247d Add missing length checks on descriptors, to prevent buffer overflows.
Found via KASAN+vHCI. Some remain however, but it looks like the code
needs to be re-thought along the way, so it will be fixed later.
2019-09-15 09:21:36 +00:00
maxv
d076b30c4f Don't kmem_alloc(0) if there are no endpoints, otherwise panic. Found via
vHCI.
2019-09-15 09:18:17 +00:00
skrll
60fd5b3011 Trailing whitespace 2019-09-15 07:13:37 +00:00
wiz
5ac2498fa8 Fix markup, and remove two superfluous Pp. 2019-09-15 07:01:13 +00:00
christos
9aeb91c2c4 fix wrong names and add markup 2019-09-15 01:03:23 +00:00
christos
ca2fce2e75 - add missing error check
- use '\0' for char const
2019-09-14 21:23:34 +00:00
christos
54a3d1d5f0 - KNF
- fix typo in error message
- use aprint* everywhere
- use loops to initialize mac
- remove unused variables
2019-09-14 21:09:00 +00:00
tsutsui
3aec0b6e26 Restore interface to pass a MD reset function to MI wdcprobe().
Fixes silent hang on G1IDE on Dreamcast. PR kern/54538
Should be pulled up to netbsd-9 with the previous changes.
2019-09-14 17:11:39 +00:00
maxv
ce2468ca8f Fix error handling, to prevent kernel crashes at detach time. The code is
slightly reorganized. Found via vHCI.
2019-09-14 15:24:23 +00:00
maxv
ed42779f0f Fix NULL deref. Found by vHCI. 2019-09-14 15:22:31 +00:00
maxv
6b4d444809 Fix error handling, to prevent kernel crashes at detach time. Found by
vHCI.
2019-09-14 15:21:19 +00:00
maxv
d398d1820e Fix possible NULL deref. Found by vHCI. 2019-09-14 15:19:52 +00:00
tnn
a0d9af4553 On second thought revert that. Let's open this can of worms some other day. 2019-09-14 15:12:12 +00:00