ĵ162412 177 251 580 237 149 159 313 140 208 213 195 164 136 285 215 245 236 309 169 436 429 198 164 1595 213 196 332 546 215 275 139 206 347 273 172 172 197 466 133 174 157 468 286 178 199 168 151 186 138 476 525 185 183 250 168 731 389 392 175 189 1362 449 282 440 353 318 427 213 219 241 276 206 929 216 286 165 247 128 136 637 147 136 238 211 182 202 295 108 157 177 114 108 2165 241 188 239 183 269 175 236 144 153 236 124 697 543 364 349 131 198 264 244 129 579 449 108 187 108 156 156 235 288 210 624 130 149 108 415 287 261 191 647 483 208 300 167 384 230 804 144 158 108 143 361 308 149 187 202 621 125 329 1692 164 158 112 108 176 234 260 503 321 455 575 185 188 207 243 230 226 328 210 216 297 189 612 289 234 2555 K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-09-18T16:39:23.000000Z K 7 svn:log V 156 o Don't leak fd on error. o parselength() returns 0 or -1 so int is enough for its return type. Submitted by: Ighighi Ighighi, sheldonh MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-09-18T16:49:15.000000Z K 7 svn:log V 487 o move ath hal os glue code from the hal to the driver: this code was part of the hal distribution early on when the hal was built for each os but it's been portable for a long time so move the os-specific code out (and off the vendor branch) o correct the copyright on ah_osdep.?; it was mistakenly given a restricted license and not a dual-bsd/gpl license o remove the module api definition as it was never used o fixup include paths for move of ah_osdep.h MFC after: 2 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-09-18T16:49:15.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r162413, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-09-18T16:50:59.000000Z K 7 svn:log V 57 fixup build after move of ah_osdep.? MFC after: 2 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-09-18T17:01:35.000000Z K 7 svn:log V 67 remove this from HEAD too since it got taken off the vendor branch END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-09-18T17:08:32.000000Z K 7 svn:log V 220 Add additional support for generating code for the arm. There's still a few issues in other parts of the tree, but those will be resolved separately. Submitted by: cogenet@ Reviewed by: kan@, obrien@ MFC After: 5 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-09-18T17:23:35.000000Z K 7 svn:log V 48 remove local change Spotted by: Gavin Atkinson END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-18T17:55:32.000000Z K 7 svn:log V 114 Make sure that lutimes(2) gets processed and converted into a BSM record. Submitted by: rwatson MFC after: 1 day END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-09-18T18:07:49.000000Z K 7 svn:log V 118 o Add pthread_yield.3 man page. PR: docs/100083 Reviewed by: deischen, ru Obtained from: OpenBSD MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-18T20:17:42.000000Z K 7 svn:log V 102 Update prototype for smbus callback change. Reported by: Ian FREISLICH END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-09-18T20:54:40.000000Z K 7 svn:log V 71 Simplify promiscuous mode check and make ALLMULTI independent from it. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-09-18T22:18:21.000000Z K 7 svn:log V 43 Do not strip VLAN tag in promiscuous mode. END K 10 svn:author V 4 emax K 8 svn:date V 27 2006-09-18T22:56:59.000000Z K 7 svn:log V 191 Do not try to call keyboard callback unless keyboard is active and busy. This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4). PR: sparc64/96798 MFC after: 1 week END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-09-18T23:44:12.000000Z K 7 svn:log V 120 Don't forget to add curly braces when doing more than one line of actions after a 'if' statement. Pointy hat to: andre END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-19T08:30:34.000000Z K 7 svn:log V 148 Hook up au_open.3 man page (and its symlinks), apparently missed during initial OpenBSM merge. Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-09-19T08:43:56.000000Z K 7 svn:log V 139 MFC 1.53, 1.54: Document net.inet.tcp.maxtcptw and net.inet.tcp.nolocaltimewait. Wording by: Devon O'Dell Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-19T09:34:25.000000Z K 7 svn:log V 217 Back out revision 1.8. The only thing it did was to break LEDs (and some other less noticeable things) on little-endian 64-bit platforms such as amd64. PR: kern/101931 Discussed with: emax, marius MFC after: 1 day END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:06:15.000000Z K 7 svn:log V 77 MFC: sys/crypto/via/padlock_cipher.c 1.5 Less magic. Approved by: re (mux) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:07:59.000000Z K 7 svn:log V 343 MFC: sys/geom/geom_event.c 1.55 Delay an orphan event if provider has still in-flight I/O requests. This way GEOM classes can safely detach from provider when an orphan event is received. This fixes 'detach with active requests' panic for gstripe/gconcat under load. PR: kern/102766 Submitted by: mjacob OK'ed by: phk Approved by: re (mux) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:16:14.000000Z K 7 svn:log V 336 MFC: sys/geom/mirror/g_mirror.c 1.90 sys/geom/raid3/g_raid3.c 1.74 Fix synchronization in gmirror and graid3 which I broken. Synchronization request can still have bio_to set to sc_provider (this is READ part of a synchronization request) and in this case g_{mirror,raid3}_sync() wasn't called as it should be. Approved by: re (mux) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:28:06.000000Z K 7 svn:log V 105 Move readonly.t regression tests file to where it belongs. I accidentally added it to a wrong directory. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-09-19T11:28:07.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 pjd K 8 svn:date V 27 2006-09-19T11:40:36.000000Z K 7 svn:log V 1501 MFC: sbin/geom/class/eli/geli.8 1.18-1.20 sbin/geom/class/eli/geom_eli.c 1.15,1.16 sys/geom/eli/g_eli.h 1.12 sys/geom/eli/g_eli_ctl.c 1.9,1.10 tools/regression/geom_eli/configure-b-B.t 1.1 tools/regression/geom_eli/readonly.t 1.1 sys/geom/eli/g_eli_ctl.c:1.9 - Remove extra arguments. sbin/geom/class/eli/geom_eli.c:1.15 First kill detached providers, because of two reasons: - after killing all attached providers, all providers are then detached and operation is repeated for those who were attached, - we don't want to remove keys for read-only attached providers, we only want to detach them. sbin/geom/class/eli/geli.8:1.18 Note that we don't destroy keys on read-only attached providers. tools/regression/geom_eli/readonly.t:1.1 Regression tests for read-only option (attach -r). src/sbin/geom/class/eli/geli.8:1.19 src/sbin/geom/class/eli/geom_eli.c:1.16 src/sys/geom/eli/g_eli.h:1.12 src/sys/geom/eli/g_eli_ctl.c:1.10 Add 'configure' subcommand which for now only allows setting and removing of the BOOT flag. It can be performed on both attached and detached providers. Requested by: Matthias Lederhofer tools/regression/geom_eli/configure-b-B.t:1.1 Add regression tests for 'geli configure' subcommand. sbin/geom/class/eli/geom_eli.c:1.17 Fix copy&paste mistake. Submitted by: Matthias Lederhofer sbin/geom/class/eli/geli.8:1.18 Remove a contraction and add a missing article. Commit to HEAD by: brueffer Approved by: re (mux) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:42:42.000000Z K 7 svn:log V 120 MFC: sys/geom/raid3/g_raid3_ctl.c 1.19 Small fixes after adding __printflike() to gctl_error(). Approved by: re (mux) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-19T11:44:16.000000Z K 7 svn:log V 103 MFC: sys/geom/geom.h 1.97 Add __printflike() to gctl_error(). Approved by: phk Approved by: re (mux) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-19T12:38:08.000000Z K 7 svn:log V 235 Merge ia32_trap.c:1.13, ia64/trap.c:1.124, and powerpc/trap.c:1.62 from HEAD to RELENG_6: Add audit hooks for ppc, ia64 system call paths. Reviewed by: marcel (ia64) Obtained from: TrustedBSD Project Approved by: re (mux) END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-09-19T12:47:13.000000Z K 7 svn:log V 453 Fix the buggy rev. 1.117. dagmembers are only initialized for dlopen'ed dso that are actually loading. If dso a.so depends on b.so, then dlsym with handle from dlopen("b.so") will fail unconditionally. Correct implementation shall use the Obj_Entry.needed list to walk dependencies DAG. Test provided by: jkim Tested (prev. version) by: jkim, Nicolas Blais , h.blanke at chello nl Pointy hat to: kib Approved by: kan (mentor) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-09-19T12:58:40.000000Z K 7 svn:log V 118 With recent MFC the tcp_twclose() can be converted to void, as it is in HEAD. Submitted by: ru Approved by: re (mux) END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-19T13:01:20.000000Z K 7 svn:log V 183 This time, really fix endian bugs accessing ioctl arguments that are passed by value. These are KDSKBMODE, KDSETLED, KDSKBSTATE, and KDSETRAD. Tested on: amd64, sparc64 (demo code) END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-19T13:03:09.000000Z K 7 svn:log V 48 Make typecast expressions comply with style(9). END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-09-19T14:02:30.000000Z K 7 svn:log V 111 Correct multiple vulnerabilities in gzip(1). Security: FreeBSD-SA-06:21.gzip Approved by: re (kensmith, bmah) END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-09-19T14:03:02.000000Z K 7 svn:log V 254 Fix the bug in rev. 1.134. In devfs_allocv_drop_refs(), when not_found == 2 and drop_dm_lock is true, no unlocking shall be attempted. The lock is already dropped and memory is freed. Found with: Coverity Prevent(tm) CID: 1536 Approved by: pjd (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-09-19T14:04:12.000000Z K 7 svn:log V 180 Fix the bug in rev. 1.232. If vfs_suser returned false, coveredvp shall be unlocked only if it really exists. Found with: Coverity Prevent(tm) CID: 1535 Approved by: pjd (mentor) END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-09-19T14:06:20.000000Z K 7 svn:log V 78 Correct multiple vulnerabilities in gzip(1). Security: FreeBSD-SA-06:21.gzip END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-09-19T14:11:35.000000Z K 7 svn:log V 78 Correct multiple vulnerabilities in gzip(1). Security: FreeBSD-SA-06:21.gzip END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-09-19T14:13:53.000000Z K 7 svn:log V 102 Correct multiple vulnerabilities in gzip(1). Security: FreeBSD-SA-06:21.gzip Approved by: so (simon) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-19T15:45:22.000000Z K 7 svn:log V 372 MFC the firewall labeling changes. This fixes kernel panics which occur when the firewall sends out a packet. This can happen for keep alives, or instances when the firewall is configured to return RST or ICMP unreach packets. These panics occured only if MLS, BIBA or LOMAC security policies were loaded. Approved by: re@ (kensmith) Submitted by: mlaier (with changes) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-09-19T16:48:08.000000Z K 7 svn:log V 40 Clean up white spaces and fix style(9). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-19T19:08:52.000000Z K 7 svn:log V 82 MFC: Give the ACPI I/O rman's unique description strings. Approved by: re (bmah) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-19T19:10:08.000000Z K 7 svn:log V 65 MFC: Add a new ddb command 'show lapic'. Approved by: re (bmah) END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-19T19:25:11.000000Z K 7 svn:log V 375 Fix races between tty.c and sessrele() / doenterpgrp() / leavepgrp(). The tty code is still under giant lock, but the session/pgrp release code just used proctree_locks. This explains why moving the proctree_lock in sys/kern/tty.c rev. 1.258 did fix the panics in our SMP systems. This should also fix some race panics with revoked ttys. Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-09-19T22:11:43.000000Z K 7 svn:log V 189 Add missing parentheses to fix a segmentation fault that is easily reproducable with `jot -s " " 400 1 | column -t'. The bug was present in the the original CSRG 'column -t' added in 1989. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2006-09-20T00:10:30.000000Z K 7 svn:log V 82 MFC: don't account ticks of the disabled HTT cores as idle time. Approved by: re END K 10 svn:author V 5 tegge K 8 svn:date V 27 2006-09-20T00:27:02.000000Z K 7 svn:log V 104 Don't try to obtain a reference to a nonexisting (NULL) mount structure in default VOP_GETWRITEMOUNT(). END K 10 svn:author V 5 tegge K 8 svn:date V 27 2006-09-20T00:32:07.000000Z K 7 svn:log V 74 Copy stat information from mount structure before it can change identity. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-09-20T06:47:14.000000Z K 7 svn:log V 59 spell PCIS_CRYPTO_ENTERTAIN properly... MFC after: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-09-20T06:58:02.000000Z K 7 svn:log V 91 Change some variable names and update some comments to help clarify some confusing issues. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-20T07:27:05.000000Z K 7 svn:log V 46 There is no need to set 'sp' to NULL anymore. END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-09-20T07:49:28.000000Z K 7 svn:log V 383 Fix the glitch introduced in rev. 1.93. In softdep_sync_metadata(), switch by worklist type contains two for() loops, for D_INDIRDEP and D_PAGEDEP. On error, these loops are exited by break, where the switch actually shall be leaved. Use goto instead of break to reach the error handling code. Reported by: Peter Holm Reviewed by: tegge Approved by: pjd (mentor) MFC after: 2 weeks END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-20T11:43:36.000000Z K 7 svn:log V 433 Revert back to always using *(int *)arg for now. While this is incorrect, and causes endianness bugs on 64-bit big-endian machines (sparc64), it's the best choice for now, as many of these IOCTLs are used inside the kernel, and bogusly pass an argument as "int *" which results in unaligned access panics on sparc64 when attempting to dereference them via *(intptr_t *). (Several of us are working on a real fix, which is uneasy.) END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2006-09-20T12:09:21.000000Z K 7 svn:log V 89 Don't forget to set internal error message in kvm_nlist(). Approved by: cognet (mentor) END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2006-09-20T12:23:33.000000Z K 7 svn:log V 87 Fix 'interrupt interrupt' -> 'interrupt' in the comment. Approved by: cognet (mentor) END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2006-09-20T12:29:12.000000Z K 7 svn:log V 153 Export tcps_rcvmemdrop available in 'struct tcpstat' with netstat(1). Requested by: Tomasz Pilat Approved by: andre END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-20T13:14:47.000000Z K 7 svn:log V 72 Add missing white space in au_to_exec_{args,env}(). MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-20T13:23:40.000000Z K 7 svn:log V 634 Rather than allocating all buffer memory for the completed BSM record when allocating the record in the first place, allocate the final buffer when closing the BSM record. At that point, more size information is available, so a sufficiently large buffer can be allocated. This allows the kernel to generate audit records in excess of MAXAUDITDATA bytes, but is consistent with Solaris's behavior. This only comes up when auditing command line arguments, in which case we presume the administrator really does want the data as they have specified the policy flag to gather them. Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-20T13:33:41.000000Z K 7 svn:log V 292 Remove MAC_DEBUG label counters, which were used to debug leaks and other problems while labels were first being added to various kernel objects. They have outlived their usefulness. MFC after: 1 month Suggested by: Christopher dot Vance at SPARTA dot com Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-20T13:40:00.000000Z K 7 svn:log V 295 Remove MAC_DEBUG + MPRINTF debugging from System V IPC. This no longer appears to be serving a useful purpose, as it was used during initial development of MAC support for System V IPC. MFC after: 1 month Obtained from: TrustedBSD Project Suggested by: Christopher dot Vance at SPARTA dot com END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-09-20T15:38:37.000000Z K 7 svn:log V 81 In setifcap() only set/unset those capabilities the interface actually supports. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-20T17:04:04.000000Z K 7 svn:log V 96 MFC audit_bsm.c revision 1.13 Convert audit record for lutimes(2) Approved by: re@ (kensmith) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-20T17:07:11.000000Z K 7 svn:log V 1267 MFC audit work which fully implements processing of user supplied records Log: Correct a slight regression which was introduced with the implementation of audit pipes. If the kernel record was not selected for the trail or the pipe, any user supplied record attached to it would be tossed away, resulting in otherwise selected events being lost. - Introduce two new masks: AR_PRESELECT_USER_TRAIL AR_PRESELECT_USER_PIPE, currently we have AR_PRESELECT_TRAIL and AR_PRESELECT_PIPE, which tells the audit worker that we are interested in the kernel record, with the additional masks we can determine if either the pipe or trail is interested in seeing the kernel or user record. - In audit(2), we unconditionally set the AR_PRESELECT_USER_TRAIL and AR_PRESELECT_USER_PIPE masks under the assumption that userspace has done the preselection [1]. Currently, there is work being done that allows the kernel to parse and preselect user supplied records, so in the future preselection could occur in either layer. But there is still a few details to work out here. [1] At some point we need to teach au_preselect(3) about the interests of all the individual audit pipes. Approved by: re@ (kensmith) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-09-20T17:24:20.000000Z K 7 svn:log V 351 Bring the i386 linux mmap code more into line with how linux (2.4.x) behaves. This fixes a lot of test which failed before. For amd64 there are still some problems, but without any testers which apply patches and run some predefines tests we can't do more ATM. Submitted by: Marcin Cieslak (minor fixups by myself) Tested with: LTP END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2006-09-20T18:49:35.000000Z K 7 svn:log V 184 Allow hw.mfi.event_locale/hw.mfi.event_class to be set via loader. If an event doesn't match the criteria then don't print it. Some events are not saved in the log (<0 class events). END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2006-09-20T18:55:16.000000Z K 7 svn:log V 342 Add a new 'bce_mgmt_init_locked' function to enable the minimal parts of the chip to let ASF/IPMI firmware to respond to IPMI after attaching and when the chip is down. David looked at it but could really say what they right minimal config. stuff would be. It's not documented. I figured this out via trial and error. Reviewed by: davidch END K 10 svn:author V 4 jhay K 8 svn:date V 27 2006-09-20T19:10:18.000000Z K 7 svn:log V 259 MFC: 1.67 Make it possible to add an IPv6 host route to a host directly connected. Use something like this: route add -inet6 -interface -llinfo This is usefull for wireless adhoc mesh networks. Approved by: re (hrs) END K 10 svn:author V 4 jhay K 8 svn:date V 27 2006-09-20T19:15:03.000000Z K 7 svn:log V 224 MFC: 1.147 Handle a list of IPv6 src and dst addresses correctly, eg. ipfw add allow ip6 from any to 2000::/16,2002::/16 PR: 102422 (part 3) Submitted by: Andrey V. Elsukov Approved by: re (hrs) END K 10 svn:author V 4 jhay K 8 svn:date V 27 2006-09-20T19:18:03.000000Z K 7 svn:log V 333 MFC: 1.97 Use bzero() to clear the whole ipfw_insn_icmp6 structure in fill_icmp6types(), otherwise this command ipfw add allow ipv6-icmp from any to 2002::1 icmp6types 1,2,128,129 turns into icmp6types 1,2,32,33,34,...94,95,128,129 PR: 102422 (part 1) Submitted by: Andrey V. Elsukov Approved by: re (hrs) END K 10 svn:author V 4 jhay K 8 svn:date V 27 2006-09-20T19:20:19.000000Z K 7 svn:log V 119 MFC: 1.98 Check the length of the ipv4 and ipv6 address lists. It must be less than F_LEN_MASK. Approved by: re (hrs) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-09-20T19:27:11.000000Z K 7 svn:log V 121 style(9) While I'm here add a MFC reminder, I forgot it in the previous commit. Noticed by: ssouhlal MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-09-20T19:45:30.000000Z K 7 svn:log V 145 Search the list of up interfaces provided by "ifconfig -ul" instead of greping for UP in "ifconfig $ifn". This eliminates a dependancy on /usr. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-09-20T19:48:31.000000Z K 7 svn:log V 180 Flushing all IPv4 routes when an interface is removed or unconfigured makes no sense. Remove the undocumented removable_route_flush feature from pccard_ether. X-MFC after: never END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2006-09-20T20:52:11.000000Z K 7 svn:log V 109 Correct 'interrupt interrupt' -> 'interrupt' in the comment. Requested by: jhb Approved by: cognet (mentor) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-20T20:55:02.000000Z K 7 svn:log V 835 Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly. To quote the specification: "When both the -k and -P options are specified, the following header line shall be written (in the POSIX locale): "Filesystem 1024-blocks Used Available Capacity Mounted on\n" - If -P has been specified, check to make sure that -k has not already been specified, if so, simply break instead of clobbering the previous blocksize - Use 1024 instead of 1k to make the header POSIX compliant Reported by: Andriy Gapon Discussed with: bde, ru MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-09-20T21:26:19.000000Z K 7 svn:log V 119 MFC r1.80 Rearrange things so that ARP packets can be filtered or rate limited with IPFW. Approved by: re (kensmith) END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-09-20T22:24:20.000000Z K 7 svn:log V 190 In the spirit of nanoBSD and PicoBSD, add TinyBSD. Submitted by jmeloatfreebsdbrasil,com-br (Jean Milanez Melo) As PicoBSD becomes slightly less useful, TinyBSD fills the gap below nanoBSD. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T01:30:04.000000Z K 7 svn:log V 73 Silence GCC4 warning. strlen, strcmp live in not . END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T01:37:02.000000Z K 7 svn:log V 154 Use __builtin_va_start instead of __builtin_stdarg_start. GCC4 obsoletes the former and __builtin_va_start was present in all GCC version 3.1 and later. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T01:38:58.000000Z K 7 svn:log V 36 Use __builtin_offsetof for GCC 4.1. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T01:41:03.000000Z K 7 svn:log V 44 Do not use int where socklen_t is expected. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-09-21T01:44:52.000000Z K 7 svn:log V 541 Introduce a new method ipv6if which attemptes to figure out if an interface is an IPv6 interface. Use this method to decide if we should attempt to configure an interface with an IPv6 address in pccard_ether. The mechanism pccard_ether uses to do this is unsuited to the task because it assumes the list of interfaces it is passed is the full list of IPv6 interfaces and makes decissions based on that. This is at least a step in the right direction and is probably about as much as we can MFC safely. PR: conf/103428 MFC after: 3 days END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T01:48:47.000000Z K 7 svn:log V 55 Silence GCC4 signed/unsigned pointer mismatch warning. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T02:01:46.000000Z K 7 svn:log V 44 Do not use int where socklen_t is expected. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T02:05:38.000000Z K 7 svn:log V 145 Pass "-Wtraditional -Wno-system-headers" to compiler as two separate arguments. GCC4 was unhappy with them combined, while GCC 3.4 did not care. END K 10 svn:author V 4 emax K 8 svn:date V 27 2006-09-21T02:32:28.000000Z K 7 svn:log V 117 Use socklen_t instead of int32_t where appropriate to pacify new GCC4 warnings. Submitted by: kan MFC after: 1 week END K 10 svn:author V 4 emax K 8 svn:date V 27 2006-09-21T02:41:04.000000Z K 7 svn:log V 89 Get rid of extra const to pacify new GCC4 warnings. Submitted by: kan MFC after: 1 week END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T03:27:07.000000Z K 7 svn:log V 109 Bump __FreeBSD_cc_version in case someone cares for differences between GCC 3.4.4 and GCC 3.4.6 on -current. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:18:46.000000Z K 7 svn:log V 198 Replace system call thr_getscheduler, thr_setscheduler, thr_setschedparam with rtprio_thread, while rtprio system call is for process only, the new system call rtprio_thread is responsible for LWP. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:19:48.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:21:30.000000Z K 7 svn:log V 61 use rtprio_thread system call to get or set thread priority. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:22:46.000000Z K 7 svn:log V 81 remove thr_getscheduler, thr_setscheduler, thr_setschedparam, add rtprio_thread. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:49:36.000000Z K 7 svn:log V 18 sync with master. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-21T04:50:38.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T07:07:33.000000Z K 7 svn:log V 2067 Vendor import of OpenBSM 1.0 alpha 11, with the following change history notes since the last import: OpenBSM 1.0 alpha 11 - Reclassify certain read/write operations as having no class rather than the fr/fw class; our default classes audit intent (open) not operations (read, write). - Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads and writes of sysctls as separate events. Add additional kernel environment and jail events for FreeBSD. - Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued by the kernel audit implementation) so that they can be distinguished. - Disable rate limiting of rotate requests; as the kernel doesn't retransmit a dropped request, the log file will otherwise grow indefinitely if the trigger is dropped. - Improve auditd debugging output. - Fix a number of threading related bugs in audit_control file reading routines. - Add APIs au_poltostr() and au_strtopol() to convert between text representations of audit_control policy flags and the flags passed to auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY). - Add API getacpol() to return the 'policy:' entry from audit_control, an extension to the Solaris file format to allow specification of policy persistent flags. - Update audump to print the audit_control policy field. - Update auditd to read the audit_control policy field and set the kernel policy to match it when configuring/reconfiguring. Remove the -s and -h arguments as these policies are now set via the configuration file. If a policy line is not found in the configuration file, continue with the current default of setting AUDIT_CNT. - Fix bugs in the parsing of large execve(2) arguments and environmental variable tokens; increase maximum parsed argument and variable count. - configure now detects strlcat(), used by policy-related functions. - Reference token and record sample files added to test tree. Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T07:07:33.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r162503, 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 2006-09-21T07:07:34.000000Z K 7 svn:log V 92 This commit was manufactured by cvs2svn to create tag 'openbsm-vendor-OPENBSM_1_0_ALPHA_11'. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T07:12:33.000000Z K 7 svn:log V 142 Resolve conflicts from OpenBSM 1.0 alpha 11 vendor import: we have locally added $FreeBSD$ to /etc configuration files to assist mergemaster. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T07:14:41.000000Z K 7 svn:log V 87 Update config.h for OpenBSM 1.0 alpha 11 import: strlcat is now detected by configure. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T07:27:02.000000Z K 7 svn:log V 172 Merge OpenBSM 1.0 alpha 11 changes into src/sys/bsm and src/sys/security; primarily, add new event identifiers and update trigger names. Obtained from: TrustedBSD Project END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:45:37.000000Z K 7 svn:log V 84 Updated manpages for 3.4.6 release. OK'ed by: kan Obtained from: gcc-3.4.6.tar.bz2 END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:45:37.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r162509, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:52:41.000000Z K 7 svn:log V 53 Prepare to pick up manpages from their new location. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:54:02.000000Z K 7 svn:log V 62 These files live in the doc/ subdir in later releases of GCC. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:54:02.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r162512, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T07:55:28.000000Z K 7 svn:log V 33 Removed these from HEAD as well. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2006-09-21T09:55:43.000000Z K 7 svn:log V 604 atomic_fetchadd_int is used by mb_free_ext(), but it returns the previous value that the "add" effected (In this case we are adding -1), afterwhich we compare it to '0'... to see if we free the mbuf... we should be comparing it to '1'... Note that this only effects when there is contention since there is a first part to the comparison that checks to see if its '1'. So this bug would only crop up if two CPU's are trying to free the same mbuf refcount at the same time. This will happen in SCTP but I doubt can happen in TCP or UDP. PR: N/A Submitted by: rrs Reviewed by: gnn,sam Approved by: gnn,sam END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-09-21T11:08:28.000000Z K 7 svn:log V 446 MFC if_re.c 1.73 to RELENG_6. Make 8139C+ work again which was broken since rev 1.68. Ever since rev 1.68 re(4) checks the validity of link in re_start. But rlphy(4) got a garbled data due to a different bit layout used on 8139C+ and it couldn't report correct link state. To fix it, ignore BMCR_LOOP and BMCR_ISO bits which have different meanings on 8139C+. I think this also make dhclient(8) work on 8139C+. Approved by: re (mux) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T11:20:28.000000Z K 7 svn:log V 267 Merge audit_bsm.c:1.12 from HEAD to RELENG_6: Add AUE_SYSARCH to the list of audit events during BSM conversion to prevent a console warning. Eventually, we will capture more arguments for sysarch. Obtained from: TrustedBSD Project Approved by: re (mux) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T14:06:19.000000Z K 7 svn:log V 252 Merge audit event assignments for 32-bit FreeBSD binary compatibility from HEAD to RELENG_6: syscalls.master:1.63, 1.72, 1.73, 1.75. With this change, 6.x 32-bit binary compatibility will also generate system call audit events. Approved by: re (mux) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T14:06:49.000000Z K 7 svn:log V 35 Regenerate. Approved by: re (mux) END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-21T14:09:26.000000Z K 7 svn:log V 105 Back out rev. 1.258. The real race cause has been fixed in rev. 1.241 of kern_proc.c. Requested by: jhb END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-21T14:21:40.000000Z K 7 svn:log V 172 MFC: 1.23: With minidumps, the dumping partition could be smaller than physical memory, so checking the size of the partition is not necessary. Approved by: re (kensmith) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-09-21T14:29:32.000000Z K 7 svn:log V 148 network_ipv6 also does some interface configuration so require it to run before starting devd so they don't trip over each other. PR: conf/103428 END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T14:40:20.000000Z K 7 svn:log V 37 Use correct type in va_arg argument. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-21T15:14:08.000000Z K 7 svn:log V 485 MFC revision 1.290 Hopefully close up race between the TTY (t_session) subsystem and exit(2) date: 2006/09/13 15:47:53; author: csjp; state: Exp; lines: +2 -2 Back out one of the Giant removals from revision 1.272. Giant was not here to protect the vnode, it was present to synchronize access to TTY session information between exit(2) and the TTY code. While we are here, note that Giant is required for TTY protection. Clue from: bde Discussed with: jhb Approved by: re@ (mux) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T16:12:58.000000Z K 7 svn:log V 352 Use AUE_GETDIRENTRIES instead of AUE_O_GETDENTS and AUE_NULL for a number of directory reading system calls. Respell a mis-spelled event name. Clean up white space/line wraps in a couple of places. Assign event numbers to some new system call entries that have turned up in the list since audit support was added. Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T16:13:16.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T16:18:33.000000Z K 7 svn:log V 91 Use AUE_CREAT instead of AUE_O_CREAT for linux_creat(). Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-21T16:20:38.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 4 emax K 8 svn:date V 27 2006-09-21T17:16:37.000000Z K 7 svn:log V 63 Pacify new GCC4 warnings. Submitted by: kan MFC after: 1 week END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-21T18:16:22.000000Z K 7 svn:log V 64 Do not bypass WARNS machinery by hadcoding -Werror into CFLAGS. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-21T18:56:03.000000Z K 7 svn:log V 142 Fix a sign bug in acpi_release_resource(). acpi_sysres_find() returns != NULL if the specified resource is a sub-alloc of a system resource. END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-09-21T19:14:51.000000Z K 7 svn:log V 193 Move the initialization of the hardware capabilities in em_init_locked() before em_setup_transmit_structures() as it needs this information to properly set up TSO parameters. Reviewed by: jfv END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-09-21T19:27:04.000000Z K 7 svn:log V 112 MFC: rev. 1.116 Document the bluetooth/, rc.d/, security/ and ssh/ etc subdirectories. Approved by: re (bmah) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-09-21T20:35:12.000000Z K 7 svn:log V 528 Connect up a QUEUE FULL event with CAM and adjust openings. Unfortunately, the QUEUE FULL event only tells you Bus && Target. It doesn't tell you lun. In order for the XPT_REL_SIMQ action to work, we have to have a real lun. But which one? For now, just iterate over MPT_MAX_LUNS. Practically speaking, this is only going to be happening for lower quality SAS or SATA drives behind the SAS controller, which means only lun 0, so it's not so bad. Helpful Reminder Nagging from: John Baldwin, Fred Whiteside MFC after: 5 days END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-09-21T22:17:04.000000Z K 7 svn:log V 35 Slight tunups to the config files. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-22T00:52:54.000000Z K 7 svn:log V 53 Add umtx support for 32bit process on AMD64 machine. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-22T00:53:43.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 6 dwhite K 8 svn:date V 27 2006-09-22T01:05:30.000000Z K 7 svn:log V 319 MFC rev 1.25: Avoid an infinite loop in empty_both_buffers() by adding a timeout. This helps systems that don't actually have atkbd controllers, such as the Intel SBX82 blade, boot without device.hints hacks. PR: 94822 Submitted by: Devon H. O'Dell Approved by: re END K 10 svn:author V 3 suz K 8 svn:date V 27 2006-09-22T01:31:22.000000Z K 7 svn:log V 194 fixed a bug that local IPv6 traffic (to an address configured on an interface other than lo0) does not show up properly on any bpf. Reported by: mlaier Reviewed by: gnn, csjp MFC after: 1 week END K 10 svn:author V 3 suz K 8 svn:date V 27 2006-09-22T01:42:22.000000Z K 7 svn:log V 168 fixed a bug that IPv6 packets arriving to stf are not accepted. (a degrade introduced in in6.c Rev 1.61) PR: kern/103415 Submitted by: JINMEI Tatuya MFC after: 1 week END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-22T01:52:26.000000Z K 7 svn:log V 99 Do not declare __evOptMonoTime static in one place and extern in another. GCC4 does not like that. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-09-22T02:29:54.000000Z K 7 svn:log V 553 MFC revision 1.80 su.c MFC revision 1.41 Makefile Log: Integrate audit_submit(3) bits into su. This means that records for successful and failed su attempts will be recorded using the AUE_su event type (login or lo class) if auditing is present in the system. Currently, the records will have a header, subject, text (with the actual diagnostics), a return and trailer token. This should conclude the userspace audit bits for 6.2, there will be a lot more to come in future releases! Reviewed by: rwatson, cperciva Approved by: re@ (mux) END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-09-22T07:02:15.000000Z K 7 svn:log V 390 The sparc64/sparc64/pmap.c implementations of pmap_remove(), pmap_protect(), and pmap_copy() have optimizations for regions larger than PMAP_TSB_THRESH (which works out to 16MB). This caused a panic in tsb_foreach for kernel mappings, since pm->pm_tsb is NULL in that case. This fix teaches tsb_foreach to use the kernel's tsb in that case. Submitted by: Michael Plass MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-09-22T07:16:36.000000Z K 7 svn:log V 115 The fix in revision 1.152 converted in the wrong direction. Fix a typo in a comment. Submitted by: Michael Plass END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-22T08:38:02.000000Z K 7 svn:log V 203 Merge Makefile:1.4 from HEAD to RELENG_6: Hook up au_open.3 man page (and its symlinks), apparently missed during initial OpenBSM merge. Obtained from: TrustedBSD Project Approved by: re (mux) END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-09-22T11:20:10.000000Z K 7 svn:log V 74 MFC the birthtime modification support from -HEAD. Approved by: re (hrs) END K 10 svn:author V 5 marck K 8 svn:date V 27 2006-09-22T11:55:14.000000Z K 7 svn:log V 289 MFC: Clean obsolete reference to the old NMBCLUSTERS kernel option. It seems the last reference (modulo manual pages where such obsoleteness clearly highlighted). Revision Changes Path 1.19 +0 -1 src/release/picobsd/bridge/PICOBSD Approved by: re (kensmith) END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-09-22T12:45:42.000000Z K 7 svn:log V 134 Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in an interrupt context. Obtained from: NetBSD MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-22T13:50:58.000000Z K 7 svn:log V 707 Merge audit_bsm.c:1.14 from HEAD to RELENG_6: Rather than allocating all buffer memory for the completed BSM record when allocating the record in the first place, allocate the final buffer when closing the BSM record. At that point, more size information is available, so a sufficiently large buffer can be allocated. This allows the kernel to generate audit records in excess of MAXAUDITDATA bytes, but is consistent with Solaris's behavior. This only comes up when auditing command line arguments, in which case we presume the administrator really does want the data as they have specified the policy flag to gather them. Obtained from: TrustedBSD Project Approved by: re (mux) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-22T14:59:10.000000Z K 7 svn:log V 48 Fix umtx command order error for freebsd 32bit. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-22T15:04:28.000000Z K 7 svn:log V 62 Add compatible code to let 32bit libthr work on 64bit kernel. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-22T15:05:34.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 kan K 8 svn:date V 27 2006-09-22T15:08:07.000000Z K 7 svn:log V 51 Reduce diffs with file generated by FSF configure. END K 10 svn:author V 3 bms K 8 svn:date V 27 2006-09-22T15:34:16.000000Z K 7 svn:log V 268 Fix a case where socket I/O atomicity is violated due to not dropping the entire record when a non-data mbuf is removed in the soreceive() path. This only triggers a panic directly when compiled with INVARIANTS. PR: 38495 Submitted by: James Juran MFC after: 1 week END K 10 svn:author V 4 ache K 8 svn:date V 27 2006-09-22T17:01:38.000000Z K 7 svn:log V 214 Be more GNU compatible: don't be greedy on the GNU "::" extension when arg separated by whitespace and POSIX_CORRECTLY is set. From POSIX point of view this is unclear situation, so minimal assumption looks right. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-22T18:49:14.000000Z K 7 svn:log V 57 MFC: Add bus_generic_add_child(). Approved by: re (mux) END K 10 svn:author V 4 ache K 8 svn:date V 27 2006-09-22T18:59:03.000000Z K 7 svn:log V 94 Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD v1.21 which just do that. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-22T19:04:51.000000Z K 7 svn:log V 109 MFC: Fix rman_manage_region() to detect overlaps and coallesce adjacent free regions. Approved by: re (mux) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-22T19:19:16.000000Z K 7 svn:log V 528 MFC: Minor overhaul of SMBus support including: - Changing the smbus_bread() function in the smbus interface to return the actual number of bytes read. - Changing the SMB_BREAD ioctl of /dev/smbX to return the actual number of bytes read. - Attaching smb(4) to smbus(4) via an identify routine. - Adding locking to smbus(4). - Fixing the bread() and bwrite() methods of alpm(4), amdpm(4), and viapm(4) to only perform a single transaction. - Fix several buffer overflows with bread() and SMB_BREAD. Approved by: re (mux) END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-09-22T19:50:04.000000Z K 7 svn:log V 34 Update a comment about M_VLANTAG. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-09-22T21:57:52.000000Z K 7 svn:log V 232 Revert r1.80 as the ethernet header was inadvertently stripped from ARP packets. Reimplement this correctly and use a sysctl that defaults to off so the user doesnt get any suprises if ipfw blocks the ARP packet. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-09-22T22:11:29.000000Z K 7 svn:log V 1598 Update the ipmi(4) driver: - Split out the communication protocols into their own files and use a couple of function pointers in the softc that the commuication protocols setup in their own attach routine. - Add support for the SSIF interface (talking to IPMI over SMBus). - Add an ACPI attachment. - Add a PCI attachment that attaches to devices with the IPMI interface subclass. - Split the ISA attachment out into its own file: ipmi_isa.c. - Change the code to probe the SMBIOS table for an IPMI entry to just use pmap_mapbios() to map the table in rather than trying to setup a fake resource on an isa device and then activating the resource to map in the table. - Make bus attachments leaner by adding attach functions for each communication interface (ipmi_kcs_attach(), ipmi_smic_attach(), etc.) that setup per-interface data. - Formalize the model used by the driver to handle requests by adding an explicit struct ipmi_request object that holds the state of a given request and reply for the entire lifetime of the request. By bundling the request into an object, it is easier to add retry logic to the various communication backends (as well as eventually support BT mode which uses a slightly different message format than KCS, SMIC, and SSIF). - Add a per-softc lock and remove D_NEEDGIANT as the driver is now MPSAFE. - Add 32-bit compatibility ioctl shims so you can use a 32-bit ipmitool on FreeBSD/amd64. - Add ipmi(4) to i386 and amd64 NOTES. Submitted by: ambrisko (large portions of 2 and 3) Sponsored by: IronPort Systems, Yahoo! MFC after: 6 days END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-09-22T22:11:30.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 jhb K 8 svn:date V 27 2006-09-22T22:16:20.000000Z K 7 svn:log V 66 Map pmap_{un,}mapbios() to pmap_{un,}mapdev() on 6.x and earlier. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-23T00:27:11.000000Z K 7 svn:log V 16 Enable sigwait. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-23T00:27:53.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-09-23T03:33:17.000000Z K 7 svn:log V 84 MFC: v1.314 pci.c spell PCIS_CRYPTO_ENTERTAIN properly... Approved by: re (bmah) END K 10 svn:author V 3 bms K 8 svn:date V 27 2006-09-23T09:40:02.000000Z K 7 svn:log V 141 Add a sysctl net.link.ether.bridge.hwassmask which lets administrators mask hardware checksums on bridge interface members. PR: kern/57100 END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-09-23T09:58:50.000000Z K 7 svn:log V 167 MFC: sys/geom/label/g_label_ufs.c 1.11 Fix detecting of UFS1 label when mediasize%fragsize != 0. Submitted by: Stanislav Sedov PR: kern/84637 Approved by: re (hrs) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-09-23T10:36:57.000000Z K 7 svn:log V 405 MFC rev. 1.187: - don't reboot() when feed with wrong parameters (and enough permissions) [1] - add support to power off the system [2] - check the linux magic values [3] Submitted by: Marcin Cieslak [1,2] Modelled after: linux man page of the reboot() syscall [3] Found by: LTP testcase "reboot02" [1] Tested with: LTP testcase "reboot02" [1,3] Approved by: re (hrs) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-23T12:30:31.000000Z K 7 svn:log V 224 Add a -a argument to id(1), which causes id(1) to print out process audit properties, including the audit user id. This can be quite helpful in debugging audit problems. Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-09-23T13:42:09.000000Z K 7 svn:log V 358 Stop reloading %fs and %gs, since it causes the base address from GDT to be loaded into FS.base and GS.base, these values of course are not the values set by sysarch() with I386_SET_FSBASE and I386_SET_GSBASE, the change fixed a crash for 32bit libthr after signal handler returned and normal code is accessing thread pointer, for example: movl %gs:8, %eax. END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-23T14:44:14.000000Z K 7 svn:log V 482 If /dev/tty gets opened after your controlling terminal has been revoked you can't call tty_clone afterwords. OpenBSD and NetBSD both fail the open call in that case, so we should do so as well. This can be done in ctty_clone by returning with *dev==NULL. Admittedly this causes open to return ENOENT, instead of ENXIO as on the other BSDs, but this way requires the least touching of code. Submitted by: Nate Eldredge PR: 83375 MFC: 1 week END K 10 svn:author V 4 ache K 8 svn:date V 27 2006-09-23T14:48:31.000000Z K 7 svn:log V 92 Keep compatible parts in sync with OpenBSD v1.21, add some comments. No functional changes. END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-23T14:52:46.000000Z K 7 svn:log V 96 Check for tp->t_refcnt == 0 before doing anything in tty_open(). PR: 103520 MFC after: 1 week END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-23T15:02:39.000000Z K 7 svn:log V 114 MFC rev. 1.20 Fix unpaired sigblock which possibly leaves the process with all signals blocked. Approved by: re END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-09-23T15:34:23.000000Z K 7 svn:log V 149 MFC: src/usr.bin/truncate/truncate.1 r1.33 src/usr.bin/truncate/truncate.c r1.10 through r1.11 Approved by: re (hrs), pjd END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-23T15:43:29.000000Z K 7 svn:log V 133 Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag as found on Solaris. Requested by: ceri MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-09-23T16:26:02.000000Z K 7 svn:log V 129 Merge audit_bsm_token.c:1.8 from HEAD to RELENG_6: Add missing white space in au_to_exec_{args,env}(). Approved by: re (hrs) END K 10 svn:author V 3 bms K 8 svn:date V 27 2006-09-23T16:26:31.000000Z K 7 svn:log V 235 Always set the IP version in the TCP input path, to preserve the header field for possible later IPSEC SPD lookup, even when the kernel is built without 'options INET6'. PR: kern/57760 MFC after: 1 week Submitted by: Joachim Schueth END K 10 svn:author V 3 mbr K 8 svn:date V 27 2006-09-23T17:35:24.000000Z K 7 svn:log V 117 Protect enterpgrp() against another tty/proc race case until the tty locking work has been fixed. MFC after: 1 week END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-09-23T18:42:08.000000Z K 7 svn:log V 120 MFC 1.165: New Dell 1950/2950 SES backplane drops off the bus if you poke at greater then lun 0. Approved by: re (hrs) END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-09-23T18:55:49.000000Z K 7 svn:log V 201 Allow the ASF feature to be disabled via a tunable. On one of my systems, bringing up the bge interface results in a complete system freeze when this feature is enabled. Leave it enabled by default. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-09-23T19:04:01.000000Z K 7 svn:log V 94 Add documentation on the new bge tunable. Also put the tunable docs into a separate section. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-09-23T19:06:54.000000Z K 7 svn:log V 514 MFp4: - Linux returns ENOPROTOOPT in a case of not supported opt to setsockopt. - Return EISDIR in pread() when arg is a directory. - Return EINVAL instead of EFAULT when namelen is not correct in accept(). - Return EINVAL instead of EACCESS if invalid access mode is entered in access(). - Return EINVAL instead of EADDRNOTAVAIL in a case of bad salen param to bind(). Submitted by: rdivacky Tested with: LTP (vfork01 fails now, but it seems to be a race and not caused by those changes) MFC after: 1 week END K 10 svn:author V 3 jmg K 8 svn:date V 27 2006-09-23T19:24:10.000000Z K 7 svn:log V 196 now that we don't automagicly increase the MTU of host routes, when we copy the loopback interface, copy it's mtu also.. This means that we again have large mtu support for local ip addresses... END K 10 svn:author V 3 bms K 8 svn:date V 27 2006-09-23T19:27:39.000000Z K 7 svn:log V 141 Add a sysctl net.link.ether.bridge.hwassmask which lets administrators mask hardware checksums on bridge interface members. PR: kern/57100 END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-09-23T20:45:47.000000Z K 7 svn:log V 2456 MFp4 the sound Google Summer of Code project: The goal was to sync with the OSSv4 API 4Front Technologies uses in their proprietary OSS driver. This was successful as far as possible. The part of the API which is stable is implemented, for the rest there are some stubs already. New system ioctls: - SNDCTL_SYSINFO - obtain audio system info (version, # of audio/midi/ mixer devices, etc.) - SNDCTL_AUDIOINFO - fetch details about a specific audio device - SNDCTL_MIXERINFO - fetch details about a specific mixer device New audio ioctls: - Sync groups (SNDCTL_DSP_SYNCGROUP/SNDCTL_DSP_SYNCSTART) which allow triggered playback/recording on multiple devices (even across processes simultaneously). - Peak meters (SNDCTL_DSP_GETIPEAKS/SNDCTL_DSP_GETOPEAKS) - can query audio drivers for peak levels (needs driver support, disabled for now). - Per channel playback/recording levels - SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL. Note that these are still in name only, just wrapping around the AC97-style mixer at the moment. The next step is to push them down to the drivers. Audio ioctls still under development by 4Front (for which stubs may exist in this commit): - SNDCTL_GETNAME, SNDCTL_{GET,SET}{SONG,LABEL} - SNDCTL_DSP_{GET,SET}_CHNORDER - SNDCTL_MIX_ENUMINFO, SNDCTL_MIX_EXTINFO - (might be documented enough in the OSS releases to work on this. These ioctls cover the cool "twiddle any knob on your card" features.) Missing: - SNDCTL_DSP_COOKEDMODE -- this ioctl is used to give applications direct access to a card's buffers, bypassing the feeder architecture. It's a toughy -- "someone" needs to decide : (a) if this is desireable, and (b) if it's reasonably feasible. Updates for driver writers: So far, only two routines to the channel class (in channel_if.m) are added. One is for fetching a list of discrete supported playback/recording rates of a channel, and the other is for fetching peak level info (useful for drawing peak meters). Interested parties may want to help pushing down SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL into the drivers. To use the new stuff you need to rebuild the sound drivers or your kernel (depending on if you use modules or not) and to install soundcard.h (a buildworld/installworld handles this). Sponsored by: Google SoC 2006 Submitted by: ryanb Many thanks to: 4Front Technologies for their cooperation, explanations and the nice license of their soundcard.h. END