ı 233195 174 734 118 106 147 570 212 212 282 330 162 166 166 208 215 199 248 817 140 148 248 241 145 403 360 204 229 272 183 385 278 202 191 2052 108 173 385 1446 676 173 170 252 153 117 114 136 140 343 235 141 135 140 342 234 140 359 116 165 127 161 138 152 573 258 298 349 235 365 432 168 408 526 231 122 120 158 252 572 362 277 778 733 183 159 255 171 160 155 225 279 180 1140 1140 185 173 143 300 1281 109 164 1918 114 245 521 157 610 183 180 135 226 226 332 243 474 193 214 495 184 141 187 200 200 374 313 226 386 150 192 410 469 282 282 536 536 169 133 228 141 124 154 126 129 185 254 162 148 225 218 537 269 141 341 175 172 207 468 514 556 283 947 486 211 211 255 557 557 306 151 222 235 222 270 334 253 746 K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-19T19:17:55.952648Z K 7 svn:log V 641 Fix the following warning from clang trunk: usr.sbin/dconschat/dconschat.c:163:65: error: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'off_t' (aka 'long long') [-Werror,-Wformat] snprintf(buf, PAGE_SIZE, "\r\n[dconschat reset target(addr=0x%zx)...]\r\n", dc->reset); ~~^ ~~~~~~~~~ %llx Silence this by casting dc->reset to intmax_t, and using the appropriate length modifier. While here, wrap the line to a 80 character margin. MFC after: 3 days END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-03-19T19:25:22.571025Z K 7 svn:log V 24 o Trim EoL whitespaces. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-03-19T19:27:43.958200Z K 7 svn:log V 12 o Sort Xrs. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T19:53:53.248556Z K 7 svn:log V 55 Fix build of OFED bits with debugging options enabled. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T20:15:18.411186Z K 7 svn:log V 477 MFC 225096: Fix if_addr_mtx recursion in mld6. mld_set_version() is called only from mld_v1_input_query() and mld_v2_input_query() both holding the if_addr_mtx lock, and then calling into mld_v2_cancel_link_timers() acquires it the second time, which results in mtx recursion. To avoid that, delay if_addr_mtx acquisition until after mld_set_version() is called; while here, further reduce locking scope to protect only the needed pieces: if_multiaddrs, in6m_lookup_locked(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T20:49:16.688038Z K 7 svn:log V 119 MFC 229621: Convert all users of IF_ADDR_LOCK to use new locking macros that specify either a read lock or write lock. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T20:49:42.119383Z K 7 svn:log V 119 MFC 229621: Convert all users of IF_ADDR_LOCK to use new locking macros that specify either a read lock or write lock. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T21:09:12.670716Z K 7 svn:log V 189 Retire the IF_ADDR_LOCK() and IF_ADDR_UNLOCK() compat macros from HEAD. The new [RW]LOCK macros are merged back to 8.x so should be suitable for new code in HEAD even if it is to be MFC'd. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-19T21:24:50.328696Z K 7 svn:log V 236 Move userland bits (and some common kernel bits) from amd64 and i386 segments.h to a new x86 segments.h. Add __packed attribute to some structs (just to be sure). Also make it clear that i386 GDT and LDT entries are used in ia64 code. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-19T21:29:57.786954Z K 7 svn:log V 69 Copy i386 psl.h to x86 and replace amd64/i386/pc98 psl.h with stubs. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T21:33:23.799082Z K 7 svn:log V 74 MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-19T21:33:35.842342Z K 7 svn:log V 74 MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2). END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-19T21:34:11.440716Z K 7 svn:log V 114 Copy i386 specialreg.h to x86 and merge with amd64 specialreg.h. Replace amd64/i386/pc98 specialreg.h with stubs. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-19T21:47:50.608955Z K 7 svn:log V 121 Fix a witness panic introduced in r231797. Reported by: bschmidt Reviewed by: jhb Pointy hat to: jkim MFC after: 3 days END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-19T21:57:31.932138Z K 7 svn:log V 105 Copy amd64 sysarch.h to x86 and merge with i386 sysarch.h. Replace amd64/i386/pc98 sysarch.h with stubs. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-19T22:08:13.126210Z K 7 svn:log V 154 MFC: r232991 Add a PCI quirk to ignore PCI map registers from configuration space. This works around a resource conflict, e. g., MSI K9AGM2 motherboard. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-03-19T22:20:47.750580Z K 7 svn:log V 719 We seem to be having issues with a bug in the loader that causes it to estimate the program header size for the kernel wrong. It can result in the kernel build failing with the message: ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) ld: final link failed: Bad value Tinderbox builds were failing with this message a short time ago, and I encountered it while preparing the i386 build machine for the 8.3-RC2 builds. Konstantin has looked at it and believes the issue was fixed in recent versions of binutils. It is a bit too late in the release process to be messing around with the loader and/or binutils. This workaround seems to take care of the problem for now. Reviewed by: kib END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-03-19T22:23:07.051501Z K 7 svn:log V 45 Forgot those bits when adding NO_EVENTTIMERS END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-03-19T22:23:52.759873Z K 7 svn:log V 53 Remove useless and potentially harmful cache flushes END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-19T22:26:02.656998Z K 7 svn:log V 154 MFC: r232991 Add a PCI quirk to ignore PCI map registers from configuration space. This works around a resource conflict, e. g., MSI K9AGM2 motherboard. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-03-19T22:26:15.110907Z K 7 svn:log V 145 Those bit should have been committed as well, use the page tables provided by the BSP instead of assuming startup_pagetables is still available. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-03-19T22:34:24.615090Z K 7 svn:log V 50 Add VFP/Neon support Submitted by: Mark Tinguely END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T22:41:53.005231Z K 7 svn:log V 305 MFC 227470: Report the amount of memory from smbios data if provided. This should get the correct memory size even if a 32-bit image is running on a machine with > 4GB of memory. This can be useful is using a 32-bit installer on a machine which will eventually run a 64-bit image. Reviewed by: kmoore END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T22:52:19.141258Z K 7 svn:log V 262 MFC: 232681 Work around broken BIOS memory reporting Andrzej has a machine with 32GB of RAM, but only 16GB is reported by the smbios.memory.enabled. Thus, use the greater of hw.realmem and the smbios value. Reported by: Andrzej Tobola END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T22:59:19.928156Z K 7 svn:log V 106 MFC: 232880 Fix a bug running the autoinstall functionality. Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:04:21.203464Z K 7 svn:log V 131 MFC: 232889 Make sure when creating new MBR partition it is set to active by default. Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:09:30.272713Z K 7 svn:log V 174 MFC: 232890 Fix a couple of bugs saving network config. Don't duplicate wlans_ lines. Enable ipv6 on wireless devices correctly. Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:14:47.770326Z K 7 svn:log V 86 MFC: 232895 Check for intel RAID devices Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:17:26.517087Z K 7 svn:log V 287 MFC: 232898 Improve ZFS exporting functionality, only export pools which are on a specific device we happen to be writing to. This fixes an issue when running pc-sysinstall on a running system which needs ZFS and the main disk gets exported. Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:20:52.021153Z K 7 svn:log V 180 MFC: 232899 Add the ability to use a varity of ZFS dataset options. While here fix a bug causing zpools with /tmp mount-points to fail Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-19T23:25:10.834129Z K 7 svn:log V 106 MFC 232510: Permit the use of raidz3 in pc-sysinstall PR: conf/164709 Approved by: cperciva (implicit) END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-19T23:28:13.384495Z K 7 svn:log V 94 MFC: 232901 Use gpart "-a" flag to 4k alignment. Submitted by: kmoore Obtained from: PC-BSD END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-20T04:50:25.592006Z K 7 svn:log V 1955 Delay sequence number allocation for A-MPDU until just before the frame is queued to the hardware. Because multiple concurrent paths can execute ath_start(), multiple concurrent paths can push frames into the software/hardware TX queue and since preemption/interrupting can occur, there's the possibility that a gap in time will occur between allocating the sequence number and queuing it to the hardware. Because of this, it's possible that a thread will have allocated a sequence number and then be preempted by another thread doing the same. If the second thread sneaks the frame into the BAW, the (earlier) sequence number of the first frame will be now outside the BAW and will result in the frame being constantly re-added to the tail of the queue. There it will live until the sequence numbers cycle around again. This also creates a hole in the RX BAW tracking which can also cause issues. This patch delays the sequence number allocation to occur only just before the frame is going to be added to the BAW. I've been wanting to do this anyway as part of a general code tidyup but I've not gotten around to it. This fixes the PR. However, it still makes it quite difficult to try and ensure in-order queuing and dequeuing of frames. Since multiple copies of ath_start() can be run at the same time (eg one TXing process thread, one TX completion task/one RX task) the driver may end up having frames dequeued and pushed into the hardware slightly/occasionally out of order. And, to make matters more annoying, net80211 may have the same behaviour - in the non-aggregation case, the TX code allocates sequence numbers before it's thrown to the driver. I'll open another PR to investigate this and potentially introduce some kind of final-pass TX serialisation before frames are thrown to the hardware. It's also very likely worthwhile adding some debugging code into ath(4) and net80211 to catch when/if this does occur. PR: kern/166190 END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-20T07:59:36.939722Z K 7 svn:log V 14 IFC @r233227. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-03-20T12:24:36.994493Z K 7 svn:log V 79 o Xr siftr.4 in order to expose it to a wider audience. Reviewed by: lstewart END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-03-20T13:08:57.489922Z K 7 svn:log V 292 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. Submitted by: Lukasz Wojcik Obtained from: Semihalf MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-20T13:20:49.710862Z K 7 svn:log V 1352 Fix several problems with our ELF filters implementation. Do not relocate twice an object which happens to be needed by loaded binary (or dso) and some filtee opened due to symbol resolution when relocating need objects. Record the state of the relocation processing in Obj_Entry and short-circuit relocate_objects() if current object already processed. Do not call constructors for filtees loaded during the early relocation processing before image is initialized enough to run user-provided code. Filtees are loaded using dlopen_object(), which normally performs relocation and initialization. If filtee is lazy-loaded during the relocation of dso needed by the main object, dlopen_object() runs too earlier, when most runtime services are not yet ready. Postpone the constructors call to the time when main binary and depended libraries constructors are run, passing the new flag RTLD_LO_EARLY to dlopen_object(). Symbol lookups callers inform symlook_* functions about early stage of initialization with SYMLOOK_EARLY. Pass flags through all functions participating in object relocation. Use the opportunity and fix flags argument to find_symdef() in arch-specific reloc.c to use proper name SYMLOOK_IN_PLT instead of true, which happen to have the same numeric value. Reported and tested by: theraven Reviewed by: kan MFC after: 2 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-20T16:56:35.204974Z K 7 svn:log V 579 Update the list of struct ifnet fields. - Document if_vnet, if_home_vnet, if_carp, if_vlantrunk, if_multiaddrs, if_amcount, if_addr, if_llsoftc stub, if_broadcastaddr, if_bridge, if_label, if_afdata, if_afdata_initialized, if_afdata_lock, if_linktask, if_addr_mtx (now if_addr_lock), if_clones, if_groups, if_pf_kif, if_lagg, if_alloctype - G/c now defunct and/or commented out in the manual page if_ipending, if_poll_slowq, if_done, if_poll_recv, if_poll_xmit, if_poll_slowinput, if_poll_intren - Update if_snd type changed with ALTQ integration. MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-20T17:41:02.267401Z K 7 svn:log V 76 Import new version of libcxxrt to vendor branch. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-20T17:43:30.382661Z K 7 svn:log V 73 Tag new version of libcxxrt in vendor branch. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-20T17:58:15.594603Z K 7 svn:log V 154 Import new version of libcxxrt. Now works correctly with libobjc2 to implement the unified exception model for Objective-C++. Approved by: dim (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-20T18:05:15.402301Z K 7 svn:log V 61 Add sys/ofed to the 'make cscope' target. MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-20T18:17:33.769502Z K 7 svn:log V 24 Import ACPICA 20120320. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-20T18:18:12.793314Z K 7 svn:log V 21 Tag ACPICA 20120320. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:16:54.514564Z K 7 svn:log V 41 MFC r231895: Remove two clang warnings. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:19:50.736482Z K 7 svn:log V 45 MFC r232724: Add support for stf interfaces. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:22:44.967567Z K 7 svn:log V 247 MFC r232866: This fixes PR 165210. Basically we just add in the netgraph interface to the list of acceptable interfaces. A todo at the next IETF code blitz, though is we need to review why we screen interfaces, there was a reason ;-). From rrs@. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:24:56.159028Z K 7 svn:log V 139 MFC r233004: Fix bugs which can result in a panic when an non-SCTP socket it used with an sctp_ system-call which expects an SCTP socket. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:27:27.014418Z K 7 svn:log V 46 MFC r233005: Clean up, no functional change. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:37:05.581395Z K 7 svn:log V 40 MFC r231895: Remove two clang warnings. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:39:44.248953Z K 7 svn:log V 45 MFC r232724: Add support for stf interfaces. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:42:40.590653Z K 7 svn:log V 246 MFC r232866: This fixes PR 165210. Basically we just add in the netgraph interface to the list of acceptable interfaces. A todo at the next IETF code blitz, though is we need to review why we screen interfaces, there was a reason ;-). From rrs@. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:45:25.601758Z K 7 svn:log V 138 MFC r233004: Fix bugs which can result in a panic when an non-SCTP socket it used with an sctp_ system-call which expects an SCTP socket. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-20T19:47:59.886395Z K 7 svn:log V 45 MFC r233005: Clean up, no functional change. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-20T20:37:23.303073Z K 7 svn:log V 265 Fix another witness panic. We cannot enter critical section at all because AcpiEnterSleepState() executes (optional) _GTS method since ACPICA 20120215 (r231844). To evaluate the method, we need malloc(9), which may sleep. Reported by: bschmidt MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-20T21:37:52.433413Z K 7 svn:log V 23 Merge ACPICA 20120320. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-03-20T21:44:48.599626Z K 7 svn:log V 69 Restore the cleanup of cached pages in zfs_lookup(). Tested by: flo END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-03-20T21:50:31.387821Z K 7 svn:log V 31 Remove an unuseful assignment. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T03:08:21.578074Z K 7 svn:log V 65 Project for properly destroying pthread synchronization objects. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T03:13:25.426017Z K 7 svn:log V 42 This private project is no longer needed. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-21T03:19:50.941848Z K 7 svn:log V 57 Re-commit this - store the alq payload in network order. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-21T04:00:58.967156Z K 7 svn:log V 480 Eliminate vm.pmap.shpgperproc and vm.pmap.pv_entry_max because they no longer serve any purpose. Prior to r157446, they served a purpose because there was a fixed amount of kernel virtual address space reserved for pv entries at boot time. However, since that change pv entries are accessed through the direct map, and so there is no limit imposed by a fixed amount of kernel virtual address space. Fix a couple of nearby style issues. Reviewed by: jhb, kib MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T06:51:45.216612Z K 7 svn:log V 161 Don't run through time checks when entry is definitely oversized. This leads to newsyslog rotating on (size OR time) if both are specified. PR: 100018, 160432 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T07:02:17.146217Z K 7 svn:log V 201 Fix a sentence in a paragraph that describes time and interval based trimming. This sentence vaguely can be interpreted as if it was speaking about time and size interaction, while it wasn't about it. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T07:05:29.842091Z K 7 svn:log V 252 Merge 226690 and 226725 from head: Protect NIS client with madvise(2) since this daemon is required for succesful authentication of users. Protect NIS server with madvise(2) since this daemon is required for succesful authentication of users. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:07:00.227903Z K 7 svn:log V 138 Change semaphore to merge waiter bit and count in same word, this allows us gracefully to destroy semaphore, also remove rmb() ambiguity. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T07:07:43.651381Z K 7 svn:log V 268 Merge 227308 from head/: In icmp6_redirect_input: - Assert that we got a valid mbuf with rcvif pointer. [1] - Use __func__ in logging. Submitted by: prabhakar lakhera [1] Submitted by: Kristof Provost [1] END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:12:52.372589Z K 7 svn:log V 335 Use version 2 of semaphore provided by kernel umtx code, now if there is no waiters, we still increase and decrease count in user mode without entering kernel, once there is a waiter, sem_post will enter kernel to increase count and wake thread up, this is atomicy and allow us to gracefully destroy semaphore after sem_wait returned. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:16:58.916089Z K 7 svn:log V 72 Revert previous change. It is an incomplete change from old branch. :-( END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:21:05.947543Z K 7 svn:log V 311 Use version 2 of semaphore provided by kernel umtx code, now if there is no waiters, we still increase and decrease count in user mode, once there is a waiter, sem_post will enter kernel to increase count and wake thread up, this is atomicy and allow us to gracefully destroy semaphore after sem_wait returned. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T07:22:27.833244Z K 7 svn:log V 429 Merge from head: r227785: - Reduce severity for all ARP events, that can be triggered from remote machine to LOG_NOTICE. Exception left to "using my IP address". - Fix multicast ARP warning: add newline and also log the bad MAC address. Tested by: Alexander Wittig r227790: Be more informative for "unknown hardware address format" message. Submitted by: Andrzej Tobola END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T07:29:47.480815Z K 7 svn:log V 134 Merge 228321 from head: Fix double free. PR: kern/163089 Submitted by: Herbie Robinson END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:33:41.364858Z K 7 svn:log V 26 Only spin on SMP machine. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-21T07:49:13.754686Z K 7 svn:log V 24 Use boolean expression. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T08:03:07.100977Z K 7 svn:log V 62 Add multibyte char support. PR: 165429 Submitted by: amdmi3 END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-21T08:08:23.948150Z K 7 svn:log V 156 MFC r233004: Fix bugs which can result in a panic when an non-SCTP socket it used with an sctp_ system-call which expects an SCTP socket. Approved by: re@ END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-21T08:38:42.709594Z K 7 svn:log V 480 Remove pty(4) from our kernel configurations. As of FreeBSD 8, this driver should not be used. Applications that use posix_openpt(2) and openpty(3) use the pts(4) that is built into the kernel unconditionally. If it turns out high profile depend on the pty(4) module anyway, I'd rather get those fixed. So please report any issues to me. The pty(4) module is still available as a kernel module of course, so a simple `kldload pty' can be used to run old-style pseudo-terminals. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T08:43:38.514899Z K 7 svn:log V 265 in6_pcblookup_local() still can return a pcb with NULL inp_socket. To avoid panic, do not dereference inp_socket, but obtain reuse port option from inp_flags2, like this is done after next call to in_pcblookup_local() a few lines down below. Submitted by: rwatson END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-21T08:50:47.364045Z K 7 svn:log V 181 Exclude devices which are mutually exclusive with ATA_CAM. For better or worse, the former are still built as modules as part of the LINT builds Reviewed by: mav MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-21T08:57:15.455372Z K 7 svn:log V 682 Remove remnants of ATA_LOCKING uses in the ATA_CAM case and wrap it along with functions, SYSCTLs and tunables that are not used with ATA_CAM in #ifndef ATA_CAM, similar to the existing #ifdef'ed ATA_CAM code for the other way around. This makes it easier to understand which parts of ata(4) actually are used in the new world order and to later on remove the !ATA_CAM bits. It also makes it obvious that there is something fishy with the C-bus front-end as well as in the ATP850 support, as these used ATA_LOCKING which is defunct in the ATA_CAM case. When fixing the former, ATA_LOCKING probably needs to be brought back in some form or other. Reviewed by: mav MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-21T09:19:23.752741Z K 7 svn:log V 636 Merge 232685 from head: Merge from OpenBSD: revision 1.146 date: 2010/05/12 08:11:11; author: claudio; state: Exp; lines: +2 -3 bzero() the full compressed update struct before setting the values. This is needed because pf_state_peer_hton() skips some fields in certain situations which could result in garbage beeing sent to the other peer. This seems to fix the pfsync storms seen by stephan@ and so dlg owes me a whiskey. I didn't see any storms, but this definitely fixes a useless memory allocation on the receiving side, due to non zero scrub_flags field in a pfsync_state_peer structure. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-21T09:48:32.661636Z K 7 svn:log V 92 Acquire modules lock before call module_getname() in the KLD_DEBUG case. MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-21T10:03:52.092898Z K 7 svn:log V 68 MFC r224546 (by glebius): Don't leak kld_sx lock in kldunloadf(). END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-21T10:27:12.664529Z K 7 svn:log V 157 o) Don't keep drive parameters in a global, put them in the softc. o) Don't report a bogus stripesize. o) Eliminate a nearby gratuitous "proxy" indirection. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-21T15:54:44.439399Z K 7 svn:log V 76 Flesh out a few more 802.11s test cases. Submitted by: monthadar@gmail.com END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-21T16:01:15.246661Z K 7 svn:log V 65 Add a very simple (and dumb) script to run the wtap test suites. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-21T16:16:59.552150Z K 7 svn:log V 64 MFC r232975: Add an assert for proctree_lock to proc_to_reap(). END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-21T16:59:39.327931Z K 7 svn:log V 129 - First pass at const'ifying ata(4) as appropriate. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers MFC after: 1 week END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-21T19:08:44.255889Z K 7 svn:log V 181 Load the firmware during init not attach, as a root filesystem might not yet be available. While here, also print the firmware version. Submitted by: PseudoCylon MFC after: 3 days END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-21T19:09:52.168351Z K 7 svn:log V 83 Update the firmware to version 0.236 Submitted by: PseudoCylon MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-21T20:50:15.490452Z K 7 svn:log V 1046 MFC 230394,230441,230489,230552,232420: Close a race in NFS lookup processing that could result in stale name cache entries on one client when a directory was renamed on another client. The root cause for the stale entry being trusted is that each per-vnode nfsnode structure has a single 'n_ctime' timestamp used to validate positive name cache entries. However, if there are multiple entries for a single vnode, they all share a single timestamp. To fix this, extend the name cache to allow filesystems to optionally store a timestamp value in each name cache entry. The NFS clients now fetch the timestamp associated with each name cache entry and use that to validate cache hits instead of the timestamps previously stored in the nfsnode. Another part of the fix is that the NFS clients now use timestamps from the post-op attributes of RPCs when adding name cache entries rather than pulling the timestamps out of the file's attribute cache. The latter is subject to races with other lookups updating the attribute cache concurrently. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-21T20:50:47.950381Z K 7 svn:log V 1046 MFC 230394,230441,230489,230552,232420: Close a race in NFS lookup processing that could result in stale name cache entries on one client when a directory was renamed on another client. The root cause for the stale entry being trusted is that each per-vnode nfsnode structure has a single 'n_ctime' timestamp used to validate positive name cache entries. However, if there are multiple entries for a single vnode, they all share a single timestamp. To fix this, extend the name cache to allow filesystems to optionally store a timestamp value in each name cache entry. The NFS clients now fetch the timestamp associated with each name cache entry and use that to validate cache hits instead of the timestamps previously stored in the nfsnode. Another part of the fix is that the NFS clients now use timestamps from the post-op attributes of RPCs when adding name cache entries rather than pulling the timestamps out of the file's attribute cache. The latter is subject to races with other lookups updating the attribute cache concurrently. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-21T20:53:47.691196Z K 7 svn:log V 90 Use the common/shared CRC-32 implementation instead of duplicating it. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-21T20:55:21.746234Z K 7 svn:log V 78 Declare the CRC lookup-tables const as they hardly should change at run-time. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-21T23:10:16.935884Z K 7 svn:log V 48 MFC r229201: sh: Make patmatch() non-recursive. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-22T04:40:22.292090Z K 7 svn:log V 207 Change pv_entry_count to a long. During the lifetime of FreeBSD 10.x, physical memory sizes at the high-end will likely reach a point that the number of pv entries could overflow an int. Submitted by: kib END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-22T04:52:51.005795Z K 7 svn:log V 1187 Handle spurious page faults that may occur in no-fault sections of the kernel. When access restrictions are added to a page table entry, we flush the corresponding virtual address mapping from the TLB. In contrast, when access restrictions are removed from a page table entry, we do not flush the virtual address mapping from the TLB. This is exactly as recommended in AMD's documentation. In effect, when access restrictions are removed from a page table entry, AMD's MMUs will transparently refresh a stale TLB entry. In short, this saves us from having to perform potentially costly TLB flushes. In contrast, Intel's MMUs are allowed to generate a spurious page fault based upon the stale TLB entry. Usually, such spurious page faults are handled by vm_fault() without incident. However, when we are executing no-fault sections of the kernel, we are not allowed to execute vm_fault(). This change introduces special-case handling for spurious page faults that occur in no-fault sections of the kernel. In collaboration with: kib Tested by: gibbs (an earlier version) I would also like to acknowledge Hiroki Sato's assistance in diagnosing this problem. MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-22T07:34:15.800427Z K 7 svn:log V 18 Bye bye ClangBSD! END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T08:38:13.299229Z K 7 svn:log V 68 MFC r233010: Remove TARGET_ARCH conditionals for COMPAT_FREEBSD32. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-22T08:48:42.425489Z K 7 svn:log V 1823 - Update FreeBSD Heimdal distribution to version 1.5.1. This also brings several new kerberos related libraries and applications to FreeBSD: o kgetcred(1) allows one to manually get a ticket for a particular service. o kf(1) securily forwards ticket to another host through an authenticated and encrypted stream. o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1) and other user kerberos operations. klist and kswitch are just symlinks to kcc(1) now. o kswitch(1) allows you to easily switch between kerberos credentials if you're running KCM. o hxtool(1) is a certificate management tool to use with PKINIT. o string2key(1) maps a password into key. o kdigest(8) is a userland tool to access the KDC's digest interface. o kimpersonate(8) creates a "fake" ticket for a service. We also now install manpages for some lirbaries that were not installed before, libheimntlm and libhx509. - The new HEIMDAL version no longer supports Kerberos 4. All users are recommended to switch to Kerberos 5. - Weak ciphers are now disabled by default. To enable DES support (used by telnet(8)), use "allow_weak_crypto" option in krb5.conf. - libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings disabled due to the function they use (krb5_get_err_text(3)) being deprecated. I plan to work on this next. - Heimdal's KDC now require sqlite to operate. We use the bundled version and install it as libheimsqlite. If some other FreeBSD components will require it in the future we can rename it to libbsdsqlite and use for these components as well. - This is not a latest Heimdal version, the new one was released while I was working on the update. I will update it to 1.5.2 soon, as it fixes some important bugs and security issues. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-22T09:29:07.200261Z K 7 svn:log V 23 Correct debug message. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T09:42:27.792898Z K 7 svn:log V 148 Prevent fs_file NULL pointer dereference in fixfsfile() uncovered after r1.5 when passing damaged user-supplied fstab file data. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-22T09:47:10.186292Z K 7 svn:log V 428 MFC r233193: Add explicit braces to avoid dangling else in stl_tree.h. This silences the following warning produced by clang trunk: In file included from /usr/src/sbin/devd/devd.cc:91: In file included from /usr/obj/usr/src/tmp/usr/include/c++/4.2/map:64: /usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/stl_tree.h:987:2: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else] else ^ END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T09:47:14.616842Z K 7 svn:log V 61 Garbage collect defunct nlist(3) symbols. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-22T09:50:16.405013Z K 7 svn:log V 517 MFC r233195: Fix the following warning from clang trunk: usr.sbin/dconschat/dconschat.c:163:65: error: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'off_t' (aka 'long long') [-Werror,-Wformat] snprintf(buf, PAGE_SIZE, "\r\n[dconschat reset target(addr=0x%zx)...]\r\n", dc->reset); ~~^ ~~~~~~~~~ %llx Silence this by casting dc->reset to intmax_t, and using the appropriate length modifier. While here, wrap the line to a 80 character margin. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T09:51:31.113332Z K 7 svn:log V 87 Fix style. Somehow I managed to lost a space when copy&paste. Pointed out by: stefanf END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-03-22T10:26:53.182605Z K 7 svn:log V 84 Add PRCM and SCM prereqs for USB controller on AM335x Approved by: cognet (mentor) END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-22T11:18:14.912990Z K 7 svn:log V 42 - Avoid use of deprecated KRB5 functions. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T11:43:54.116271Z K 7 svn:log V 129 MFC r210525: Missing IFCAP_* macro descriptions in ifnet(9). PR: docs/148952 Submitted by: Lars Hartmann END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-22T11:47:06.790645Z K 7 svn:log V 129 MFC r210525: Missing IFCAP_* macro descriptions in ifnet(9). PR: docs/148952 Submitted by: Lars Hartmann END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-22T12:23:32.348937Z K 7 svn:log V 239 Mark the 'lapics' and 'ioapics' arrays here static since they are private to this file. The 'lapics' array was actually shadowing a completely different 'lapics' array that is private to local_apic.c. Reported by: bde MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-22T14:11:10.673060Z K 7 svn:log V 150 Remove the fragments which are not needed on FreeBSD. The caltech malloc hardly would ever be updated. Reviewed by: bde, kan MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-22T14:20:51.329606Z K 7 svn:log V 381 Use xmalloc() instead of malloc() in the places where malloc() calls are assumed to not fail. Make the xcalloc() calling conventions follow the calloc(3) calling conventions and replace unchecked calls to calloc() with calls to xcalloc(). Remove redundand declarations from xmalloc.c, which are already present in rtld.h. Reviewed by: kan Discussed with: bde MFC after: 2 weeks END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-03-22T15:14:10.351764Z K 7 svn:log V 96 Fix return type of mips pmap_kextract() The return type should be vm_paddr_t, not vm_offset_t. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-22T15:21:09.581769Z K 7 svn:log V 117 Improve readibility of pf_get_translation() removing a level of indentation and adding assertions for *skp and *nkp. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-22T16:19:04.102104Z K 7 svn:log V 401 Add snd_cmi, snd_csa and snd_emu10kx to GENERIC on i386 and amd64. The GPL infected parts which were blocking the inclusion of snd_csa and snd_emu10kx in GENERIC have recently been removed from the tree. I'm also adding snd_cmi to GENERIC, which I originally intended to add when we enabled sound support by default. Discussed with: jhb, pfg, Yuriy Tsibizov Approved by: jhb END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-22T16:22:16.764824Z K 7 svn:log V 89 Small cleanup of the code. No functional change (in FreeBSD kernel). MFC after: 1 week. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-22T16:24:50.940682Z K 7 svn:log V 48 Update snd_cmi, snd_csa and snd_emu10kx status. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-22T17:01:25.666087Z K 7 svn:log V 94 Add ACPI_LV_REPAIR debug level, available since ACPICA 20091214 (r200553). MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-22T17:02:05.948055Z K 7 svn:log V 102 MFC r233037 and r233039: Fix cross-platform issue about the file-format in which usbdump stores data. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-22T17:04:49.375930Z K 7 svn:log V 102 MFC r233037 and r233039: Fix cross-platform issue about the file-format in which usbdump stores data. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-22T17:36:53.248353Z K 7 svn:log V 279 Fix PMC syscall on 64-bit big endian systems. Sycall argument is pointer to array of register_t values. Casting it to pointer to structure with fields of size smaller then register_t we rely on compiler-dependent memory layout of structure. Tested on: mips64 and amd64 systems END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-22T17:44:36.593178Z K 7 svn:log V 218 Fix base vaddr detection for ELF binaries. PT_LOAD with offset 0 is not mandatory for ELF binaries so we'll use the segment with offset less then alignment and align it appropriately (which covers pt_offset == 0 case) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-22T17:47:52.828815Z K 7 svn:log V 131 Move PMC hook invocation to cpu_intr. The idea is the same as with ast() call but there is no reason to implement it in assembler. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-22T18:01:23.007340Z K 7 svn:log V 291 Rework MIPS PMC code: - Replace MIPS24K-specific code with more generic framework that will make adding new CPU support easier - Add MIPS24K support for new framework - Limit backtrace depth to 1 for stability reasons and add option HWPMC_MIPS_BACKTRACE to override this limitation END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-22T18:07:44.024416Z K 7 svn:log V 56 Make reusable part of code have mips prefix, not mips24 END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2012-03-22T19:04:22.973053Z K 7 svn:log V 97 Correct a function prototype. Submitted by: "Anders Magnusson" , via joel END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-03-22T20:31:52.744280Z K 7 svn:log V 317 MFC: 232703 Add support for ns timestamps and birthtime to the ext2/3 driver. When using big inodes there is sufficient space in ext3 to keep extra resolution and birthtime (creation) timestamps. We now support the extra timestamps silently when the inode is big enough. Reviewed by: bde Approved by: jhb (mentor) END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-03-22T20:34:26.248704Z K 7 svn:log V 376 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 MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-22T20:51:35.693275Z K 7 svn:log V 189 MFC 232116: Adjust the nfs_skip_wcc_data_onerr setting so that it does not block post-op attributes for ENOENT errors now that the name caching logic depends on working post-op attributes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-22T20:52:00.216128Z K 7 svn:log V 189 MFC 232116: Adjust the nfs_skip_wcc_data_onerr setting so that it does not block post-op attributes for ENOENT errors now that the name caching logic depends on working post-op attributes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-22T21:07:54.968292Z K 7 svn:log V 443 MFC 230547: Add a timeout on positive name cache entries in the NFS client. That is, we will only trust a positive name cache entry for a specified amount of time before falling back to a LOOKUP RPC, even if the ctime for the file handle matches the cached copy in the name cache entry. The timeout is configured via a new 'nametimeo' mount option and defaults to 60 seconds. It may be set to zero to disable positive name caching entirely. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-22T21:08:14.348680Z K 7 svn:log V 443 MFC 230547: Add a timeout on positive name cache entries in the NFS client. That is, we will only trust a positive name cache entry for a specified amount of time before falling back to a LOOKUP RPC, even if the ctime for the file handle matches the cached copy in the name cache entry. The timeout is configured via a new 'nametimeo' mount option and defaults to 60 seconds. It may be set to zero to disable positive name caching entirely. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-22T21:22:58.664117Z K 7 svn:log V 74 Fix an incorrect parameter usage here. Submitted by: monthadar@gmail.com END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-22T21:47:14.951061Z K 7 svn:log V 38 Sprinkle some style(9) things around. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-22T21:48:36.902237Z K 7 svn:log V 132 Add some further debugging to try and aid tracking down what the state of things were just before a full software queue is drained. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:01:09.758262Z K 7 svn:log V 47 Setup fake MODINFO variables for octeon kernel END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:03:26.796821Z K 7 svn:log V 30 Add Octeon class and CPU type END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:04:09.546616Z K 7 svn:log V 60 Add list of Octeon's PMC counters obtained from cvmx-core.h END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:09:27.051797Z K 7 svn:log V 32 Add Octeon PMC hardware backend END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:10:21.909232Z K 7 svn:log V 35 Add Octeon-related parts to libpmc END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T00:11:54.611913Z K 7 svn:log V 91 Add pseudo-device for handling PMC interrupts and link everything PMC-related to build END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-23T03:16:35.256507Z K 7 svn:log V 160 - Do not build libcom_err and compile_et when kerberos is disabled. They depends on several heimdal libraries and not used by anything but kerberos tools. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-23T03:43:04.075867Z K 7 svn:log V 69 - Add new kerberos libraries to the list of optional obsolete files. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T06:01:16.711634Z K 7 svn:log V 52 Update IFF_* macro descriptions. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T06:06:37.823070Z K 7 svn:log V 128 Document IFT_USB referenced by IFF_CANTCONFIG since the previous change, so that ifnet(9) is self contained. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T06:57:04.777579Z K 7 svn:log V 121 Remove archive_entry_*_w(3) entries from ObsoleteFiles.inc. Since the recent libarchive import they are MLINK'ed again. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-23T07:26:17.465107Z K 7 svn:log V 445 Check that scheme is not already registered. This may happens when a KLD is preloaded with loader(8) and leads to infinity loops. Also do not return EEXIST error code from MOD_LOAD handler, because we have undocumented(?) ability replace kernel's module with preloaded one. And if we have so, then preloaded module will be initialized first. Thus error in MOD_LOAD handler will be triggered for the kernel. PR: kern/165573 MFC after: 3 weeks END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-23T07:45:11.444944Z K 7 svn:log V 175 - Take krb5_verify_user.3.gz out of ObsoleteFiles as it's still being installed. - Add 32-bit compat old kerberos libraries to ObsoleteFiles as well. Reported by: pluknet@ END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-23T07:52:37.541234Z K 7 svn:log V 48 - Actually fill the date of the Heimdal update. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-23T08:26:31.856426Z K 7 svn:log V 249 Make utmpx(3) thread safe if we support TLS. Because the utmpx interface is generally not required to be thread-safe, but it is nice to have, if easy to do so. Therefore don't make a mess out of the code and only use it if __NO_TLS is not defined. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T10:12:35.740043Z K 7 svn:log V 79 Clean up of fs/fifofs include directory after fifo.h removal. Glanced by: kib END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T10:33:24.779285Z K 7 svn:log V 76 Clean up from the old kern.polling. Reviewed by: attilio MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T10:39:50.116917Z K 7 svn:log V 110 Update IFCAP_* macro descriptions. Reviewed by: attilio (polling part, a previous version) MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-23T10:55:19.114152Z K 7 svn:log V 375 MFC r232745: Add casts to __uint16_t to the __bswap16() macros on all arches which didn't already have them. This is because the ternary expression will return int, due to the Usual Arithmetic Conversions. Such casts are not needed for the 32 and 64 bit variants. While here, add additional parentheses around the x86 variant, to protect against unintended consequences. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-23T10:58:35.553862Z K 7 svn:log V 421 MFC r232748: After r232745, which makes sure __bswap16(), ntohs() and htons() return __uint16_t, we can partially undo r228668. Note the remark "Work around a clang false positive with format string warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect. Before r232745, on some arches, the ntohs() macros did in fact return int, not uint16_t, so clang was right in warning about the %hu format string. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-23T11:01:04.994126Z K 7 svn:log V 463 MFC r232749: Partially undo r228693, by removing NO_WFORMAT.clang in fsdb's Makefile, and fixing the format string in sbin/fsdb/fsdbutil.c instead. Note the remark "Work around a problem with format string warnings and ntohs macros" was actually incorrect. The DIP(dp, di_nlink) macro invocation actually returned an int, due to its ternary expression, even though the di_nlink members of struct ufs1_dinode and struct ufs2_dinode are both defined as int16_t. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-23T11:18:07.923138Z K 7 svn:log V 190 Silence alignment warnings from clang in libarchive's ppmd code (which is actually third-party code). Clang even warns about alignment issues on x86, and the warnings are not needed there. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-23T11:26:54.046067Z K 7 svn:log V 854 MFC r231949: Fix found places where uio_resid is truncated to int. Add the sysctl debug.iosize_max_clamp, enabled by default. Setting the sysctl to zero allows to perform the SSIZE_MAX-sized i/o requests from the usermode. MFC r232493: Remove unneeded cast to u_int. The values as small enough to fit into int, beside the use of MIN macro which performs type promotions. MFC r232494: Instead of incomplete handling of read(2)/write(2) return values that does not fit into registers, declare that we do not support this case using CTASSERT(), and remove endianess-unsafe code to split return value into td_retval. While there, change the style of the sysctl debug.iosize_max_clamp definition. MFC r232495: pipe_read(): change the type of size to int, and remove signed clamp. pipe_write(): change the type of desiredsize back to int, its value fits. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-23T11:35:01.992201Z K 7 svn:log V 393 Work around the following clang warning in mps(4): sys/dev/mps/mps_sas.c:861:1: error: function 'mpssas_discovery_timeout' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] mpssas_discovery_timeout(void *data) ^ Because the driver is obtained from upstream, we don't want to modify it; just silence the warning instead, it is harmless. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T12:01:33.326903Z K 7 svn:log V 118 MFC 232265: Properly clear a device's devclass if DEVICE_ATTACH() fails if the device does not have a fixed devclass. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T12:02:00.251303Z K 7 svn:log V 118 MFC 232265: Properly clear a device's devclass if DEVICE_ATTACH() fails if the device does not have a fixed devclass. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-23T12:04:44.263135Z K 7 svn:log V 162 Implement xstrdup() using strlen()/xmalloc()/memcpy() already presented in rtld, instead of pulling in libc strdup(). Submitted by: bde MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T12:05:51.733401Z K 7 svn:log V 464 MFC 232218: Clear the a device's description string anytime it's driver changes. Descriptions are specific to drivers and we don't change drivers on attached devices. This fixes a few places where we were not clearing the description when detaching a driver (e.g. if device_attach() failed). While here, fix a few other nits: - Remove spurious call to remove a device's driver from devclass_driver_deleted(). device_detach() removes it already. - Fix a typo. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T12:06:32.584252Z K 7 svn:log V 464 MFC 232218: Clear the a device's description string anytime it's driver changes. Descriptions are specific to drivers and we don't change drivers on attached devices. This fixes a few places where we were not clearing the description when detaching a driver (e.g. if device_attach() failed). While here, fix a few other nits: - Remove spurious call to remove a device's driver from devclass_driver_deleted(). device_detach() removes it already. - Fix a typo. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-23T12:10:12.201337Z K 7 svn:log V 213 Centralize the calculation of the top source directory. This simplifies the build of rtld with partial checkout, allowing to override only one place to reference other tree. Submitted by: bde MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-23T12:13:31.021414Z K 7 svn:log V 59 Remove superfluous extern keywords. MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T12:34:39.371825Z K 7 svn:log V 129 Don't cast a bus address to a uint8_t pointer just to add an offset to it. Instead, add the offset directly to the bus address. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-03-23T13:44:43.585341Z K 7 svn:log V 140 Please welcome Cherry Matthew (cherry) as a src committer. Cherry will be working on amd64 SMP Xen PV and Dom0 support. Approved by: core END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-03-23T14:12:51.342776Z K 7 svn:log V 126 Create a project branch for work-in-progress on FreeBSD/Xen domU Paravirtualised support on amd64 Approved by gibbs (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-23T15:37:41.362997Z K 7 svn:log V 177 MFC r223889: Add a facility to disable processing page faults. When activated, uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-03-23T15:49:46.197863Z K 7 svn:log V 236 MFS r233211 (problem not believed to effect head or stable/9): Implement a workaround for a bug in the linker's estimate for the program header size that can cause it to fail linking the kernel. Reviewed by: kib Approved by: re (bz) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-23T16:12:52.688640Z K 7 svn:log V 160 MFC r232717: Be more polite when setting state->nextevent inside cpu_new_callout(). Hardclock is not the only who wakes idle CPU since kdtrace cyclic addition. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-23T16:17:46.695079Z K 7 svn:log V 653 MFC r232793: Revert r175376 and tune cpufreq(4) frequency comparison logic instead. Instead of using 25MHz equality threshold, look for the nearest value when handling dev.cpu.0.freq sysctl and for exact match when it is expected. ACPI may report extra level with frequency 1MHz above the nominal to control Intel Turbo Boost operation. It is not a bug, but feature: dev.cpu.0.freq_levels: 2934/106000 2933/95000 2800/82000 ... In this case value 2933 means 2.93GHz, but 2934 means 3.2-3.6GHz. I've found that my Core i7 based systems have Intel Turbo Boost not used by default and without this change it was absolutely invisible and hard to control. END