Commit Graph

238185 Commits

Author SHA1 Message Date
ozaki-r 837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
hannken d5f14318c4 Compat libproc.so.0.0.debug and librtld_db.so.0.0.debug depend on "dtrace". 2015-09-29 08:01:29 +00:00
hannken a484921197 Typo (ompat -> compat). 2015-09-29 08:00:59 +00:00
hannken 71a9213721 Typo (trailing comma). 2015-09-29 08:00:22 +00:00
wiz 1a48e143e6 Reduce whitespace. 2015-09-29 07:59:15 +00:00
wiz ff1e46a1cb Remove reference to mdb(1). 2015-09-29 06:33:01 +00:00
ozaki-r 05cf8927fd Add _KERNEL_OPT
It's needed for nbmake RUMP_LOCKDEBUG=yes.
2015-09-29 01:44:57 +00:00
wiz 963ab8d75f Fix typo. 2015-09-28 22:11:40 +00:00
wiz f3752eafe8 Fix Dt. New sentence, new line. Fix xrefs.
Still leaves:
trailing Xref to mdb(1)
trailing Xref to libctf(3)
2015-09-28 22:00:26 +00:00
wiz 1ea70fc5bf Add RCS Id, serial comma, use Fx, fix xref.
XXX: libproc(3) does not exist, but is referenced three times.
2015-09-28 21:50:48 +00:00
christos 091269df14 describe libproc, librtld_db 2015-09-28 21:07:47 +00:00
christos 628c957c7a Add libproc/librtld_db 2015-09-28 21:05:57 +00:00
christos 3644045c3c neither libproc or librtld_db require CTF 2015-09-28 17:12:46 +00:00
christos 4a21fa14fc Neither libproc or librtld_db require CTF 2015-09-28 17:12:12 +00:00
ozaki-r fc47734756 Tweak mutex_enter(softnet_lock) position
The previous code took locks the following order:
- LLE_WLOCKs
- mutex_enter(softnet_lock)
- LLE_WUNLOCKs
- mutex_exit(softnet_lock)

This fix moves mutex_enter(softnet_lock) before LLE_WLOCKs.
2015-09-28 07:55:26 +00:00
knakahara 7021774670 When the driver uses MSI-X, it tunes RX's EITR the same as TX's.
ok by msaitoh@n.o
2015-09-28 07:02:57 +00:00
knakahara db519ca214 use sc->sc_itr instead of hard-coded number.
ok by msaitoh@n.o
2015-09-28 06:04:04 +00:00
ozaki-r dacbac7968 Add simple tests for fastforward
The tests just do TCP communication via HTTP GET.
2015-09-28 01:54:14 +00:00
mlelstv 4e27970548 revert previous. Dynamic libraries break systems with split / and /usr
partitions and also sun2. libdns is pulling in Kerberos anyway.
2015-09-27 21:01:27 +00:00
phx cfbd5b3eaf Direct config: Only match via the list of compatible hardware when we have
such a list available (ia_ncompat > 0). Otherwise fall back to matching
the device name with ia_name.
2015-09-27 13:02:21 +00:00
taca eba7baf0f4 Latest versino of ISC DHCP is 4.3.3. 2015-09-27 07:04:05 +00:00
christos 20c3ea3d63 Kill sys/modctl.h which we don't need. 2015-09-27 03:37:16 +00:00
christos c9b640c057 need uvm_param.h now. 2015-09-26 20:28:55 +00:00
christos 4e84514d8c move CTL_VM constants to uvm_param.h, leaving a comment behind. 2015-09-26 20:28:37 +00:00
maxv 87ee1fdec1 Disable PAX_SEGVGUARD.
We actually have a big problem: the fileassocs are never deleted.
Therefore, if a user generates a lot of buggy binaries and launches them
all, the kernel will allocate memory again again and again for all these
entries and will never free them (unless the files are deleted from the
disk). Which means that a user can too easily put the kernel under memory
pressure.
2015-09-26 16:33:16 +00:00
maxv 9ed595918a Revamp the way processes are PaX'ed in the kernel. Sent on tech-kern@ two
months ago, but no one reviewed it - probably because it's not a trivial
change.

This change fixes the following bug: when loading a PaX'ed binary, the
kernel updates the PaX flag of the calling process before it makes sure
the new process is actually launched. If the kernel fails to launch the
new process, it does not restore the PaX flag of the calling process,
leaving it in an inconsistent state.

Actually, simply restoring it would be horrible as well, since in the
meantime another thread may have used the flag.

The solution is therefore: modify all the functions used by PaX so that
they take as argument the exec package instead of the lwp, and set the PaX
flag in the process *right before* launching the new process - it cannot
fail in the meantime.
2015-09-26 16:12:24 +00:00
skrll a6c0d63949 Deal with polling in usbd_start_next 2015-09-26 13:59:28 +00:00
christos c4bba3a5cb Put -Isys after the ioctl Makefile has a chance to add other paths first. 2015-09-26 13:31:27 +00:00
christos fae14d9262 CID 1324963: Remove bogus NULL test
CID 1324962: This is not python, one needs braces too.
2015-09-26 13:04:10 +00:00
maxv e1ac029c45 Curious typo. Harmless. Found by Brainy 2015-09-26 12:16:28 +00:00
maxv d42b2b5ae7 Remove KMEMSTATS. Normally it's ok now. 2015-09-26 11:16:12 +00:00
mlelstv 820518ec94 Don't link partially with static libraries.
Don't link with kerberos librararies, nothing is using them.
Don't link with libipsec, our local patch, that requires it, is gone.
2015-09-26 09:48:27 +00:00
christos ec9d924643 rename sun ioctls 2015-09-26 04:13:39 +00:00
christos 431e9fd675 avoid compiler warnings 2015-09-26 03:32:17 +00:00
christos b2e2b58c68 avoid conflicts with our own ioctls 2015-09-26 03:31:52 +00:00
christos f72496b8cd Add dtrace ioctls 2015-09-26 03:31:11 +00:00
christos 7e89f9a479 try to fix sets 2015-09-26 01:46:14 +00:00
christos 3a8db65df5 catch up with unsigned long -> proc_breakpoint_t change. 2015-09-26 00:33:34 +00:00
christos e09cabee76 args are flipped. 2015-09-25 19:27:31 +00:00
christos a94376db50 use provide KERN_PROC_PATHNAME in PROC_ARGS. 2015-09-25 19:18:28 +00:00
christos 58ec3b3ba7 remove caddr_t 2015-09-25 19:09:38 +00:00
christos 800ae96385 Fix the broken detach code and make the proc tests detach instead
of continue, so that we don't get kernel diagnostic messages about
detaching traced processes.
2015-09-25 19:08:32 +00:00
christos 9a58287b9b Add a proc_breakpoint_t and a proc_regval_t to abstract some types. 2015-09-25 16:07:32 +00:00
christos b88569ce68 For processors that have memory breakpoints, add macros for them to help
libproc
2015-09-25 16:05:17 +00:00
christos c09ba22ef4 Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.
2015-09-25 11:39:08 +00:00
christos c45350533b Restore previous: only build libproc and librtld_db for dtrace support, since
many archs are not supported.
2015-09-25 11:38:12 +00:00
christos dc1fa8fa85 we always build librtld_db and libproc. 2015-09-25 11:35:05 +00:00
christos 547df74cfc libproc and librtld_db build fine without CTF and should always be available. 2015-09-25 11:34:07 +00:00
martin e7ce0e573c conditionalize librtld_db docs 2015-09-25 10:43:18 +00:00
martin 1cd8e8787f More conditional dance for librtld_db 2015-09-25 10:30:36 +00:00