Commit Graph

186155 Commits

Author SHA1 Message Date
njoly 86051746c6 Make netbsd32_from_{ifreq,oifreq}() copy the whole structure, not only
the interface name. Finally fix my own PR/39424.

ok by christos.
2009-12-10 14:58:28 +00:00
matt 6a9e4e8eeb Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.
2009-12-10 14:13:48 +00:00
matt a3e1558eec Move saemul_netbsd32 to netbsd32_sa.c and allow the KERN_SA bits to be omitted. 2009-12-10 14:10:35 +00:00
uch 612627584e u-area is no longer zero-cleared. reset here 2009-12-10 13:35:32 +00:00
uebayasi 5b7db8face Style. 2009-12-10 13:29:14 +00:00
uebayasi 403121b1db Move the list of non-_MKVARS.* make variables from .for code to MKEXTRAVARS.
List one variable in one line for readability.  No functional changes.
2009-12-10 13:25:19 +00:00
uebayasi 563445b23a Put MKMANZ back and unbreak its installation. 2009-12-10 13:19:21 +00:00
drochner a1a04dd1be If a struct sigevent with SIGEV_SIGNAL is passed to timer_create(2),
check the signal number to be in the allowed range. An invalid
signal number could crash the kernel by overflowing the sigset_t
array.
More checks would be good, and SIGEV_THREAD shouldn't be dropped
silently, but this fixes at least the local DOS vulnerability.
2009-12-10 12:39:12 +00:00
nakayama fb022d0910 iommu_dvmamap_load:
Split a segment if its size is larger than dm_maxsegsz.

iommu_dvmamap_load_raw:
Don't coalesce segments if total size is larger than dm_maxsegsz.

This should fix port-sparc64/35299.
2009-12-10 12:29:44 +00:00
drochner fe1db36da9 fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
 on delivery -- add a boundary check
-mq_receive(2) from an empty queue crashed the kernel by NULL dereference
 in timeout calculation -- handle the NULL case
-likewise for mq_send(2) to a full queue
-a user could set mq_maxmsg (the maximal number of messages in a queue)
 to a huge value on mq_open(O_CREAT) and later use up all kernel
 memory by mq_send(2) -- add a sysctl'able limit which defaults
 to 16*mq_def_maxmsg

(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)
2009-12-10 12:22:48 +00:00
skrll af4728306c Rename L_ADDR to L_PCB 2009-12-10 07:57:02 +00:00
uebayasi 69c8fc601b sh -> ${HOST_SH} 2009-12-10 05:57:23 +00:00
uebayasi 7638dd5a18 Add print_mkvars make target for debug. 2009-12-10 05:15:28 +00:00
rmind e9f7af26e6 Rename L_ADDR to L_PCB and amend some comments accordingly. 2009-12-10 05:10:00 +00:00
uebayasi 779d1d735d MKZFS is properly set in bsd.own.mk now; remove it from MKEXTRAVARS. 2009-12-10 05:02:48 +00:00
uebayasi 9fa6d83816 sh(1) style. No functional changes. 2009-12-10 02:22:57 +00:00
agc 1fc3f56acb Minor change (benign everywhere else) to pick up the asprintf(3)
prototype on Linux - caught by Alan Horn.
2009-12-09 22:10:51 +00:00
dsl 7a42c833db Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.
2009-12-09 21:32:58 +00:00
drochner e87b55405f fix the signature of struct sigevent:sigev_notify_function, noticed by
BaiYang per PR lib/42434
the sad truth is that this doesn't help much because SIGEV_THREAD just
doesn't work (at least on -current, likely on -5, perhaps it worked
woth scheduler activations)
2009-12-09 20:26:12 +00:00
joerg f65504295d Fix markup. 2009-12-09 18:06:08 +00:00
uebayasi d1b1501024 Fix inverted condition in previous. 2009-12-09 17:30:14 +00:00
pooka 72a8c45e4b Since rumpfs is no longer a module, remove rump_module from the
list of sources.  This, in a rather curious twist of linker magic,
broke anything using rump file systems when librumpvfs was compiled
with LIBDPLIBS pointing to librump.

Thanks to the several people who reported the problem, and especially
Arnaud Ysmal for noticing the paramount symptom that components
compiled in src/lib did not work while ones compiled in sys/rump/librump
did work.
2009-12-09 15:38:07 +00:00
he 8529946f44 Make this one build again. 2009-12-09 12:42:59 +00:00
tsutsui d7debedc42 Fix wrong NBSEG values for all hp300 pmap derived m68k ports.
They were incorrect since 1997 on amiga and atari, and since 2002
on other ports, but fortunately they don't look so fatal.

Anyway, these values will be moved into <m68k/pmap_motorola.h> soon
since they are quite pmap implementation dependent.
2009-12-09 12:21:58 +00:00
uebayasi bf65171399 Switch to new style only if is explicitly set. 2009-12-09 06:20:13 +00:00
uebayasi 311d76439d Don't put intermediate data. Prompted by mrg@. 2009-12-09 06:08:26 +00:00
christos 67de10fc57 Add netbsd32_oifreq and fix issue in copying the interface name. With this
patch OSIOC{G,S}IFFLAGS is supposed to work, but unfortunately getifaddrs
seems to be the next problem getting the 4.99.x i386 ifconfig working on an
amd64 current machine.
2009-12-09 04:50:47 +00:00
dyoung 802b1236af Remove superfluous cast of a pointer to void *.
Compare a pointer with NULL, not 0.

No functional change intended.
2009-12-09 00:45:25 +00:00
dyoung a439206784 KNF. 2009-12-09 00:44:26 +00:00
haad 303ed12957 Add RUMP_SYS_OPEN define to replace open calls with their RUMP version. 2009-12-09 00:23:28 +00:00
haad ff3b5e1b34 Add support for building libdevmapper against RUMP. 2009-12-09 00:17:23 +00:00
haad 40681c67fa Add support for building RUMP_ACTION libdevmapper which will build and link
libdevmapper with RUMP kernel and libdm(RUMP based device-mapper library).
This enables testing of dmsetup and libdevmapper with RUMP.
2009-12-09 00:15:51 +00:00
pooka 7f79b0fadd Get rid of useless stubs. 2009-12-09 00:11:21 +00:00
kardel 4d317f0eab note import of ntp 4.2.4p8 2009-12-08 21:54:22 +00:00
kardel 142d831562 Merge ntp 4.2.4p8 2009-12-08 21:52:05 +00:00
kardel 8d09e35dad Import ntp 4.2.4p8 2009-12-08 20:41:03 +00:00
jakllsch a52500257f It's not an error for a Ethernet interface to have a link-layer address.
hi cube
2009-12-08 20:38:16 +00:00
tsutsui 5f1f616644 Remove unused M68K_SEG_SIZE macro. All sources use NBSEG directly.
XXX: It looks NBSEG definitions in <machine/param.h>
XXX: for all m68k port are incorrect, since 1997 or 2002.
2009-12-08 15:32:01 +00:00
uebayasi 75fe826dc9 CPPFLAGS.* is per *.c, not per ${PROG} or ${LIB}. 2009-12-08 15:20:20 +00:00
uebayasi cf4c152485 When PROGS / LIBS are used, you can pass each PROG / LIB specific parameters
to ${LD} via:

	${LDADD.${PROG}}
	${LDFLAGS.${PROG}}
	${LDSTATIC.${PROG}}
	${LDADD.${LIB}}
	${LDFLAGS.${LIB}}

OTOH you can't pass parameters to ${CC}, because in suffix rules make(1) only
knows the name of ${.IMPSRC} and ${.TARGET}; it's users' responsivility to
define ${CC} parameters to all the sources of a given ${PROG} / ${LIB}.

Should address bin/42381.

(Bug in this commit log was pointed out by mrg@.)
2009-12-08 15:18:42 +00:00
wiz 3d8b25a8ff Fix problem of reporting wrong matches noted in PR 41945 by using a patch
provided by Robert Elz in that PR.
2009-12-08 13:49:08 +00:00
tsutsui 7a77e181aa Use PGSHIFT from <machine/param.h> for PAGE_SHIFT.
We can assume PGSHIFT is always constant on current
m68k pmap_motorola implementation.
Also fix some leftover HP300 comments on some ports.
2009-12-08 13:47:26 +00:00
wiz 9a261cfdbd was disappointed that someone wrote disappointed with one 'p', so I fixed it. 2009-12-08 10:13:39 +00:00
mbalmer 0a83daaf24 I was disappointed that someone wrote disappointed with two 's', so I fixed it. 2009-12-08 10:04:27 +00:00
skrll 83752b8340 Remove stray {
ETOOMANYTREES
2009-12-08 09:56:42 +00:00
mbalmer 74f49bc48d s/the the/the/ 2009-12-08 09:46:01 +00:00
mbalmer 559e4d0905 make sense, s/the the/with the/ 2009-12-08 09:45:15 +00:00
mbalmer ea9e4b3733 Fix typographics errors. 2009-12-08 09:23:06 +00:00
stacktic 4d23b928bc Whitespace. 2009-12-08 08:18:24 +00:00
stacktic f3098800b6 Fixed build without module bootstrap 2009-12-08 08:12:49 +00:00