ĵ234487 175 326 219 286 702 143 530 442 283 530 290 290 146 170 178 765 1243 312 227 321 850 1606 266 321 103 609 609 614 148 261 148 245 117 114 429 155 201 241 1218 318 187 153 376 225 461 749 155 141 133 133 249 174 111 161 481 144 263 220 122 156 207 119 1602 213 229 153 217 217 211 237 489 201 706 334 285 419 252 252 200 170 182 189 228 425 298 298 415 160 289 129 352 196 151 624 281 417 331 344 354 325 185 167 177 192 219 201 187 340 340 340 240 1539 222 140 155 211 152 164 152 160 138 157 165 158 143 269 105 180 156 156 573 230 222 282 598 233 212 116 270 148 288 173 275 275 275 150 150 242 242 242 238 1573 152 152 157 135 181 298 111 343 283 216 280 400 639 1064 284 254 243 167 332 350 488 157 816 157 K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-04-20T09:55:50.616073Z K 7 svn:log V 229 Add linkstate to bridge(4), set the link to up when at least one underlying interface is up, otherwise the link is down. This, among other things, allows carp to work on a bridge. Prodded by: glebius Tested by: Alexander Lunev END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-04-20T10:06:28.739949Z K 7 svn:log V 122 Move the interface media check to a taskqueue, some interfaces (usb) sleep during SIOCGIFMEDIA and we were holding locks. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-04-20T10:08:30.412404Z K 7 svn:log V 194 The value of flags matching VNOVAL can't be supported. Return EOPNOTSUPP from setfflags() in this case. This fixes the return value of chflags(path, -1). Discussed with: bde MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-20T13:47:22.294634Z K 7 svn:log V 606 MFC: r234247 Merge from x86: r233961: Fix interrupt load balancing regression, introduced in revision 222813, that left all un-pinned interrupts assigned to CPU 0. In intr_shuffle_irqs(), remove CPU_SETOF() call that initialized the "intr_cpus" cpuset to only contain CPU0. This initialization is too late and nullifies the results of calls to the intr_add_cpu() that occur much earlier in the boot process. r234074 (partial): The BSP is not added to the mask of valid target CPUs for interrupts. Fix this by adding the BSP as an interrupt target directly in r234105: Fix !SMP build after r234074. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-04-20T14:29:45.640754Z K 7 svn:log V 46 Fix some compile warnings. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-20T14:45:57.484566Z K 7 svn:log V 434 MFC: r222475 Fix read_ivar implementation for MMC and SD. 1. Both mmc_read_ivar() and sdhci_read_ivar() use the expression '*(int *)result = val' to assign to result which is uintptr_t *. This does not work on big-endian 64 bit systems. 2. The media_size ivar is declared as 'off_t' which does not fit into uintptr_t in 32bit systems, change this to long. Submitted by: kanthms at netlogicmicro com (initial version) PR: 134745 END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-20T15:01:23.490854Z K 7 svn:log V 346 Build a 32-bit EFI loader on amd64. This to match the rest of the code that is used to construct a loader (e.g. libstand, ficl, etc). There is such a thing as a 64-bit EFI application, but it's not as standard as 32-bit is. Let's make the 32-bit functional (as in we can load and actualy boot a kernel) before solving the 64-bit loader problem. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-20T15:32:36.260144Z K 7 svn:log V 190 Include the associated wait channel message for context switch ktrace records. kdump supports both the old and new messages. Submitted by: Andrey Zonov andrey zonov org MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-20T15:56:51.601931Z K 7 svn:log V 434 MFC: r222475 Fix read_ivar implementation for MMC and SD. 1. Both mmc_read_ivar() and sdhci_read_ivar() use the expression '*(int *)result = val' to assign to result which is uintptr_t *. This does not work on big-endian 64 bit systems. 2. The media_size ivar is declared as 'off_t' which does not fit into uintptr_t in 32bit systems, change this to long. Submitted by: kanthms at netlogicmicro com (initial version) PR: 134745 END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-04-20T16:09:28.185792Z K 7 svn:log V 197 MFC: 234234 Change SIGUSR1 to SIGTHR to properly wake up a process that is being traced. The use of SIGUSR1 caused traced processes (those attached to with dtrace -p) to exit when dtrace exited. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-04-20T16:20:16.908546Z K 7 svn:log V 197 MFC: 234234 Change SIGUSR1 to SIGTHR to properly wake up a process that is being traced. The use of SIGUSR1 caused traced processes (those attached to with dtrace -p) to exit when dtrace exited. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-04-20T16:51:56.792633Z K 7 svn:log V 55 Return once the data has been handled over for output. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-04-20T16:53:54.527522Z K 7 svn:log V 79 Connection manager should allocate sockets on FreeBSD. Obtained from: Chelsio END K 10 svn:author V 2 np K 8 svn:date V 27 2012-04-20T16:56:14.309289Z K 7 svn:log V 87 Avoid arming the TT_KEEP timer for TCP/IPv6 TOE active open too, just like for TCP/IP. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-20T20:27:31.055842Z K 7 svn:log V 672 The amr(4) firmware contains a rather dubious "feature" where it assumes for small buffers (< 64k) that the OS driver is actually using a buffer rounded up to the next power of 2. It also assumes that the buffer is at least 4k in size. Furthermore, there is at least one known instance of megarc sending a request with a 12k buffer where the firmware writes out a 24k-ish reply. To workaround the data corruption triggered by this "feature", ensure that buffers for user commands use a minimum size of 32k, and that buffers between 32k and 64k use a 64k buffer. PR: kern/155658 Submitted by: Andreas Longwitz longwitz incore de Reviewed by: scottl MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-20T21:00:39.348565Z K 7 svn:log V 1149 After r217375, some startup objects under lib/csu are built in a special way: first they are compiled to assembly, then some sed'ing is done on the assembly, and lastly the assembly is compiled to an object file. This last step is done using ${CC}, and not ${AS}, because when the compiler is clang, it outputs directives that are too advanced for our old gas. So we use clang's integrated assembler instead. (When the compiler is gcc, it just calls gas, and nothing is different, except one extra fork.) However, in the .s to .o rules in lib/csu/$ARCH/Makefile, I still passed CFLAGS to the compiler, instead of ACFLAGS, which are specifically for compiling .s files. In case you are using '-g' for debug info anywhere in your CFLAGS, it causes the .s files to already contain debug information in the assembly itself. In the next step, the .s files are also compiled using '-g', and if the compiler is clang, it complains: "error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code". Fix this by using ${ACFLAGS} for compiling the .s files instead. Reported by: jasone MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-20T21:17:33.595494Z K 7 svn:log V 219 Replace homegrown list implementation in sys/dev/asr/asr.c with STAILQ(). While here, fix another clang warning about a switch which tests an enum type for a regular integer value. Submitted by: jhb MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-04-20T21:37:42.785937Z K 7 svn:log V 131 Enable DTrace hooks in GENERIC. Reviewed by: gnn Approved by: core (jhb, imp) Requested by: a cast of thousands MFC after: 3 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-20T21:40:31.708131Z K 7 svn:log V 225 MFC: r233045, r234302 r233045: Add rudimentary profiling of the hash table used in the umtx code to hold active lock queues. r234302: Fix some style bugs introduced in a previous commit (r233045) Approved by: gnn (mentor) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-20T21:43:19.995196Z K 7 svn:log V 757 Fix the following compilation warnings in nxge(4): sys/dev/nxge/if_nxge.c:1276:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch] case XGE_LL_EVENT_TRY_XMIT_AGAIN: ^ sys/dev/nxge/if_nxge.c:1289:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch] case XGE_LL_EVENT_DEVICE_RESETTING: ^ This is because the switch uses xge_queue_item_t::event_type, which is an enum xge_hal_event_e, while the XGE_LL_EVENT_xx values are of the enum xge_event_e. Since messing around with the enum definitions is too disruptive, the simplest fix is to cast the argument of the switch to int. Reviewed by: gnn MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-20T21:52:57.133879Z K 7 svn:log V 1512 Fix the following compilation warnings in sys/contrib/rdma/rdma_cma.c: sys/contrib/rdma/rdma_cma.c:1259:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ECONNRESET: ^ @/sys/errno.h:118:20: note: expanded from macro 'ECONNRESET' #define ECONNRESET 54 /* Connection reset by peer */ ^ sys/contrib/rdma/rdma_cma.c:1263:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ETIMEDOUT: ^ @/sys/errno.h:124:19: note: expanded from macro 'ETIMEDOUT' #define ETIMEDOUT 60 /* Operation timed out */ ^ sys/contrib/rdma/rdma_cma.c:1260:8: error: case value not in enumerated type 'enum iw_cm_event_status' [-Werror,-Wswitch] case ECONNREFUSED: ^ @/sys/errno.h:125:22: note: expanded from macro 'ECONNREFUSED' #define ECONNREFUSED 61 /* Connection refused */ ^ This is because the switch uses iw_cm_event::status, which is an enum iw_cm_event_status, while ECONNRESET, ETIMEDOUT and ECONNREFUSED are just plain defines from errno.h. It looks like there is only one use of any of the enumeration values of iw_cm_event_status, in: sys/contrib/rdma/rdma_iwcm.c: if (iw_event->status == IW_CM_EVENT_STATUS_ACCEPTED) { So messing around with the enum definitions to fix the warning seems too disruptive; the simplest fix is to cast the argument of the switch to int. Reviewed by: kmacy MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-20T21:56:13.502671Z K 7 svn:log V 170 "Upgrade" the AR9285 code to support PCI/ART EEPROM on flash. I've just verified that this boots on an Atheros AP91. I haven't verified it with traffic though, so YMMV. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-20T22:01:12.521957Z K 7 svn:log V 225 MFC: r233045, r234302 r233045: Add rudimentary profiling of the hash table used in the umtx code to hold active lock queues. r234302: Fix some style bugs introduced in a previous commit (r233045) Approved by: gnn (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-20T22:07:21.923995Z K 7 svn:log V 9 .. oops. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-04-20T22:14:26.943716Z K 7 svn:log V 516 MFC of r227310: Don astbestos garment and remove the warning about TMPFS being experimental -- highly experimental even. So far the closest to a bug in TMPFS that people have gotten to relates to how ZFS can take away from the memory that TMPFS needs. One can argue that such is not a bug in TMPFS. Irrespective, even if there is a bug here and there in TMPFS, it's not in our own advantage to scare people away from using TMPFS. I for one have been using it, even with ZFS, very successfully. Reviewed by: marcel END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-04-20T22:16:08.351857Z K 7 svn:log V 516 MFC of r227310: Don astbestos garment and remove the warning about TMPFS being experimental -- highly experimental even. So far the closest to a bug in TMPFS that people have gotten to relates to how ZFS can take away from the memory that TMPFS needs. One can argue that such is not a bug in TMPFS. Irrespective, even if there is a bug here and there in TMPFS, it's not in our own advantage to scare people away from using TMPFS. I for one have been using it, even with ZFS, very successfully. Reviewed by: marcel END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-04-20T22:27:10.796346Z K 7 svn:log V 517 MFC r227802: Improve the way to calculate available pages in tmpfs: - Don't deduct wired pages from total usable counts because it does not make any sense. To make things worse, on systems where swap size is smaller than physical memory and use a lot of wired pages (e.g. ZFS), tmpfs can suddenly have free space of 0 because of this; - Count cached pages as available; [1] - Don't count inactive pages as available, technically we could but that might be too aggressive; [1] [1] Suggested by kib@ END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-20T22:43:04.152635Z K 7 svn:log V 53 MFC: r234303 Fix a typo. Approved by: gnn (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-20T22:44:00.251485Z K 7 svn:log V 165 Allow for a default GPIO pin "high", which is required for some boards which tie the USB device enable to a GPIO line. Submitted by: Stefan Bethke END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-20T23:00:37.018288Z K 7 svn:log V 53 MFC: r234303 Fix a typo. Approved by: gnn (mentor) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-20T23:01:36.060420Z K 7 svn:log V 144 Make sure all pending operations have completed on the existing thread before (potentially) migrating it to a different CPU. MFC after: 5 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-04-20T23:39:48.025965Z K 7 svn:log V 24 Import ACPICA 20120420. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-04-20T23:40:43.171409Z K 7 svn:log V 21 Tag ACPICA 20120420. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-21T00:26:03.678859Z K 7 svn:log V 328 MFC r234115: Do not restore the register holding the TLS pointer when doing various usermode context switches (long jumps and ucontext operations). If these are used across threads, multiple threads can end up with the same TLS base. Madness will then result. This makes behavior on PPC match that on x86 systems and on Linux. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-21T00:28:29.219284Z K 7 svn:log V 60 MFC: r189727 read_ivar takes a uintptr_t * not a u_char *. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-21T00:32:56.093505Z K 7 svn:log V 104 Fix a brain-o. vm_page_lookup_cache() is not exported and cannot be used arbitrarely. Reported by: pho END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-04-21T00:51:28.023421Z K 7 svn:log V 147 nandfs: run syncer and cleaner as kernel threads instead of processes Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-21T01:51:16.376010Z K 7 svn:log V 1121 o Fixes: - When switching to 4-bit operation, send a SET_CLR_CARD_DETECT command to disconnect the card-detect pull-up resistor from the DAT3 line before sending the SET_BUS_WIDTH command. - Add the missing "reserved" zero entry to the mantissa table used to decode various CSD fields. This was causing SD cards to report that they could run at 30 MHz instead of the maximum 25 MHz mandated in the spec. o Enhancements: - At the MMC layer, format various info from the CID into a string that uniquely identifies the card instance (manufacturer number, serial number, product name and revision, etc). Export it as an instance variable. - At the MMCSD layer, display the formatted card ID string, and also report the clock speed of the hardware (not the card's max speed), and the number of bits and number of blocks per transfer. It comes out like this now: mmcsd0: 968MB at mmc0 22.5MHz/4bit/128-block o Use DEVMETHOD_END. o Use NULL instead of 0 for pointers. PR: 156496 Submitted by: Ian Lepore MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-21T04:17:30.038196Z K 7 svn:log V 222 Allow for MIPS devices to have a specific probe/attach order. The default priority is now '1000' rather than '0'. This may cause some unforseen regressions. Submitted by: Stefan Bethke Reviewed by: imp END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-21T04:33:39.835526Z K 7 svn:log V 94 - Do not reinitialize the interface if it is already running. This fixes BOOTP on cpsw(4). END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T05:26:02.221046Z K 7 svn:log V 61 Create a tree for publishing my external compiler patches... END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T06:08:02.368122Z K 7 svn:log V 283 Fix a bug introduced in r187302 that was causing fputws() to enter an infinite loop pretty much unconditionally. It's remarkable that the patch that introduced the bug was never tested, but even more remarkable that nobody noticed for over two years. PR: 167039 MFC after: 3 days END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T06:08:29.899600Z K 7 svn:log V 132 Ensure that the {,v}swprintf functions always null-terminate the output string, even if an encoding error or malloc failure occurs. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T06:09:09.996122Z K 7 svn:log V 368 - Fix the claim that the output is always null-terminated. This isn't true if the size is zero. - Fix a claim that sprintf() is the same as snprintf() with an infinite size. It's equivalent to snprintf() with a size of INT_MAX + 1. - Document the return values in the return values section. - Document the possible errno value of EOVERFLOW. MFC after: 2 weeks END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T06:10:18.672030Z K 7 svn:log V 656 If the size passed to {,v}s{w,n}printf is larger than INT_MAX+1 (i.e., the return value would overflow), set errno to EOVERFLOW and return an error. This improves the chances that buggy applications -- for instance, ones that pass in a negative integer as the size due to a bogus calculation -- will fail in safe ways. Returning an error in these situations is specified by POSIX, but POSIX appears to have an off-by-one error that isn't duplicated in this change. Previously, some of these functions would silently cap the size at INT_MAX+1, and others would exit with an error after writing more than INT_MAX characters. PR: 39256 MFC after: 2 weeks END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-04-21T06:29:44.404127Z K 7 svn:log V 63 - Fix ifname matching. - Return non-zero status when unit < 0. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T06:59:48.582740Z K 7 svn:log V 49 MFC r233973 (partial): Fix bugs in remquo{,f}. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T07:00:00.642757Z K 7 svn:log V 41 MFC r233973: Fix bugs in remquo{,f,l}. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T07:00:39.546774Z K 7 svn:log V 41 MFC r233973: Fix bugs in remquo{,f,l}. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-21T07:31:27.890970Z K 7 svn:log V 156 As noted by Peter Jeremy, r234528 only partially fixed the infinite loop bug introduced in r187302. This completes the fix. PR: 167039 MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-21T10:45:46.083007Z K 7 svn:log V 80 Fix use-after-free introduced in r234036. Reviewed by: mckusick Tested by: pho END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-04-21T11:51:31.300863Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-04-21T11:53:24.209894Z K 7 svn:log V 66 Fix check used by stream reset related events. MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-21T14:23:46.874571Z K 7 svn:log V 388 Fix the following clang warning in dpt(4): sys/dev/dpt/dpt_scsi.c:612:18: error: implicit truncation from 'int' to bitfield changes value from -2 to 2 [-Werror,-Wconstant-conversion] dpt->cache_type = DPT_CACHE_WRITEBACK; ^ ~~~~~~~~~~~~~~~~~~~ by defining DPT_CACHE_WRITEBACK as 2, since dpt_softc::cache_type is an unsigned bitfield. No binary change. MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-04-21T14:30:51.732549Z K 7 svn:log V 50 Add support for the SIMCom SIM5218, tested by me. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-21T14:39:47.197751Z K 7 svn:log V 162 Organize some members of ucontext_t in the same order they are in the trap frame. These are usually not used, and so this changes very little. MFC after: 5 days END K 10 svn:author V 6 jasone K 8 svn:date V 27 2012-04-21T15:09:22.532207Z K 7 svn:log V 124 Import jemalloc 606f1fdc3cdbc700717133ca56685313caea24bb (dev branch, prior to 3.0.0 release), and mangle internal symbols. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T15:35:57.553663Z K 7 svn:log V 30 revert -- sorry for the noise END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T15:37:38.661196Z K 7 svn:log V 64 another attempt to create branch for external compiler patches. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T16:02:00.156100Z K 7 svn:log V 114 Replace a bare use of nm with ${NM} for easier cross compilation in environments where nm is spelled differently. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T16:07:11.262276Z K 7 svn:log V 27 integrate from head@234546 END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T16:27:50.582707Z K 7 svn:log V 1508 Two, unrelated patches intermerged (sorry) o Add support for TARGET_ARCH=armv6. This is just the compile phase and hasn't done things like get uname to return armv6. o Add support for external compilers: - Define EXT_COMP to be the prefix to prepend to the normal commands (either the full path or just armv6-freebsd-) - Some things don't work: KERBEROS and RESCUE. To test it out: o sudo make xdev XDEV=arm XDEV_ARCH=armv6 o make buildworld WITHOUT_RESCUE=y WITHOUT_KERBEROS=y TARGET=arm TARGET_ARCH=armv6 Things missing: o We still build some tools we don't need to. o Really need to have a SYSTEM_COMPILER={gcc,clang,external} to make this nicer. In fact, we may need gcc42, gcc43, etc to get the warnings flags right (or GCC_VERSION and CLANG_VERSION). o crunchgen is busted in this configuration. I fixed one thing, but it needs more love for rescue to work. Also, it likely just needs to be a bootstrap tool again, and the test needs to include a freebsd version bump. o External toolchains, like those delivered by the chip vendors, have not been tested. There's likely tweaks needed. o It assumes that the standard tools are called the stanard things. This isn't true, afaik, with externally built clang without symlinks. It is 'stage 2' in my roadmap: o stage 1: cross build kernels with minimal effort o stage 2: cross build with xdev built compilers o stage 3: cross build with external gcc compilers o stage 4: cross build with external clang o stage 5: profit. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-21T17:45:40.181322Z K 7 svn:log V 120 Fix partially merged patch from my external compiler tree in r234546. Define NM except when we're in strict POSIX mode. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-04-21T17:48:17.898159Z K 7 svn:log V 135 ndfs: fix braindead comparision in nandfs_invalidate_bufs Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-21T17:49:23.316900Z K 7 svn:log V 61 Add Jeremie Le Hen to the src committers. Approved by: core END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-21T18:12:24.544081Z K 7 svn:log V 119 MFC r229930 Add setsockopt(2) example to ng_ksocket(4). While here, fix formatting a bit Approved by: ae(mentor) END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-21T18:14:46.497099Z K 7 svn:log V 119 MFC r229930 Add setsockopt(2) example to ng_ksocket(4). While here, fix formatting a bit Approved by: ae(mentor) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-04-21T18:26:16.249516Z K 7 svn:log V 118 As documented in vm_page.h, updates to the vm_page's flags no longer require the page queues lock. MFC after: 1 week END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-21T18:30:48.853396Z K 7 svn:log V 139 MFC: r228730 Add binding support to libradius(3). Submitted by: Sergey Matveychuk Approved by: kib(mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-21T18:36:53.608818Z K 7 svn:log V 396 When MAP_STACK mapping is created, the map entry is created only to cover the initial stack size. For MCL_WIREFUTURE maps, the subsequent call to vm_map_wire() to wire the whole stack region fails due to VM_MAP_WIRE_NOHOLES flag. Use the VM_MAP_WIRE_HOLESOK to only wire mapped part of the stack. Reported and tested by: Sushanth Rai Reviewed by: alc MFC after: 1 week END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-21T19:22:53.654911Z K 7 svn:log V 103 MFC r232921: Use rt_numfibs variable instead of compile-time RT_NUMFIBS. Approved by: kib(mentor) END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-04-21T20:10:26.039781Z K 7 svn:log V 613 MFC r233230, r233323: Improve device tree blob (DTB) handling in loader(8). Enable using the statically embedded blob from the kernel, if present. The KLD loaded DTB takes precedence, but they are both recognized and handled in the same way. Improve FDT handling in loader(8) and make it more robust. o Fix buffer overflows when using a long property body in node paths. o Fix loop end condition when iterating through the symbol table. o Better error handling during node modification, better problem reporting. o Eliminate build time warnings. Submitted by: Lukasz Wojcik Obtained from: Semihalf END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-04-21T20:22:02.881277Z K 7 svn:log V 241 MFC r227730: Initial version of cesa(4) driver for Marvell crypto engine and security accelerator. The following algorithms and schemes are supported: - 3DES, AES, DES - MD5, SHA1 Obtained from: Semihalf Written by: Piotr Ziecik END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-22T00:43:32.001313Z K 7 svn:log V 189 - Add support for MCI1 revision 2xx controllers and a work-around for their "Data Write Operation and number of bytes" erratum. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-22T00:58:04.767733Z K 7 svn:log V 323 Interrupts must be disabled while handling a partial cache line flush, as otherwise the interrupt handling code may modify data in the non-DMA part of the cache line while we have it stashed away in the temporary stack buffer, then we end up restoring a stale value. PR: 160431 Submitted by: Ian Lepore MFC after: 1 week END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-04-22T03:53:11.964225Z K 7 svn:log V 158 MFC: revision 232784 MFi386: revisions 232570 and 232754 Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-04-22T03:57:33.819278Z K 7 svn:log V 158 MFC: revision 232784 MFi386: revisions 232570 and 232754 Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-04-22T04:36:25.070872Z K 7 svn:log V 106 MFi386: revisions 234074 and 234105 - Adding the BSP as an interrupt target directly in cpu_startup(). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-04-22T07:42:44.840958Z K 7 svn:log V 74 Use 10.0 instead of 10 for FreeBSD version number. The latter undefined. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-04-22T07:50:24.673750Z K 7 svn:log V 86 - Correct a typo which prevents 'lzjb' be displayed; - Use quotes when tab is used. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-04-22T07:51:49.894866Z K 7 svn:log V 93 - Use quote when tab is used; - Follow the same macros used in device driver manual pages. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-04-22T07:55:56.471834Z K 7 svn:log V 131 The .Fx macro needs the version number be in its own word separated by a space. This change have no visible effect for rendering. END K 10 svn:author V 6 jasone K 8 svn:date V 27 2012-04-22T08:49:13.737280Z K 7 svn:log V 329 Import jemalloc a8f8d7540d66ddee7337db80c92890916e1063ca (dev branch, prior to 3.0.0 release). This fixes several bugs related to memory initialization. Mangle __jemalloc_a0{malloc,calloc,free}() just like all the other library-internal symbols in jemalloc, and adjust the tls allocation code in libc to use the mangled names. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-04-22T09:19:10.529506Z K 7 svn:log V 200 MFC r233387: Use suspend/resume methods provided by net80211. This ensures that the appropriate state handling takes place, not doing so results in the device doing nothing until manual intervention. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-04-22T09:19:19.688960Z K 7 svn:log V 200 MFC r233387: Use suspend/resume methods provided by net80211. This ensures that the appropriate state handling takes place, not doing so results in the device doing nothing until manual intervention. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-22T16:13:23.314743Z K 7 svn:log V 317 Do not require radix write lock to be held while dumping route table via sysctl(4) interface. This permits router not to stop forwarding packets while route table is being written to user-supplied buffer. Reported by: Pawel Tyll Approved by: kib(mentor) MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-04-22T16:58:14.456642Z K 7 svn:log V 63 Fix a bug caused by some misplaced brackets. Reported by: das END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-22T17:00:52.661705Z K 7 svn:log V 191 Fix panic in ng_patch(4) caused by checksum flags being added to mbuf flags. Tested by: Maxim Ignatenko Approved by: kib(mentor) MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-04-22T17:14:11.204689Z K 7 svn:log V 37 Sort nm in order. Submitted by: bde END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T17:58:30.289858Z K 7 svn:log V 251 Avoid a lock order reversal in pmap_extract_and_hold() from relocking the page. This PMAP requires an additional lock besides the PMAP lock in pmap_extract_and_hold(), which vm_page_pa_tryrelock() did not release. Suggested by: kib MFC after: 4 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-04-22T18:18:49.296412Z K 7 svn:log V 99 Remove duplicate -l description. Submitted by: Rainer Hurling MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-04-22T18:51:38.130925Z K 7 svn:log V 54 Fix some incorrect symbol versions. Reported by: das END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T18:54:51.724180Z K 7 svn:log V 523 Replace eieio; sync for creating bus-space memory barriers with sync. sync performs a strict superset of the functions of eieio, so using both is redundant. While here, expand bus barriers to all bus_space operations, since many drivers do not correctly use bus_space_barrier(). In principle, we can also replace sync just with eieio, for a significant performance increase, but it remains to be seen whether any poorly-written drivers currently depend on the side effects of sync to properly function. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T18:56:56.003917Z K 7 svn:log V 180 Remove dead code. The routines in atomic.S did not work properly anyway, and were everywhere unused. If we turn out to need them, they should be reimplemented. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T19:00:51.365850Z K 7 svn:log V 316 Use lwsync to provide memory barriers on systems that support it instead of sync (lwsync is an alternate encoding of sync on systems that do not support it, providing graceful fallback). This provides more than an order of magnitude reduction in the time required to acquire or release a mutex. MFC after: 2 months END K 10 svn:author V 5 bgray K 8 svn:date V 27 2012-04-22T20:14:33.730765Z K 7 svn:log V 236 Tidied up the TWL code and added support for external clock devices (twl_clk device) that can be enabled/disabled from the twl pmic. Also added support for FDT overrides so that voltage and clock settings can be set at device startup. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T20:23:34.986039Z K 7 svn:log V 243 On non-64-bit systems (which generally don't have lwsync), use eieio and isync to implement read and write barriers, following Appendix B.2 of Book II of the architecture manual. This provides a 25% speed increase to fork() on the PowerPC G4. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T21:11:01.160200Z K 7 svn:log V 253 Clarify what we are doing in r234583 a little better: eieio and isync do not provide general barriers, but only barriers in the context of the atomic sequences here. As such, make them private and keep the global *mb() routines using a variant of sync. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-22T21:18:41.152034Z K 7 svn:log V 232 Refactor scanf to improve modularity. Conversions are now performed by separate conversion functions. This will hopefully make bugs more noticeable (I noticed several already) and provide opportunities to reduce code duplication. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-22T21:22:14.019385Z K 7 svn:log V 93 Bugfix: %n doesn't count as a conversion, so sscanf("abc", "ab%ncd", &i) returns EOF, not 0. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-22T21:28:14.537116Z K 7 svn:log V 75 Bugfix: Correctly count the number of characters read for %l[ conversions. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-22T21:28:33.305769Z K 7 svn:log V 85 Bugfix: Include whitespace characters in the count of the number of characters read. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T21:55:19.710083Z K 7 svn:log V 92 Correctly specify assembler constrains for synchronization instructions. MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-22T22:27:35.576899Z K 7 svn:log V 118 Provide a clearer split between read/write and acquire/release barriers. This should really, actually be correct now. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-04-22T22:39:24.568787Z K 7 svn:log V 109 8.3-RELEASE was announced; call this STABLE again. Reported by: Adrian Wontroba (aw1 stade.co.uk) on stable END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-23T00:54:06.041640Z K 7 svn:log V 87 Fix a missed file in r234580: replace the now-obsolete powerpc_mb() with regular mb(). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-23T03:38:40.744354Z K 7 svn:log V 243 MFC r234121: Back out r228476. r228476 fixed superfluous link UP/DOWN messages but broke IPMI access during boot. It's not clear why r228476 breaks IPMI and should be revisited. Reported by: Paul Guyot ieee dot org > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-23T03:40:39.640278Z K 7 svn:log V 243 MFC r234121: Back out r228476. r228476 fixed superfluous link UP/DOWN messages but broke IPMI access during boot. It's not clear why r228476 breaks IPMI and should be revisited. Reported by: Paul Guyot ieee dot org > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-23T03:42:23.565949Z K 7 svn:log V 243 MFC r234121: Back out r228476. r228476 fixed superfluous link UP/DOWN messages but broke IPMI access during boot. It's not clear why r228476 breaks IPMI and should be revisited. Reported by: Paul Guyot ieee dot org > END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-23T06:33:27.297371Z K 7 svn:log V 147 Revert r234356 for now, as it leads to run-time problems on 32-bit PowerPC. Note this will break world. Reported by: andreast Pointy hat to: dim END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-23T07:15:15.080576Z K 7 svn:log V 1440 MFC r232865, r232868, r233478 - Add ipfw eXtended tables permitting radix to be used for any kind of keys. - Add support for IPv6 and interface extended tables - Make number of tables to be changed in runtime in range 0..65534. - Use IP_FW3 opcode for all new extended table cmds No ABI changes are introduced. Old userland will see valid tables for IPv4 tables and no entries otherwise. Flush works for any table. IP_FW3 socket option is used to encapsulate all new opcodes: /* IP_FW3 header/opcodes */ typedef struct _ip_fw3_opheader { uint16_t opcode; /* Operation opcode */ uint16_t reserved[3]; /* Align to 64-bit boundary */ } ip_fw3_opheader; New opcodes added: IP_FW_TABLE_XADD, IP_FW_TABLE_XDEL, IP_FW_TABLE_XGETSIZE, IP_FW_TABLE_XLIST ipfw(8) table argument parsing behavior is changed: 'ipfw table 999 add host' now assumes 'host' to be interface name instead of hostname. New tunable: net.inet.ip.fw.tables_max controls number of table supported by ipfw in given VNET instance. 128 is still the default value. Sysctl change: net.inet.ip.fw.tables_max is now read-write. New syntax: ipfw add skipto tablearg ip from any to any via table(42) in ipfw add skipto tablearg ip from any to any via table(4242) out This is a bit hackish, special interface name '\1' is used to signal interface table number is passed in p.glob field. Sponsored by Yandex LLC Approved by: kib(mentor) END K 10 svn:author V 7 fabient K 8 svn:date V 27 2012-04-23T08:58:01.930527Z K 7 svn:log V 125 Fix class malloc init for mips and powerpc that was not converted by r233628. Found by: monthadar, adrian MFC after: 1 week END K 10 svn:author V 3 jlh K 8 svn:date V 27 2012-04-23T09:16:56.347790Z K 7 svn:log V 48 Add my informations. Approved by: kib (mentor) END K 10 svn:author V 3 jlh K 8 svn:date V 27 2012-04-23T09:18:05.161577Z K 7 svn:log V 63 Add my birthday and place of birth. Approved by: kib (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-23T09:39:39.369026Z K 7 svn:log V 118 Add sos@ copyrights to RAID metadata modules, respecting his efforts in decoding metadata formats in ataraid(4) code. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-04-23T12:18:38.871889Z K 7 svn:log V 56 MFC r233298: Garbage collect defunct nlist(3) symbols. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-23T13:04:02.940061Z K 7 svn:log V 72 Add names for all primary RAID levels defined by DDF 2.0 specification. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-04-23T13:13:46.316963Z K 7 svn:log V 56 MFC r233298: Garbage collect defunct nlist(3) symbols. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-23T13:21:28.299942Z K 7 svn:log V 66 Remove unused thread argument from vtruncbuf(). Reviewed by: kib END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-23T13:34:12.745673Z K 7 svn:log V 42 Make PFR_TFLAG_*MASK more human-readable. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-23T14:10:34.327716Z K 7 svn:log V 63 Remove unused thread argument to vrecycle(). Reviewed by: kib END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-23T14:44:18.407991Z K 7 svn:log V 71 Remove unused thread argument from clear_inodeps() and clear_remove(). END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-23T15:47:07.640819Z K 7 svn:log V 58 Fix missing header for powerpc_iomb(). Pointy hat to: me END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-23T16:35:19.156323Z K 7 svn:log V 51 Fix copy-paste typo in r234603. Submitted by: kan END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-23T17:15:06.179469Z K 7 svn:log V 173 Update the bugs section. We don't consider tmpfs as experimental, though we do not claim to support all mount options equally well. Approved by: delphij@ MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-23T17:54:49.520767Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-23T17:56:35.430266Z K 7 svn:log V 86 Remove unused thread argument from ufs_extattr_uepm_lock()/ufs_extattr_uepm_unlock(). END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-04-23T20:45:31.181808Z K 7 svn:log V 61 Use the flags defined in RFC 6525 in the stream reset event. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-23T20:53:50.817061Z K 7 svn:log V 56 Fix copy-and-paste error in r230400. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-23T20:56:05.920742Z K 7 svn:log V 480 Allow for the process information sysctls to accept a thread id in addition to the process id. It follows the ptrace(2) interface and allows debugging libraries to use thread ids directly, without slow and verbose conversion of thread id into pid. The PGET_NOTID flag is provided to allow a specific sysctl to disallow this behaviour. All current callers of pget(9) have useful semantic to operate on tid and do not need this flag. Reviewed by: jhb, trocini MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-04-23T21:49:11.253089Z K 7 svn:log V 138 Do not announce IPv6 TSO support yet. The in-tree driver does not seem to fully handle this yet. Reviewed by: davidcs MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-04-23T21:50:10.624729Z K 7 svn:log V 130 Do not announce IPv6 TSO support yet. The driver seems to make assumptions based on IPv4 header parsing only. MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-23T22:03:56.577535Z K 7 svn:log V 184 Re-enable the commit bit for John W. De Boskey, since he has volunteered to do some work on the new NFS server and already has a couple of good patches in progress. Approved by: core END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-04-23T22:05:09.093075Z K 7 svn:log V 506 If we pass down 64k - L2 hdr size + 1 to 64K L3+ data adding an ether header will make the data go over the 64k limits announced to busdma as maxsize and the transaction will fail. With TSO this can result in a TCP regression due to the lost packet. According to the data sheets ixgbe(4) 82598 and 82599 can handle up to 256k so increase the maximum. Reported by: Jon K̴re Hellan, UNINETT (jon.kare.hellan uninett.no) Tested by: Jon K̴re Hellan, UNINETT (jon.kare.hellan uninett.no) MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-23T22:06:57.478385Z K 7 svn:log V 135 John W. De Boskey's commit bit has been re-enabled with rmacklem@ as mentor, to do some work on the new NFS server. Approved by: core END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-23T22:37:48.372370Z K 7 svn:log V 116 MFC r234132: Make the item numbers match the crypt magic number PR: kern/161553 Approved by: cperciva (implicit) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-04-23T23:05:14.482357Z K 7 svn:log V 23 Merge ACPICA 20120420. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-23T23:51:08.139928Z K 7 svn:log V 172 For NFSv4.1, send the seqid field in the open, lock and delegation stateids to the server as 0, so it won't check for NFS4ERR_OLDSTATEID and just use the up to date state. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-23T23:57:24.596622Z K 7 svn:log V 51 Add a malloc definition for NFSv4.1 layout recall. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-24T00:13:59.430834Z K 7 svn:log V 190 Fix up layout recall, layout commit and layout return so that they seem to work ok. I'm still not clear w.r.t. exactly what RFC5661 requires them to do, so much more testing will be needed. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-04-24T01:12:43.328666Z K 7 svn:log V 82 sock_getname: check whether connected only if the peer's name has been requested. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-04-24T03:27:27.959146Z K 7 svn:log V 182 MFC r233160: Expound a bit more about the system maximum number of FIBs, how it may be set, and current limitations on the value. PR: docs/157453 Approved by: hrs (mentor) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-04-24T03:29:10.916901Z K 7 svn:log V 182 MFC r233160: Expound a bit more about the system maximum number of FIBs, how it may be set, and current limitations on the value. PR: docs/157453 Approved by: hrs (mentor) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-04-24T03:30:26.712168Z K 7 svn:log V 182 MFC r233160: Expound a bit more about the system maximum number of FIBs, how it may be set, and current limitations on the value. PR: docs/157453 Approved by: hrs (mentor) END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-24T03:56:39.911393Z K 7 svn:log V 58 MFC r234528, r234536: Fix an infinite loop in fputws(). END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-24T03:56:45.693907Z K 7 svn:log V 58 MFC r234528, r234536: Fix an infinite loop in fputws(). END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-24T03:59:13.473939Z K 7 svn:log V 149 MFC r234529: Ensure that the {,v}swprintf functions always null-terminate the output string, even if an encoding error or malloc failure occurs. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-24T03:59:18.134278Z K 7 svn:log V 149 MFC r234529: Ensure that the {,v}swprintf functions always null-terminate the output string, even if an encoding error or malloc failure occurs. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-04-24T03:59:21.954339Z K 7 svn:log V 149 MFC r234529: Ensure that the {,v}swprintf functions always null-terminate the output string, even if an encoding error or malloc failure occurs. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-04-24T06:26:14.062366Z K 7 svn:log V 140 Improve support for USB packet filtering also when reading dumps, and allow filtered data to be dumped to a binary file. MFC after: 1 week END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-24T07:01:34.243521Z K 7 svn:log V 1474 MFC r232865, r232868, r233478 - Add ipfw eXtended tables permitting radix to be used for any kind of keys. - Add support for IPv6 and interface extended tables - Make number of tables to be changed in runtime in range 0..65534. - Use IP_FW3 opcode for all new extended table cmds No ABI changes are introduced. Old userland will see valid tables for IPv4 tables and no entries otherwise. Flush works for any table. IP_FW3 socket option is used to encapsulate all new opcodes: /* IP_FW3 header/opcodes */ typedef struct _ip_fw3_opheader { uint16_t opcode; /* Operation opcode */ uint16_t reserved[3]; /* Align to 64-bit boundary */ } ip_fw3_opheader; New opcodes added: IP_FW_TABLE_XADD, IP_FW_TABLE_XDEL, IP_FW_TABLE_XGETSIZE, IP_FW_TABLE_XLIST ipfw(8) table argument parsing behavior is changed: 'ipfw table 999 add some-unqualified-host' now assumes 'some-unqualified-host' to be interface name instead of hostname. New tunable: net.inet.ip.fw.tables_max controls number of table supported by ipfw in given VNET instance. 128 is still the default value. Sysctl change: net.inet.ip.fw.tables_max is now read-write. New syntax: ipfw add skipto tablearg ip from any to any via table(42) in ipfw add skipto tablearg ip from any to any via table(4242) out This is a bit hackish, special interface name '\1' is used to signal interface table number is passed in p.glob field. Sponsored by Yandex LLC Approved by: kib(mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-24T07:27:56.584783Z K 7 svn:log V 60 MFC r234376: Add some more SCSI mode pages from SPC-4 spec. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-24T07:28:53.489408Z K 7 svn:log V 60 MFC r234376: Add some more SCSI mode pages from SPC-4 spec. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-24T08:27:58.685392Z K 7 svn:log V 61 Finish r234307: remove useless pflog_softc and list of them. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-24T08:29:00.557613Z K 7 svn:log V 39 Fix compiler warning in pf_send_tcp(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-24T08:30:36.483794Z K 7 svn:log V 85 Move pf_tbladdr_*() from pf.c to pf_ioctl.c, since they are used only in the latter. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-04-24T08:30:55.738146Z K 7 svn:log V 206 Do not toggle IFCAP_TSO4 if we would also do TSO6. Given the driver does not currently announce/support TSO6 that cannot happen. Clean it up anyway for consistency. Reviewed by: yongari MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-24T09:07:30.775903Z K 7 svn:log V 15 Remove extra ; END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-04-24T10:20:24.549867Z K 7 svn:log V 245 MFC r226186 Free mbuf in case when protocol in unknown in ng_ipfw_rcvdata(). This change fixes (theoretically) possible mbuf leak introduced in r225586. Reorder code a bit and change return codes to be more specific Approved by: ae(mentor) END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-04-24T11:42:48.502560Z K 7 svn:log V 185 jemalloc: pointer size definition for 64-bit mips platforms LG_SIZEOF_PTR has to be defined as 3 when jemalloc is compiled for 64 bit platforms. Reviewed by: juli Approved by: jasone END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-04-24T11:46:15.687857Z K 7 svn:log V 121 Add experimental branch for testing of different routing table locking strategies. Not intended to merged back to HEAD. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-04-24T12:15:50.569624Z K 7 svn:log V 185 Add INVARIANT and WITNESS support to rm_lock locks and optimize the synchronization path by replacing a LIST of active readers with a TAILQ. Obtained from: Isilon Submitted by: mlaier END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-04-24T12:43:29.994788Z K 7 svn:log V 305 hange the radix head lock to an rmlock (read mostly lock). There is some header pollution going on because rmlock's are not entirely abstracted and need per-CPU structures. A comment in _rmlock.h says this can be hidden if there were per-cpu linker magic/support. I don't know if we have that already. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-04-24T12:54:04.939599Z K 7 svn:log V 544 Add a function rtlookup() that copies out the relevant information from an rtentry instead of returning the rtentry. This avoids the need to lock the rtentry and to increase the refcount on it. Convert ip_output() to use rtlookup() in a simplistic way. Certain seldom used functionality may not work anymore and the flowtable isn't available at the moment. Convert ip_fastfwd() to use rtlookup(). This code is meant to be used for profiling and to be experimented with further to determine which locking strategy returns the best results. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-24T13:13:42.263682Z K 7 svn:log V 967 States and source nodes reference rules, so when state or source node is expired a rule may potentially be deleted. In the new locking scheme this is a problem, since we don't have writer lock on rules in packet processing, and we don't like any additional atomic operations in forwarding path. To cope with that, pf_rm_rule() was split into two pieces - pf_unlink_rule(), that removes a rule from the ruleset, and pf_free_rule() that does actual freeing. Freeing of once used rules is performed solely by the pf expiry thread. It now performs naive mark-and-sweep algorithm, based on states and source nodes expiry run. We still account number of states per rule and number of source nodes, since they are important to drive adaptive expiry and 'max-src-conn' rules. When we get rid of pf giant lock, these increments/decrements should be reconsidered and probably made atomic. Also: - Migrate from PF_LOCK() to PF_RULES_WLOCK() in all rule manipulating ioctls. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-24T13:36:41.783542Z K 7 svn:log V 183 Revert r234581 for this file. The lockless SLB tree code does in fact need a heavyweight sync instead of a lightweight sync to function properly. Thanks to mdf for the clarification. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-24T13:37:43.915717Z K 7 svn:log V 153 Switch the default I/O memory barrier to eieio, as it should be. This does not appear to cause any problems due to fixes elsewhere. MFC after: 2 months END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-04-24T13:44:46.693624Z K 7 svn:log V 150 Add -u option to 'zfs create' that prevents file system from being automatically mounted. This is similar to the 'zfs receive -u'. MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-04-24T14:06:07.207032Z K 7 svn:log V 70 Add missing and probably also mandatory -h option. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-24T17:00:30.681309Z K 7 svn:log V 239 After r234596, temporarily disable building clang on 32-bit PowerPC, until we are able to fix the binutils bug that makes linking clang fail with "relocation truncated to fit: R_PPC_REL24" errors. This should fix the tinderboxes for now. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-24T17:51:36.355317Z K 7 svn:log V 257 Take the spinlock around clearing of the fp->_flags in fclose(3), which indicates the avaliability of FILE, to prevent possible reordering of the writes as seen by other CPUs. Reported by: Fengwei yin Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-24T18:41:17.151674Z K 7 svn:log V 395 Work around llvm PR 12623, which makes variables declared with .symver sometimes disappear from the resulting object file, if compiled with clang. In particular, this can lead to errors when building world with clang and -g, similar to: /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_malloc_options' Reported by: Conrad J. Sabatier Reviewed by: jasone END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-04-24T19:00:42.927017Z K 7 svn:log V 65 MFC: r232702 Free up allocated memory used by posix_fadvise(2). END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-04-24T19:08:40.297934Z K 7 svn:log V 719 MFC r232317: Introduce VOP_UNP_BIND(), VOP_UNP_CONNECT(), and VOP_UNP_DETACH() operations for setting and accessing vnode's v_socket field. The operations are necessary to implement proper unix socket handling on layered file systems like nullfs(5). This change fixes the long standing issue with nullfs(5) being in that unix sockets did not work between lower and upper layers: if we bound to a socket on the lower layer we could connect only to the lower path; if we bound to the upper layer we could connect only to the upper path. The new behavior is one can connect to both the lower and the upper paths regardless what layer path one binds to. PR: kern/51583, kern/159663 Suggested by: kib Reviewed by: arch END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-04-24T20:27:31.086299Z K 7 svn:log V 65 MFC: r232702 Free up allocated memory used by posix_fadvise(2). END