‚Ăl273872 128 1882 513 220 161 289 771 447 230 196 230 189 230 187 343 176 230 187 125 153 343 176 207 383 682 208 230 186 395 132 251 160 101 188 137 239 167 122 636 243 406 359 182 168 569 376 639 285 460 340 468 334 248 297 161 226 313 547 115 366 348 679 197 420 339 154 347 213 224 310 173 230 137 171 329 338 165 154 185 179 162 247 259 105 286 153 523 213 145 215 164 291 682 175 236 901 710 253 179 236 173 193 400 786 233 359 420 282 157 174 157 148 182 340 183 316 182 189 151 1848 174 213 287 141 1304 357 682 508 155 K 10 svn:author V 5 markm K 8 svn:date V 27 2014-10-30T21:21:53.652467Z K 7 svn:log V 1786 This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. This code has had an extensive rewrite and a good series of reviews, both by the author and other parties. This means a lot of code has been simplified. Pluggable structures for high-rate entropy generators are available, and it is most definitely not the case that /dev/random can be driven by only a hardware souce any more. This has been designed out of the device. Hardware sources are stirred into the CSPRNG (Yarrow, Fortuna) like any other entropy source. Pluggable modules may be written by third parties for additional sources. The harvesting structures and consequently the locking have been simplified. Entropy harvesting is done in a more general way (the documentation for this will follow). There is some GREAT entropy to be had in the UMA allocator, but it is disabled for now as messing with that is likely to annoy many people. The venerable (but effective) Yarrow algorithm, which is no longer supported by its authors now has an alternative, Fortuna. For now, Yarrow is retained as the default algorithm, but this may be changed using a kernel option. It is intended to make Fortuna the default algorithm for 11.0. Interested parties are encouraged to read ISBN 978-0-470-47424-2 "Cryptography Engineering" By Ferguson, Schneier and Kohno for Fortuna's gory details. Heck, read it anyway. Many thanks to Arthur Mesh who did early grunt work, and who got caught in the crossfire rather more than he deserved to. My thanks also to folks who helped me thresh this out on whiteboards and in the odd "Hallway track", or otherwise. My Nomex pants are on. Let the feedback commence! Reviewed by: trasz,des(partial),imp(partial?),rwatson(partial?) Approved by: so(des) END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-10-30T22:07:29.714623Z K 7 svn:log V 419 Use the right depend file for each program. bsd.progs.mk generates a separate depend file for every program being built, but then it does not properly tell each submake to use those individual files. Properly propagate the depend file to use. Discovered while preparing the update of atf to 0.21 and noticing that the test programs were not being relinked to the new library. This change is "make tinderbox" clean. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-10-30T22:21:12.590403Z K 7 svn:log V 127 Update releng/10.1 to -RC4 as part of the 10.1-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-30T22:47:32.763077Z K 7 svn:log V 69 Bump FreeBSD_version due to syscall*_register API changes in r273707 END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-10-30T23:47:28.919737Z K 7 svn:log V 194 Use search method instead of fixed offsets for finding rootfs. This unbreaks recent images for picostation by allowing to find rootfs at correct location. Suggested by: loos MFC after: 1 month END K 10 svn:author V 6 araujo K 8 svn:date V 27 2014-10-31T04:01:10.012672Z K 7 svn:log V 675 MFC r273159: Add two sysctl(8) to enable/disable NFSv4 server to check when setting user nobody and/or setting group nogroup as owner of a file or directory. Usually at the client side, if there is an username that is not in the client's passwd database, some clients will send 'nobody@' in the wire and the NFSv4 server will treat it as an ERROR. However, if you have a valid user nobody in your passwd database, the NFSv4 server will treat it as a NFSERR_BADOWNER as its believes the client doesn't has the username mapped. Submitted by: Loic Blot Reviewed by: rmacklem Approved by: rmacklem Sponsored by: QNAP Systems Inc. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T05:41:27.335543Z K 7 svn:log V 354 filedesc: tidy up fdcopy a little bit Test for file availability by fde_file != NULL instead of fdisused, this is consistent with similar checks later. Drop badfileops check. badfileops don't have DFLAG_PASSABLE set, so it was never reached in practice. fdiused is now only used in some KASSERTS, so ifdef it under INVARIANTS. No functional changes. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:04:25.733514Z K 7 svn:log V 132 MFC r273593: Update the network interface baudrate integer according to the actual line rate. Sponsored by: Mellanox Technologies END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:08:32.363940Z K 7 svn:log V 99 MFC r273867: Fix compile warning by removing unused variable. Sponsored by: Mellanox Technologies END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:18:27.704611Z K 7 svn:log V 132 MFC r273593: Update the network interface baudrate integer according to the actual line rate. Sponsored by: Mellanox Technologies END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:33:56.641238Z K 7 svn:log V 92 MFC r271159, r271168 and r271680: Add USB LED driver for the Dream Cheeky WebMail Notifier. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:38:49.229513Z K 7 svn:log V 132 MFC r269569: Remove unused defines. Fix some device_printf's that were missing '\n' at the end or had spelling errors. PR: 145319 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:41:28.295551Z K 7 svn:log V 90 MFC r264923: Remove device type from the uftdi_devs table, enhance the jtag-skip feature. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:51:05.044077Z K 7 svn:log V 245 MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:55:42.749286Z K 7 svn:log V 79 MFC r264801, r264802, r264934, r273181, r273216 and r273252: Add more USB IDs. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T07:59:07.349235Z K 7 svn:log V 132 MFC r269569: Remove unused defines. Fix some device_printf's that were missing '\n' at the end or had spelling errors. PR: 145319 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T08:00:22.142186Z K 7 svn:log V 90 MFC r264923: Remove device type from the uftdi_devs table, enhance the jtag-skip feature. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T08:06:21.189256Z K 7 svn:log V 28 MFC r246360: Fix some nits. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T08:10:26.688498Z K 7 svn:log V 56 MFC r250986: Fix some statical clang analyzer warnings. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T08:12:04.807962Z K 7 svn:log V 245 MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T08:14:13.916128Z K 7 svn:log V 79 MFC r264801, r264802, r264934, r273181, r273216 and r273252: Add more USB IDs. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T09:15:59.930907Z K 7 svn:log V 114 filedesc: tidy up fdfree Implement fdefree_last variant and get rid of 'last' parameter. No functional changes. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T09:19:46.935707Z K 7 svn:log V 290 filedesc: iterate over fd table only once in fdcopy While here add 'fdused_init' which does not perform unnecessary work. Drop FILEDESC_LOCK_ASSERT from fdisused and rely on callers to hold it when appropriate. This function is only used with INVARIANTS. No functional changes intended. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T09:25:28.471585Z K 7 svn:log V 589 filedesc: make fdinit return with source filedesc locked and new one sized appropriately Assert FILEDESC_XLOCK_ASSERT only for already used tables in fdgrowtable. We don't have to call it with the lock held if we are just creating new filedesc. As a side note, strictly speaking processes can have fdtables with fd_lastfile = -1, but then they cannot enter fdgrowtable. Very first file descriptor they get will be 0 and the only syscall allowing to choose fd number requires an active file descriptor. Should this ever change, we can add an 'init' (or similar) parameter to fdgrowtable. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-10-31T09:51:54.780503Z K 7 svn:log V 113 Build mount_nfs(8) with WARNS=6. Reviewed by: rmacklem@ MFC after: 1 month Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T09:56:00.247318Z K 7 svn:log V 137 filedesc: fix missed comments about fdsetugidsafety While here just note that both fdsetugidsafety and fdcheckstd take sleepable locks. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T10:07:56.096906Z K 7 svn:log V 89 MFC 258028: Unbreak build of RSU module. Use the real product name for Edimax rsu(4) id. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T10:18:58.994549Z K 7 svn:log V 297 Only put one CTASSERT() inside each macro to avoid compile issues. The problem is that the __LINE__ macro is constant inside a macro and results in identical assert statements when the compiler does not support the static builtin assert function. MFC: 3 days Sponsored by: Mellanox Technologies END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-10-31T10:25:31.732725Z K 7 svn:log V 36 Merge head r256150 through r273898. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-10-31T10:35:01.183849Z K 7 svn:log V 158 filedesc: drop retval argument from do_dup It was almost always td_retval anyway. For the one case where it is not, preserve the old value across the call. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-10-31T10:45:34.641064Z K 7 svn:log V 67 Build ttm_agp_backend.c. Reported by: dumbbell MFC after: 1 month END K 10 svn:author V 2 ae K 8 svn:date V 27 2014-10-31T11:40:49.357627Z K 7 svn:log V 10 Fix typo. END K 10 svn:author V 2 ae K 8 svn:date V 27 2014-10-31T12:19:22.527381Z K 7 svn:log V 97 Use in_localip() instead of handmade implementation. MFC after: 1 week Sponsored by: Yandex LLC END K 10 svn:author V 5 markm K 8 svn:date V 27 2014-10-31T12:21:43.649972Z K 7 svn:log V 43 Retire the /dev/random development branch. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-10-31T13:37:47.184460Z K 7 svn:log V 141 Print human-readable error for "route not found" case. Submitted by: vsevolod (initial version) MFC after: 2 weeks Sponsored by: Yandex LLC END K 10 svn:author V 3 des K 8 svn:date V 27 2014-10-31T14:22:26.609845Z K 7 svn:log V 75 Add /etc/rc.d/initrandom, which was removed in r273872. Noticed by: ache@ END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-10-31T15:07:51.831543Z K 7 svn:log V 28 Fix usage of kern_getenv(). END K 10 svn:author V 2 ae K 8 svn:date V 27 2014-10-31T15:23:24.704282Z K 7 svn:log V 544 Remove the check for packets with broadcast source from if_gif's encapcheck. The check was recommened in the draft-ietf-ngtrans-mech-05.txt. But it isn't clear, should it compare the source with all direct broadcast addresses in the system or not. RFC 4213 says it is enough to verify that the source address is the address of the encapsulator, as configured on the decapsulator. And this verification can be extended by administrator with any other forms of IPv4 ingress filtering. Discussed with: glebius, melifaro Sponsored by: Yandex LLC END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-10-31T16:00:45.830383Z K 7 svn:log V 146 Use macro ERROUT() to make code more laconic and follow style of other netgraph code. Submitted by: Dmitry Luhtionov END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-10-31T17:43:21.234975Z K 7 svn:log V 313 Add type qualifier volatile to the base (userspace) address argument of fuword(9) and suword(9). This makes the functions type-compatible with volatile objects and does not require devolatile force, e.g. in kern_umtx.c. Requested by: bde Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 3 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T18:18:04.819439Z K 7 svn:log V 261 MFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899: - Reimplement CTASSERT() using _Static_assert(). - De-vnet hash sizes and hash masks. - Fix multiple issues related to arguments passed to SYSCTL macros. Sponsored by: Mellanox Technologies END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-10-31T18:20:39.705620Z K 7 svn:log V 87 Clean up the types of a few strings to make them const when they are never written to. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-10-31T18:35:03.077077Z K 7 svn:log V 73 The command name is a constant, use the correct type. MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T18:42:56.969535Z K 7 svn:log V 471 MFC r271975: Improvements to asmc(4): 1. changed the code so that 2**16 keys are supported 2. changed the number of possible fans in a system from 2 to 6 3. added write support for some fan sysctls 4. added a new sysctl which shows the ID of the fan 5. added four more apple models with their temperature keys 6. changed the maxnumber of temperature keys from 36 to 80 7. replaced several fixed buf sizes to sizeof buf Obtained from: Denis Ahrens denis at h3q.com END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-10-31T18:53:16.524707Z K 7 svn:log V 278 MFC r273733, r273740 and r273773: The SYSCTL data pointers can come from userspace and must not be directly accessed. Although this will work on some platforms, it can throw an exception if the pointer is invalid and then panic the kernel. Sponsored by: Mellanox Technologies END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-10-31T19:15:14.279440Z K 7 svn:log V 545 Fix the gpiobus locking by using a more sane model where it isn't necessary hold the gpiobus lock between the gpio calls. gpiobus_acquire_lock() now accepts a third parameter which tells gpiobus what to do when the bus is already busy. When GPIOBUS_WAIT wait is used, the calling thread will be put to sleep until the bus became free. With GPIOBUS_DONTWAIT the calling thread will receive EWOULDBLOCK right away and then it can act upon. This fixes the gpioiic(4) locking issues that arises when doing multiple concurrent access on the bus. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-10-31T19:26:12.871111Z K 7 svn:log V 190 Change the default log level for iSCSI target from 3 to 1. It should have been 1 from the beginning; not sure how it ended up at 3. MFC after: 1 month Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-10-31T22:20:27.339462Z K 7 svn:log V 363 rc.d/geli should not depend on random, as the attach functionality do not require additional entropy to function. It would create a circular dependency (not immediately obvious: geli provides 'disks' and requires 'random' as of r273872, 'random' requires 'FILESYSTEMS', 'FILESYSTEMS' requires 'root', 'root' requires 'swap', and finally 'swap' requires 'disk'). END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-10-31T22:28:10.462621Z K 7 svn:log V 244 sh: Fix corruption of CTL* bytes in positional parameters in redirection. EXP_REDIR was not being checked for while expanding positional parameters in redirection, so CTL* bytes were not being prefixed where they should be. MFC after: 1 week END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-10-31T23:10:58.139148Z K 7 svn:log V 370 vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font To restore the default font using vidcontrol(1), use the "-f" flag without an argument: vidcontrol -f < /dev/ttyv0 PR: 193910 Differential Revision: https://reviews.freebsd.org/D971 Submitted by: Marcin Cieslak Reviewed by: ray@, emaste@ Approved by: ray@ MFC of: r273544 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-10-31T23:52:02.761816Z K 7 svn:log V 233 Rewrite some of the disk setup documentation to be clearer and contain less obsolete information. Also move the entropy command down the list -- the list is ordered by likelihood of use rather than alphabetically. MFC after: 1 week END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-11-01T05:45:05.453114Z K 7 svn:log V 152 MFC r273551: puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P card. Submitted by: Alex Burlyga END K 10 svn:author V 3 des K 8 svn:date V 27 2014-11-01T09:10:21.476426Z K 7 svn:log V 204 is a superset of and must always come first. Coincidentally, today is the 11th anniversary of this man page's (and this bug's) first appearance in FreeBSD. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-11-01T10:35:45.858325Z K 7 svn:log V 66 Don't zero the stats before they are read out. MFC after: 3 days END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-11-01T10:40:29.118124Z K 7 svn:log V 132 Fix the build of non-FDT systems by moving the gpiobusvar.h header outside the FDT #ifdef. While here remove a few unused headers. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-11-01T10:50:18.570937Z K 7 svn:log V 217 Move the definitions of the fdt functions from a uboot header to a new fdt header. There is nothing in the fdt spec that ties it to U-Boot. While here sort and fix the signature of fdt_setup_fdtp. MFC after: 1 week END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-11-01T11:07:59.481814Z K 7 svn:log V 453 Put mtree test files into a subdirectory. Kyua 0.11 points TMPDIR to the test's work directory, and atf_check creates auxiliary files in TMPDIR. This confuses a couple of mtree tests that were using the work directory's root to validate the contents of the directory. Fix the two affected tests by creating an auxiliary directory to use for the mtree tests. (Kyua should probably do this on its own; filed bug #133 upstream to take a look at this.) END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-11-01T11:17:54.646222Z K 7 svn:log V 22 MFV: Import atf-0.21. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-11-01T11:19:50.088401Z K 7 svn:log V 272 Remove empty directories for the deprecated (now gone) tools. The tools-related directories should have been removed with the import of atf-0.20 months ago, but I missed the bit in the Subversion Primer saying that emptied directories require manual removal. Do so now. END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-11-01T13:45:01.958593Z K 7 svn:log V 255 MFC r273837: Fix a clang 3.5 warning about abs(3) being given an argument of type quad_t in setusercontext(). While here, sanitize the clamping of the priority value, and use the correct type for the return value of login_getcapnum(). Reviewed by: kib END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-11-01T17:05:15.818439Z K 7 svn:log V 581 vt(4): Adjust the cursor position after changing the window size A new terminal_set_cursor() is added: it wraps the existing teken_set_cursor() function. In vtbuf_grow(), the cursor position is adjusted at the end of the function. In vt_change_font(), we call terminal_set_cursor() just after terminal_set_winsize_blank(), while the terminal is mute. This fixes a bug where, after loading a kernel video driver which increases the terminal window size, the cursor remains at its old position, in other words, in the middle of the display content. PR: 194421 MFC after: 1 week END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T17:09:39.382378Z K 7 svn:log V 103 Don't prune duplicate services in the expected output from /etc/services on FreeBSD Submitted by: pho END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-11-01T17:12:44.458100Z K 7 svn:log V 324 Start to allow platforms other than U-Boot to use the FDT code in loader by moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This needs to be a new library for linking to work correctly. Differential Revision: https://reviews.freebsd.org/D1054 Reviewed by: ian, rpaulo (earlier version) MFC after: 1 week END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T17:13:13.404818Z K 7 svn:log V 245 Port tests to FreeBSD/Linux Some of the testcases don't work outside of NetBSD, and the behavior of ether_aton_r differs between FreeBSD, Linux, and NetBSD, and the calls to the API need to be massaged for FreeBSD and Linux. Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T17:14:29.548533Z K 7 svn:log V 61 Port lib/libc/net/h_dns_server to FreeBSD Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T17:19:43.540343Z K 7 svn:log V 253 Port lib/libc/sys/t_dup to FreeBSD/Linux - The requirements differ between FreeBSD/Linux when dealing with oldd/newd being equal (both fail with EINVAL, not EBADF) - Add an EBADF testcase - Fix compilation issues on clang In collaboration with: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T17:22:53.049310Z K 7 svn:log V 119 getitimer on FreeBSD returns the last set time instead of the remaining time; test for that instead Submitted by: pho END K 10 svn:author V 5 markm K 8 svn:date V 27 2014-11-01T17:52:04.746668Z K 7 svn:log V 129 Remove duplicate macro settings (probably due to an SVN merge /faux pas/ on my part. Spotted by: DES Approved by: DES(implicit) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-11-01T18:51:48.800278Z K 7 svn:log V 214 Change the order of the arguments to file_loadraw(). They were swapped as of r262345 when file_loadraw() was made public and this little detail got overlooked during porting. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-11-01T20:07:32.331411Z K 7 svn:log V 79 Updates to the list of CPUs supported by the amd64 platform MFC after: 3 days END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T20:33:42.013830Z K 7 svn:log V 136 Skip :sethostname_basic because it messes up the test host's hostname Convert code from #if defined(__FreeBSD__) to #ifdef __FreeBSD__ END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T20:41:40.274697Z K 7 svn:log V 44 Port t_kevent to FreeBSD Submitted by: pho END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-11-01T20:41:47.508092Z K 7 svn:log V 79 Uncomment the cloudinit rc.conf(5) line. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T20:45:45.190657Z K 7 svn:log V 235 Port t_mincore to FreeBSD Mark :mincore_resid as atf_tc_expect_fail on FreeBSD because of new bug discovered in running the tests (it succeeded from earlier on in the year to September/October on FreeBSD, at least) Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T20:50:39.020457Z K 7 svn:log V 244 Port h_atexit to FreeBSD __cxa_atexit varies between FreeBSD and NetBSD, and thus we must use pointers instead of static fields in the BSS. More extensive discussion is included in the source code In collaboration with: kib Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T21:00:40.519235Z K 7 svn:log V 72 Expect :snprintf_posarg_error to blow up with a SIGSEGV on !NetBSD OSes END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T21:21:06.326124Z K 7 svn:log V 61 Disable testcases 12 and 15-22 on FreeBSD Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T21:23:27.218338Z K 7 svn:log V 92 Add new atf_tc_expect_fail to fflush_err; this is a new (within the past couple months) bug END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T21:25:22.130563Z K 7 svn:log V 86 Skip :fopen_regular on !NetBSD because it's a NetBSD specific test Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T21:30:18.294427Z K 7 svn:log V 69 Expect :sscanf_whitespace to fail on !NetBSD OSes Submitted by: pho END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-11-01T22:00:46.191279Z K 7 svn:log V 153 Port h_hash and t_sha2 to FreeBSD t_sha2 contains dirty copy-paste hacks that need to be fixed with the openssh OpenBSD compat layer Submitted by: pho END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-11-01T22:36:40.675232Z K 7 svn:log V 166 Fix up module unload for syscall_module_handler consumers. After r273707 it was registering syscalls as static. This fixes hwpmc module unload. Reported by: markj END K 10 svn:author V 3 brd K 8 svn:date V 27 2014-11-02T00:05:52.303636Z K 7 svn:log V 13 IFC @r273953 END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-11-02T00:11:25.427187Z K 7 svn:log V 193 add an rc.d script to automatically grow the specified FS... It has been tested on both MBR and GPT... It won't be enabled until you add growfs_enable="YES" and will only run on first boot.. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-11-02T01:13:11.732842Z K 7 svn:log V 61 filedesc: lock filedesc lock in fdcloseexec only when needed END K 10 svn:author V 3 des K 8 svn:date V 27 2014-11-02T01:47:27.314249Z K 7 svn:log V 430 Get rid of the postrandom script. It was born in a time when the random script ran before filesystems were mounted, which is no longer the case. In random_start(), immediately delete each file that is fed into /dev/random, and recreate the default entropy file immediately after reading and deleting it. The logic used in random_stop() to determine which file to write to should probably be factored out and used here as well. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-11-02T02:01:55.780805Z K 7 svn:log V 120 Restore the auto-reseed logic, but move it to a much later point, immediately before kick_init. Approved by: so (self) END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-11-02T02:32:33.860451Z K 7 svn:log V 53 filedesc: tidy up fdcheckstd No functional changes. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-11-02T05:51:31.482031Z K 7 svn:log V 118 NG_NODE_NAME(node) is always not NULL. Use correct macro. Submitted by: Dmitry Luhtionov END K 10 svn:author V 2 mm K 8 svn:date V 27 2014-11-02T09:37:45.568565Z K 7 svn:log V 73 Add pkg-config file for libarchive Requested by: bapt MFC after: 1 week END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-11-02T09:52:22.506519Z K 7 svn:log V 193 drm: Lower priority of two messages related to invalid EDID Like in r259717, the prority goes from "error" to "debug" to avoid spamming logs when the connectors are polled. MFC after: 1 week END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-11-02T11:26:37.746783Z K 7 svn:log V 588 In agp(4) avoid the need to flush all cpu caches with wbinvd between updating the GTT and flushing the AGP TLB by storing the GTT in write-combining memory. On x86 flushing the AGP TLB is done by an I/O operation or a store to a MMIO register in uncacheable memory. Both cases imply that WC buffers are flushed so no memory barriers are needed. On powerpc there is no WC memory type. It maps to uncacheable memory and two stores to uncacheable memory, such as to the GTT and then to an MMIO register, are strongly ordered, so no memory barriers are needed either. MFC after: 1 month END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-11-02T11:28:15.150700Z K 7 svn:log V 82 In agp_amd_bind_page don't flush the AGP TLB. It's done by the calling function. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-11-02T11:47:40.605649Z K 7 svn:log V 142 - agp_generic_unbind_memory: flush AGP TLB before unwiring pages - agp_bind_pages: assert that pages have been wired down MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-11-02T13:10:31.614228Z K 7 svn:log V 808 Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines whether the shared request for already shared-locked lock could be granted. Both problems result in the exclusive locker starvation. The concurrent exclusive request is indicated by either LK_EXCLUSIVE_WAITERS or LK_EXCLUSIVE_SPINNERS flags. The reverse condition, i.e. no exclusive waiters, must check that both flags are cleared. Add a flag LK_NODDLKTREAT for shared lock request to indicate that current thread guarantees that it does not own the lock in shared mode. This turns back the exclusive lock starvation avoidance code; see man page update for detailed description. Use LK_NODDLKTREAT when doing lookup(9). Reported and tested by: pho No objections from: attilio Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-11-02T13:14:55.320785Z K 7 svn:log V 617 When non-forced unmount or remount rw->ro is performed, writes on UFS are not suspended. In particular, on the SU-enabled vulumes, there is no reason why, between the call to softdep_flushfiles() and softdep_waitidle(), SU work items cannot be queued. Correct the condition to trigger the panic by only checking when forced operation is done. Convert direct panic() call into KASSERT(), there is no invalid on-disk data structures directly involved, so follow the usual debugging vs. non-debugging approach. Reported and tested by: pho Reviewed by: mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-11-02T13:43:04.163229Z K 7 svn:log V 160 filedesc: factor out some code out of fdescfree Previously it had a huge self-contained chunk dedicated to dealing with shared tables. No functional changes. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-11-02T14:08:54.024609Z K 7 svn:log V 86 Use default memory type for TTM buffer objects that may be cached. MFC after: 1 week END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-11-02T14:12:03.050355Z K 7 svn:log V 143 filedesc: move freeing old tables to fdescfree They cannot be accessed by anyone and hold count only protects the structure from being freed. END K 10 svn:author V 3 pho K 8 svn:date V 27 2014-11-02T14:23:58.596782Z K 7 svn:log V 81 Added regression test for r273966. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 pho K 8 svn:date V 27 2014-11-02T14:28:20.692011Z K 7 svn:log V 100 Added comment for problem found and fixed by r273967. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-11-02T16:04:48.519835Z K 7 svn:log V 302 vt(4): Fix keyboard allocation when kbdmux(4) isn't used The problem was that only the kbdmux keyboard index was saved in vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this case, the keyboard was correctly allocated, but the returned index was discarded. PR: 194718 MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:23:44.441753Z K 7 svn:log V 693 MFC r272401, r272402: Rework the logic of sequential SCSI LUN scanner. Previous logic was not differentiating disconnected LUNs and absent targets. That made it to stop scan if LUN 0 was not found for any reason. That made problematic, for example, using iSCSI targets declaring SPC-2 compliance and having no LUN 0 configured. The new logic continues sequential LUN scan if: -- we have more configured LUNs that need recheck; -- this LUN is connected and its SCSI version allows more LUNs; -- this LUN is disconnected, its SCSI version allows more LUNs and we guess they may be connected (we haven't scanned first 8 LUNs yet or kern.cam.cam_srch_hi sysctl is set to scan more). END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:25:03.883438Z K 7 svn:log V 140 MFC r272406: Make disconnected LUN 0 don't remain in half-configured state if there are no LUNs on SPC-3 target after we tried REPORT LUNS. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:26:13.256291Z K 7 svn:log V 266 MFC r272409: Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected. SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other then LUN 0. If we see LUN 0 disconnected, guess there may be others, and so REPORT LUNS shall be supported. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:28:08.945856Z K 7 svn:log V 327 MFC r273073: Some groundwork for later Informational Exceptions support. This includes support for: - Read-Write Error Recovery mode page; - Informational Exceptions Control mode page; - Logical Block Provisioning mode page; - LOG SENSE command. No real Informational Exceptions features yet. This is only a placeholder. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:28:44.263997Z K 7 svn:log V 189 MFC r273075: Remove couple Copan's vendor-specific mode pages. Those pages are highly system-/hardware-specific, the code is incomplete, and so they hardly can be useful for anybody else. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:29:48.027264Z K 7 svn:log V 65 MFC r273640: Add support for 12/16-byte EUI and 16-byte NAA IDs. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:30:30.720496Z K 7 svn:log V 82 MFC r273687: Add "rpm" and "formfactor" LUN options to match istgt functionality. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:31:10.161475Z K 7 svn:log V 65 MFC r273693: Fix printing non-terminated strings in devlist XML. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-11-02T17:31:45.108018Z K 7 svn:log V 56 MFC r273708: Fix support for LUN flat space addressing. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-11-02T19:09:34.767749Z K 7 svn:log V 86 MFC r273267: Add tunable vfs.zfs.space_map_blksz for space map's maximum block size. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-11-02T19:16:41.678247Z K 7 svn:log V 243 MFC r273026: Add a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) that controls how much fraction, 1/2^arc_shrink_shift, should be reclaimed when there is memory pressure. Submitted by: Richard Kojedzinszky END K 10 svn:author V 6 wblock K 8 svn:date V 27 2014-11-02T19:25:31.358910Z K 7 svn:log V 88 Add the less-ambiguous freebsd-version command. Reviewed by: -stable MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-11-02T19:51:33.711278Z K 7 svn:log V 223 Followup to r273966. Fix the build with ADAPTIVE_LOCKMGRS kernel option. Note that the option is currently not used in any in-tree kernel configs, including LINTs. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T19:54:10.174366Z K 7 svn:log V 90 Don't check for a NULL curthread. curthread hasn't been NULL after early boot since 5.0. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T20:57:19.498875Z K 7 svn:log V 97 Remove the FP_SOFTFP flag. It wasn't used but was leftover from the software x86 math emulator. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T21:34:24.821111Z K 7 svn:log V 59 MFamd64: Explicitly initialize the mxcsr during npxinit(). END K 10 svn:author V 3 brd K 8 svn:date V 27 2014-11-02T21:36:40.433762Z K 7 svn:log V 1754 Sync Alan Somers (asomers) work from SpectraBSD. tests/sys/cddl/zfs/include/logapi.kshlib Eliminate the unfortunate miscombination of functionality that is log_mustnot_expect. It verified that the supplied command failed and also printed the supplied message to stderr. It was only used in one test, and wasn't really necessary. tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/zfs_destroy_007_neg.ksh Convert log_mustnot_expect to log_mustnot. Verifying the error message isn't necessary. MFSpectraBSD: 1088174 on 2014/09/02 tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/zfs_destroy_001_pos.ksh Don't lookup the mountpoint of a zvol's snapshot, because it can't be done. Instead, use the mountpoint that was stored in a variable when the zvol was formatted and mounted. MFSpectraBSD: 1088197 on 2014/09/02 tests/sys/cddl/zfs/include/Makefile tests/sys/cddl/zfs/include/logapi.kshlib tests/sys/cddl/zfs/include/stf.kshlib tests/sys/cddl/zfs/include/stf.shlib Delete stf.kshlib. Nothing uses its contents MFSpectraBSD: 1088202 on 2014/09/02 tests/sys/cddl/zfs/tests/cli_user/zfs_list/zfs_list_003_pos.ksh Fix test when TMPDIR != /tmp. We must cd to /tmp regardless of TMPDIR so relative pathnames will be correct. MFSpectraBSD: 1088360 on 2014/09/03 tests/sys/cddl/zfs/tests/cli_root/zfs_set/zfs_set_common.kshlib Don't generate 0-length user property values. MFSpectraBSD: 1088368 on 2014/09/03 tests/sys/cddl/zfs/tests/zfsd/Makefile tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_test.sh Add a regression test for the as-yet-unresolved P3_28731: ZFSD will not replace a vdev that dissappears while power is off. MFSpectraBSD: 1091329 on 2014/09/17 Differential Revision: D1018 Reviewed by: asomers END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T21:40:32.727220Z K 7 svn:log V 82 MFamd64: Move extern declaration of _ucodesel and _udatasel to END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-11-02T21:58:31.560112Z K 7 svn:log V 120 Fix a bug which prevented ND6_IFF_IFDISABLED flag from clearing when the newly-added IPv6 address was /128. PR: 188032 END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-11-02T22:41:55.130435Z K 7 svn:log V 194 MFC r272974,272976: Add ${name}_env and ${name}_prepend. ${name}_env is an argument list which will be passed to env(1). ${name}_prepend is simply prepended to the command line for $command. END K 10 svn:author V 3 brd K 8 svn:date V 27 2014-11-02T22:42:19.418770Z K 7 svn:log V 49 - Mark the tests that cause a panic as a failure END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T22:58:30.113651Z K 7 svn:log V 1210 MFamd64: Add support for extended FPU states on i386. This includes support for AVX on i386. - Similar to amd64, move the FPU save area out of the PCB and instead store saved FPU state in a variable-sized buffer after the PCB on the stack. - To support the variable PCB location, alter the locore code to only use the bottom-most page of proc0stack for init386(). init386() returns the correct stack pointer to locore which adjusts the stack for thread0 before calling mi_startup(). - Don't bother setting cr3 in thread0's pcb in locore before calling init386(). It wasn't used (init386() overwrote it at the end) and it doesn't work with the variable-sized FPU save area. - Remove the new-bus attachment from npx. This was only ever useful for external co-processors using IRQ13, but those have not been supported for several years. npxinit() is now called much earlier during boot (init386()) similar to amd64. - Implement PT_{GET,SET}XSTATE and I386_GET_XFPUSTATE. - npxsave() is now only called from context switch contexts so it can use XSAVEOPT. Differential Revision: https://reviews.freebsd.org/D1058 Reviewed by: kib Tested on: FreeBSD/i386 VM under bhyve on Intel i5-2520 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-02T23:22:22.775821Z K 7 svn:log V 264 MFC 273644,273738: Clarify that pthread_cleanup_push()/pop() are implemented as macros that create a new code block and thus must be balanced at the same lexical scope. (This is also a requirement in POSIX.) PR: 194280 Submitted by: dr2867.business@pacbell.net END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-11-02T23:30:50.576018Z K 7 svn:log V 585 - Make sure random_adaptor accesses happen only when random_adaptors_lock is held. - Use sx_sleep instead of tsleep in read and write path to allow another thread that registers a new random adapter when waiting. Assert that random_adaptor is not NULL after reacquiring the lock. - Capture EINTR/ERESTART from sx_sleep to allow the blocking cycle be stopped when user requests so, while there also make short read/write's return 0. - Move M_WAITOK allocations out of lock scope. In collobration with: kib, markm, ian, jilles Reviewed by: kib, markm Approved by: so END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-11-03T00:13:20.230684Z K 7 svn:log V 415 MFC 273834: Rework the EXAMPLES section to be a bit clearer. - Add an example of using etcupdate diff. - Create a subsection on bootstrapping that is below the simple examples. This should make it clearer that 'etcupdate extract' is a one-time operation and not part of the common workflow. It also adds more suggestions on when bootstrapping is needed and additional steps to make future merges simpler. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-11-03T00:37:39.243370Z K 7 svn:log V 63 Do not try to create a /dev/log symlink in a jail. PR: 179828 END