ĨK220104 160 7869 203 355 158 243 158 163 133 311 311 173 194 266 184 148 246 144 242 149 150 184 333 405 126 148 139 168 146 658 132 131 187 134 432 645 588 247 460 175 191 113 148 154 417 180 147 583 5872 532 287 268 118 581 142 184 98 129 163 232 358 106 126 215 222 123 144 496 112 253 249 181 141 179 139 179 139 281 284 132 970 193 461 530 126 239 170 227 259 312 164 274 1054 282 184 672 157 266 242 168 213 128 268 345 220 168 264 165 187 214 157 179 139 179 139 179 139 179 139 218 249 224 210 182 791 293 271 167 187 160 169 130 143 123 122 594 97 283 150 125 143 155 299 209 232 176 311 253 430 242 145 429 454 306 150 119 160 469 319 1082 1102 K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-28T17:41:10.086238Z K 7 svn:log V 7771 MFC r217729, r217730, r217731, r217732, r217737, r217784, r217958, r217961, r217962, r217964, r217965, r217966, r217967, r217969, r218040, r218041, r218042, r218043, r218044, r218045, r218048, r218049, r218119, r218132, r218138, r218139, r218147, r218148, r218158, r218185, r218191, r218192, r218193, r218194, r218201, r218214, r218215, r218217, r218218, r218370, r218373, r218374, r218375, r218376, r218464, r218465, r218474, r219082: r217729 (pjd): - On primary worker reload, update hr_exec field. - Update comment. r217730 (pjd): Use int16 for error. r217731 (pjd): Use more consistent function name with the others (pjdlogv_prefix_set() instead of pjdlog_prefix_setv()). r217732 (pjd): Add nv_assert() which allows to assert that the given name exists. r217737 (pjd): Add missing logs. r217784 (pjd): Don't open configuration file from worker process. Handle SIGHUP in the master process only and pass changes to the worker processes over control socket. This removes access to global namespace in preparation for capsicum sandboxing. r217958 (pjd): Remove __dead2 from pjdlog_verify() prototype, it does return sometimes. r217961 (pjd): - Remove obvious NOTREACHED comment after abort() call. - Remove redundant newline at the end of the file. r217962 (pjd): Add LOG_NDELAY flag to openlog(3) - we want descriptor to be immediately open so there are no surprises once we start chrooting or using capsicum. r217964 (pjd): Use pjd copyright for 2011 work. r217965 (pjd): Add functions to initialize/finalize pjdlog. This allows to open/close log file at will. r217966 (pjd): Extend pjdlog_verify() to support the following additional macros: PJDLOG_RVERIFY() - always check expression and on false log the given message and exit. PJDLOG_RASSERT() - check expression when NDEBUG is not defined and on false log given message and exit. PJDLOG_ABORT() - log the given message and exit. r217967 (pjd): Close the control socket before exiting, so it will be unlinked. r217969 (pjd): Remember created control connection so on fork(2) we can close it in child. r218040 (pjd): Initialize all global variables on pjdlog_init(). r218041 (pjd): Add function to close all unneeded descriptors after fork(2). r218042 (pjd): Add comments to places where we treat errors as ciritical, but it is possible to handle them more gracefully. r218043 (pjd): Close all unneeded descriptors after fork(2). r218044 (pjd): Add function to assert that the only descriptors we have open are the ones we expect to be open. Also assert that they point at expected type. Because openlog(3) API is unable to tell us descriptor number it is using, we have to close syslog socket, remember assert message in local buffer and if we fail on assertion, reopen syslog socket and log the message. r218045 (pjd): Use newly added descriptors_assert() function to ensure only expected descriptors are open. r218046 (pjd), r218047 (pjd), r218119 (maxim): Add 'hast' user and 'hast' group that will be used by hastd (and maybe hastctl) to drop privileges. r218048 (pjd): Implement function that drops privileges by: - chrooting to /var/empty (user hast home directory), - setting groups to 'hast' (user hast primary group), - setting real group id, effective group id and saved group id to 'hast', - setting real user id, effective user id and saved user id to 'hast'. At the end verify that those operations where successfull. r218049 (pjd): Drop privileges in worker processes. Accepting connections and handshaking in secondary is still done before dropping privileges. It should be implemented by only accepting connections in privileged main process and passing connection descriptors to the worker, but is not implemented yet. r218132 (pjd): Rename pjdlog_verify() to pjdlog_abort() as it better describes what the the function does and mark it with __dead2. r218138 (pjd): - Use pjdlog for assertions and aborts as this will log assert/abort message to syslog if we run in background. - Asserts in proto.c that method we want to call is implemented and remove dummy methods from protocols implementation that are only there to abort the program with nice message. r218139 (pjd): Implement two new functions for sending descriptor and receving descriptor over UNIX domain sockets and socket pairs. This is in preparation for capsicum. r218147 (pjd), r218148 (pjd): Fix build on ia64. r218158 (pjd): Do not set socket send and receive buffer. It will be auto-tuned. Confirmed by: rwatson r218185 (pjd): Be prepared that hp_client or hp_server might be NULL now. r218191 (pjd): Move protocol allocation and deallocation to separate functions. r218192 (pjd), r218201 (bz): Allow to specify connection timeout by the caller. r218193 (pjd): Add proto_connect_wait() to wait for connection to finish. If timeout argument to proto_connect() is -1, then the caller needs to use this new function to wait for connection. This change is in preparation for capsicum, where sandboxed worker wants to ask main process to connect in worker's behalf and pass descriptor to the worker. Because we don't want the main process to wait for the connection, it will start async connection and pass descriptor to the worker who will be responsible for waiting for the connection to finish. r218194 (pjd): - Rename proto_descriptor_{send,recv}() functions to proto_connection_{send,recv} and change them to return proto_conn structure. We don't operate directly on descriptors, but on proto_conns. - Add wrap method to wrap descriptor with proto_conn. - Remove methods to send and receive descriptors and implement this functionality as additional argument to send and receive methods. r218214 (pjd): Let the caller log info about successful privilege drop. We don't want to log this in hastctl. r218215 (pjd): Drop privileges after connecting to hastd, but before sending or receiving anything. r218217 (pjd): Add missing locking after moving keepalive_send() to remote send thread in r214692. r218218 (pjd): Setup another socketpair between parent and child, so that primary sandboxed worker can ask the main privileged process to connect in worker's behalf and then we can migrate descriptor using this socketpair to worker. This is not really needed now, but will be needed once we start to use capsicum for sandboxing. r218370 (pjd): Close more descriptors that can be open if the worker process for the given resource is already running. Submitted by: Mikolaj Golub r218373 (pjd): Open syslog when logging sysconf(3) failure. Reported by: Mikolaj Golub r218374 (pjd): Treat fstat(2) failure (different than EBADF) as fatal error. Reported by: Mikolaj Golub r218375 (pjd): Add (void) cast before snprintf(3)s for which we are not interested in return values. r218376 (pjd): Now that we break the loop on fstat(2) failure we no longer need to satisfy gcc's imperfections. r218464 (pjd): Unlink UNIX domain socket file only if: 1. The descriptor is the one we are listening on (not the one when we connect as a client and not the one which is created on accept(2)). 2. Descriptor was created by us (PID matches with the PID stored on bind(2)). Reported by: Mikolaj Golub r218465 (pjd): Explicitly include as suggested by getpid(2) and don't rely on including what's needed. r218474 (pjd): When we decide to unlink socket file, sun_path must be set. If it is set, but there is problem unlinking the file, log a warning. r219082 (pjd): Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal. Approved by: pjd (mentor) END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2011-03-28T19:03:56.686555Z K 7 svn:log V 106 Covers values if (BYTES_THIS_ACK(tp, th) / tp->t_maxseg) value is from 2.0 to 3.0. Reviewed by: lstewart END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-03-28T19:08:53.258575Z K 7 svn:log V 258 Revise r220046 by introducing dc_netcfg_wait() which waits the end of active DMA cycle. dc_setcfg() also has to wait until the DMA engine is stopped so using a common function to handle the job is better than duplicating the code. No objection from: marius END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:22:55.715074Z K 7 svn:log V 64 MFC r219587, r220017, r220048 Adjust svn:executable properties END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-28T19:25:15.552025Z K 7 svn:log V 146 Use a SYSCTL_PROC() for netdump name device setting in order to do an early catch on problems (avoiding typos, etc). Reported by: emaste, rstone END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:27:46.095586Z K 7 svn:log V 64 MFC r219587, r220017, r220048 Adjust svn:executable properties END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:29:30.285334Z K 7 svn:log V 69 Direct commit to update svn:executable property on remaining scripts END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:32:16.009267Z K 7 svn:log V 39 MFC r220015: An EXAMPLE for END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:39:53.738752Z K 7 svn:log V 216 MFC r220020: Add a daily period script to back up /var/db/pkg MFC r220049: Hook the 220.backup-pkgdb script I added to the build unconditionally Hook up 610.ipf6denied based on MK_IPFILTER as 510.ipfdenied is now END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-28T19:42:21.168980Z K 7 svn:log V 216 MFC r220020: Add a daily period script to back up /var/db/pkg MFC r220049: Hook the 220.backup-pkgdb script I added to the build unconditionally Hook up 610.ipf6denied based on MK_IPFILTER as 510.ipfdenied is now END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-03-28T19:44:54.857986Z K 7 svn:log V 81 Fix the check for vm_map_remove() error. Pointed out by: alc MFC after: 2 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-03-28T22:50:02.609503Z K 7 svn:log V 99 MFC r219803: index(3): Mention that index/rindex are deprecated and not specified by POSIX.1-2008. END K 10 svn:author V 4 emax K 8 svn:date V 27 2011-03-28T23:08:18.927593Z K 7 svn:log V 172 Do not use word 'flood' as it not entirely correct. Use better 'no delay' description. While here, replace atoi(3) with strtol(3). Submitted by: arundel MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-03-29T00:06:02.492438Z K 7 svn:log V 89 Slightly rework the interrupt setup code to eliminate the hard dependency on I/O SAPICs. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-03-29T00:33:02.895000Z K 7 svn:log V 53 Remove Altix cruft now that we have the SHub driver. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-03-29T00:36:36.556224Z K 7 svn:log V 150 o Fleshed-out shub driver that creates pcib children. o Modified pcib driver that attaches to shub. o Slightly tweaked PROM-defined structures. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-03-29T00:47:00.702053Z K 7 svn:log V 49 Merge svn+ssh://svn.freebsd.org/base/head@220114 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-29T01:17:30.061305Z K 7 svn:log V 147 Add --update-if-newer which will operate on a list of ports given on the command line. If the port list is already up to date, it will be skipped. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-29T03:42:47.607481Z K 7 svn:log V 55 Handle ports specified by origin for --update-if-newer END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-29T05:58:09.565429Z K 7 svn:log V 56 Actually use iport as the argument to check_for_updates END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-29T06:42:52.026203Z K 7 svn:log V 93 Do not build ip_fw_nat.c for ipfw.ko. It can be build as separate module. MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-03-29T11:54:22.562039Z K 7 svn:log V 241 MFC r220041: Fixed sockets display somewhat (-L, -T, -x, -Lx, with and without -A). (I didn't try to fix negative TCP timers with -x.) Also, fixed a mismerge of -T option in r216964 -- it erroneously added headers for TCP timers to -x. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-03-29T12:38:13.367515Z K 7 svn:log V 312 - Enable an extra debugging bootverbose printf when probing ISA PNP cards listing each card as it is found on non-PC98 (PC98 already had this). - Increase the length of the DELAY() used before timing out while reading PNP resource data. Tested by: Steven Nikkel steven_nikkel ertyu org MFC after: 1 week END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T15:06:36.454187Z K 7 svn:log V 30 Remove bogus debugging knobs. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T15:08:50.349600Z K 7 svn:log V 52 Fix style for helper functions and sysctl handlers. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T15:14:31.718480Z K 7 svn:log V 43 Fix style for frontline sending functions. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T15:35:53.298219Z K 7 svn:log V 72 Fix style for other sending functions (ARP and IP packet constructing). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T15:36:43.517599Z K 7 svn:log V 50 Remove double declaration. Submitted by: pluknet END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-29T15:59:07.290988Z K 7 svn:log V 562 According to ath9k recv.c, one shouldn't be doing self-linked descriptors in the RX path when doing 11n and block-ack'ed frames. Apparently, the MAC will loop over that self-linked descriptor and treat it as "good enough" for (incorrectly!) ACKing the frames in the block-ack. Until I figure out how to work around this issue in the future, this counter will tell me if packet RX processing ever gets to the point where it's touching the self-linked descriptor. If there's ever enough packets to get to that point, BA's will be invalid and likely very unhappy. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T16:08:51.236467Z K 7 svn:log V 36 Style cleanup of further functions. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T16:21:01.655014Z K 7 svn:log V 35 More functions converted to style. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T16:45:47.645813Z K 7 svn:log V 91 - Fix style for dumping specific functions. - Add __unused tag for arguments where needed. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T16:49:50.666317Z K 7 svn:log V 38 Fix style for KLD specific functions. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-29T17:47:25.495385Z K 7 svn:log V 337 Add racct. It's an API to keep per-process, per-jail, per-loginclass and per-loginclass resource accounting information, to be used by the new resource limits code. It's connected to the build, but the code that actually calls the new functions will come later. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-29T17:52:45.149471Z K 7 svn:log V 548 MFC r219342, r219346: r219342 (pjd): Fix various issues in how %#T is handled: - If precision is 0, don't print period followed by no digits. - If precision is 0 stop printing units as soon as possible (eg. if we have three years and five days and precision is 0 print only 3y5d). - If precision is not 0, print all units (eg. 3y0d0h0m0s.00). r219346 (pjd): Because we call __printf_out() with a on-stack buffer, also call __printf_flush() so we are sure it won't be referenced after we return. Approved by: kib (co-mentor), pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-29T17:55:15.903182Z K 7 svn:log V 491 MFC r200035, r219344: Bring in missing headers and primitive type declarations into to make it work when included by itself. r200035 (ed): Make work when included by itself. There are several reasons why it didn't work: - It was missing for __BEGIN_DECLS. - It uses various primitive types that were not declared. r219344 (pjd): expand_number() needs uint64_t, declare it here if not already declared. Approved by: kib (co-mentor), pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-29T17:57:40.189492Z K 7 svn:log V 150 MFC r219343: r219343 (pjd): Include stdio.h, so we can include printf.h in any order, as it needs FILE. Approved by: kib (co-mentor), pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-29T17:59:30.269305Z K 7 svn:log V 363 MFC r219368: r219368 (pjd): To be able to use printf extensions we need to turn off gcc format checking. Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT, which, when defined in Makefile, turns off compile-time format checking (by adding -Wno-format), but still allows to use high WARNS level. Approved by: kib (co-mentor), pjd (mentor) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T18:07:19.049184Z K 7 svn:log V 79 Fix a bug where the passed lenght is lesser than the required one for strlcpy. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-29T18:16:49.683926Z K 7 svn:log V 97 Revert part of r220137, committed by mistake - RACCT is _not_ supposed to be enabled in GENERIC. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T18:21:04.331516Z K 7 svn:log V 17 Fix compilation. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-29T18:44:07.945529Z K 7 svn:log V 54 Revert file added in a wrong place by mistake. D'oh. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-29T19:19:10.538454Z K 7 svn:log V 60 Remove pointless (always true) KASSERTs. Submitted by: pjd END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-03-29T19:48:03.492129Z K 7 svn:log V 321 Allocate memory for a DMA method table only in case we need to override the iommu(4) provided one, i.e. in case of Hummingbird and Sabre bridges, otherwise just use the iommu(4) one. This also fixes a bug introduced in r220039 which caused an empty DMA method table to be used for the second of a pair of Psycho bridges. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T20:08:42.215671Z K 7 svn:log V 84 Avoid acquiring RX_LOCK when netdump is in critical condition. Reported by: rstone END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-29T20:23:56.533191Z K 7 svn:log V 51 Fix a bug as locking or not should be conditional. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-03-29T20:53:51.631272Z K 7 svn:log V 491 Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revision (rev. 127959 of gcc-4_2-branch). Resolved GCC bugs: c++: 17763, 29365, 30535, 30917, 31337, 31941, 32108, 32112, 32346, 32898, 32992 debug: 32610, 32914 libstdc++: 33084, 33128 middle-end: 32563 rtl-optimization: 33148 tree-optimization: 25413, 32723 target: 32218 Tested by: pointyhat (miwi) Obtained from: gcc (gcc-4_2-branch up to rev. 127959) PR: gnu/153298, gnu/153959, gnu/154385 MFC after: 1 month END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-29T20:58:25.229759Z K 7 svn:log V 5774 MFC r219351, r219354, r219369, r219370, r219371, r219372, r219373, r219385, r219482, r219620, r219669, r219721, r219813, r219814, r219815, r219816, r219817, r219818, r219821, r219830, r219831, r219832, r219833, r219837, r219844, r219864, r219873, r219879, r219882, r219884, r219887, r219900: r219351 (pjd): Allow to checksum on-the-wire data using either CRC32 or SHA256. r219354 (pjd): Allow to compress on-the-wire data using two algorithms: - HOLE - it simply turns all-zero blocks into few bytes header; it is extremely fast, so it is turned on by default; it is mostly intended to speed up initial synchronization where we expect many zeros; - LZF - very fast algorithm by Marc Alexander Lehmann, which shows very decent compression ratio and has BSD license. r219369 (pjd): Provides three states for pjdlog_initialized, so we can also tell that this is fist initialization ever. r219370 (pjd), r219385 (pjd): - Turn on printf extentions. - Load support for %T for pritning time. - Add support for %N for printing number in human readable form. - Add support for %S for printing sockaddr structure (currently only AF_INET family is supported, as this is all we need in HAST). - Disable gcc compile-time format checking as this will no longer work. r219371 (pjd): Use %S to print IP address and port number. r219372 (pjd): - Log size of data to synchronize in human readable form (using %N). - Log synchronization time (using %T). - Log synchronization speed in human readable form (using %N). r219373 (pjd): Print some of the numbers in human readable form (using %N). r219482: Make workers inherit debug level from the main process. r219620 (pjd): In command line options allow size to be specified using k/M/G/T suffixes. r219669 (pjd): Remove #include needed for debugging. r219721: For secondary, set 2 * HAST_KEEPALIVE seconds timeout for incoming connection so the worker will exit if it does not receive packets from the primary during this interval. Reported by: Christian Vogt Tested by: Christian Vogt r219813 (pjd): If there is any traffic on one of out descriptors, we were not checking for long running hooks. Fix it by not using select(2) timeout to decide if we want to check hooks or not. r219814 (pjd): When creating connection on behalf of primary worker, set pjdlog prefix to resource name and role, so that any logs related to that can be identified properly. r219815 (pjd): Add snprlcat() and vsnprlcat() - the functions I'm always missing. They work as a combination of snprintf(3) and strlcat(3) - the caller can append a string build based on the given format. r219816 (pjd): Use snprlcat() instead of two strlcat(3)s. r219817 (pjd): Log when we start hooks checking and when we execute a hook. r219818 (pjd), r219821 (pjd): In hast.conf we define the other node's address in 'remote' variable. This way we know how to connect to secondary node when we are primary. The same variable is used by the secondary node - it only accepts connections from the address stored in 'remote' variable. In cluster configurations it is common that each node has its individual IP address and there is one addtional shared IP address which is assigned to primary node. It seems it is possible that if the shared IP address is from the same network as the individual IP address it might be choosen by the kernel as a source address for connection with the secondary node. Such connection will be rejected by secondary, as it doesn't come from primary node individual IP. Add 'source' variable that allows to specify source IP address we want to bind to before connecting to the secondary node. r219821 (pjd): Forgot to commit this as a part of r219818. r219830 (pjd): Detect situation where resource internal identifier differs. This means that both nodes have separately managed resources that don't have the same data. r219831 (pjd): Be pedantic and free nvout before exiting. r219832 (pjd): Increase debug level of "Checking hooks." message. r219833 (pjd): Remove stale comment. Yes, it is valid to set role back to init. r219837 (pjd): Before handling any events on descriptors check signals so we can update our info about worker processes if any of them was terminated in the meantime. This fixes the problem with 'hastctl status' running from a hook called on split-brain: 1. Secondary calls a hooks and terminates. 2. Hook asks for resource status via 'hastctl status'. 3. The main hastd handles the status request by sending it to the secondary worker who is already dead, but because signals weren't checked yet he doesn't know that and we get EPIPE. r219843 (pjd): Fix typo. r219844 (pjd): Initialize localcnt on first write. This fixes assertion when we create resource, set role to primary, do no writes, then sent it to secondary and accept connection from primary. r219864 (pjd): White space cleanups. r219873 (pjd), r219873 (pjd): The proto API is a general purpose API, so don't use 'hast' in structures or function names. It can now be used outside of HAST. r219879: For requests that are sent only to remote component use the error from remote. r219882: After synchronization is complete we should make primary counters be equal to secondary counters: primary_localcnt = secondary_remotecnt primary_remotecnt = secondary_localcnt Previously it was done wrong and split-brain was observed after primary had synchronized up-to-date data from secondary. r219887 (pjd): Add pjd copyright. r219900 (pjd): Don't create socketpair for connection forwarding between parent and secondary. Secondary doesn't need to connect anywhere. Approved by: pjd (mentor) END K 10 svn:author V 4 zack K 8 svn:date V 27 2011-03-30T01:10:11.659561Z K 7 svn:log V 438 This patch fixes the Experimental NFS client to properly deal with 32 bit or 64 bit fileid's in NFSv2 and NFSv3. Without this fix, invalid casting (and sign extension) was creating problems for any fileid greater than 2^31. We discovered this because we have test clusters with more than 2 billion allocated files and 64-bit ino_t's (and friend structures). Reviewed by: rmacklem Approved by: zml (mentor) MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-03-30T01:19:00.880223Z K 7 svn:log V 191 Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical. This is a further clean up after r202988. SYSCTL_W is still initialized in rc.subr as some ports may still use it. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-03-30T08:22:29.169025Z K 7 svn:log V 176 Remove the reference to pseudo-terminals from the description. Pseudo-terminals are no longer listed in this file, since the utmpx implementation doesn't depend on ttyslot(). END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-30T11:34:40.142244Z K 7 svn:log V 27 Remove duplicate sentence. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-03-30T12:35:39.693949Z K 7 svn:log V 488 Clamp the initial advertised receive window when responding to a SYN/ACK to the maximum allowed window. Growing the window too large would cause an underflow in the calculations in tcp_output() to decide if a window update should be sent which would prevent the persist timer from being started if data was pending and the other end of the connection advertised an initial window size of 0. PR: kern/154006 Submitted by: Stefan `Sec` Zehl sec 42 org Reviewed by: bz MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-03-30T14:15:18.180017Z K 7 svn:log V 46 Use FD_CLOEXEC explicitly. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-03-30T14:46:12.980776Z K 7 svn:log V 92 Provide compat32 shims for kldstat(2). Requested and tested by: jpaetzel MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-03-30T14:46:55.943063Z K 7 svn:log V 7 Regen. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-30T14:48:49.564495Z K 7 svn:log V 33 Style fix. Submitted by: rstone END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2011-03-30T17:33:52.895617Z K 7 svn:log V 66 Fix syntax error from previous commit. Approved by: kib (mentor) END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2011-03-30T17:37:04.147339Z K 7 svn:log V 134 Check in two missing files missed in cleanup. Change expr to $(()) Switch test from "$?" = "0" to $? -eq 0 Approved by: kib (mentor) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T17:48:15.011874Z K 7 svn:log V 263 Add rctl. It's used by racct to take user-configurable actions based on the set of rules it maintains and the current resource usage. It also privides userland API to manage that ruleset. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T17:59:54.062711Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T18:08:31.096330Z K 7 svn:log V 32 Expose the rctl(2) API in libc. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T18:27:52.944973Z K 7 svn:log V 120 Add rctl(8), the utility to manage rctl rules. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T18:32:45.056836Z K 7 svn:log V 127 Add startup script, to load rules from /etc/rctl.conf. Sponsored by: The FreeBSD Foundation Reviewed by: kib (ealier version) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T18:35:02.332624Z K 7 svn:log V 29 Add example devd.conf entry. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-30T20:13:55.323856Z K 7 svn:log V 50 Fix grammar and bump date. Submitted by: trociny END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-30T21:21:26.350798Z K 7 svn:log V 399 - Fix a style bug - Use the if_transmit() method directly. That enables the multiqueue support where available avoiding to bypass the overridden functions. In critical conditions (panic, or however when the CPUs are stopped) a different function needs to be used in order to avoid acquiring the locks and allocating the mbufs. It needs to be a shortcut for a direct handover of the mbuf. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-30T21:22:25.956526Z K 7 svn:log V 16 Fix compilation END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-03-30T21:33:23.077454Z K 7 svn:log V 158 Add a menu entry for UTC in the main menu. PR: bin/156019 Submitted by: Daniel O'Conner Reviewed by: Garrett Cooper MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-03-30T21:40:14.482409Z K 7 svn:log V 152 Increase debug level on g_gate device destruction and add message on device creation. Suggested by: danger Approved by: pjd (mentor) MFC after: 3 days END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T00:46:27.797542Z K 7 svn:log V 86 Vendor import NetBSD's libedit of "1997-06-25 01:14:45 -0700". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T00:47:16.504038Z K 7 svn:log V 46 "Tag" the "1997-06-25 01:14:45 -0700" import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T01:00:31.704388Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2001/09/29 17:52:10 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T01:03:24.715297Z K 7 svn:log V 44 "Tag" the "2001/09/29 17:52:10 UTC" import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T01:13:05.494221Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2005/08/02 12:11:14 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T01:14:06.098383Z K 7 svn:log V 44 "Tag" the "2005/08/02 12:11:14 UTC" import. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-31T02:36:22.270826Z K 7 svn:log V 185 Implement AR724x USB initialisation code. This (again) still requires an offset for the AR913x/AR724x before USB will function. Submitted by: Luiz Otavio O Souzau END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-03-31T04:49:07.548873Z K 7 svn:log V 191 New src committer: Artem Belevich Artem has been helping in a number of areas including ZFS and DTrace, and he is going to expand his coverage for sure. Approved by: core END K 10 svn:author V 8 martymac K 8 svn:date V 27 2011-03-31T06:11:49.891884Z K 7 svn:log V 35 Add relation to my mentor (ehaupt) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-03-31T06:29:15.886874Z K 7 svn:log V 875 MFC of 198254, 198255, 198350, 198267, 209190, 208831, 208830, 210243 198254: When tzsetup is run as non-root and the "CMOS clock question on UTC" is answered as No, it would abort without properly ending the dialog session. 198255: Make the usage of the default zoneinfo file to install clearer. 198350: - Add support for chrooted installs. - Add examples to the man-page. 198267: Instead of having to know which timezone was picked last time, you now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. 209190: Use literal format strings. Found by clang. 208831: Add comment that this value is unused. It is obvious that it isn't used, but both clang and Coverity talk about it. 208830: When there is a problem with writing, also bail out. Found with the clang checker. 210243: Fix support for chrooted installs. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-31T06:30:59.864726Z K 7 svn:log V 101 Remove unneeded checks, g_new_xxx functions can not return NULL. Reviewed by: pjd MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-31T08:07:13.124645Z K 7 svn:log V 365 Break out the ath PCI logic into a separate device/module. Introduce the AHB glue for Atheros embedded systems. Right now it's hard-coded for the AR9130 chip whose support isn't yet in this HAL; it'll be added in a subsequent commit. Kernel configuration files now need both 'ath' and 'ath_pci' devices; both modules need to be loaded for the ath device to work. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-03-31T08:14:51.718883Z K 7 svn:log V 437 Revert r220032:linux compat: add SO_PASSCRED option with basic handling I have not properly thought through the commit. After r220031 (linux compat: improve and fix sendmsg/recvmsg compatibility) the basic handling for SO_PASSCRED is not sufficient as it breaks recvmsg functionality for SCM_CREDS messages because now we would need to handle sockcred data in addition to cmsgcred. And that is not implemented yet. Pointyhat to: avg END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-31T08:32:53.872306Z K 7 svn:log V 31 Document the ath glue changes. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-31T08:48:05.905115Z K 7 svn:log V 143 Introduce AH_AR5416_INTERRUPT_MITIGATION which enables interrupt mitigation for the AR5416 and later. Rename the older HAL option to use this. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-03-31T08:55:00.453021Z K 7 svn:log V 74 MFC r219963: Add missing resource limits: - RLIMIT_NPTS - RLIMIT_SWAP END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-03-31T12:03:30.368750Z K 7 svn:log V 131 ath_ahb shouldn't be compiled normally; it is atheros chip specific. Remove it from here; users can compile it manually if needed. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T12:17:37.329343Z K 7 svn:log V 166 Fix unreachable code. It could cause not replacing more then one failed disk at a time on volumes with Promise metadata. Found with: Coverity Prevent(tm) CID: 9656 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T12:43:39.613301Z K 7 svn:log V 219 Only disk with metadata could be part of the array. Accidental ID match for newly inserted disk should not cause NULL dereference. Such disk should be always handled as new. Found with: Coverity Prevent(tm) CID: 9658 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T13:06:51.127446Z K 7 svn:log V 72 Remove useless assignment. Found with: Coverity Privent(tm) CID: 9693 END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-03-31T13:14:24.499455Z K 7 svn:log V 177 Fix two SA refcount: - AH does not release the SA like in ESP/IPCOMP when handling EAGAIN - ipsec_process_done incorrectly release the SA. Reviewed by: vanhu MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-03-31T13:22:12.724930Z K 7 svn:log V 961 Explicitly track the state of all known BARs for each PCI device. The PCI bus driver will now remember the size of a BAR obtained during the initial bus scan and use that size when doing lazy resource allocation rather than resizing the BAR. The bus driver will now also report unallocated BARs to userland for display by 'pciconf -lb'. Psuedo-resources that are not BARs (such as the implicit I/O port resources for master/slave ATA controllers) will no longer be listed as BARs in 'pciconf -lb'. During resume, BARs are restored from their new saved state instead of having the raw registers saved and restored across resume. This also fixes restoring BARs at unusual loactions if said BAR has been allocated by a driver. Add a constant for the offset of the ROM BIOS BAR in PCI-PCI bridges and properly handle ROM BIOS BARs in PCI-PCI bridges. The PCI bus now also properly handles the lack of a ROM BIOS BAR in a PCI-Cardbus bridge. Tested by: jkim END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T13:28:33.981714Z K 7 svn:log V 189 Some string constants in metadata are not zero-terminated. Correct sizes when using sizeof() on string constants. Found with: Coverity Prevent(tm) CID: 9705, 9706, 9707, 9808, 9809, 9810 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T13:36:31.332043Z K 7 svn:log V 92 Remove some unneeded checks. Found with: Coverity Prevent(tm) CID: 9711, 9712, 9713, 9714 END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-03-31T13:59:47.937145Z K 7 svn:log V 575 Clearing the flag when preempting will let the preempted thread run too much time. This can finish in a scheduler deadlock with ping-pong between two threads. One sample of this is: - device lapic (to have a preemption point on critical_exit()) - options DEVICE_POLLING with HZ>1499 (to have lapic freq = hardclock freq) - running a cpu intensive task (that does not enter the kernel) - only one CPU on SMP or no SMP. As requested by jhb@ 4BSD have received the same type of fix instead of propagating the flag to the new thread. Reviewed by: jhb, jeff MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T14:16:56.601849Z K 7 svn:log V 65 Remove duplicate assignments. Found with: Clang Static Analyzer END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-03-31T14:33:27.488196Z K 7 svn:log V 170 Remove $Log$ keyword and associated history, which can cause annoyance in diffs in some cases. Revision control tools have a history command to obtain this information. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-03-31T14:35:33.040572Z K 7 svn:log V 146 Remove $Log$ keyword, which can cause annoyance in diffs in some cases. Revision control tools have a history command to obtain this information. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T14:44:00.121281Z K 7 svn:log V 76 Remove unused assignments and variables. Found with: Clang Static Analyzer END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-31T15:10:41.580271Z K 7 svn:log V 121 Fix a memory leak. Memory that is allocated for schedulers hash table was not freed. PR: kern/156083 MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-31T15:11:12.299332Z K 7 svn:log V 37 Fix malloc types. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-03-31T15:12:40.308697Z K 7 svn:log V 172 Avoid having a binary file in our source tree and instead create it at build time, to avoid possible grief maintaining FreeBSD source in alternative version control tools. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-03-31T15:23:32.051475Z K 7 svn:log V 248 Optimisation in IPSEC(4): - Remove contention on ISR during the crypto operation by using rwlock(9). - Remove a second lookup of the SA in the callback. Gain on 6 cores CPU with SHA1/AES128 can be up to 30%. Reviewed by: vanhu MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T15:27:03.166174Z K 7 svn:log V 127 Add check to prevent division by zero if user specified all disks as NONE in `graid label`. Found with: Clang Static Analyzer END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T15:52:12.371291Z K 7 svn:log V 76 Remove unused assignments and variables. Found with: Clang Static Analyzer END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T16:14:35.324133Z K 7 svn:log V 171 Bunch of small bugfixes and cleanups. Found with: Coverity Prevent(tm) CID: 9656, 9658, 9693, 9705, 9706, 9707, 9808, 9809, 9810, 9711, 9712, 9713, 9714 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-03-31T16:19:53.350729Z K 7 svn:log V 73 Bunch of small bugfixes and cleanups. Found with: Clang Static Analyzer END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-03-31T16:30:14.816529Z K 7 svn:log V 96 Fill up src_port and dst_port variables for SCTP over IPv4. PR: kern/153415 MFC after: 1 week END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-31T18:12:04.570701Z K 7 svn:log V 119 Notify racct when process credentials change. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-03-31T18:17:16.506837Z K 7 svn:log V 61 Add the CTLFLAG_MPSAFE and fix style for sysctl definitions. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:23:38.407804Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2005/11/09 22:11:10 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:28:09.686087Z K 7 svn:log V 44 "Tag" the "2005/11/09 22:11:10 UTC" import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:28:46.505867Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2006/03/23 20:22:51 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:29:20.581098Z K 7 svn:log V 44 "Tag" the "2006/03/23 20:22:51 UTC" import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:31:27.248924Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2007/01/12 16:31:13 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:32:01.090602Z K 7 svn:log V 44 "Tag" the "2007/01/12 16:31:13 UTC" import. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:34:50.057878Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2010/06/01 18:20:26 UTC". Obtained from: NetBSD END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-03-31T18:35:44.545546Z K 7 svn:log V 44 "Tag" the "2010/06/01 18:20:26 UTC" import. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-03-31T19:22:11.413821Z K 7 svn:log V 123 Enable accounting for RACCT_NPROC and RACCT_NTHR. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version) END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T20:46:50.801071Z K 7 svn:log V 152 - Fixed a problem where the stack passed a TSO frame larger than the 64K size allowed by the DMA descriptor for TSO frames. MFC after: One week END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T21:01:10.289179Z K 7 svn:log V 127 - Print number of queues when RSS is enabled. - Improve reporting of media type (not always 10GBase-CX4). MFC after: One week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-03-31T21:21:07.438162Z K 7 svn:log V 115 Minor whitespace twiddle to avoid --update-if-newer related messages from coming too close to the multiport banner END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T21:30:00.150801Z K 7 svn:log V 86 - Added debug support to monitor mbuf defrag attempts/failures. MFC after: One week. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2011-03-31T21:33:33.610325Z K 7 svn:log V 695 GNU awk does not output escaped newlines in multi-line printc statements. This leads to compile errors when trying to compile firmware(9) stubs created with gawk, as multiple #include statements end up on the same line. Replace the multi-line printc statement that outputs all of the #includes with one printc per #include. This allows modules compatible with firmware(9) to be cross-built from a Linux machine without requiring the one true awk to be installed. I've intentionally done the minimal set of changes necessary to make gawk produce valid (but not pretty) C code, to reduce the churn and keep fw_stubs.awk as readable as possible. Approved by: emaste (mentor) MFC after: 2 weeks END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T22:04:00.892538Z K 7 svn:log V 196 - Fixed DMA engine errors by increasing timeouts to 200ms for reads/writes. - Improved some error reporting calls to include file name/line number. - Various style(9) fixes. MFC after: One week. END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T22:40:44.283612Z K 7 svn:log V 174 - Freshened debug support code. - Renamed several RX variable for more consistent usage. - Fixed a potential problem when masking RX CQ producer value. MFC after: One week. END K 10 svn:author V 7 davidch K 8 svn:date V 27 2011-03-31T22:50:55.752625Z K 7 svn:log V 71 - Fixed build problem when not useing BXE_DEBUG. MFC after: One week. END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-01T00:25:32.426381Z K 7 svn:log V 96 Allow multiple modules within sys/modules/cxgbe. The first one is if_cxgbe. MFC after: 3 days END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-01T00:40:24.840723Z K 7 svn:log V 69 Update header and related code for firmware 1.3.8 MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-04-01T01:13:30.294914Z K 7 svn:log V 74 Unbreak installworld after r220205. Noticed by: np Pointy hat to: emaste END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-01T01:30:21.194446Z K 7 svn:log V 34 Make bxe(4) build with BXE_DEBUG. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-04-01T03:27:55.098386Z K 7 svn:log V 49 - Minor style(9) cleanup - Make functions static END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-04-01T03:41:41.565301Z K 7 svn:log V 29 Add 'mos' interface to NOTES END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-04-01T06:28:21.253946Z K 7 svn:log V 25 Add a missing .El macro. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T11:16:29.560658Z K 7 svn:log V 501 Add support for executing the FreeBSD 1/i386 a.out binaries on amd64. In particular: - implement compat shims for old stat(2) variants and ogetdirentries(2); - implement delivery of signals with ancient stack frame layout and corresponding sigreturn(2); - implement old getpagesize(2); - provide a user-mode trampoline and LDT call gate for lcall $7,$0; - port a.out image activator and connect it to the build as a module on amd64. The changes are hidden under COMPAT_43. MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T11:16:53.116673Z K 7 svn:log V 6 Regen END K 10 svn:author V 3 imp K 8 svn:date V 27 2011-04-01T11:39:13.646187Z K 7 svn:log V 190 Minor tweaks to the man page: o Remove bogus ordering info o 3C1 actually works, so remove that o Add warning about making sure BIOS is configured properly for PnP configured 3c509 cards. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T12:50:29.859381Z K 7 svn:log V 58 MFC r219999: Add O_CLOEXEC flag to open(2) and fhopen(2). END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T12:52:55.358934Z K 7 svn:log V 33 MFC r220000: Document O_CLOEXEC. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T13:20:39.082823Z K 7 svn:log V 51 MFC r219988: Fully emulate MDIOCLIST for compat32. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T13:23:53.558467Z K 7 svn:log V 63 MFC r219989: Implement compat32 MEMRANGE_GET and MEMRANGE_SET. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T13:28:34.872021Z K 7 svn:log V 206 After the r219999 is merged to stable/8, rename fallocf(9) to falloc(9) and remove the falloc() version that lacks flag argument. This is done to reduce the KPI bloat. Requested by: jhb X-MFC-note: do not END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T14:04:36.324991Z K 7 svn:log V 116 MFC r220014: Report EBUSY instead of EROFS for attempt of deleting or renaming the root directory of msdosfs mount. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-01T14:13:49.996349Z K 7 svn:log V 140 Do not allow recursive RFC3173 IPComp payload. Reviewed by: Tavis Ormandy (taviso cmpxchg8b.com) MFC after: 5 days Security: CVE-2011-1547 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-01T16:06:19.178288Z K 7 svn:log V 84 Welcome Artem Belevich to src committers ranks Approved by: core END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-01T16:45:26.111624Z K 7 svn:log V 214 64bit DMA caused data corruption. Unfortunately there is no known workaround to use 64bit DMA. Disable 64bit DMA on Attansic L1 controller. Tested by: Yamagi Burmeister (lists <> yamagi dot org) MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-04-01T18:23:44.582607Z K 7 svn:log V 156 MFC r219084: Accept == as an alias of = which is a popular GNU extension. This is intentionally undocumented for now since it's not part of any standard. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2011-04-01T18:48:31.182059Z K 7 svn:log V 337 Change the refresh_mbuf logic slightly, add an inline to calculate the outstanding descriptors that need to be refreshed at any time, and use THAT in rxeof to determine if refreshing needs to be done. Also change the local_timer to simply fire off the appropriate interrupt rather than schedule a tasklet, its simpler. MFC in two weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-01T18:53:41.433951Z K 7 svn:log V 145 Partially revert r184106. RX buffer ring also needs bus_dmamap_sync(). Tested by: Yamagi Burmeister (lists <> yamagi dot org) MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-01T19:57:27.262034Z K 7 svn:log V 53 Fix mdoc errors. Submitted by: ru MFC after: 3 days END K 10 svn:author V 3 jfv K 8 svn:date V 27 2011-04-01T20:24:51.796062Z K 7 svn:log V 336 Fix to an error condition case, when an mbuf chain get's defragged due to a mapping failure the header pointers will be invalidated and can result in a TSO or other failure down the line. So, when the remapping occurs force a retry thru the offload calculation code. Thanks to Andrew Boyer for discovering this and cooking up the fix!! END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-04-01T20:59:23.966196Z K 7 svn:log V 361 Fix the delete-old/check-old targets to work with arbitrarily long OLD_FILES/OLD_DIRS/OLD_LIBS lists. If you specify enough WITHOUT_FOO flags, the argument list passed to the shell will be too long. Using .for/.endfor make(1) "loop" will make the parser of the Makefile explode. Hack around this with good old pipes. No objections: netchild Reported by: b.f. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-04-01T23:47:10.529669Z K 7 svn:log V 210 Uuencode the sample "binary" firmware image file (instead of explicitly adding \0 bytes). This is a technique that would be used in an actual driver and is more suitable as an example. Reviewed by: mlaier END K 10 svn:author V 3 art K 8 svn:date V 27 2011-04-02T00:08:32.048214Z K 7 svn:log V 58 Added myself as src committer. Approved by: avg (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-02T00:24:13.994215Z K 7 svn:log V 24 Add some more debugging END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-02T00:27:22.115030Z K 7 svn:log V 65 From ath9k - clear the RX descriptor status before recycling it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-02T03:48:15.076903Z K 7 svn:log V 373 A handful of the openwrt devices use a MAC address that's at a hard-coded offset in the flash. Some devices (eg the TPLink WR-1043ND) don't have a flash environment partition which can be queried for the current board settings. This particular workaround allows for image creators to use a hint to set the base MAC address. For example: hint.arge.0.eeprommac=0x1f01fc00 END K 10 svn:author V 6 gordon K 8 svn:date V 27 2011-04-02T05:01:09.897983Z K 7 svn:log V 223 Overhaul locale handling. Use locale(1) to determine the locale instead of trying to hand roll it. Correctly construct groff call based on charset and locale independently, not the mix between the two. Submitted by: uqs@ END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2011-04-02T06:13:31.296622Z K 7 svn:log V 985 MFC r219041: ktrace_resize_pool() locking slightly reworked: 1) do not take a lock around the single atomic operation. 2) do not lose the invariant of lock by dropping/acquiring ktrace_mtx around free() or malloc(). MFC r219042: Introduce preliminary support of the show description of the ABI of traced process by adding two new events which records value of process sv_flags to the trace file at process creation/execing/exiting time. MFC r219311: Partially rework r219042. The reason for this is a bug at ktrops() where process dereferenced without having a lock. This might cause a panic if ktrace was runned with -p flag and the specified process exited between the dropping a lock and writing sv_flags. Since it is impossible to acquire sx lock while holding mtx switch to use asynchronous enqueuerequest() instead of writerequest(). Rename ktr_getrequest_ne() to more understandable name. MFC r219312: Fix indentation in comment, double ';' in variable declaration. END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2011-04-02T06:25:13.093101Z K 7 svn:log V 1004 MFC r219041: ktrace_resize_pool() locking slightly reworked: 1) do not take a lock around the single atomic operation. 2) do not lose the invariant of lock by dropping/acquiring ktrace_mtx around free() or malloc(). MFC r219042: Introduce preliminary support of the show description of the ABI of traced process by adding two new events which records value of process sv_flags to the trace file at process creation/execing/exiting time. MFC r219311: Partially rework r219042. The reason for this is a bug at ktrops() where process dereferenced without having a lock. This might cause a panic if ktrace was runned with -p flag and the specified process exited between the dropping a lock and writing sv_flags. Since it is impossible to acquire sx lock while holding mtx switch to use asynchronous enqueuerequest() instead of writerequest(). Rename ktr_getrequest_ne() to more understandable name. MFC r219312: Fix indentation in comment, double ';' in variable declaration. PR: ports/155083 END