Commit Graph

182127 Commits

Author SHA1 Message Date
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
dholland
4c08f5f97e Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
2009-06-28 18:59:37 +00:00
rmind
fe55ad324c panic: use MI cpu_index(), instead of cpu_number(), which could be sparse. 2009-06-28 15:30:30 +00:00
rmind
5c68e5d0ee Ephemeral mapping (emap) implementation. Concept is based on the idea that
activity of other threads will perform the TLB flush for the processes using
emap as a side effect.  To track that, global and per-CPU generation numbers
are used.  This idea was suggested by Andrew Doran; various improvements to
it by me.  Notes:

- For now, zero-copy on pipe is not yet enabled.
- TCP socket code would likely need more work.
- Additional UVM loaning improvements are needed.

Proposed on <tech-kern>, silence there.
Quickly reviewed by <ad>.
2009-06-28 15:18:50 +00:00
rmind
7b7c187a92 Amend previous. 2009-06-28 14:34:48 +00:00
rmind
39b52425ff - Convert some #ifdefs to KASSERT()s.
- KNF, style, no parameters in function declarations.
- No functional changes.
2009-06-28 14:22:11 +00:00
yamt
85542b11cd wrap a long line. 2009-06-28 11:42:07 +00:00
hubertf
d0ffc7ee11 Remove trailing whitespace,
from KIYOHARA Takashi on current-users@
2009-06-28 11:17:39 +00:00
mbalmer
5c2d18cdea regen. 2009-06-28 10:46:37 +00:00
mbalmer
81170a7797 Add some vendor/product IDs for radio clocks. 2009-06-28 10:45:24 +00:00
tsutsui
296279ad74 pad -> PAD, to follow src/sys/kern/makesyscalls.sh rev 1.87. 2009-06-28 09:50:57 +00:00