Commit Graph

182087 Commits

Author SHA1 Message Date
joerg 9d87375b3e Fix stack alignment for the thread stack. The AMD64 stack has 16 Bytes
alignment, but this is active before the return address is pushed onto
the stack.  Fixes random crashes in va_start when the SSE registers are
saved.
2009-07-02 09:57:09 +00:00
mrg 983926d7bf note that -t can take [.dddddd]. sort -q.
from dhgutteridge@sympatico.ca in PR#36928.
2009-07-02 04:45:27 +00:00
macallan 0c5e45033e netbsdPci.c is no more 2009-07-02 04:27:47 +00:00
macallan de0eabb5e4 we don't have or need SparcMulDiv.S 2009-07-02 04:27:05 +00:00
dyoung ec3ba2c85b In vndopen(), release the lock before returning ENXIO. 2009-07-02 02:06:11 +00:00
snj 55f8c3946f Fix two problems in a conditional:
- __NetBSD__Version__ -> __NetBSD_Version__
- ">= 599001200" -> "< 599001200"

This worked on current because of the __ typo.

Spotted by Geoff Wing.
2009-07-02 01:43:15 +00:00
dyoung 7242213311 Extract subroutine dklastclose(). This is a step toward detachable
dk(4).
2009-07-02 00:56:48 +00:00
snj b80e388902 Small grammar tweak. 2009-07-02 00:49:58 +00:00
snj 8f8fc136d7 nicknames.5: s/man-nis-catman/man-nis-man/. Spotted by Yorick Hardy. 2009-07-01 23:54:48 +00:00
joerg c1faa994fd Reduce diff to makecontext. 2009-07-01 16:54:41 +00:00
martin 061a87b549 From Wolfgang Stukenbrock in PR kern/41659: add missing splx(). 2009-07-01 14:47:54 +00:00
tsutsui fc984c2617 Define and use macro to calculate kernel physical addresses
after relocation to TT RAM. No binary changes.
2009-07-01 13:44:32 +00:00
wiz e94ec523a3 Bump date for previous. 2009-07-01 11:25:50 +00:00
njoly d90ab2e01d Do not call callout_stop() unless the structure was previoulsy
initialised for a non null timeout.
2009-07-01 10:01:28 +00:00
mbalmer cf8e7832f4 Fix write loop. 2009-07-01 07:49:12 +00:00
mrg c5cc9dbb54 document RLIMIT_AS. text from freebsd. fixes PR#41517. 2009-07-01 06:01:42 +00:00
uwe c03dac31b4 G/c sentence fragment left over from vinum reference (forgotten in 1.69).
Noticed by bad@ in PR bin/41652
2009-07-01 02:43:34 +00:00
martin 53822d1e78 Update fd_freefile when kqueue descriptors are not copied from
parent to child. From Wolfgang Solfrank in PR kern/41651.
Approved by Andrew Doran.
2009-06-30 20:32:49 +00:00
agc 0ff3383f59 Check that a filename has been given, where one has required. Fixes a bug
reported by Mark Kirby.
2009-06-30 18:54:20 +00:00
pgoyette 5de2729099 Change acpi_tz sensor behavior as follows:
1. ENVSYS_WARNOVER event is generated whenever any active cooling level
   is exceeded.

2. ENVSYS_CRITOVER event is generated whenever _HOT limit is exceeded;
   if the _HOT limit is not defined, then ENVSYS_CRITOVER will be
   generated when the _CRT limit is exceeded.

3. For Passive Cooling Only mode, there will be no change in behavior.

Additionally, since there are specific actions taken at each of the Active
Cooling Levels (powering parts of a zone on or off), and the limits are not
user-programmable,

4. The {warn,crit}{min,max} threshold levels will be specified only
   by the device itself;  event reporting thresholds may not be set
   from userland.

No comments received for two weeks after proposing these changes on both
current-users@ and tech-kern@
2009-06-30 16:14:49 +00:00
pooka bbd95bc6d9 add reference 2009-06-30 15:28:01 +00:00
pooka 4d79e8c53d Apply const where necessary (XXX: where is bf_locl.org?) 2009-06-30 13:14:40 +00:00
agc 80afc5a9cd catch up with change of filename 2009-06-30 02:59:15 +00:00
agc 5e01dafb5c Portable iSCSI - snapshot of current sources/changes
+ moved lba2cdb into iscsi-initiator.c and cdb2lba into disk.c
+ moved iscsi.c to protocol.c
+ calculate zero bytes and bits in a different way, and fix a bug or two
  on the way
+ add the ability to trace different types of debug information from the
  initiatior as well as the target
2009-06-30 02:44:52 +00:00
yamt 6d375e715d update a comment 2009-06-29 23:39:00 +00:00
dholland 165c915b22 Fix two serious string-handling bugs (one exploitable, one probably
exploitable) and also add proper checking/paranoia in several other
places.
2009-06-29 23:05:33 +00:00
tonnerre f7384c4a6a Add special handling for CBC cipher modes to make them appear less favorable
than CTR modes. Also, in order to avoid creating oracles unnecessarily,
change behavior in various situations from "Drop connection" to "Ignore
packets up to 256kB". This affects CBC mode ciphers only.

Patch from OpenBSD.
2009-06-29 22:52:13 +00:00
mbalmer 23ada40b4b Fix integer constant RB_FREQUENC, 25MHz/4 is 6250000L, not 625000L
This fixes PR 39931

PR and fix from Miod Vallat <miod@online.fr>, many thanks!
2009-06-29 20:49:25 +00:00
dyoung c53d86bdf2 Fix a typo in last (coda/ exclusion). 2009-06-29 18:03:37 +00:00
mrg 097e42c7ab add files needed for DRI. should fix a problem reported by Matthew Mondor. 2009-06-29 15:40:10 +00:00
tsutsui 54604067b9 Since pmap.c rev 1.163, page attributes of PV_MODIFIED and PV_REFERENCED
have beem moved from pv_flags in struct pv_entry to pvh_attrs in
struct vm_page_md, so no need to copy pv_flags to keep these flags
in pv header in pmap_remove_pv(). Pointed out by uebayasi@ on port-mips.
Also rename those page attribute flags from PV_FOO to PGA_FOO like alpha.
While here, make pv_flags unsigned.

Briefly tested on sgimips O2.
2009-06-29 13:22:51 +00:00
pgoyette 144af482b2 Adapt to new features available in sysmon_envsys:
1) expose the built-in limits to user-land (via envstat(8)), and
2) allow user-specified limits to override the built-in limits.

No comments received from current-users@ over 2-week period.
2009-06-29 12:30:09 +00:00
hubertf 9bb62260eb Use PCI IDs from pcidevs, instead of storing them in here.
Compile tested and OK'd by NONAKA Kimihiro.
2009-06-29 11:05:12 +00:00
hubertf ea499356a8 regen 2009-06-29 11:04:05 +00:00
hubertf 51bb588c5a add a few sdhc(4) devices 2009-06-29 11:02:43 +00:00
mbalmer 38e0566d82 Have the boot countdown on i386 display "starting in N seconds." instead
of "starting in N" and eliminate a use of sprintf.  Note that on
some rare machines it can be that the BIOS does not provide the delay
function.  On such machines the countdown will almost immediately count down
to zero display "starting in 0 seconds."; apparently the net4801 is such a
machine.
Feedback, ideas, and inspiration from tron, ok tron/tonnerre
2009-06-29 09:23:16 +00:00
wiz 04b11be56d Mark up NULL with Dv. Remove trailing whitespace. 2009-06-29 08:38:07 +00:00
dholland 9b5247fa1c Another namei_simple like the previous ones; was added after I did the
initial sweep and I guess I missed it while merging.
2009-06-29 07:11:06 +00:00
plunky fc992f3309 add mention of SO_ACCEPTFILTERS, language largely from FreeBSD manpage 2009-06-29 06:22:13 +00:00
wiz 8f62518cea Use more markup. Punctuation nit. 2009-06-29 06:02:09 +00:00
dholland 0633e5d59f Bump date for previous (thanks uebayasi@) 2009-06-29 05:49:28 +00:00
dholland 79cf3422da Time for 5.99.15: newly compiled fs modules won't work with an older kernel. 2009-06-29 05:47:35 +00:00
dholland 847d7ba4a1 Document namei_simple_kernel and namei_simple_user. 2009-06-29 05:17:14 +00:00
dholland effcf1af5c Convert 67 namei call sites to use namei_simple, in these functions:
check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.
2009-06-29 05:08:15 +00:00
dholland 69b592eb0c regen 2009-06-29 05:03:12 +00:00
dholland acfecf55d7 Add namei_simple_kernel and namei_simple_user. These provide the common
case functionality of namei in a simple package with only a couple flags.

A substantial majority of the namei call sites in the kernel can use
this interface; this will isolate those areas from the changes arising
as the internals of namei are fumigated.
2009-06-29 05:00:14 +00:00
dholland 63eb8c3760 Add some markup to improve clarity. 2009-06-29 03:49:41 +00:00
haad a1f246d056 Remove unneeded targets from build. Should fix brekage of ALL kernel build
found by cegger@.
2009-06-28 22:05:07 +00:00
dholland 0ed1b742e0 sprintf -> snprintf 2009-06-28 21:12:10 +00:00
dholland 69388abb04 Fix typo 2009-06-28 19:02:46 +00:00