Commit Graph

61 Commits

Author SHA1 Message Date
christos
8b0443fdbf From skd: Delete kernel_floor tests. They don't make sense on amd64. 2008-06-17 15:54:45 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
mkirby
bb55aebb4f Fix a small grammatical error. 2008-01-12 21:05:13 +00:00
yamt
7afae692b2 remove no longer necessary lockdebug hacks. 2008-01-02 17:23:31 +00:00
ad
6b5fc70210 No need to list every file system type in this file. 2007-12-24 19:52:37 +00:00
ad
7dad9f7391 Merge from vmlocking:
- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.
2007-10-10 20:42:20 +00:00
ad
9a40651fc7 VM_MAP_BUSY, VM_MAP_WANTLOCK are no more. 2007-07-21 20:54:12 +00:00
rumble
6912898dc8 Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
2007-06-29 23:30:16 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
dillo
56c3e41252 Complete rename of hfsp to hfs, requested by thorpej. 2007-03-06 11:28:44 +00:00
dillo
2d2ddd2830 Integrate apmlabel and HFS+ file system. 2007-03-05 23:19:17 +00:00
christos
d4a3b72ad2 add casts. 2007-03-04 09:43:54 +00:00
pooka
9d92bd9b4c "teach" about VT_PUFFS 2006-10-22 22:56:26 +00:00
yamt
2c7ff2a52f remove "XXX = <struct simplelock>" from -D output. 2006-06-24 12:34:51 +00:00
tsutsui
1f5055228d Add preliminary support for System V Boot File System.
Written by UCHIYAMA Yasushi <uch@netbsd>.
2005-12-29 14:53:45 +00:00
reinoud
1a9677836e Stub to pmap.c to avoid unhandled enumeration value error. Its only used
for printing purposes.

Will be modified later when UDF is finally committed after review.
Comitting has been put on halt due to dispute over a patch.
2005-12-15 01:53:30 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
christos
c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
jmc
2c8974a914 Fix fallout from vm_anon changes 2005-05-11 17:41:52 +00:00
chs
467487d274 use vm_map_{min,max}() instead of dereferencing the vm_map pointer directly.
define and use vm_map_set{min,max}() for modifying these values.
remove the {min,max}_offset aliases for these vm_map fields to be more
namespace-friendly.  PR 26475.
2005-02-11 02:12:03 +00:00
yamt
712038f82a sync with kernel. (vm_map_entry::flags) 2005-01-01 21:17:47 +00:00
christos
bdba0e8400 Add V_PTY 2004-11-10 17:54:47 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
wiz
9ea670a934 Some fixes and formatting changes from jmc@openbsd. 2004-02-17 20:41:49 +00:00
matt
fc5f7e902b Deal with backing out of changes in:
http://mail-index.netbsd.org/source-changes/2004/01/29/0027.html
2004-02-10 01:31:41 +00:00
atatat
9fa5182332 Lint police. 2004-01-31 20:53:55 +00:00
atatat
282eb9c623 Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection
code, to detect a KDEREF failure instead of simply aborting.  If the
KDEREF fails, we're obviously not_using_lockdebug().
2004-01-31 18:25:27 +00:00
yamt
4480473553 follow the kernel vm_map_entry allocation strategy change. 2004-01-29 22:19:12 +00:00
atatat
a068aea23a Find the buf_map symbol, so that the submap can be labeled properly. 2004-01-06 14:01:19 +00:00
fvdl
5d0f1dccca Don't assign NULL to an integer. 2003-10-21 02:22:21 +00:00
yamt
9eeb053922 redo the previous in a different way; use vm_map_min/max macros. 2003-09-17 22:06:50 +00:00
yamt
4a1d5a0332 update lockdebug detection to follow uvm_map.h rev.1.35.
(vm_map.header.{start,end} was swapped.)
2003-09-17 21:59:52 +00:00
yamt
428f108569 remove remaining v_id. 2003-07-31 15:43:06 +00:00
yamt
cc104d0635 eliminate v_id. 2003-07-30 12:10:57 +00:00
atatat
c9c88988f6 Though I cannot reproduce the failure (which I suspect is rather
system dependent), the analysis provided in PR misc/22089 is correct.
Therefore, allocate one more slot and suck one more slot from the
kernel.
2003-07-24 00:43:50 +00:00
itojun
8ac99d48f2 strlcat 2003-07-15 05:59:58 +00:00
atatat
535d709586 Build main.c with LOCKDEBUG defined so that it gets the larger kbit
definition.  Since we're now passing it into pmap.c which is already
compiled that way, it would be nice if it was the right size.

Also, fix a memset bug that caused a segmentation fault when printing
the kernel's vm_map.
2003-05-04 15:09:45 +00:00
wiz
817f471b97 Sort options in usage. 2003-04-16 12:15:07 +00:00
wiz
64a9f92514 Sort options in SYNOPSIS, grammar fix. 2003-04-16 12:12:08 +00:00
atatat
a88940798c Add some more intricate groveler options:
-A address   Dumps the vm_amap structure found at address.

     -E address   Dumps the vm_map_entry structure found at address.

     -S address   Dumps the vmspace structure found at address.

     -V address   Dumps the vm_map structure found at address.

This required reorganizing the code a little, which led to some
cleanup (yay!).  These new methods are executed without any extra
privileges, so you need read access on /dev/mem or on the kernel core
into which you are digging.

This should be useful for, eg, examining amaps are corrupt when being
destroyed, which can cause a kernel panic (and, hence, are no longer
connected to a map entry, or the map entry is no longer connected to a
vm_map/vmspace).

The options in the man page have also been reorganized.
2003-04-04 03:49:20 +00:00
he
d614a5830d Introduce a "size_t" variable for use with sysctl(3).
Fixes compile problem observed on evbarm.
2003-03-29 18:01:21 +00:00
atatat
2242d20a09 Add the capability to dump the struct vm_amap and the am_anon,
am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an
amap.  This adds three new debug "bits" to the -D argument, so the
namei cache dumping "bit" has been moved up.

Also, change the * that gets emitted with -vv to indicate the number
of pages skipped and the size of the area (in kilobytes).
2003-03-28 23:10:32 +00:00
atatat
6d45c1cd99 Clean up code in places, add some more (possible) submap names, make
better use of the submap names when dumping the kernel map, clean up
the "interface" between the main and LOCKDEBUG dependent pmap modules,
and make the heap identification work better.
2003-02-27 04:10:36 +00:00
atatat
87437f0b78 Oops. Missed some possible UVM_ET_IS*() macro uses. 2003-02-23 01:08:29 +00:00
atatat
fb9b07a6a7 Properly print the VM_MAP_TOPDOWN flag if it is set, document the
VM_MAP_TOPDOWN flag (and the VM_MAP_DYING flag, since it never got
documented before), minor tweak to one of the examples, and use the
UVM_ET_IS*() macros instead of doing the same work manually.
2003-02-22 17:45:04 +00:00
grant
2ceb845887 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 15:59:16 +00:00
atatat
dd0a8acd21 The next release will be 2.0, not 1.7. 2003-01-19 21:25:36 +00:00
atatat
3535ff5eb9 Print the string as if it's a string. Don't print the pointer. It's
useless for the non-omniscient (who, by definition, would have no need
for this program anyway).
2003-01-16 15:34:18 +00:00
atatat
80f8e56ac7 More properly handle the setgid privileges that we have, casting them
out if using them might be unsafe.
2003-01-09 13:05:12 +00:00