Commit Graph

4543 Commits

Author SHA1 Message Date
erh
8e641f354a Found by coverity issue 887. Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
2006-03-17 08:51:35 +00:00
chris
caebf8211b Move check for rnode being NULL to before it's first use.
Fixes Coverity CID 2434
2006-03-17 01:52:08 +00:00
erh
762add7da1 Check db_onpanic before dropping into the debugger on lock errors. 2006-03-16 00:52:32 +00:00
drochner
94c70b92a9 Check the "oldlen" argument to sysctl(2) before passing it
to vslock(9). This prevents a local DOS.
(The checks against system and user limits for wired
memory should be centralized in UVM; for now prefer a less
invasive fix which can be pulled pulled up into releases.)
2006-03-15 16:12:07 +00:00
yamt
0c8e5d8d8f whitespace. 2006-03-15 11:10:41 +00:00
yamt
2ff5a7c85c m_copyback0: add comments and assertions. 2006-03-15 10:40:30 +00:00
yamt
7935de6ea7 use UIO_SETUP_SYSSPACE instead of using vmspace_kernel() directly. 2006-03-13 08:52:07 +00:00
yamt
0969bf3261 copyin_vmspace, copyout_vmspace: set uio_vmspace correctly.
from Christos Zoulas.
2006-03-13 03:17:47 +00:00
cube
209be910b7 Support the generation of coredumps for 32-bits binaries under
COMPAT_NETBSD32.  They haven't worked for 5 years.

Silently agreed by the tech-kern readers.

XXX sparc64 MD glue still lacking.
XXX The FPU registers on i386 are not dumped correctly, according to my
XXX tests.  It shouldn't be much work for someone who has the slightest
XXX idea of how that stuff is supposed to be laid out on i386.
2006-03-12 20:25:25 +00:00
christos
40a6c72b1d KNF: brace and parenthesis usage 2006-03-12 18:36:58 +00:00
yamt
6c02fe74a4 proc_vmspace_getref: treat curproc specially to fix coredump problem pointed
by Christos Zoulas.
2006-03-12 10:32:47 +00:00
yamt
33f0a013e3 fix copyout_proc after yamt-uio_vmspace merge. from Christos Zoulas. 2006-03-12 09:47:08 +00:00
yamt
a5fe09f2de remove a wrong assertion. 2006-03-10 11:07:01 +00:00
thorpej
b0275539fe Make extent_alloc_subregion(), extent_alloc(), and extent_alloc1() real
functions, not CPP macros.
2006-03-08 04:43:00 +00:00
pooka
1279f1b037 remove the no longer useful fdavail(), as proposed and (thankfully) not
discussed on tech-kern
2006-03-07 17:13:53 +00:00
thorpej
61dd49d3bc Syscall debug tracing is handled by trace_enter() / trace_exit(). Change
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.
2006-03-07 07:21:50 +00:00
thorpej
a2b6f1b10c Wrap calls to (*e_syscall_intern)() in __HAVE_SYSCALL_INTERN. Fixes
VAX build.
2006-03-07 07:19:44 +00:00
thorpej
be8b235384 Clean up fallout proc_is_traced_p() change:
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
  trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
  about KTRACE and SYSTRACE, but do no more.
2006-03-07 03:32:04 +00:00
matt
044257a109 Add a diagnostic printf if a write fails during a coredump. 2006-03-06 21:53:29 +00:00
cube
ec9bafb3f3 Introduce msgrcv1 and msgsnd1 which take special care of the msg_type
parameter that gets copied in or out, making sys_msg{rcv,snd} friendly to
COMPAT_NETBSD32.
2006-03-06 14:24:13 +00:00
christos
33db6ebb5e always define proc, not just when ktrace and systrace are defined. 2006-03-06 02:17:53 +00:00
christos
81b9ed737b Move ISSET/SET/CLR macros to sys/types.h 2006-03-05 16:57:16 +00:00
christos
a4495f4cec implement PT_SYSCALL 2006-03-05 07:21:37 +00:00
cube
f6f0eee324 Change the way semid_t values are chosen. Instead of using kernel
addresses, use a uint32_t counter and the machinery to properly use it.
That makes the ksem_* system calls friendly for COMPAT_NETBSD32.

OK'd by thorpej@.
2006-03-05 00:49:19 +00:00
yamt
e6844c675a sysctl_lookup: use "d" rather than "rnode->sysctl_data" after
"d = rnode->sysctl_data".
2006-03-05 00:32:43 +00:00
rumble
f76a328cb8 Update namei(9) comments and man page to indicate that we operate on
vnodes, not inodes.
2006-03-03 16:15:11 +00:00
cube
0666ca366e Fix md(4) like raid(4) was fixed. 2006-03-01 22:12:09 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
christos
a529c06750 PR/32856: Christian Biere: Don't panic if you send a control message with
SCM_RIGHTS on an unconnected stream socket.
2006-03-01 02:06:11 +00:00
thorpej
d1f18238ca Use device_is_a(). 2006-02-27 02:59:24 +00:00
skrll
6f2d82f65a Fix PR 32923 by ensuring we have non-NULL LWP in vfs_shutdown. 2006-02-25 07:11:31 +00:00
drochner
b18cf5c358 update comments for const sysctl args 2006-02-24 19:26:50 +00:00
drochner
4de7d24ae3 regen 2006-02-24 19:25:28 +00:00
drochner
e4c5c3aea6 constify the __sysctl() kernel side 2006-02-24 19:20:20 +00:00
bjh21
70c82cfa56 Medium-sized overhaul of POOL_SUBPAGE support so that:
1: I can understand it, and
2: It works.
Notable externally-visible changes are that POOL_SUBPAGE now has to be a
compile-time constant, and that trying to initialise a pool whose objects are
larger than POOL_SUBPAGE automatically generates a pool that doesn't use
subpages.

NetBSD/acorn26 now boots multi-user again.
2006-02-24 11:46:20 +00:00
thorpej
bd81f8887a Add device_is_a(), which returns true if the device is an instance
of the driver specified by name.
2006-02-23 05:48:12 +00:00
thorpej
58853410ae Use device_class() instead of accessing dv_class directly. 2006-02-21 04:32:38 +00:00
thorpej
c37edf541c Add accessor functions for the device_t type. Make device_lookup() a
real function, rather than a macro.
2006-02-19 15:01:21 +00:00
martin
f128d05a8c #if __i386__ the include of opt_splash.h for now - it is only defined
on i386.
XXX - Jared, this needs to be done differently!
2006-02-18 19:40:42 +00:00
jmcneill
e94541db3a If options SPLASHSCREEN and SPLASHSCREEN_PROGRESS are enabled, update the
animation periodically during autoconf.
2006-02-18 19:09:53 +00:00
thorpej
680d9eea68 - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
  associates the MAC address property with the epe device instance.
2006-02-18 05:04:11 +00:00
chs
899d1b31b2 convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
manu
ee0c5b44de Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
that the i386 license manager part of amd64 version of Fluent works.

While I'm here, add SysV IPC to COMPAT_LINUX/amd64
2006-02-09 19:18:56 +00:00
yamt
5a3e361753 for some random places, use PNBUF_GET/PUT rather than
- on-stack buffer
	- malloc(MAXPATHLEN)
2006-02-04 12:09:50 +00:00
yamt
14962199bf nestiobuf_iodone: remove a comment which is no longer true. 2006-02-04 12:02:35 +00:00
yamt
e57cc1fc5c vfs_buf_print: print b_rawblkno as well. 2006-02-04 12:01:26 +00:00
yamt
ffadcb89d9 vn_read: don't bother to allocate read-ahead context here.
it will be done in uvn_get if necessary.
2006-02-04 11:58:08 +00:00
simonb
769d33c547 Import main FreeBSD timecounter support files as of 4th Feb 2006. 2006-02-04 08:06:23 +00:00
jmmv
47d8ee4167 Implement options string parsing of the form 'a=b c=d ...'. This will be
initially used by i386's Multiboot support but will be useful in other
situations too (think refactoring mount(2)'s API).
2006-02-03 11:04:46 +00:00
elad
4a302fa004 implement a security.setid_core node as discussed on tech-kern@ and
tech-security@.
2006-02-02 17:48:51 +00:00