Commit Graph

147952 Commits

Author SHA1 Message Date
yamt f7c7538921 use KAUTH_PROCESS_CANSEE rather than CURTAIN where appropriate. 2006-06-13 13:57:33 +00:00
yamt f755e9e9b8 remove unnecessary arguments from kauth_authorize_process.
ie. make it similar to the one found in apple TN.
2006-06-13 13:56:50 +00:00
simonb 7d5684f475 Use .previous at the end of the NetBSD ident note so that we switch
back to the previous section.  Fixes build problems on MIPS with gcc4
and -g.
2006-06-13 13:55:58 +00:00
yamt 4602c1be73 sysctl_unpcblist: don't abuse kauth_authorize_process for non-process object. 2006-06-13 13:52:39 +00:00
yamt c1e6396657 sysctl_kern_file, sysctl_kern_file2: don't abuse kauth_authorize_process
for non-process objects.
2006-06-13 13:52:06 +00:00
tsutsui 04595a48c6 Before calling the handler of timer at isa for hardclock(9),
clear MIPS_SR_INT_IE in struct clockframe status to prevent
unintentional spllowersoftclock(9) in hardclock(9).
This may be required because current CLKF_BASEPRI() implementation
of NetBSD/arc doesn't check ICU_MASK and all ISA devices share
the same MIPS CPU INT2 interrupt.

BTW, has anyone tried IPL_ICU_MASK on any mips ports?
2006-06-13 13:51:31 +00:00
yamt 0f9ed224d3 uvm_swapin: process -> lwp 2006-06-13 13:23:59 +00:00
yamt 52e88e8188 sysctl_kern_file2: fix an indent. 2006-06-13 13:23:03 +00:00
yamt 9606b0accf uvm_swapin: process -> lwp in a comment. 2006-06-13 13:22:06 +00:00
tron c93d58d1b7 Remove obsolete directory "/usr/include/libmilter". 2006-06-13 11:51:43 +00:00
tron 9b1c22fc34 The manual pages for "mail.local" are not obsolete because "mail.local"
is (and should be) still included in the base distribution.
2006-06-13 11:27:29 +00:00
tron 9d3dfcdb0d Remove obsolete directory "/usr/libexec/sm.bin". 2006-06-13 11:26:17 +00:00
simonb 5e13eca2c0 tvtohz() compat function isn't needed now we have timecounters. 2006-06-13 03:58:12 +00:00
christos 7afd9e136a PR/33709: Kevin Massey: Avoid stack smashing in args copy 2006-06-13 03:22:00 +00:00
christos c037525f2c Don't allocate > 1K on the stack 2006-06-13 02:39:11 +00:00
christos 430ad9c2a9 don't allocate > 1K on the stack. 2006-06-13 02:31:28 +00:00
christos 5ed3dd2fe3 don't allocate > 1K on the stack. 2006-06-13 02:08:20 +00:00
christos 199372b21f prevent uninitialized variable. 2006-06-13 01:59:59 +00:00
gdamore 42f9e3293d Note import of HAL 0.9.17.2. Thanks to NetBSD CVS Digest for reminding me to
do this. :-)
2006-06-13 01:50:42 +00:00
oster 8c090abdfc Do the "don't allocate > 1K on the stack" thing for raidioctl(). 2006-06-12 22:49:35 +00:00
mrg e487cf62f5 add a .globl to MD_SECTION_PROLOGUE so that the symbol is exported.
this fixes build problems with GCC4 (which will use smaller/faster call
methods for local/static functions) and is the right thing anyway.
2006-06-12 22:05:49 +00:00
christos 92d441e0ee don't allocate > 1K on the stack. 2006-06-12 22:02:45 +00:00
christos 1ae0349e57 don't allocate chans on the stack. 2006-06-12 21:55:03 +00:00
christos 3291899659 Don't allocate wi_req on the stack. 2006-06-12 21:51:48 +00:00
christos a3ce58a6e6 Don't use roundup(IEEE80211_CHAN_MAX, NBBY) which is wrong anyway
[correct would have been howmany(...), use IEEE80211_CHAN_BYTES,
which is used in the other ioctl method. While here s/u_char/u_int8_t/
for chanlist to match the rest of the uses.
2006-06-12 21:17:59 +00:00
christos 28bd7a84c0 Don't allocate > 1K on the stack. 2006-06-12 21:05:47 +00:00
christos 86c0f863d1 Don't allocate >1K on the stack. 2006-06-12 21:01:58 +00:00
peter 4c6681fae8 Don't pass the size of struct device to CFATTACH_DECL because it's obviously
too small! Use the softc instead. And while here, remove sc_ih from the
softc, it's not used at all.
2006-06-12 19:42:22 +00:00
dogcow b6d29ce0bd Add -Wno-attributes for amd64, too. 2006-06-12 19:25:20 +00:00
wiz 93efb1479c The comment here really meant /usr/sbin/sendmail -- restore it.
Found by Jukka Salmi in PR 33701.
2006-06-12 16:50:30 +00:00
chuck f4e3e7fe3b sigtimedwait: if we collect a queued signal via pt_siglist, do not
forget to clear it out of pt_siglist, otherwise we will keep getting
it over and over again.   fixes a problem introduced in rev 1.43.

problem observed with mysqld where sending it a SIGHUP after it has
set an alarm (e.g. due to some package like rt3 using it) caused the
signal handler thread to go into a tight loop (collecting a SIGALRM
[via sigwait() in mysqld.cc] that would not go away due to the above
issue).   mysqld appears to get a SIGHUP when /etc/rc exits, so it
can go into this tight loop after a reboot (but not if you restart
it by hand).   the bad sequence is:
	/etc/rc runs:
		- starts mysqld
		- starts web server with rt3 fastcgi starts
		- fastcgi/rt3 talks to mysqld (causing it to set an alarm)
		- /etc/rc exits, SIGHUP goes to mysqld
		- mysqld catches SIGHUP, signal handler thread gets
			stuck in loop (database continues to operate, slowly).

you can also trigger the problem by sending mysqld a SIGHUP by hand after
you've caused it to set an alarm by connecting to it.
2006-06-12 16:45:14 +00:00
perry 639e2af40a aprint_normal's for the "(slowidle)" and bios management messages 2006-06-12 16:42:05 +00:00
perry 42d7bd62c9 Always print out if slowidle, bios mgmt, etc. are on. It is better
that users have more information rather than less to tell us when we
are asking them for dmesgs for debugging purposes
2006-06-12 16:39:38 +00:00
hannken 442bf57d1c softdep_sync_metadata: If vp is a block device it may have new I/O requests
posted for it even if the vnode is locked. This will deadlock with wmesg
"softgetdbuf" if it gets a BMSAFEMAP dependency as here we have "bp == nbp"
and try to get a buffer we already own.

Approved by: Frank van der Linden <fvdl@netbsd.org>
2006-06-12 16:37:00 +00:00
kiyohara 19d35b3135 It necessary to mask to validate bits. 2006-06-12 16:07:33 +00:00
perry 34440af2fc ANSIfy function decls 2006-06-12 15:56:04 +00:00
tsutsui 5c40f381f5 Account ISA interrupts by evcnt(9) 2006-06-12 15:39:01 +00:00
tsutsui 0f6618f084 - rename struct intrhand -> struct isa_intrhand
- remove unused ih_what member
2006-06-12 15:24:31 +00:00
tsutsui ac30b81a3c Remove a declaration of nonexistent function. 2006-06-12 15:06:32 +00:00
tsutsui 8ce1487a46 Move arcsisabr.c from arc/isa to arc/dti because it's DescStation specific. 2006-06-12 15:04:40 +00:00
skrll 19e53faf30 More files changes in mknative re-run. I'm still cheating with
src/tools/gcc/Makefile
2006-06-12 11:45:33 +00:00
kardel 3dfb395215 sort out pointer types - found & fix by jmmv 2006-06-12 10:46:19 +00:00
kardel b51cdf6b08 fix pointer deref - found by jmmv 2006-06-12 10:45:27 +00:00
skrll 09e99a2e51 Re-run mknative for the gcc 3.3.6 import. There's a bit of cheating going
on here - mainly the use of an old src/tools/gcc/Makefile.
2006-06-12 08:00:22 +00:00
christos 67894004ec Don't allocate > 2K on the stack. 2006-06-12 01:25:05 +00:00
christos 48432186cb stack police: don't allocate statvfs on the stack. 2006-06-12 00:46:50 +00:00
christos 155721b1be don't allocate a crapload of struct's on the stack. Use a couple of unions
and use malloc for them.
2006-06-12 00:42:18 +00:00
christos c0160ad4aa don't allocate statvfs on the stack. 2006-06-12 00:22:47 +00:00
christos 0c1391f078 remove ; from }; 2006-06-12 00:20:21 +00:00
christos 06595cb85e stack polics: Don't allocate 4K on the stack.
remove ; from };
2006-06-12 00:18:06 +00:00