ƒ·228697 158 289 184 107 293 188 240 187 241 274 274 312 210 223 252 237 288 329 394 220 632 212 680 273 185 203 266 198 140 778 279 166 471 156 248 197 213 353 174 165 1092 138 457 165 289 146 113 124 439 338 445 231 632 322 299 382 181 206 248 146 323 1179 227 168 525 157 171 165 203 1572 312 536 220 253 212 417 172 1357 165 263 1281 536 169 1008 459 815 450 1814 136 1174 750 196 672 199 243 164 245 219 414 246 140 207 528 205 205 421 130 159 167 289 132 239 490 161 161 203 144 162 758 592 548 547 271 139 432 123 637 389 213 184 172 820 147 830 350 121 1021 216 463 180 389 414 649 135 129 403 173 742 148 214 444 235 132 360 210 199 109 146 119 K 10 svn:author V 4 bapt K 8 svn:date V 27 2011-12-18T22:04:55.517621Z K 7 svn:log V 195 Reimplement support for the ** (exponent) gnu extension, make it available thought the -g (mimic gnu) option Reviewed by: cognet Approved by: cognet Discussed with: espie@OpenBSD.org (upstream) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T23:54:32.211204Z K 7 svn:log V 92 Repair breakage after r228697: since m4 now uses pow(3), it needs -lm. Pointy hat to: bapt END K 10 svn:author V 5 maxim K 8 svn:date V 27 2011-12-19T05:09:08.013916Z K 7 svn:log V 13 o Sort .Xrs. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2011-12-19T05:50:34.936147Z K 7 svn:log V 198 o Convert IPv6 read-only stats sysctls to the read-write ones. o Teach netstat(1) -z to reset these stats sysctls. PR: bin/153206 Reviewed by: glebuis Sponsored by: NGINX, Inc. MFC after: 1 month END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-12-19T08:50:17.978929Z K 7 svn:log V 97 Unbreak the build after r228697 adding the { } block to make clear which if the else belongs to. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-12-19T12:11:07.332550Z K 7 svn:log V 148 MFC r228457: The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for IPv4 aliases to work since network.subr@197139. Approved by: re (bz) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-19T12:50:12.051826Z K 7 svn:log V 91 Remove if_carp.ko. /boot/kernel should be upgraded atomically. Requested by: netchild, bz END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-12-19T12:51:12.908685Z K 7 svn:log V 149 MFC r228457: The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for IPv4 aliases to work since network.subr@197139. Approved by: re (bz) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-19T13:12:37.766293Z K 7 svn:log V 177 Merge r228472. For the sake of POLA for the whole 9.x timeline add compatibility support for specifing IPv4 aliases in rc.conf without the "inet" keyword. Approved by: re (bz) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-19T13:14:57.367246Z K 7 svn:log V 177 Merge r228472. For the sake of POLA for the whole 9.x timeline add compatibility support for specifing IPv4 aliases in rc.conf without the "inet" keyword. Approved by: re (bz) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T13:35:44.791443Z K 7 svn:log V 219 Unfortunately, clang gives warnings about sendmail code that cannot be turned off yet. Since this is contrib code, and we don't really care about the warnings, just turn make them non-fatal for now. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T13:38:28.599051Z K 7 svn:log V 117 In usr.bin/vacation/Makefile, fix a typo in the comment about clang warnings. Spotted by: arundel MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-12-19T14:53:42.255698Z K 7 svn:log V 125 Add missing unlock of USB controller's lock, when doing shutdown, suspend and resume. Suggested by: avg @ MFC after: 3 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-19T14:55:14.358987Z K 7 svn:log V 159 opensolaris compat: fix vcmn_err so that panic(9) produces a proper message ... instead of just a verbatim format string. Reviewed by: pjd MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-12-19T15:35:05.812334Z K 7 svn:log V 139 Add code to wait for USB shutdown to be executed at system shutdown. Add sysctl which can be used to skip this waiting. MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T15:46:15.713979Z K 7 svn:log V 195 Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignment warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and there they can be safely ignored. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T17:32:54.690348Z K 7 svn:log V 236 In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison against icmp6_hdr::icmp6_type is done incorrectly. (This fix has already been applied upstream, but we do not have the latest version of tcpdump.) MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T18:08:31.351348Z K 7 svn:log V 301 In usr.sbin/timed, fix several issues with printf formats: - Cast time_t's to long, and print them with %ld. - Print ptrdiff_t's with %td. - Print ssize_t's and size_t's with %zd and %zu. - Print int32_t's with %d. Also, replace some int variables with the more appropriate size_t. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-19T18:55:13.302698Z K 7 svn:log V 127 Add a TASK_INITIALIZER() macro that can be used to statically initialize a task structure. Reviewed by: gj MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-12-19T19:00:34.249992Z K 7 svn:log V 535 TCP header size is represented by number of 32bits words. Fix the TCP header size calculation such that makes TSO engine cache all header(ethernet/IP/TCP) bytes to its internal buffer. While here, remove extra pull up for TCP payload. Unlike some em(4) controllers, fxp(4) does not require such work around for TSO. The two limitations are ethernet/IP/TCP header size should be less than or equal to the size of controller's internal buffer(80 bytes) and these header information should be found in the first fragment of a TSO frame. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-12-19T19:02:36.443611Z K 7 svn:log V 115 Increase wait time for OP_TCPSTART command processing. It seems 100us is not enough to ensure prefetch unit work. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-19T20:01:21.516621Z K 7 svn:log V 587 ule: ensure that batch timeshare threads are scheduled fairly With the previous code, if the range of priorities for timeshare batch threads was greater than RQ_NQS, then the threads with low priorities in the part of the range above RQ_NQS would be scheduled to the run-queues as if they had high priorities at the beginning of the range. In other words, threads with a nice level of +N could be scheduled as if they had a nice level of -M. Reported by: George Mitchell Reviewed by: jhb Tested by: George Mitchell (earlier version) MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T20:29:50.887982Z K 7 svn:log V 180 Some people pointed out long is 32-bit on some arches, while time_t is 64-bit, so better cast time_t to intmax_t, and use the appropriate printf format strings. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T20:33:53.375358Z K 7 svn:log V 93 Fix r228719; when you use intmax_t, you need stdint.h. Pointy hat to: dim MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T20:38:26.257200Z K 7 svn:log V 110 In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-19T20:44:44.961616Z K 7 svn:log V 173 In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters to int, cast time_t to intmax_t, and use the corresponding printf length modifier. MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-12-19T23:39:08.697106Z K 7 svn:log V 100 Make the recently added "no_shutdown_wait" sysctl writeable. Suggested by: avg @ MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-12-20T00:16:52.801484Z K 7 svn:log V 44 Add comments in NOTES to say what viawd is. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-20T00:33:56.153287Z K 7 svn:log V 682 Remove these locks - they aren't strictly needed and cause measurable performance issues. * Access to the GPIO bus is already locked by requesting and releasing the bus - thus the lock isn't really needed for each GPIO pin change. * Don't lock and unlock the GPIO bus for -each- i2c access - the i2c bus code is already doing this by calling the upper layer callback to request/release the bus. This thus locks the bus for the entirety of the transaction. TODO: * Further verify that everything is correctly requesting/ releasing the GPIO bus. * Look at how to lock the GPIO pin configuration stuff, potentially by locking/unlocking the bus at the gpiobus layer. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T02:00:27.860549Z K 7 svn:log V 186 Cast some vendor-specific spell on VIA VT1708S codecs to: - make analog input loopback work; - get access to the mics boost controls. Sponsored by: iXsystems, Inc. MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T02:42:53.039926Z K 7 svn:log V 74 Oops, list of IDs is not sequential. Have to list all of them expoicitly. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-20T02:49:01.695338Z K 7 svn:log V 375 IIC bitbang changes - prepare to make the bit delay configurable; debug print changes. * Right now the delay is hard coded at 10uS. This is a bit long when doing lots of periodic i2c transactions. So create a 'udelay' parameter and initialise it to 10. This can be tuned later. * Add a newline after a transaction finishes, so the debugging output isn't so horrible. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-20T03:25:11.135455Z K 7 svn:log V 61 Fix broken locking that I introduced in the previous commit. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2011-12-20T11:13:44.243347Z K 7 svn:log V 150 Add binding support to libradius(3). Submitted by: Sergey Matveychuk Approved by: ae (mentor) MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T11:40:22.890491Z K 7 svn:log V 104 Add eventtimers(9) man page, describing related KPIs. Sponsored by: iXsystems, Inc. MFC after: 1 month END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-20T12:34:16.513113Z K 7 svn:log V 116 - Cover pfsync callouts deletion with PF_LOCK(). - Cover setting up interface between pf and pfsync with PF_LOCK(). END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-12-20T12:34:17.499257Z K 7 svn:log V 261 Small cleanups to panic() prototype. - Let panic() use _Noreturn and __printflike() instead of GCC-specific attributes. - Remove prototype from ffs_subr.c and let it include ffs_extern.h. - Forward declare struct inode to make ffs_extern.h not depend on it. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-20T13:32:56.663413Z K 7 svn:log V 78 - Fix examples to show new CARP style. - Remove OpenBSDisms, add FreeBSDisms. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T13:49:52.244161Z K 7 svn:log V 73 Add apic(4) man page, now mostly to cover its event timer functionality. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-20T13:53:31.992160Z K 7 svn:log V 995 Restore a feature that was present in 5.x and 6.x, and was cleared in 7.x, 8.x and 9.x with pf(4) imports: pfsync(4) should suppress CARP preemption, while it is running its bulk update. However, reimplement the feature in more elegant manner, that is partially inspired by newer OpenBSD: - Rename term "suppression" to "demotion", to match with OpenBSD. - Keep a global demotion factor, that can be raised by several conditions, for now these are: - interface goes down - carp(4) has problems with ip_output() or ip6_output() - pfsync performs bulk update - Unlike in OpenBSD the demotion factor isn't a counter, but is actual value added to advskew. The adjustment values for particular error conditions are also configurable, and their defaults are maximum advskew value, so a single failure bumps demotion to maximum. This is for POLA compatibility, and should satisfy most users. - Demotion factor is a writable sysctl, so user can do foot shooting, if he desires to. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T14:12:50.681244Z K 7 svn:log V 46 Remove extra "and" left from earlier version. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-20T15:19:29.116458Z K 7 svn:log V 364 Allow boot0cfg to force a PXE boot via boot0 on the next boot. - Fix boot0 to check for PXE when using the pre-set setting for the preferred slice. - Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument instead of a number for the 's' option as a way to select PXE as well. Submitted by: Andrew Boyer aboyer averesystems MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T15:19:33.057728Z K 7 svn:log V 73 s/LAPIC/local APIC/ to closer follow Intel documents. Submitted by: jhb END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-20T15:50:54.762015Z K 7 svn:log V 196 Many style fixes. Remove C99 initializers: they don't help in this case. Set errno to 0 before strtoll() (from NetBSD). PR: 151850 Suggested by: bde Approved by: jhb (Mentor) MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T17:10:34.762905Z K 7 svn:log V 54 Add timecounters(4) man page alike to eventtimers(4). END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T17:32:13.879285Z K 7 svn:log V 21 Fix copy-paste typo. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-20T17:44:25.043291Z K 7 svn:log V 32 Add some more cross-references. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T20:02:07.586040Z K 7 svn:log V 347 Merge vendor revision 3723: Fixes extraction of Zip entries that use length-at-end without specifying either the compressed or uncompressed length. In particular, fixes bsdtar extraction of such files. Obtained from: http://code.google.com/p/libarchive Reported by: Patrick Lamaiziere (freebsd-stable@) MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T20:06:33.343569Z K 7 svn:log V 246 Update libarchive, tar and cpio to version 2.8.5 The following additional vendor revisions are applied: Revision 3740: Use archive_clear_error() to clear the error markers. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-12-20T20:16:12.759909Z K 7 svn:log V 352 The Xen pmap doesn't support superpages. So, there is no point in it initializing structures, like the pv table, that are only used to implement superpages. In fact, some of the unnecessary code in pmap_init() was actually doing harm. It was preventing the kernel from booting on virtual machines with more than 768 MB of memory. Tested by: sbruno END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-12-20T20:29:45.650404Z K 7 svn:log V 138 The size passed to kmem functions should be in terms of bytes and not pages. Avoid an out-of-bounds array access. Reviewed by: cperciva END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T20:34:02.753401Z K 7 svn:log V 540 Sync libarchive with vendor branch release/2.8: 3730: Fix issue 174 (Windows path names, not relevant for FreeBSD) 3734: Merge r1989: archive_clear_error should set errno to 0. 3735: Merge r3247 from trunk: Clear errors before returning from archive_read_support_format_all() 3799: Check the position before dereferencing the pointer. This avoids dereferencing one byte past the end of a string 3824: Merge r3823 from trunk for issue 199 (hang in iso9660 reading) Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T20:36:00.646889Z K 7 svn:log V 230 Sync bsdtar with vendor branch release/2.8: Revision 3769: Merge r3744 from trunk: Correctly return errors when reading an archive using @archive extension. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T20:37:17.558710Z K 7 svn:log V 207 Sync bsdcpio with vendor branch release/2.8: Revision 3770: Merge r3768 from trunk: Fix typo in dev/ino verification for cpio formats. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-20T20:39:00.757005Z K 7 svn:log V 289 Change the type of real_dev_bsize variable from long to u_int. The DIOCGSECTORSIZE takes u_int * as an argument, using long * causes failures on big-endian targets. Diagnosed by: Michiel Boland PR: sparc64/163460 Tested by: pho (x86), flo (sparc64) MFC after: 1 week END K 10 svn:author V 3 jgh K 8 svn:date V 27 2011-12-20T21:16:49.848835Z K 7 svn:log V 89 Add myself with mentor relationships Add tabthorpe -> crees Approved by: crees (mentor) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-20T22:47:56.893188Z K 7 svn:log V 114 Vendor import of libarchive (release/2.8, r3824) Obtained from: http://libarchive.googlecode.com/svn/release/2.8 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-20T22:56:13.298720Z K 7 svn:log V 152 - Add restrict keyword to glob(3) PR: kern/161958 Submitted by: Henning Petersen Approved by: jilles MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-20T22:56:44.510580Z K 7 svn:log V 51 - Fix style(9) bugs in glob.c Approved by: jilles END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-21T01:58:35.119533Z K 7 svn:log V 230 Clean an inconsistency with -ffinite-math-only. Backported from the gcc-4_3-branch, revision 118001, under the GPLv2. This issue was also fixed in Apple's gcc. PR: 157025 Reviewed by: mm Approved by: jhb (mentor) MFC: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-12-21T02:45:51.367119Z K 7 svn:log V 1080 jwd@ reported a problem via email where the old NFS client would get a reply of EEXIST from an NFS server when a Mkdir RPC was retried, for an NFS over UDP mount. Upon investigation, it was found that the client was retransmitting the Mkdir RPC request over UDP, but with a different xid. As such, the retransmitted message would miss the Duplicate Request Cache in the server, causing it to reply EEXIST. The kernel client side UDP rpc code has two timers. The first one causes a retransmit using the same xid and socket and was set to a fixed value of 3seconds. (The default can be overridden via CLSET_RETRY_TIMEOUT.) The second one creates a new socket and xid and should be larger than the first. However, both NFS clients were setting the second timer to nm_timeo ("timeout=" mount argument), which defaulted to 1second, so the first timer would never time out. This patch fixes both NFS clients so that they set the first timer using nm_timeo and makes the second timer larger than the first one. Reported by: jwd Tested by: jwd Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-12-21T08:46:08.354428Z K 7 svn:log V 129 Fix for race against user-space applications trying to change the configuration on USB HUBs. PR: kern/163091 MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T09:08:41.520023Z K 7 svn:log V 77 Set svn:eol-style property to native for all text files in vendor/libarchive END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-21T10:52:17.890221Z K 7 svn:log V 432 adapt usb transfer code for SCHEDULER_STOPPED When SCHEDULER_STOPPED() is true the mtx_owned() call may return an unexpected and thus meaningless result. So, in the code paths that can be reached when SCHEDULER_STOPPED() is true we need to protect the mtx_owned() calls with the SCHEDULER_STOPPED() checks and ensure that an appropriate branch is taken in each case. Reviewed by: hselasky MFC after: 3 months X-MFC after: r228424 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T11:09:24.249676Z K 7 svn:log V 66 Copy libarchive from vendor branch to contrib MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T11:11:51.969514Z K 7 svn:log V 80 Add FREEBSD-Xlist and FREEBSD-upgrade to contrib/libarchive MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T11:13:29.252953Z K 7 svn:log V 74 Set svn:keywords to FreeBSD=%H for contrib/libarchive MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T11:18:49.458333Z K 7 svn:log V 111 Strip unnecessary files and directories from contrib/libarchive according to FREEBSD-Xlist MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-21T11:49:33.099317Z K 7 svn:log V 1478 ukbd: adjust for SCHEDULER_STOPPED() and overhaul locking code This change is designed to let USB keyboard work in the panic context with stop_scheduler_on_panic=1. Most of change consists of removing mtx_owned() checks where they can be easily avoided. Some additional lock cleanup is performed along the way. A list of the smaller changes: - newbus methods should be executed with Giant already held, just assert this - kbd methods called in the non-polling context should be executed with Giant already held, just assert this - Giant is recursive, so we should just take it where we must have it, without redundant checks if we already have it - thanks to recent syscons changes we don't need to go through the hoops to detect if kernel is going to poll us; polling mode is now clearly separated from non-polling mode - at present the polling mode can be entered by only one thread - document special cases in greater detail Please note that the ukbd code and underlying USB code still lve dangerously in the kdb context by trying to obtain various locks including the Giant. If any of those locks are already held by the stopped threads, then the things would blow up. Another limitation of the ukbd driver is that it is detached before a system enters the halt state. With this commit we can enable kern.stop_scheduler_on_panic by default, that should not introduce any regressions. Reviewed by: hselasky MFC after: 3 months X-MFC after: r228424, r228760 END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-12-21T12:07:14.819844Z K 7 svn:log V 217 - Remove a GCC-specific compiler flag that was added before to eliminate some warnings but at the moment does not seem to be necessary. Submitted by: arundel (via private mail) Tested by: arundel MFC after: 1 week END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-21T12:21:22.014218Z K 7 svn:log V 443 sc_cngrab: switch to console vty when possible In the future we may want to perform the switch even if the console is currently in the graphics mode by trying to reset the video adapter first (e.g. by executing vesa/vga bios post). That would probably require some sort of a one-way flag as returning the control of the console back to the interrupted application most likely would result in a mess. Reviewed by: emaste MFC after: 2 months END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-21T12:39:08.935854Z K 7 svn:log V 123 Provide ABI compatibility shim to enable configuring of addresses with ifconfig(8) prior to r228571. Requested by: brooks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T12:59:09.291821Z K 7 svn:log V 161 Remove config_freebsd.h and add to FREEBSD-Xlist This file is common for libarchive, cpio and tar and is going to be located outside of contrib (lib/libarchive) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T14:58:44.046975Z K 7 svn:log V 120 Remove libarchive/archive_entry_copy_bhfi.c and libarchive/mtree.5 Add these files to FREEBSD-Xlist MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:02:37.003239Z K 7 svn:log V 325 Partial merge of r224691 from lib/libarchive: Add compatibility for ISO images created with unfixed makefs that violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:06:01.228498Z K 7 svn:log V 81 Add missing integer casts to comparsions in libarchive read. MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:18:52.346552Z K 7 svn:log V 1264 Merge FreeBSD changes from lib/libarchive to contrib/libarchive: r204111 (uqs): Fix common misspelling of hierarchy r208027 (uqs): mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. r208291 (uqs): mdoc: consistently spell our email addresses r209031 (uqs): mdoc nitpicking: the title argument shall be uppercase r214822 (kientzle): Clarify the naming: Methods that free an object should be called "free". Retain the old "finish" names to preserve source compatibility for now. r214905 (kientzle): If the Zip reader doesn't see a PK signature block because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive r216258 (kientzle): Don't write data into an empty "file." In particular, this check avoids a warning when extracting directory entries from certain GNU tar archives that store directory contents. r225525 (kientzle): Fix cpio on ARM. MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:20:17.139380Z K 7 svn:log V 74 Add $FreeBSD$ to libarchive_fe headers where missing. MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:22:05.913404Z K 7 svn:log V 171 Merge FreeBSD changes from usr.bin/tar to contrib/libarchive/libarchive_fe: r213469: Recognize both ! and ^ as markers for negated character classes. MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:30:49.904605Z K 7 svn:log V 1188 Merge FreeBSD changes from usr.bin/tar to contrib/libarchive/tar: r204111 (uqs): Fix common misspelling of hierarchy r207786 (kientzle): Various manpage updates, including many long-option synonyms that were previously undocumented. r208028 (uqs): mdoc: move remaining sections into consistent order This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. r209152 (kientzle): If the compressed data is larger than the uncompressed, report the compression ratio as 0% instead of displaying nonsense triggered by numeric overflow. This is common when dealing with uncompressed files when the I/O blocking causes there to be small transient differences in the accounting. r210720 (joel): Fix typos. r223541 (kientzle): If there is a read error reading Y/N confirmation from the keyboard, exit immediately with an error. If there is an error opening or reading a file to put into the archive, set the return value for a deferred error exit. r223573 (kientzle): The --newer-than test should descend into old directories to look for new files. r226636 (kientzle): Typo from previous commit. Urgh. r224153 (mm, partial): Update bsdtar.1 manpage MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-21T15:33:13.296722Z K 7 svn:log V 444 Merge FreeBSD changes from usr.bin/cpio to contrib/libarchive/cpio: r204111 (uqs): Fix common misspelling of hierarchy r211054 (kientzle); Fix -R when used with -p. Previously, the uname and gname weren't overwritten, so the disk restore would use those to lookup the original uid/gid again. Clearing the uname and gname prevents this. r212263 (gjb): Fix typo in bsdcpio manual: s/libarchive_formats/libarchive-formats MFC after: 2 weeks END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-12-21T15:40:26.696856Z K 7 svn:log V 73 pkgng's pkg delete needs -y for automatic operation. Requested by: bapt END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T15:59:18.404113Z K 7 svn:log V 915 Start selectively disabling a few kernel build warnings for clang, since there are some places in the kernel where fixing them is too disruptive, or where there is a false positive. In this case, disable -Wconstant-conversion for two aic7xxx-related files, as they get the following warning on i386 (and possibly on other 32-bit arches): sys/dev/aic7xxx/ahc_pci.c:112:10: warning: implicit conversion from 'long long' to 'bus_addr_t' (aka 'unsigned int') changes value from 549755813887 to 4294967295 [-Wconstant-conversion] ? 0x7FFFFFFFFFLL ~~^~~~~~~~~~~~~~ This is a false positive, since the code only passes the 0x7FFFFFFFFFLL argument, if sizeof(bus_addr_t) is larger than 4 (e.g. on 64 bit arches, or when PAE is enabled on i386). The code could be refactored to do compile-time checks, but that is more disruptive. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-21T16:36:07.085836Z K 7 svn:log V 366 Update libstdc++ with small updates from the latest rev. (135556) from the gcc 4.2 branch. The libraries in the gcc-4_2-branch remained under the LGPLv2. The changes can be reproduced with the following command: svn diff svn://gcc.gnu.org/svn/gcc/branches/gcc-4_2-branch/libstdc++-v3 -r 127959:135556 Reviewed by: mm Approved by: jhb (mentor) MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T16:38:37.905375Z K 7 svn:log V 722 When building with clang, disable -Warray-bounds for sys/dev/asr/asr.c, as it gets the following warning: sys/dev/asr/asr.c:1836:29: warning: array index of '58' indexes past the end of an array (that contains 1 element) [-Warray-bounds] while ((len > 0) && (sg < &((PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE) ^ sys/dev/asr/i2omsg.h:934:8: note: array 'Simple' declared here I2O_SGE_SIMPLE_ELEMENT Simple[1]; ^ This is a false positive, since I2O_SG_ELEMENT::Simple is not declared as a C99 flexible array member, but in the old (but more portable) way. At run-time, the proper number of array elements will hopefully have been allocated. MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-12-21T16:47:01.193118Z K 7 svn:log V 358 Make the RTC checking for QEMU even more aggressive. At work, where we use use KVM+QEMU, we notice that pxeboot is pratically impossible because of network timeouts. This is due to the fact that the RTC code makes aggressive jumps. Two RTC reads does not seem to be sufficient. Change the code to check for 8 identical RTC values. Sponsored by: Kumina bv END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T17:01:13.178488Z K 7 svn:log V 1720 When building with clang, disable -Wshift-count-negative and -Wshift-count-overflow for sys/dev/ath/ath_hal/ah_regdomain.c, as it gets multiple instances of the following warnings: In file included from sys/dev/ath/ath_hal/ah_regdomain.c:99: sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:69:15: warning: shift count is negative [-Wshift-count-negative] .chan11a = BM4(F1_4950_4980, ^~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:41:4: note: expanded from: W1(_fa) | W1(_fb) | W1(_fc) | W1(_fd) } ^ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:34:45: note: expanded from: (((_a) > 63 && (_a) < 128 ? (((uint64_t) 1)<<((_a)-64)) : (uint64_t) 0)) ^ ~~~~~~~~~ and: In file included from sys/dev/ath/ath_hal/ah_regdomain.c:99: sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:629:15: error: shift count >= width of type [-Werror,-Wshift-count-overflow] .chan11a = BM4(W2_5260_5320, ^~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:40:34: note: expanded from: { W0(_fa) | W0(_fb) | W0(_fc) | W0(_fd), \ ^ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:32:44: note: expanded from: (((_a) >= 0 && (_a) < 64 ? (((uint64_t) 1)<<(_a)) : (uint64_t) 0)) ^ ~~~~ Both warnings are false positives, caused by LLVM PR 10030. For global initializations, clang fails to detect that the branch of the ternary operator causing the warning is dead. MFC after: 1 week END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-12-21T17:03:30.529408Z K 7 svn:log V 45 Follow style(9) more closely in the example. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T17:16:43.492273Z K 7 svn:log V 1080 Fix shift overflow problem in sys/dev/ath/ath_hal/ar5210/ar5210_power.c and sys/dev/ath/ath_hal/ar5211/ar5211_power.c: sys/dev/ath/ath_hal/ar5210/ar5210_power.c:36:3: warning: signed shift result (0x200000000) requires 35 bits to represent, but 'int' only has 32 bits [-Wshift-overflow] OS_REG_RMW_FIELD(ah, AR_SCR, AR_SCR_SLE, AR_SCR_SLE_ALLOW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_internal.h:472:42: note: expanded from: (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ^ sys/dev/ath/ah_osdep.h:127:49: note: expanded from: (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val)) ^~~~ The AR_SCR_SLE_{WAKE,SLP,NORM} values are pre-shifted in ar5210reg.h and ar5211reg.h, while they should be unshifted, like in ar5212reg.h. Then, when the OS_REG_RMW_FIELD() macro shifts them again, the values will overflow, becoming effectively zero. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T17:36:45.020201Z K 7 svn:log V 657 Fix enum conversion problems in sys/dev/ath/ath_hal/ar5212/ar5212_misc.c and sys/dev/ath/ath_hal/ar5416/ar5416_misc.c: sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:577:24: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_EINVAL; ~~~~~~ ^~~~~~~~~~ and: sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:164:9: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_OK; ~~~~~~ ^~~~~~ In both cases, enums HAL_BOOL and HAL_STATUS are mixed up. MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-21T17:51:49.125269Z K 7 svn:log V 100 - Remove extra space Submitted by: Davide Italiano Approved by: brucec END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-21T20:10:11.860754Z K 7 svn:log V 579 Restore the sysctl changes from 223676 and 227309 lost in the previous import: - Add read-only sysctls for all of the tunables supported by the igb and em drivers. - Make the per-instance 'enable_aim' sysctl truly per-instance by having it change a per-instance variable (which is used to control AIM) rather than having all of the per-instance sysctls operate on a single global variable. While here, restore the previously existing hw.igb.rx_processing_limit tunable as it is very useful to be able to set a default tunable that applies to all adapters in the system. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T20:23:03.013027Z K 7 svn:log V 106 Amend r228779 by also disabling -Wconstant-conversion warnings for the aic7xxx module. MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-21T20:27:41.305880Z K 7 svn:log V 147 - Remove extraneous null ptr deref checks - Fix memory leak Submitted by: Slono Slono Approved by: jhb MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-21T20:47:24.753790Z K 7 svn:log V 69 - Fix style(9) bug I introduced in the last commit Approved by: jhb END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-12-21T21:39:30.098345Z K 7 svn:log V 148 Remove redundant sourcings of portbuild.conf that were stepping on values from the build-specific portbuild.conf, then clean up the resulting mess. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-21T22:13:50.931520Z K 7 svn:log V 126 Amend r228783 by also disabling -Wshift-count-negative -Wshift-count-overflow warnings for the ath module. MFC after: 1 week END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-12-21T22:49:16.264648Z K 7 svn:log V 316 Reduce NFPI by half to keep the default number of inodes the same with the now default 32K/4K filesystem the same as the number of inodes in the previously default 16K/2K filesystem. PR: bin/16265 Reported by: Olivier Cochard-Labbe MFC: 4 weeks (9 is the only affected branch) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-12-22T03:36:54.076431Z K 7 svn:log V 150 - document the -l option to usermod PR: docs/161588 Submitted by: "Luchesar V. ILIEV" Approved by: gjb MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-12-22T06:31:29.235976Z K 7 svn:log V 46 Discarding local array based on return values END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-22T08:42:07.852686Z K 7 svn:log V 115 Use contrib sources for building libarchive, tar and cpio. Make "make test" fully operational. MFC after: 2 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-12-22T09:36:37.379123Z K 7 svn:log V 436 Add placeholder code for prepending pathnames to tftp. At work we have a single tftp server that provides installation data for a variety of operating systems. I'd rather place our FreeBSD-related files in a subdirectory, instead of the root. It would be nice if this setting could be run-time configurable, but at least in our specific case, this is not possible, as pxeboot is chainloaded through pxelinux. Sponsored by: Kumina bv END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-22T13:47:36.223194Z K 7 svn:log V 112 Revert r228785. We'll need to work around the warnings in another way. Requested by: adrian MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-22T14:09:08.377607Z K 7 svn:log V 112 Revert r228786. We'll need to work around the warnings in another way. Requested by: adrian MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-22T15:03:48.408271Z K 7 svn:log V 328 Remove -mfancy-math from LIB32CPUFLAGS for amd64. It has been default for our gcc since more than three years (see r181534, which is also in stable/9 and stable/8). This flag used to be for the benefit of the old in-kernel math emulator, which was removed more than eight years ago. Pointed out by: arundel MFC after: 1 week END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-12-22T15:13:32.539071Z K 7 svn:log V 34 Correctly spell my email address. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-12-22T15:33:41.276088Z K 7 svn:log V 65 put back netmap support, deleted by mistake in a previous commit END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-22T16:01:10.347810Z K 7 svn:log V 75 Use TASK_INITIALIZER() for dev_dtr_task rather than a dedicated SYSINIT(). END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-22T16:16:12.463812Z K 7 svn:log V 196 Disable -Wconstant-conversion warnings for the aic7xxx module in a more fine-grained way: only add the option for the specific .c files that need them, like via sys/conf/files. MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-12-22T16:19:51.147819Z K 7 svn:log V 38 - Merge some recent changes from HEAD END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-12-22T16:36:08.519706Z K 7 svn:log V 142 We never wound up using specialize portbuild.conf files at the branch/builds/ directory, but instead at branch/builds/buildid. Reflect that. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-22T16:40:35.421543Z K 7 svn:log V 397 Make cd driver to handle Audio CDs, reporting their 2352 bytes sectors to GEOM and using READ CD command for reading data, same as acd driver does. Audio CDs identified by checking respective bit of the control field of the first track in TOC. This fixes bunch of error messages during boot (GEOM taste) with Audio CD inserted and allows to grab Audio CD image using just dd. MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-22T18:10:15.102512Z K 7 svn:log V 69 Merge upstream r509: don't log an error in the common case (ENOENT). END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-22T18:12:51.353920Z K 7 svn:log V 69 Merge upstream r509: don't log an error in the common case (ENOENT). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T18:31:47.188620Z K 7 svn:log V 106 In FreeBSD we always have bpf(4) API, either real or stub. No need in detecting presense of 'device bpf'. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T18:48:21.314092Z K 7 svn:log V 48 Use a better log message for master down event. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T18:51:35.870828Z K 7 svn:log V 66 We really mean MTU of the real interface here, not of our pseudo. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T18:56:27.549944Z K 7 svn:log V 661 Merge couple more fixes from OpenBSD to bulk processing: revision 1.118 date: 2009/03/23 06:19:59; author: dlg; state: Exp; lines: +8 -6 wait an appropriate amount of time before giving up on a bulk update, rather than giving up after a hardcoded 5 seconds (which is generally much too short an interval for a bulk update). pointed out by david@, eyeballed by mcbride@ revision 1.171 date: 2011/10/31 22:02:52; author: mikeb; state: Exp; lines: +2 -1 Don't forget to cancel bulk update failure timeout when destroying an interface. Problem report and fix from Erik Lax, thanks! Start a brief note of revisions merged from OpenBSD. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T19:05:58.840931Z K 7 svn:log V 495 Merge from OpenBSD: revision 1.120 date: 2009/04/04 13:09:29; author: dlg; state: Exp; lines: +5 -5 use time_uptime instead of time_second internally. time_uptime isnt affected by adjusting the clock. revision 1.175 date: 2011/11/25 12:52:10; author: dlg; state: Exp; lines: +3 -3 use time_uptime to set state creation values as time_second can be skewed at runtime by things like date(1) and ntpd. time_uptime is monotonic and therefore more useful to compare against. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-22T19:09:55.283188Z K 7 svn:log V 451 Merge from OpenBSD: revision 1.122 date: 2009/05/13 01:01:34; author: dlg; state: Exp; lines: +6 -4 only keep track of the number of updates on tcp connections. state sync on all the other protocols is simply pushing the timeouts along which has a resolution of 1 second, so it isnt going to be hurt by pfsync taking up to a second to send it over. keep track of updates on tcp still though, their windows need constant attention. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-22T21:54:53.401123Z K 7 svn:log V 451 Use the correct types when calling the decompression mask function. There's currently no public code which uses this feature and the current reference driver doesn't enable this feature at all. It's possible it was used by a previous version of the driver and that indeed it should return HAL_STATUS; but at this point I'm happy to require that they complain and submit a patch. This was found by LLVM compile-time type checking. Submitted by: dim END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-22T23:40:52.330148Z K 7 svn:log V 178 Disable various warnings for the ath module in a more fine-grained way: only add the option for the specific .c files that need them, like via sys/conf/files. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-22T23:50:31.939812Z K 7 svn:log V 47 Update list of 4K physical sector hard drives. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-23T00:10:17.084762Z K 7 svn:log V 339 Merge to da driver quirks hinting 4K physical sector sizes for SATA disks connected via SAS or USB. Unluckily I've found that SAS (mps) and USB-SATA I have translate models in different ways, requiring twice more quirks. Unluckily for Hitachi, their model names are trimmed on SAS, making impossible to identify 4K sector drives that way. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-12-23T00:19:17.518094Z K 7 svn:log V 28 Merge from HEAD at r228312. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-23T00:23:37.047095Z K 7 svn:log V 544 When building the kernel with clang, it produces several warnings which might be useful in some cases, but which are not severe enough to error out the whole kernel build. Display them anyway, so there is at least some incentive to fix them eventually. Start with -Wtautological-compare warnings. These usually occur when people check if unsigned quantities are negative, or similar cases. To clean these up would be painful, and might give problems if the base type which is compared against changes to signed later on. MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-12-23T00:29:01.373508Z K 7 svn:log V 296 Formatting fixes: hexdump/od.1: - Enclose tabbed content in quotes [1] ar/ar.1: - Enclose tabbed content in quotes [1] rctl/rctl.8: - Enclose tabbed content in quotes [1] - Start a sentence on a newline [2] Reported by: manlint [1], igor [2] MFC after: 1 week X-MFC-after: 9.0-RELEASE END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-12-23T00:31:26.309007Z K 7 svn:log V 120 Whitespace cleanup: ar/ar.1: - Remove trailing whitespace Reported by: igor MFC after: 1 week X-MFC-With: r228823 END K 10 svn:author V 2 np K 8 svn:date V 27 2011-12-23T01:39:10.379117Z K 7 svn:log V 93 Fix return value of function. Submitted by: Dan McGregor END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2011-12-23T01:56:25.307438Z K 7 svn:log V 76 Handle failures to malloc memory to hold key or val copies. PR: bin/83348 END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-12-23T02:04:35.893304Z K 7 svn:log V 722 During investigation of an NFSv4 client crash reported by glebius@, jhb@ spotted that nfscl_getstateid() might modify credentials when called from nfsrpc_read() for the case where p != NULL, whereas nfsrpc_read() only did a crdup() to get new credentials for p == NULL. This bug was introduced by r195510, since pre-r195510 nfscl_getstateid() only modified credentials for the p == NULL case. This patch modifies nfsrpc_read()/nfsrpc_write() so that they do crdup() for the p != NULL case. It is conceivable that this bug caused the crash reported by glebius@, but that will not be determined for some time, since the crash occurred after about 1month of operation. Tested by: glebius Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2011-12-23T02:13:42.027693Z K 7 svn:log V 51 Handle malloc failures in yplib.c. PR: bin/83349 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T02:21:22.037930Z K 7 svn:log V 734 Add a temporary debugging statement in order to try and identify what's going on with the occasional garbage rs_antenna field reported by AR9285 users. I've discovered that the 11n NICs only fill out the entire RX status descriptor on the final descriptor in an aggregate. Some of the fields (notably RSSI) are complete nonsense for A-MPDU subframes. This may be another example of this. The driver doesn't currently toss out statistics for non-final aggregate frames. It's likely that this should be done. If any users hit this particular debugging message they should report it immediately to freebsd-wireless@freebsd.org - please ensure you have ATH_DEBUG enabled so it prints out the full receive descriptor. PR: kern/163312 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T02:40:35.565530Z K 7 svn:log V 254 Make some more of the 11n specific code conditional. This doesn't fix compilation w/out AH_SUPPORT_AR5416 as all of the software aggregation support in if_ath_tx.c and 11n code in if_ath_tx_ht.c touches the 11n specific fields. I'll work on that later. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T02:57:18.240121Z K 7 svn:log V 26 Add in ath_ee_9287_print. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T03:59:49.850937Z K 7 svn:log V 925 Rework this ugly mess that tries to handle reset serialisation. Some users were reporting concurrent resets _were_ occuring - ie, either two ath_reset()s ran at the same time (likely one on each CPU) or ath_reset() versus ath_chan_change(). Instead, this now tries to grab the serialisation semaphore and will pause() for a while if it fails. It will always eventually succeed though and will log an error if it hits the recursion situation. All of this stuff needs to die a horrible death at some point and be replaced with a properly serialising method of programming this stuff (eg using the net80211 taskqueue for all of this stuff.) The trouble is figuring out how to handle the concurrent ioctl() based things without introducing more LORs (which is another reason why I haven't just wrapped all of this stuff in large, long-lived locks, a-la what Linux can get away with.) MFC after: Absolutely, positively never. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T04:05:39.394196Z K 7 svn:log V 120 Remove unused #define's. Pointy hat to: adrian, for not properly reading things when he copied ar9285.h to ar9287.h. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T08:32:53.197656Z K 7 svn:log V 367 Port over some GPIO and LED fixes. * As a preparation for AR9287 GPIO support, add in the AR9287 GPIO mask. * Fix the association mask values; these are post-shift values but were being shifted in twice. This resulted in some garbage being written in the wrong place and the link LED (at least on my d-link AR5416 NIC) giving totally incorrect blink patterns. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-12-23T08:50:26.549604Z K 7 svn:log V 89 Fix typo s/xz/libarchive/ Reported by: Emil Mikulic (private e-mail) MFC after: 12 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T08:53:22.559675Z K 7 svn:log V 293 Port over some more GPIO fixes from the atheros reference HAL. * Bring the AR5416 GPIO mux mask code in line with the code from the HAL. * Add HAL_DEBUG_GPIO debugging statements, to track what's going on. * Add Kiwi GPIO specific changes for reading values back. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-23T09:09:10.090383Z K 7 svn:log V 318 Disable the code which hard-sets the LEDs on. This prevents the LED state from correctly updating things. The reference driver directly enables/disables the LED state as required, rather than nailing it up like it currently is. That'll have to come later by adding some further HAL methods. Obtained from: Atheros END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-23T09:09:42.964515Z K 7 svn:log V 556 Optimize the common case of msyncing the whole file mapping with MS_SYNC flag. The system must guarantee that all writes are finished before syscalls returned. Schedule the writes in async mode, which is much faster and allows the clustering to occur. Wait for writes using VOP_FSYNC(), since we are syncing the whole file mapping. Potentially, the restriction to only apply the optimization can be relaxed by not requiring that the mapping cover whole file, as it is done by other OSes. Reported and tested by: az Reviewed by: alc MFC after: 2 weeks END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-12-23T12:05:51.601212Z K 7 svn:log V 41 - Some trivial fixes - Add more comments END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-12-23T13:20:51.587404Z K 7 svn:log V 35 - Minor improvements and rewording END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-23T13:50:33.782722Z K 7 svn:log V 310 Amend r228822 by not directly adding to CWARNFLAGS, but to an optional CWARNEXTRA variable, which gets included into the initial CWARNFLAGS setting. This makes it easier to override CWARNFLAGS with completely custom settings (including enabling any disabled warnings). Reminded by: arundel MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-12-23T14:39:30.927606Z K 7 svn:log V 79 - Minor rewording of some existing parts - Document some TRE-specific features END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2011-12-23T15:00:37.073299Z K 7 svn:log V 644 Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06] Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07] Fix a buffer overflow in telnetd. [11:08] Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09] Add sanity checking of service names in pam_start. [11:10] Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-12-23T16:02:14.235188Z K 7 svn:log V 54 whitespace fixes (one missing newline, one extra tab) END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-12-23T16:03:57.010971Z K 7 svn:log V 119 1. don't use if_pspare directly, but through a macro WMA() 2. move a variable declaration at the beginning of a block END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-23T19:12:02.097978Z K 7 svn:log V 351 Use READ CAPACITY(16) to get information about device physical sectors. As soon as not all devices support READ CAPACITY(16), automatically fall back to READ CAPACITY(10) if CAM_REQ_INVALID or SSD_KEY_ILLEGAL_REQUEST status returned. It also provides first bits of information about Logical Block Provisioning (aka UNMAP/TRIM) support by the device. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-23T19:53:28.777674Z K 7 svn:log V 142 Addition to r228808: READ CD is a 12 byte command. So fill additional bytes and update CDB length when patching READ(10). MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-23T20:03:18.759279Z K 7 svn:log V 40 give bapt@ a src bit Approved by: core END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-23T20:11:37.610092Z K 7 svn:log V 267 Add post-VOP hooks for VOP_DELETEEXTATTR() and VOP_SETEXTATTR() and use these to trigger a NOTE_ATTRIB EVFILT_VNODE kevent when the extended attributes of a vnode are changed. Note that OS X already implements this behavior. Reviewed by: rwatson MFC after: 2 weeks END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-12-23T20:57:25.777713Z K 7 svn:log V 113 Make these scripts more robust. The particular error was triggered when switching a machine from amd64 to i386. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-23T20:59:13.555576Z K 7 svn:log V 106 Report stripeoffset as zero not stripesize if physical block is zero aligned, same as it is done for ATA. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-12-23T20:59:58.880801Z K 7 svn:log V 13 fix brain-o. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2011-12-23T22:10:55.494422Z K 7 svn:log V 52 - Set CF physical address base in sysinfo structure END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2011-12-24T00:22:21.177819Z K 7 svn:log V 25 - Enable usbus on octusb END