Commit Graph

77 Commits

Author SHA1 Message Date
rmind
9c3c596716 G/C VM_MAP_INTRSAFE flag 2012-02-19 02:47:53 +00:00
para
e62ee4d475 extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged
2012-01-27 19:48:38 +00:00
jym
16bd08511a Move getuid() out of the loop, uid should not change behind our back. KNF. 2011-10-25 23:45:19 +00:00
jym
a960d51308 kill(2) might not be a good test after all, users can send signals
to setuid binaries (like SIGINT for ping(8)). So apply the exact same
rights as procfs, and test uid against proc p_uid (real owner of process).

Bail out if we are not root and we attempt to print mappings of a process
that the user does not really own.
2011-10-25 22:13:22 +00:00
jym
9bea009cb1 Disallow printing of kernel mappings if we are not root.
pid 0 is a special case for kill(pid, 0), and unlikely to be the
correct test there. This follows the procfs "mem" rights changes that
happened some time ago.
2011-10-18 20:54:56 +00:00
tsutsui
077be3445f Consistently use "%#"PRIxVADDR to print VA, not "0x%#"PRIxVADDR
or "0x%"PRIxVADDR etc.  Noticed by Y.Sugahara.
2011-10-11 12:25:56 +00:00
christos
2fa13d153a Don't give out information about processes we can't control. 2011-06-23 22:50:53 +00:00
mrg
08d84f24b2 an_ref is now a uintptr_t. 2011-06-12 06:34:59 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
3995b4b94e Explicitly close quote. 2010-05-14 17:31:26 +00:00
joerg
46b2dedeba Use .In instead of .Aq Pa for header files. 2010-03-22 18:34:14 +00:00
uebayasi
ad7af028ce Fix typo in previous. 2009-12-14 17:16:12 +00:00
uebayasi
54fa447685 Merge from matt-nb5-mips64; adapt to vaddr_t / vsize_t format specifiers. 2009-12-14 14:29:09 +00:00
lukem
4d74937562 Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare) 2009-04-13 00:27:38 +00:00
wiz
4a8dbf1acb Add Xref to pmap(9), from Anon Ymous.
Prepare for HTML output.
2009-02-15 22:49:37 +00:00
christos
b0b728dd70 handle 64 bit time_t/dev_t 2008-12-29 01:40:59 +00:00
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