‚É0150891 109 862 195 135 339 126 1066 159 3158 329 911 286 132 263 117 248 145 315 353 503 187 430 120 252 750 125 129 189 176 127 123 239 176 315 175 140 588 215 185 280 313 180 156 340 348 227 193 338 1811 1785 201 175 644 282 123 215 270 276 141 310 303 237 154 273 297 410 135 329 164 121 1089 112 855 168 164 158 421 191 367 1033 258 392 168 169 294 239 201 1140 470 434 1019 738 177 131 362 936 138 169 347 304 962 216 197 256 161 595 197 153 491 518 K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-03T21:57:43.000000Z K 7 svn:log V 764 Initialize the inode i_flag field in ffs_valloc() to clean up any stale flag bits left over from before the inode was recycled. Without this change, a leftover IN_SPACECOUNTED flag could prevent softdep_freefile() and softdep_releasefile() from incrementing fs_pendinginodes. Because handle_workitem_freefile() unconditionally decrements fs_pendinginodes, a negative value could be reported at file system unmount time with a message like: unmount pending error: blocks 0 files -3 The pending block count in fs_pendingblocks could also be negative for similar reasons. These errors can cause the data returned by statfs() to be slightly incorrect. Some other cleanup code in softdep_releasefile() could also be incorrectly bypassed. MFC after: 3 days END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-10-03T22:04:08.000000Z K 7 svn:log V 99 Add a note to UPDATING and bump __FreeBSD_version for if_bridge MFC. Approved by: mlaier (mentor) END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-03T22:44:54.000000Z K 7 svn:log V 40 Bring in the good version of this file. END K 10 svn:author V 4 grog K 8 svn:date V 27 2005-10-03T23:45:01.000000Z K 7 svn:log V 245 MFC: Initialize uninitialized variables. Remove one possible way of shooting yourself in the foot. Requested by: Dan Lukes Approved by: RE (kensmith@) And now for the scripts which refuse the line above: Approved by: re END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-04T04:02:33.000000Z K 7 svn:log V 29 Add missing word to comment. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-04T04:29:08.000000Z K 7 svn:log V 968 MFC kern_exec.c 1.276 (and 1.278) Original commit messages: truckman 2005-10-01 08:33:57 UTC FreeBSD src repository Modified files: sys/kern kern_exec.c Log: Copy new process argument list in do_execve() before grabbing PROC_LOCK to avoid touching pageable memory while holding a mutex. Simplify argument list replacement logic. PR: kern/84935 Submitted by: "Antoine Pelisse" apelisse AT gmail.com (in a different form) MFC after: 3 days Revision Changes Path 1.276 +10 -10 src/sys/kern/kern_exec.c truckman 2005-10-04 04:02:33 UTC FreeBSD src repository Modified files: sys/kern kern_exec.c Log: Add missing word to comment. Revision Changes Path 1.278 +1 -1 src/sys/kern/kern_exec.c PR: kern/84935 Submitted by: "Antoine Pelisse" apelisse AT gmail.com (in a different form) Approved by: re (scottl) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-04T04:40:21.000000Z K 7 svn:log V 64 Oops, left a compile option enabled that should not be enabled. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-04T04:41:27.000000Z K 7 svn:log V 3059 MFC snaplk deadlock fix src/sys/kern/vfs_bio.c 1.495, 1.496 src/sys/kern/vfs_subr.c 1.648 src/sys/sys/buf.h 1.190, 1.191 src/sys/sys/proc.h 1.436 src/sys/ufs/ffs/ffs_snapshot.c 1.104, 1.105, 1.106 Original commit messages: Log: Un-staticize runningbufwakeup() and staticize updateproc. Add a new private thread flag to indicate that the thread should not sleep if runningbufspace is too large. Set this flag on the bufdaemon and syncer threads so that they skip the waitrunningbufspace() call in bufwrite() rather than than checking the proc pointer vs. the known proc pointers for these two threads. A way of preventing these threads from being starved for I/O but still placing limits on their outstanding I/O would be desirable. Set this flag in ffs_copyonwrite() to prevent bufwrite() calls from blocking on the runningbufspace check while holding snaplk. This prevents snaplk from being held for an arbitrarily long period of time if runningbufspace is high and greatly reduces the contention for snaplk. The disadvantage is that ffs_copyonwrite() can start a large amount of I/O if there are a large number of snapshots, which could cause a deadlock in other parts of the code. Call runningbufwakeup() in ffs_copyonwrite() to decrement runningbufspace before attempting to grab snaplk so that I/O requests waiting on snaplk are not counted in runningbufspace as being in-progress. Increment runningbufspace again before actually launching the original I/O request. Prior to the above two changes, the system could deadlock if enough I/O requests were blocked by snaplk to prevent runningbufspace from falling below lorunningspace and one of the bawrite() calls in ffs_copyonwrite() blocked in waitrunningbufspace() while holding snaplk. See Revision Changes Path 1.495 +3 -3 src/sys/kern/vfs_bio.c 1.648 +2 -1 src/sys/kern/vfs_subr.c 1.190 +1 -0 src/sys/sys/buf.h 1.436 +1 -1 src/sys/sys/proc.h 1.104 +16 -4 src/sys/ufs/ffs/ffs_snapshot.c Log: Un-staticize waitrunningbufspace() and call it before returning from ffs_copyonwrite() if any async writes were launched. Restore the threads previous TDP_NORUNNINGBUF state before returning from ffs_copyonwrite(). Revision Changes Path 1.496 +1 -1 src/sys/kern/vfs_bio.c 1.191 +1 -0 src/sys/sys/buf.h 1.105 +13 -1 src/sys/ufs/ffs/ffs_snapshot.c Log: Correct previous commit to fix the sense of the TDP_NORUNNINGBUF check in ffs_copyonwrite() that is a precondition for calling waitrunningbufspace(). Pointed out by: tegge Pointy hat to: truckman MFC after: 3 days Revision Changes Path 1.106 +1 -1 src/sys/ufs/ffs/ffs_snapshot.c Approved by: re (scottl) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-10-04T04:49:21.000000Z K 7 svn:log V 233 For some utterly bizarre reason, sparc64 coerces PAGE_SIZE to be a long instead of an int. No other FreeBSD architecture does this. Patch over this problem in the lmc driver. While I'm here, correct a mistake with DEVICE_POLLING. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-10-04T05:39:40.000000Z K 7 svn:log V 813 MFC: Update libarchive to 1.02.033. (Synchronize with -CURRENT.) Among other fixes: * C++ support * Portability: remove C99 requirements * Portability: don't require wchar.h * Check for memory allocation failures * Portability: better detection of ACL support * Signed/unsigned fixes * Fix crash when archive_read_next_header called after an open failure * Fix archive_read_data * Reduce window for attribute restore security race * Clean up pathnames before creating leading dirs * assign default inode/dev values to extracted tar entries to better support tar->cpio conversions * Trim mode and time values for inner ustar header when constructing pax entries * Sample code in archive_read.3 and archive_write.3 works now * Many comment and documentation corrections END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-04T06:15:25.000000Z K 7 svn:log V 189 Add function pthread_timedjoin_np, the function is similar with pthread_join except the function will return ETIMEDOUT if target thread does not exit before specified absolute time passes. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-04T07:23:56.000000Z K 7 svn:log V 36 Add pthread_timedjoin_np prototype. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-04T07:59:28.000000Z K 7 svn:log V 166 Rename net.isr.enable to net.isr.dispatch. No compatibility code is provided, as this will be the production name as of 6.0. MFC after: 3 days Requested by: scottl END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-04T08:28:46.000000Z K 7 svn:log V 21 Sort function names. END K 10 svn:author V 7 roberto K 8 svn:date V 27 2005-10-04T10:37:53.000000Z K 7 svn:log V 151 MFC revision 1.10 of chkgrp.c: The check for invalid characters introduced in 1.9 incorrectly flags NIS entries as invalid. Approved by: re (scottl) END K 10 svn:author V 7 roberto K 8 svn:date V 27 2005-10-04T10:43:21.000000Z K 7 svn:log V 49 MFC of revision 1.16 for chkgrp.8: Markup fixes. END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-04T11:48:03.000000Z K 7 svn:log V 222 Use a callback to set up a vlan interface so that "vlan" and "vlandev" commands can be specified in any order. This makes the code more compact and clear as well. Improve error check on vlan argument. MFC after: 2 weeks END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T12:50:11.000000Z K 7 svn:log V 257 MFC rev 1.146 (and 1.147) revision 1.146 date: 2005/09/28 16:05:13; author: cognet; state: Exp; lines: +7 -1 Use SO_REUSEADDR on the socket, to make the use of syslogd in jails easier. Submitted by: Jeremie Le Hen Approved by: re END K 10 svn:author V 6 peadar K 8 svn:date V 27 2005-10-04T13:13:57.000000Z K 7 svn:log V 407 MFC BOOTSIG[23] removal: msdosfs_vfsops.c v1.146 bootsect.h v1.13 Remove checks for BOOTSIG[23] from FAT32 bootblocks. There seems to be very little documentary evidence outside this implementation to suggest a these checks are neccessary, and more than one camera-formatted flash disk fails the check, but mounts successfully on most other systems. Approved by: re (scottl@) END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-10-04T13:56:35.000000Z K 7 svn:log V 95 MFC: Add the flash device sizing subroutine. Approved by: re@ (scottle) Reminded by: simon@ END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-10-04T14:07:44.000000Z K 7 svn:log V 333 MFC 1.73: In em_process_receive_interrupts() store and clear adapter->fmt. This make function reenterable. In the runtime the race is masked by serializing of em_process_receive_interrupts() either by interrupt thread, or by polling. The race can be triggered when polling is switched on or off. Approved by: re (scottl) END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-10-04T14:31:10.000000Z K 7 svn:log V 27 MFC: 1.23 Approved by: re END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-04T14:32:15.000000Z K 7 svn:log V 158 Conditionally pickup Giant in mac_cred_mmapped_drop_perms_recurse so we can drop it all together in __mac_set_proc. Reviewed by: alc Discussed with: rwatson END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-04T14:32:58.000000Z K 7 svn:log V 656 Standard Giant push down operations for the Mandatory Access Control (MAC) framework. This makes Giant protection around MAC operations which inter- act with VFS conditional, based on the MPSAFE status of the file system. Affected the following syscalls: o __mac_get_fd o __mac_get_file o __mac_get_link o __mac_set_fd o __mac_set_file o __mac_set_link -Drop Giant all together in __mac_set_proc because the mac_cred_mmapped_drop_perms_recurse routine no longer requires it. -Move conditional Giant aquisitions to after label allocation routines. -Move the conditional release of Giant to before label de-allocation routines. Discussed with: rwatson END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-10-04T14:33:09.000000Z K 7 svn:log V 32 MFC: 1.26-1.28 Approved by: re END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T14:37:03.000000Z K 7 svn:log V 34 Fix build when DDB isn't defined. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T14:37:53.000000Z K 7 svn:log V 94 Make arm/disassem.c depends on DDB make arm/in_cksum.c and arm/in_cksum_asm.S depend on INET. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T14:38:55.000000Z K 7 svn:log V 81 Really detect if DDB is enabled. Remove kernel.tramp if it exists on make clean. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T14:39:33.000000Z K 7 svn:log V 32 Remove duplicate entry for DDB. END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T14:41:06.000000Z K 7 svn:log V 29 Virgin import of bsnmpd 1.11 END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T14:41:06.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r150920, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-10-04T14:41:07.000000Z K 7 svn:log V 80 This commit was manufactured by cvs2svn to create tag 'bsnmp-vendor-BSNMP_1_11'. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-04T14:47:47.000000Z K 7 svn:log V 221 Use the correct object's backing_object_offset while calculating offsets. While we are here, add a note that we need to lock the object before walking the backing object list. Pointed out by: alc Discussed with: rwatson END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T14:51:55.000000Z K 7 svn:log V 81 These files are not needed and were imported by accident in the previous import. END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T14:53:06.000000Z K 7 svn:log V 46 Add snmp_ntp/Makefile.in to the exclude list. END K 10 svn:author V 3 dds K 8 svn:date V 27 2005-10-04T14:58:58.000000Z K 7 svn:log V 495 Update the vnode's access time after an mmap operation on it. Before this change a copy operation with cp(1) would not update the file access times. According to the POSIX mmap(2) documentation: the st_atime field of the mapped file may be marked for update at any time between the mmap() call and the corresponding munmap() call. The initial read or write reference to a mapped region shall cause the file's st_atime field to be marked for update if it has not already been marked for update. END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T15:02:07.000000Z K 7 svn:log V 120 Catch up with the import of bsnmp-1.11. Add a couple of new configuration flags to CFLAGS and set the WARNS level to 6. END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-04T15:03:39.000000Z K 7 svn:log V 91 Catch up with the import of bsnmp-1.11. Add a couple of new configuration flags to CFLAGS. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-04T15:06:10.000000Z K 7 svn:log V 186 Protect PID initializations for statistics by the bpf descriptor locks. Also while we are here, protect the bpf descriptor during knlist_remove{add} operations. Discussed with: rwatson END K 10 svn:author V 3 dds K 8 svn:date V 27 2005-10-04T15:06:42.000000Z K 7 svn:log V 220 MFC 1.28 Bug fix: a numeric flag specification in the substitute command would cause the next substitute flag to be ignored. While working at it, detect and report overflows. Reported by: Jingsong Liu Bugged by: Xin Li END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-04T15:13:06.000000Z K 7 svn:log V 88 MFC: Rename the lapic timer interrupt counter to cpuX: timer. Approved by: re (scottl) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-04T15:15:22.000000Z K 7 svn:log V 64 MFC: Add interrupt counters for IPIs. Approved by: re (scottl) END K 10 svn:author V 3 dds K 8 svn:date V 27 2005-10-04T15:26:10.000000Z K 7 svn:log V 247 MFC 1.28 Bug fix: a numeric flag specification in the substitute command would cause the next substitute flag to be ignored. While working at it, detect and report overflows. Reported by: Jingsong Liu Bugged by: Xin Li Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-04T15:33:06.000000Z K 7 svn:log V 251 Merge fifo_vnops.c:1.132 from HEAD to RELENG_6: Second attempt at a work-around for fifo-related socket panics during make -j with high levels of parallelism: acquire Giant in fifo I/O routines. Discussed with: ups Approved by: re (scottl) END K 10 svn:author V 3 rik K 8 svn:date V 27 2005-10-04T16:27:54.000000Z K 7 svn:log V 134 Use FILEDESC_UNLOCK(fdp) after FILE_UNLOCK(p), not before to avoid LOR. Slightly discussed on current@. LOR #055 MFC after: 14 days END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T16:29:31.000000Z K 7 svn:log V 98 dump_avail has nothing to do with ARM_USE_SMALL_ALLOC, so move its declaration out of the #ifdef. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-04T16:40:20.000000Z K 7 svn:log V 241 Re-order MAC and DAC checks in shmget() in order to give precedence to the MAC result, as well as avoid losing the DAC check result when MAC is enabled. MFC after: 3 days Reported by: Patrick LeBlanc END K 10 svn:author V 3 rse K 8 svn:date V 27 2005-10-04T17:29:00.000000Z K 7 svn:log V 1717 MFC to RELENG_6: | Fix system shutdown timeout handling by again supporting longer running | shutdown procedures (which have a duration of more than 120 seconds). | | We have two user-space affecting shutdown timeouts: a "soft" one in | /etc/rc.shutdown and a "hard" one in init(8). The first one can be | configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults | to 30 seconds. The second one was originally (in 1998) intended to be | configured via sysctl(8) variable "kern.shutdown_timeout" and defaults | to 120 seconds. | | Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999 | (as it obviously is actually not used within the kernel itself) and | hence was intentionally but misleadingly removed in revision 1.107 from | init_main.c. Kernel sysctl(8) variables are certainly a wrong way to | control user-space processes in general, but in this particular case the | sysctl(8) variable should have remained as it supports init(8), which | isn't passed command line flags (which in turn could have been set via | /etc/rc.conf), etc. | | As there is already a similar "kern.init_path" sysctl(8) variable which | directly affects init(8), resurrect the init(8) shutdown timeout under | sysctl(8) variable "kern.init_shutdown_timeout". But this time document | it as being intentionally unused within the kernel and used by init(8). | Also document it in the manpages init(8) and rc.conf(5). | | Reviewed by: phk | MFC after: 2 weeks | | Revision Changes Path | 1.48 +7 -1 src/sbin/init/init.8 | 1.61 +1 -1 src/sbin/init/init.c | 1.264 +16 -1 src/share/man/man5/rc.conf.5 | 1.257 +11 -0 src/sys/kern/init_main.c Approved by: re (scottl) END K 10 svn:author V 3 rse K 8 svn:date V 27 2005-10-04T18:00:43.000000Z K 7 svn:log V 1691 MFC to RELENG_5: | Fix system shutdown timeout handling by again supporting longer running | shutdown procedures (which have a duration of more than 120 seconds). | | We have two user-space affecting shutdown timeouts: a "soft" one in | /etc/rc.shutdown and a "hard" one in init(8). The first one can be | configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults | to 30 seconds. The second one was originally (in 1998) intended to be | configured via sysctl(8) variable "kern.shutdown_timeout" and defaults | to 120 seconds. | | Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999 | (as it obviously is actually not used within the kernel itself) and | hence was intentionally but misleadingly removed in revision 1.107 from | init_main.c. Kernel sysctl(8) variables are certainly a wrong way to | control user-space processes in general, but in this particular case the | sysctl(8) variable should have remained as it supports init(8), which | isn't passed command line flags (which in turn could have been set via | /etc/rc.conf), etc. | | As there is already a similar "kern.init_path" sysctl(8) variable which | directly affects init(8), resurrect the init(8) shutdown timeout under | sysctl(8) variable "kern.init_shutdown_timeout". But this time document | it as being intentionally unused within the kernel and used by init(8). | Also document it in the manpages init(8) and rc.conf(5). | | Reviewed by: phk | MFC after: 2 weeks | | Revision Changes Path | 1.48 +7 -1 src/sbin/init/init.8 | 1.61 +1 -1 src/sbin/init/init.c | 1.264 +16 -1 src/share/man/man5/rc.conf.5 | 1.257 +11 -0 src/sys/kern/init_main.c END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-10-04T18:07:11.000000Z K 7 svn:log V 106 Make SO_BINTIME timestamps available on raw_ip sockets. Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-10-04T18:19:21.000000Z K 7 svn:log V 81 Correct brainfart in SO_BINTIME test. Pointed out by: nate Pointy hat to: andre END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-10-04T19:50:02.000000Z K 7 svn:log V 547 When bridging is enabled and an ARP request is recieved on a member interface, the arp code will search all local interfaces for a match. This triggers a kernel log if the bridge has been assigned an address. arp: ac:de:48:18:83:3d is using my IP address 192.168.0.142! bridge0: flags=8041 mtu 1500 inet 192.168.0.142 netmask 0xffffff00 ether ac:de:48:18:83:3d Silence this warning for 6.0 to stop unnecessary bug reports, the code will need to be reworked. Approved by: mlaier (mentor) MFC after: 3 days END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T20:42:42.000000Z K 7 svn:log V 186 strd needs the destination to be double-word aligned, but the pointer passed to savectx isn't always, so always use stmia, savectx isn't called enough to need that kind of optimization. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-04T20:47:27.000000Z K 7 svn:log V 28 Remove a never reached RET. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-04T21:45:42.000000Z K 7 svn:log V 118 Merge NetBSD's rev. 1.41: PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work Fixed as suggested. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-04T21:51:26.000000Z K 7 svn:log V 173 Merge NetBSD's rev. 1.49: Fix double if (from Alexey E. Suslikov via jmc@openbsd). While here, re-word both H_[GS]ETUNIQUE descriptions so they make more sense. Bump date. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-04T21:59:29.000000Z K 7 svn:log V 179 Merge makelist rev 1.10 and map.c rev 1.22 from NetBSD. They just patch the bug fixed in the last commit to map.c in a different way. Follow NetBSD to facilitate future merges. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-10-04T22:00:35.000000Z K 7 svn:log V 45 Remove an unused variable. Reviewed by: ken END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-04T22:22:51.000000Z K 7 svn:log V 217 media-type predicate is used in contexts where device-name is undefined. In those contexted, use subsystem instead. # This causes dhclient to run again when I plug in my ethernet cable to # my fxp card in my laptop. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-04T22:25:14.000000Z K 7 svn:log V 210 When data passed into devctl_notify is NULL, don't print (null). Instead don't print anything at all. # this fixes a problem that I noticed with devd.pipe not terminating lines # with \n correctly sometimes. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-10-04T22:53:56.000000Z K 7 svn:log V 140 MFC kern/kern_thread.c revision 1.217 kern/kern_kse.c revision 1.218 Fix scheduler and sleep queue LOR. Approved by: re (scottl) END K 10 svn:author V 5 peter K 8 svn:date V 27 2005-10-04T23:26:00.000000Z K 7 svn:log V 60 Don't set segment registers via ptrace yet. Its not ready. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-10-05T01:16:39.000000Z K 7 svn:log V 176 MFC 1.81 Call gctl_free() to free resource allocated with gctl_get_handle(). PR: bin/84664 Submitted by: Daan Vreeken Approved by: re (scottl) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-10-05T04:29:59.000000Z K 7 svn:log V 200 MFC 1.53 Fix so that color changes are not lost when the video mode changes. PR: bin/83553 Submitted by: Dan Lukes Approved by: re (scottl) Reminded by: delphij END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-10-05T04:42:20.000000Z K 7 svn:log V 314 When removing the local domain, only do so when the result will be a host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. Reviewed by: ceri (at least the concept) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-10-05T04:46:10.000000Z K 7 svn:log V 40 Add regression tests for trimdomain(3). END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T05:21:07.000000Z K 7 svn:log V 236 MFp4: o Add support for Tamarack TC5299J + MII found on SMC 8041TX V.2 and corega PCCCCTXD o Add support for ISA/PCI RTL80[12]9 chips o Improve support for the ax88790 based o minor code movement Submitted by: (#2) David Madole END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-10-05T05:21:08.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T05:24:35.000000Z K 7 svn:log V 29 Remove debug that crept in.. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-05T05:24:53.000000Z K 7 svn:log V 991 MFC ffs_alloc.c 1.135 - clear i_flag field in recycled inodes Original commit message: FreeBSD src repository Modified files: sys/ufs/ffs ffs_alloc.c Log: Initialize the inode i_flag field in ffs_valloc() to clean up any stale flag bits left over from before the inode was recycled. Without this change, a leftover IN_SPACECOUNTED flag could prevent softdep_freefile() and softdep_releasefile() from incrementing fs_pendinginodes. Because handle_workitem_freefile() unconditionally decrements fs_pendinginodes, a negative value could be reported at file system unmount time with a message like: unmount pending error: blocks 0 files -3 The pending block count in fs_pendingblocks could also be negative for similar reasons. These errors can cause the data returned by statfs() to be slightly incorrect. Some other cleanup code in softdep_releasefile() could also be incorrectly bypassed. Reviewed by: tegge Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T05:26:03.000000Z K 7 svn:log V 20 Add if_ed_rtl80x9.c END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-10-05T05:30:24.000000Z K 7 svn:log V 757 MFC kern_proc.c - fix locking in sysctl_kern_proc() Original commit message: FreeBSD src repository Modified files: sys/kern kern_proc.c Log: Always wire the sysctl output buffer in sysctl_kern_proc() before calling sysctl_out_proc(). -- fix from jhb Move the code in fill_kinfo_thread() that gathers data from struct proc into the new function fill_kinfo_proc_only(). Change all callers of fill_kinfo_thread() to call both fill_kinfo_proc_only() and fill_kinfo() thread. When gathering data from a multi-threaded process, fill_kinfo_proc_only() only needs to be called once. Grab sched_lock before accessing the process thread list or calling fill_kinfo_thread(). PR: kern/84684 Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T05:41:02.000000Z K 7 svn:log V 76 Note added support for Tamarack TC5229J, Axiom and Dlink parts. Bump date. END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-10-05T06:54:12.000000Z K 7 svn:log V 69 MFC: (1.192) honouring ic->ic_dtim_period. Approved by: re (scottl) END K 10 svn:author V 3 ume K 8 svn:date V 27 2005-10-05T07:00:42.000000Z K 7 svn:log V 66 stop RFC 4193 address on the outside interface. MFC after: 1 day END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-10-05T10:05:55.000000Z K 7 svn:log V 324 Define HAVE_KERNEL_OPTION_HEADERS when building kernel and when building modules along with kernel. After this change it is possible to embrace opt_*.h includes with ifdef HAVE_KERNEL_OPTION_HEADERS. And thus, avoid editing a lot of Makefiles in modules directory each time we introduce a new opt_xxx.h. Requested by: bde END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-10-05T10:07:27.000000Z K 7 svn:log V 95 - Don't include opt_global.h, it is always included implicitly. - Include opt_device_polling.h END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-10-05T10:09:17.000000Z K 7 svn:log V 270 - Don't pollute opt_global.h with DEVICE_POLLING and introduce opt_device_polling.h - Include opt_device_polling.h into appropriate files. - Embrace with HAVE_KERNEL_OPTION_HEADERS the include in the files that can be compiled as loadable modules. Reviewed by: bde END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-05T10:31:05.000000Z K 7 svn:log V 936 Merge init_main.c:1.258, mac_vfs.c:1.110, mac_biba.c:1.89, mac_lomac.c:1.37, mac_mls.c:1.74, mac_stub.c:1.55, mac_test.c:1.62, mac.h:1.69, mac_policy.h:1.70 from HEAD to RELENG_6: Remove mac_create_root_mount() and mpo_create_root_mount(), which provided access to the root file system before the start of the init process. This was used briefly by SEBSD before it knew about preloading data in the loader, and using that method to gain access to data earlier results in fewer inconsistencies in the approach. Policy modules still have access to the root file system creation event through the mac_create_mount() entry point. Removed now, and will be removed from RELENG_6, in order to gain third party policy dependencies on the entry point for the lifetime of the 6.x branch. Obtained from: TrustedBSD Project Submitted by: Chris Vance Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-05T12:10:35.000000Z K 7 svn:log V 161 Add simple TCP connect and TCP receive benchmark components, intended to measure the rate of TCP connection round trips supported by a host at the socket layer. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-05T12:32:23.000000Z K 7 svn:log V 295 Merge netisr.c:1.16 from HEAD to RELENG_6: Rename net.isr.enable to net.isr.direct. No compatibility code is provided, as this will be the production name as of 6.0. Previously this has been an experimental and unsupported feature. Requested by: scottl Approved by: re (kensmith) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-10-05T13:13:46.000000Z K 7 svn:log V 73 MFC: (1.27) fixing WEP bustage in hostap mode. Approved by: re (scottl) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-10-05T13:16:29.000000Z K 7 svn:log V 74 MFC: (1.193) fixing WEP bustage in hostap mode. Approved by: re (scottl) END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-05T15:19:56.000000Z K 7 svn:log V 199 Vendor fix for the build problem of snmp_pf. Move the fallback definitions for U?INT32_{MAX,MIN} from asn1.h into the .c files that actually require them (the .h file doesn't refer to these macros). END K 10 svn:author V 5 harti K 8 svn:date V 27 2005-10-05T15:19:56.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r150974, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-10-05T17:21:09.000000Z K 7 svn:log V 103 Don't use the builtin vaalist for icc. Submitted by: Igor Sysoev MFC after: 3 days END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-05T17:39:15.000000Z K 7 svn:log V 1045 Fix long standing race condition associated with how lockf uses open(2) for mutual exclusion: A brief description of the problem: 1) Proc A picks up non-blocking lock on file X 2) Proc B attempts to pickup lock, fails then waits 3) Proc C attempts to pickup lock, fails then waits 4) Proc A releases lock 5) Proc B acquires lock, release it to pickup a non-blocking version 6) Proc C acquires lock, release it to pickup a non-blocking version 7) Both process B and C race each other to pickup lock again This occurs mainly because the processes do not keep the lock after they have been waiting on it. They drop it, attempt to re-acquire it. (They use the wait to notify when the lock has become available then race to pick it up). This results in additional CPU utilization during the race, and can also result in processes picking locks up out of order. This change attempts to correct this problem by eliminating the test/acquire race and having the operating system handle it. Reported by: kris Tested by: kris MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-10-05T19:48:21.000000Z K 7 svn:log V 377 Update this manpage: - Remove references to cpu_critical_*() as they no longer exist. - Explain that any preemptions that occur during a critical section are deferred until the current thread exits the section. - Remove a bogus example usage of a critical section. - Note that one can interlock critical sections with spin mutexes in certain situations. MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-10-05T20:00:12.000000Z K 7 svn:log V 336 Add a comment regarding problems with NForce 2 mainboards and add disabled code which may help. People with a ich compatible soundcard which want to help out should change the "#if 1" to a "#if 0" and try if the soundcard still works. Reports about working or not-working soundcards with this change to multimedia@ please. PR: 73987 END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-10-05T20:05:52.000000Z K 7 svn:log V 921 - Locking improvements. - Don't keep the SPDIF state in the driver private struct since it can be overriden by hand with pciconf(8), query it when needed instead. Regarding the locking I let Ariff explain it himself: ---snip--- About the locking, that is what I'm intended to do since the beginning. The reason I'm not putting that along since my first patchset was because several people especially from amd46 camp reported that it cause lots of LORs, which is weird considering that I've never encounter such in a pretty much strict locking environment (i386). However, since our previous discussion with Pyun YongHyeon about strict locking, I've decided to bring it back for all the affected drivers, not just for es137x. It turns out that the root of the problem was within dsp.c during device open, which has been fixed since dsp.c revision 1.84. ---snip--- Submitted by: Ariff Abdullah END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-10-05T21:48:03.000000Z K 7 svn:log V 642 MFC: creator.c 1.9, fbreg.h 1.19, gfb.c 1.8, machfb.c 1.4, ofw_syscons.c 1.9, s3_pci.c 1.10, scgfbrndr.c 1.23, scmouse.c 1.40, scvgarndr.c 1.20, scvidctl.c 1.37, syscons.c 1.439, syscons.h 1.85, tga.c 1.8, vesa.c 1.52, vga.c 1.35 Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t and do some preparations for handling 12x22 fonts (currently lots of code implies and/or hardcodes a font width of 8 pixels). This will be required on sparc64 which uses a default font size of 12x22 in order to add font loading and saving support as well as to use a syscons(4)-supplied mouse pointer image. Approved by: re (scottl) END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-10-05T21:53:17.000000Z K 7 svn:log V 82 MFC: 1.21 Fix an endianness issue in pnp_eisaformat(). Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T21:56:27.000000Z K 7 svn:log V 39 Include forgotten rtl80x9 file for ed. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-10-05T22:02:07.000000Z K 7 svn:log V 268 Un-break handling of -t 0 which was broken in my previous commit. Add a flags argument to wait_for_lock so that O_NONBLOCK can be passed to open if a user doesn't want the open to sleep until the lock becomes available. Submitted by: Amir Shalem (partially modified) END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-10-05T22:08:17.000000Z K 7 svn:log V 840 MFC: if_gem.c 1.31 + 1.35, if_gem_pci.c 1.20, if_gemvar.h 1.11 - In gem_ioctl() move the call to ether_ioctl() to the default case of the switch statement in order to make this driver more like other Ethernet NIC drivers. - In gem_attach() call gem_stop() in addition to gem_reset() to make sure the chip actually is stopped and not just reset. - In gem_stop() also stop the gem_rint_timeout() callout in case the driver is compiled with GEM_RINT_TIMEOUT defined. - Remove NOP spl*() calls and add locking (making gem(4) MPSAFE). This MFC actually brings the RELENG_6 gem(4) in line with HEAD which means that it additionally includes a comment update regarding the IFF_OACTIVE -> IFF_DRV_OACTIVE rename which was part of if_gem.c 1.33 but missed in the respective MFC in 1.29.2.2. Requested by: thompsa Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-10-05T23:36:19.000000Z K 7 svn:log V 46 Make param.h includable again from assembler. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-10-06T01:21:40.000000Z K 7 svn:log V 73 Fix KASSERT function name in ether_output, use __func__ while I am here. END K 10 svn:author V 6 avatar K 8 svn:date V 27 2005-10-06T07:09:34.000000Z K 7 svn:log V 251 Fixing a boot time panic(when if_fwip is compiled into kernel) by renaming module name to something that wouldn't conflict with sys/dev/firewire/firewire.c. Submitted by: Cai, Quanqing PR: kern/82727 MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-10-06T08:30:40.000000Z K 7 svn:log V 211 Fix a nasty typo. Change: if (foo); bar(); to: if (foo) bar(); Really, really nasty bug and a very nice catch of mine. Unfortunately, I'll not become a hero of the day, because the code is commented out. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-06T08:41:08.000000Z K 7 svn:log V 865 Add basic simplified HTTP benchmark tools to the netrate suite: - http is a lightweight, multithreaded HTTP query tool, which performs a timed measurement of the rate at which it can download files using single-fetch HTTP/1.0. Other than specifying the IP and a URL path, it requires zero configuration. - httpd is a lightweight, multithreaded HTTP server tool, which exports a single file of choice to the HTTP client, and responds with it no matter what the request. Other than specifying the file to export, it requires zero configuration. The goal of these tools is to measure the network costs associated with HTTP serving, rather than file system, HTTP protocol parsing, error handling, etc, and as such, parts relating to less interesting components of HTTP testing are intentionally omitted. Both are linked against libpthread by default. END K 10 svn:author V 3 tjr K 8 svn:date V 27 2005-10-06T09:49:37.000000Z K 7 svn:log V 123 Compile with -DHAVE_LSTAT since, for whatever reason, the configure script shipped with GNU cpio 2.6 fails to test for it. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-06T10:28:31.000000Z K 7 svn:log V 100 Improve realism of benchmark httpd: return some HTTP headers as part of the sendfile() system call. END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-10-06T10:58:16.000000Z K 7 svn:log V 162 MFC: pcm.4 1.41-1.42 snd_cmi.4 1.5 snd_csa.4 1.14 snd_emu10k1.4 1.6 snd_es137x.4 1.6 snd_sbc.4 1.15 Approved by: re (scottl) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-10-06T11:10:09.000000Z K 7 svn:log V 69 Add strtok() and strtok_r() function to libkern. MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-10-06T11:18:34.000000Z K 7 svn:log V 502 Add boot.nfsroot.options loader tunable. It allows to specify options for NFS root file system. Currently supported options are: soft, intr, conn, lockd. I'm adding this functionality mostly for 'lockd' option, which is only honored when performing the initial mount and will be silently ignored if used while updating the mount options. This will allow to use flock(2) without the need of using varmfs or rpc.lockd and friends. Example of use: boot.nfsroot.options="intr,lockd" MFC after: 2 weeks END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-10-06T11:26:37.000000Z K 7 svn:log V 101 Export PAGE_SIZE from genassym.c, and include assym.s in bcopy_page.S, instead of . END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-06T12:20:33.000000Z K 7 svn:log V 57 Don't hard-code port numbers, let the user specify them. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-10-06T13:15:21.000000Z K 7 svn:log V 394 Merge db_command.c:1.62 from HEAD to RELENG_6: Add a DDB "traceall" function, which stack traces all known process threads. This is quite useful if generating a debug log for post-mortem by another developer, in which case the person at the console may not know which threads are of interest. The output of this can be quite long. Discussed with: kris Approved by: re (scottl) END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-10-06T15:01:56.000000Z K 7 svn:log V 425 MFC: ifconfig.c 1.116 For the sake of consistency and easier typing, introduce "-tunnel" as an alias for "deletetunnel". The latter is overly long and prone to typos, but keep it for POLA since it costs nothing. ifvlan.c 1.8 Deprecate the useless argument to -vlandev. ifconfig.8 1.102-1.105 Document the above changes. Logically group vlan- and tunnel-related parameters. Approved by: re (scottl) END