ƒ³=241000 165 1186 614 277 846 846 178 846 521 521 676 471 178 164 161 160 178 219 219 219 242 203 188 590 367 301 740 212 488 287 121 194 114 173 193 144 152 276 1954 150 882 150 501 583 162 144 169 498 253 119 114 173 539 174 1032 246 120 363 234 125 305 305 220 177 246 135 142 133 140 171 176 106 442 279 190 225 209 125 380 300 225 381 144 320 308 159 233 131 131 168 136 782 293 263 315 186 295 173 669 132 300 132 258 258 258 168 168 303 317 184 133 1085 166 180 180 285 238 306 214 247 254 144 442 170 241 131 154 140 137 123 1598 469 243 412 441 282 841 841 425 1312 145 157 310 493 521 314 203 202 306 330 495 262 301 593 306 421 329 205 165 236 236 148 392 1362 267 183 K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-27T16:43:23.776766Z K 7 svn:log V 1092 Revert r240931, as the previous comment was actually in sync with POSIX. I have to note that POSIX is simply stupid in how it describes O_EXEC/fexecve and friends. Yes, not only inconsistent, but stupid. In the open(2) description, O_RDONLY flag is described as: O_RDONLY Open for reading only. Taken from: http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html Note "for reading only". Not "for reading or executing"! In the fexecve(2) description you can find: The fexecve() function shall fail if: [EBADF] The fd argument is not a valid file descriptor open for executing. Taken from: http://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html As you can see the function shall fail if the file was not open with O_EXEC! And yet, if you look closer you can find this mess in the exec.html: Since execute permission is checked by fexecve(), the file description fd need not have been opened with the O_EXEC flag. Yes, O_EXEC flag doesn't have to be specified after all. You can open a file with O_RDONLY and you still be able to fexecve(2) it. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-27T17:48:04.143435Z K 7 svn:log V 518 sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error condition. Passing an invalid pointer results in undefined behaviour. The wrappers in libthr access some of the data pointed to by the arguments in userland, so that an invalid pointer will cause a signal and not an [EFAULT] error return. Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is not a proper error in the sense that the call still commits (changing the signal disposition or accepting the signal). MFC after: 1 week END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-09-27T18:15:01.674871Z K 7 svn:log V 183 Fix pseudo checksum calculation. This fixes ipfilter w/ network controllers that implement only partial rx csum offloading. PR: 106438 Obtained from: upstream MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-27T18:51:03.695224Z K 7 svn:log V 749 MFC r240595: In snmp_hostres, device_map table is used for consistent device table indexing. When a device has gone it is not removed from device_map table but just its entry_p field is set to NULL. So when traversing device_map in disk_OS_get_ATA_disks() and disk_OS_get_MD_disks() check for entry_p being NULL, otherwise the bsnmpd crash is possible when a removed map entry is dereferenced. Before the fix, for disk_OS_get_ATA_disks() the crash could be easily reproduced running: atacontrol detach ata1 The crash was not observed in disk_OS_get_MD_disks() because currently snmp_hostres does no see md(4) disks: to get the device list it uses devinfo(3), which does not return md devices. Reported by: Miroslav Lachman 000.fbsd quip.cz END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-27T18:52:04.073500Z K 7 svn:log V 749 MFC r240595: In snmp_hostres, device_map table is used for consistent device table indexing. When a device has gone it is not removed from device_map table but just its entry_p field is set to NULL. So when traversing device_map in disk_OS_get_ATA_disks() and disk_OS_get_MD_disks() check for entry_p being NULL, otherwise the bsnmpd crash is possible when a removed map entry is dereferenced. Before the fix, for disk_OS_get_ATA_disks() the crash could be easily reproduced running: atacontrol detach ata1 The crash was not observed in disk_OS_get_MD_disks() because currently snmp_hostres does no see md(4) disks: to get the device list it uses devinfo(3), which does not return md devices. Reported by: Miroslav Lachman 000.fbsd quip.cz END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-27T18:52:15.124358Z K 7 svn:log V 83 Revert s/__dead/__dead2/ in r240706. I'm now using a sys/cdefs.h wrapper instead. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-27T18:53:59.096666Z K 7 svn:log V 749 MFC r240595: In snmp_hostres, device_map table is used for consistent device table indexing. When a device has gone it is not removed from device_map table but just its entry_p field is set to NULL. So when traversing device_map in disk_OS_get_ATA_disks() and disk_OS_get_MD_disks() check for entry_p being NULL, otherwise the bsnmpd crash is possible when a removed map entry is dereferenced. Before the fix, for disk_OS_get_ATA_disks() the crash could be easily reproduced running: atacontrol detach ata1 The crash was not observed in disk_OS_get_MD_disks() because currently snmp_hostres does no see md(4) disks: to get the device list it uses devinfo(3), which does not return md devices. Reported by: Miroslav Lachman 000.fbsd quip.cz END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-27T19:10:25.870540Z K 7 svn:log V 428 Complete revert of r239963: The attempt to merge changes from the linux libtirpc caused rpc.lockd to exit after startup under unclear conditions. After many hours of selective experiments and inconsistent results the conclusion is that it's better to just revert everything and restart in a future time with a much smaller subset of the changes. ____ MFC after: 3 days Reported by: David Wolfskill Tested by: David Wolfskill END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-27T20:06:37.267497Z K 7 svn:log V 428 Complete revert of r239963: The attempt to merge changes from the linux libtirpc caused rpc.lockd to exit after startup under unclear conditions. After many hours of selective experiments and inconsistent results the conclusion is that it's better to just revert everything and restart in a future time with a much smaller subset of the changes. ____ MFC after: 3 days Reported by: David Wolfskill Tested by: David Wolfskill END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-09-27T20:12:51.424923Z K 7 svn:log V 580 Ensure that all cases that enqueue a netgraph item for delivery by a ngthread properly set the item's depth to 1. In particular, prior to this change if ng_snd_item failed to acquire a lock on a node, the item's depth would not be set at all. This fix ensures that the error code from rcvmsg/ rcvdata is properly passed back to the apply callback. For example, this fixes a bug where an error from rcvmsg/rcvdata would not previously propagate back to a libnetgraph consumer when the message was queued. Reviewed by: mav MFC after: 1 month Sponsored by: Sandvine Incorporated END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-27T22:05:54.457311Z K 7 svn:log V 375 libc/fts: Use O_CLOEXEC for internal file descriptors. Because fts keeps internal file descriptors open across calls, making such descriptors close-on-exec helps not only multi-threaded applications but also single-threaded applications. In particular, this prevents passing a temporary file descriptor for saving the current directory to processes created via find -exec. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-27T23:30:49.983294Z K 7 svn:log V 86 Fix up kernel sources to be ready for a 64-bit ino_t. Original code by: Gleb Kurtsou END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-27T23:30:58.111866Z K 7 svn:log V 72 Fix fsck_ffs build with a 64-bit ino_t. Original code by: Gleb Kurtsou END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-27T23:31:06.024523Z K 7 svn:log V 69 Fix sbin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-27T23:31:12.984634Z K 7 svn:log V 68 Fix bin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-27T23:31:19.284969Z K 7 svn:log V 86 Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-28T01:04:09.623675Z K 7 svn:log V 123 MFC r240495: Adding missing return statements during error conditions. PR: kern/171187 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-28T01:04:09.880372Z K 7 svn:log V 123 MFC r240495: Adding missing return statements during error conditions. PR: kern/171187 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-28T01:04:10.355902Z K 7 svn:log V 123 MFC r240495: Adding missing return statements during error conditions. PR: kern/171187 Approved by: cperciva (implicit) END K 10 svn:author V 6 dteske K 8 svn:date V 27 2012-09-28T01:39:25.902654Z K 7 svn:log V 146 Sanitize varname argument in f_sysrc_find. This is as much for security as it is for sanity. Reviewed by: jilles Approved by: adrian (co-mentor) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-28T05:30:59.590739Z K 7 svn:log V 110 Eliminate a stale comment. It describes another use case for the pmap in Mach that doesn't exist in FreeBSD. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-28T07:51:30.103651Z K 7 svn:log V 94 Make sure that each va_start has one and only one matching va_end, especially in error cases. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-28T08:22:51.058876Z K 7 svn:log V 497 Remove the topology lock from disk_gone(), it might be called with regular mutexes held and the topology lock is an sx lock. The topology lock was there to protect traversing through the list of providers of disk's geom, but it seems that disk's geom has always exactly one provider. Change the code to call g_wither_provider() for this one provider, which is safe to do without holding the topology lock and assert that there is indeed only one provider. Discussed with: ken MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-28T10:49:41.853136Z K 7 svn:log V 275 Make the loader a bit smarter, when it tries to open disk and the slice number is not exactly specified. When the disk has MBR, also try to read BSD label after ptable_getpart() call. When the disk has GPT, also set d_partition to 255. Mostly, this is how it worked before. END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-09-28T11:11:42.311903Z K 7 svn:log V 205 Add a note to portsnap(8) about the behaviour of the example cron command. PR: docs/171759 Submitted by: Paul Hoffman (phoffman at proper dot com) Approved by: cperciva, gabor (mentor) MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-28T11:25:02.003218Z K 7 svn:log V 647 Fix the mis-handling of the VV_TEXT on the nullfs vnodes. If you have a binary on a filesystem which is also mounted over by nullfs, you could execute the binary from the lower filesystem, or from the nullfs mount. When executed from lower filesystem, the lower vnode gets VV_TEXT flag set, and the file cannot be modified while the binary is active. But, if executed as the nullfs alias, only the nullfs vnode gets VV_TEXT set, and you still can open the lower vnode for write. Add a set of VOPs for the VV_TEXT query, set and clear operations, which are correctly bypassed to lower vnode. Tested by: pho (previous version) MFC after: 2 weeks END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-09-28T11:40:59.819109Z K 7 svn:log V 116 Change "only only" to "only" in portsnap(8). Spotted by: Ruslan Mahmatkhanov Approved by: gabor (mentor, implicit) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-09-28T11:59:32.474731Z K 7 svn:log V 395 - Re-shuffle the headers to move all kernel-specific bits under #ifdef _KERNEL but leave definitions for various structures defined by standards ($PIR table, SMAP entries, etc.) available to userland. - Consolidate duplicate SMBIOS table structure definitions in ipmi(4) and smbios(4) in and make them available to userland. MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-09-28T12:13:34.695790Z K 7 svn:log V 194 Change queue overflow checks from DIAGNOSTIC+panic() to KASSERT() to make them enabled on HEAD by default. It is probably better to do single compare then hunt for unexpected memory corruption. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-09-28T12:29:25.927900Z K 7 svn:log V 29 Remove unnecessary #include. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-28T13:43:42.783164Z K 7 svn:log V 99 MFC r240505: sh: Reduce code duplication: use setinputfile instead of open/setinputfd combination. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-09-28T13:50:37.696129Z K 7 svn:log V 22 Slight stylification. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-28T15:24:14.188393Z K 7 svn:log V 76 Correct NYET handling. Remove superfluous transfer complete interrupt mask. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-28T15:33:13.228165Z K 7 svn:log V 96 Remove some trailing bytes which are not part of the ethernet packet. Discussed with: bgray @ END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-28T16:23:01.106722Z K 7 svn:log V 47 Make sure we don't leak a mbuf in a fail case. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2012-09-28T17:34:34.699378Z K 7 svn:log V 60 Fix some nearby type and style errors. Pointed out by: bde END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-09-28T17:36:00.815342Z K 7 svn:log V 178 MFC r240782: Implement elfN(reloc) for powerpc. With this change the kernel is now able to resolve dependencies of modules at boot time and load additional modules when needed. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-28T18:28:27.630460Z K 7 svn:log V 1856 The drbr(9) API appeared to be so unclear, that most drivers in tree used it incorrectly, which lead to inaccurate overrated if_obytes accounting. The drbr(9) used to update ifnet stats on drbr_enqueue(), which is not accurate since enqueuing doesn't imply successful processing by driver. Dequeuing neither mean that. Most drivers also called drbr_stats_update() which did accounting again, leading to doubled if_obytes statistics. And in case of severe transmitting, when a packet could be several times enqueued and dequeued it could have been accounted several times. o Thus, make drbr(9) API thinner. Now drbr(9) merely chooses between ALTQ queueing or buf_ring(9) queueing. - It doesn't touch the buf_ring stats any more. - It doesn't touch ifnet stats anymore. - drbr_stats_update() no longer exists. o buf_ring(9) handles its stats itself: - It handles br_drops itself. - br_prod_bytes stats are dropped. Rationale: no one ever reads them but update of a common counter on every packet negatively affects performance due to excessive cache invalidation. - buf_ring_enqueue_bytes() reduced to buf_ring_enqueue(), since we no longer account bytes. o Drivers handle their stats theirselves: if_obytes, if_omcasts. o mlx4(4), igb(4), em(4), vxge(4), oce(4) and ixv(4) no longer use drbr_stats_update(), and update ifnet stats theirselves. o bxe(4) was the most correct driver, it didn't call drbr_stats_update(), thus it was the only driver accurate under moderate load. Now it also maintains stats itself. o ixgbe(4) had already taken stats from hardware, so just - drop software stats updating. - take multicast packet count from hardware as well. o mxge(4) just no longer needs NO_SLOW_STATS define. o cxgb(4), cxgbe(4) need no change, since they obtain stats from hardware. Reviewed by: jfv, gnn END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-09-28T20:29:06.181268Z K 7 svn:log V 54 MFC r239744: Show error messages if nmount() failed. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-28T20:43:03.351745Z K 7 svn:log V 785 Simplify and somewhat redesign interaction between pf_purge_thread() and pf_purge_expired_states(). Now pf purging daemon stores the current hash table index on stack in pf_purge_thread(), and supplies it to next iteration of pf_purge_expired_states(). The latter returns new index back. The important change is that whenever pf_purge_expired_states() wraps around the array it returns immediately. This makes our knowledge about status of states expiry run more consistent. Prior to this change it could happen that n-th run stopped on i-th entry, and returned (1) as full run complete, then next (n+1) full run stopped on j-th entry, where j < i, and that broke the mark-and-sweep algorythm that saves references rules. A referenced rule was freed, and this later lead to a crash. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-09-28T22:26:44.663043Z K 7 svn:log V 54 MFC r239744: Show error messages if nmount() failed. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-29T01:15:45.534906Z K 7 svn:log V 407 Get rid of assumptions in the hypervisor that the host physical memory associated with guest physical memory is contiguous. In this case vm_malloc() was using vm_gpa2hpa() to indirectly infer whether or not the address range had already been allocated. Replace this instead with an explicit API 'vm_gpa_available()' that returns TRUE if a page is available for allocation in guest physical address space. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2012-09-29T03:41:21.977227Z K 7 svn:log V 487 Allow deferred word-splitting via f_sysrc_get() by allowing $IFS in the "clean-room" environment used to query rc.conf(5) parameters. This brings bsdconfig(8)'s sysrc.subr in-line with both the sysrc(8) manual [provided by sysutils/sysrc] and sysrc(8)'s own sysrc.subr (now identical to bsdconfig(8)'s sysrc.subr as of this patch). Finally, this will allow a clean import of sysutils/sysrc (sans sysrc.subr, already provided here). Reviewed by: jilles Approved by: adrian (co-mentor) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-29T05:52:19.496564Z K 7 svn:log V 66 carp_send_ad() should never return without rescheduling next run. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-29T08:11:12.516933Z K 7 svn:log V 52 Update a comment to reflect recent locking changes. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-29T10:49:02.139036Z K 7 svn:log V 73 Give a clue how to force tcpdump(8) to interpret correctly CARP packets. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-29T11:54:34.669820Z K 7 svn:log V 402 libc: Use O_CLOEXEC for various internal file descriptors. This fixes a race condition where another thread may fork() before CLOEXEC is set, unintentionally passing the descriptor to the child process. This commit only adds O_CLOEXEC flags to open() or openat() calls where no fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still leaves a race window so it should be fixed later. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-29T15:08:55.491610Z K 7 svn:log V 161 Disable splitfs support, since we aren't support floppies for a long time. This slightly reduces an overhead, when loader tries to open file that doesn't exist. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-29T16:15:27.627585Z K 7 svn:log V 25 Remove unused variables. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-29T16:19:01.671822Z K 7 svn:log V 20 Add missing va_end. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-29T16:27:13.279878Z K 7 svn:log V 79 If devclass_get_devices(9) returns success but a count of 0, free the pointer. END K 10 svn:author V 5 kargl K 8 svn:date V 27 2012-09-29T16:40:12.242449Z K 7 svn:log V 444 * src/math_private.h: . Change the API for the LD80C by removing the explicit passing of the sign bit. The sign can be determined from the last parameter of the macro. . On i386, load long double by bit manipulations to work around at least a gcc compiler issue. On non-i386 ld80 architectures, use a simple assignment. * ld80/s_expl.c: . Update the only consumer of LD80C. Submitted by: bde Approved by: das (mentor) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-29T16:42:01.350918Z K 7 svn:log V 78 - Get rid of #ifdef __FreeBSD__. - Use correct format when printing uint64_t. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-29T16:47:56.734717Z K 7 svn:log V 940 Almost each time when loader opens a file, this leads to calling disk_open(). Very often this is called several times for one file. This leads to reading partition table metadata for each call. To reduce the number of disk I/O we have a simple block cache, but it is very dumb and more than half of I/O operations related to reading metadata, misses this cache. Introduce new cache layer to resolve this problem. It is independent and doesn't need initialization like bcache, and will work by default for all loaders which use the new DISK API. A successful disk_open() call to each new disk or partition produces new entry in the cache. Even more, when disk was already open, now opening of any nested partitions does not require reading top level partition table. So, if without this cache, partition table metadata was read around 20-50 times during boot, now it reads only once. This affects the booting from GPT and MBR from the UFS. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-29T17:20:16.866285Z K 7 svn:log V 153 Add support for mincore(). Specifically, this is an adaptation of the pmap_mincore() implementation that was added to the original arm pmap in r235717. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-29T19:09:11.168406Z K 7 svn:log V 28 Eliminate unused variables. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-29T20:02:26.010045Z K 7 svn:log V 266 Simplify send out queue code: - Write method of a queue now is void,length of item is taken as queue property. - Write methods don't need to know about mbud, supply just buf to them. - No need for safe queue iterator in pfsync_sendout(). Obtained from: OpenBSD END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-29T20:11:00.478634Z K 7 svn:log V 137 Clear and re-setup all function pointers that glue pf(4) and pfsync(4) together whenever the pfsync0 is brought down or up respectively. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-29T22:28:00.087746Z K 7 svn:log V 33 Eliminate an unused declaration. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-30T00:44:24.015822Z K 7 svn:log V 212 MFC r241007, r241008: Complete revert of r239963 (from head). The attempt to merge changes from the linux libtirpc caused rpc.lockd to exit after startup under unclear conditions. Reported by: David Wolfskill END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-30T00:44:53.773679Z K 7 svn:log V 212 MFC r241007, r241008: Complete revert of r239963 (from head). The attempt to merge changes from the linux libtirpc caused rpc.lockd to exit after startup under unclear conditions. Reported by: David Wolfskill END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-30T03:21:21.784133Z K 7 svn:log V 124 Document the security.bsd.unprivileged_idprio in idprio(1) in addition to rtprio(2). Approved by: wblock MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-30T03:25:04.059306Z K 7 svn:log V 82 clarify the wording for 'first' and 'last' Approved by: wblock MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-30T03:54:57.254119Z K 7 svn:log V 153 Stop calling pmap_remove_write() from pmap_remove_all(). Doing so is not only inefficient but also leads to recursive lock acquisition. Tested by: ray END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-09-30T07:51:57.200340Z K 7 svn:log V 42 mdoc: remove superfluous paragraph macro. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-30T07:52:40.551097Z K 7 svn:log V 51 Fix disk_cleanup() to work without DISK_DEBUG too. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T09:21:10.312604Z K 7 svn:log V 39 Free result of device_get_children(9). END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T09:26:26.698354Z K 7 svn:log V 46 Remove an unneeded NULL check after M_WAITOK. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-30T12:24:15.919630Z K 7 svn:log V 80 Reduce the number of attempts to detect proper kld format for the amd64 loader. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-30T13:14:37.595139Z K 7 svn:log V 85 Remember the file format of the last loaded module and try to use it for next files. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-09-30T13:17:33.993391Z K 7 svn:log V 15 Fix the style. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-30T13:32:48.788013Z K 7 svn:log V 349 MFC r240813: Do not skip two elements of the tid_buffer when reusing the buffer slot. This eventually results in exhaustion of the tid space, causing new threads get tid -1 as identifier. MFC r240951: Make the updates of the tid ring buffer' head and tail pointers explicit by moving them into separate statements from the buffer element accesses. END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-09-30T15:33:53.297086Z K 7 svn:log V 183 MFC r239775 from HEAD: - Link ipfilter(4) and ipfilter(5) to the build to stop the wrong man page displaying for 'man 4 ipfilter'. PR: docs/118020 Approved by: gabor (mentor) END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T15:42:20.867509Z K 7 svn:log V 96 Add missing header needed by free(9). Spotted by: David Wolfskill END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T16:11:50.401788Z K 7 svn:log V 130 MFC r240982: Initialize the num variable to avoid uninitialized data. This fixes the bug introduced by r238378. Reviewed by: pfg END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T16:17:54.715347Z K 7 svn:log V 114 MFC r240954: Teach getent(1) to look up a hostname and find IPv6 addresses. PR: bin/161548 Submitted by: matthew END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-30T16:21:12.764592Z K 7 svn:log V 31 MFC r240630: Add missing break END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-09-30T17:33:30.484205Z K 7 svn:log V 286 - Simplify the implementation of atomic_compare_exchange_strong_explicit. - Evaluate the memory order argument in atomic_fetch_*_explicit macros. - Implement atomic_store_explicit using atomic_exchange_explicit instead of a plain assignment. Reviewed by: theraven MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-30T19:31:20.557911Z K 7 svn:log V 202 The USB Bluetooth driver should only grab its own interfaces. This allows the USB bluetooth driver to co-exist with other USB device classes and drivers. Reported by: Geoffrey Levand MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-10-01T03:17:23.336328Z K 7 svn:log V 130 MFC r240982: Initialize the num variable to avoid uninitialized data. This fixes the bug introduced by r238378. Reviewed by: pfg END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-10-01T05:12:17.854652Z K 7 svn:log V 285 Fix the clobber list on the atomic operators that do comparisons. Without this some compilers will place a cmp instruction before the atomic operation and expect to be able to use the result afterwards. By adding "cc" to the list of used registers we tell the compiler to not do this. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-10-01T05:15:13.540515Z K 7 svn:log V 49 Remove unused variables from the OMAP ehci code. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T05:42:43.190398Z K 7 svn:log V 222 Inherit USB mode from RootHUB port where the USB device is connected. Only RootHUB ports can be dual mode. Disallow OTG ports on external HUBs. This simplifies some checks in the USB controller drivers. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-10-01T05:43:24.023636Z K 7 svn:log V 215 - Enforce CAP_MKFIFO on mkfifoat(2), not on mknodat(2). Without this change mkfifoat(2) was not restricted. - Introduce CAP_MKNOD and enforce it on mknodat(2). Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T05:48:46.117636Z K 7 svn:log V 62 MFC r240891: Improve moused when used with USB mouse devices. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T05:57:48.914337Z K 7 svn:log V 135 MFC r233090 and r240891: The UMS module is now loaded by rules in /etc/devd/usb.conf. Improve moused when used with USB mouse devices. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T06:00:08.139351Z K 7 svn:log V 34 MFC r240856: Correct driver name. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T06:01:20.843839Z K 7 svn:log V 34 MFC r240856: Correct driver name. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T06:42:07.785042Z K 7 svn:log V 71 MFC r239303: Streamline use of cdevpriv and correct some corner cases. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-01T06:48:59.474486Z K 7 svn:log V 39 Regenerate usb.conf MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-01T08:32:05.488496Z K 7 svn:log V 687 Due to improvements in the efficiency of portmaster's method of killing background processes when trap'ing, plus the declining quality of ports generally, when the background process that reads the distinfo files encountered a fatal error (which they have been doing more frequently of late), the resulting call to fail() would end up neatly killing all of that parent's background fetch processes as well. Fix that problem by not making the disruption in read_distinfos() fatal unless it's being used for --clean-distfiles. All the other calls to this function are run in the background for the distfile gathering process, and a missing file in that list is an inconvenience at worst. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-01T08:33:39.944600Z K 7 svn:log V 200 MFC r240917: Reduce delays in several wait loops from 10ms to 10us, same is it is done in Linux. This substantially increases graphics performance on Ivy Bridge. Submitted by: avg@ Reviewed by: kib@ END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-10-01T10:46:35.610866Z K 7 svn:log V 170 Add the UPDATING note about padlock rng support requiring the config change. Requested by: Dewayne Geraghty MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-01T10:52:10.868666Z K 7 svn:log V 222 MFC r240917: Reduce delays in several wait loops from 10ms to 10us, same is it is done in Linux. This substantially increases graphics performance on Ivy Bridge. Submitted by: avg@ Reviewed by: kib@ Approved by: re (kib) END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-10-01T10:54:04.237672Z K 7 svn:log V 89 Merge r240082. Remove unneeded ipfw headers introduced in r213447 from Infiniband code. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-01T11:16:22.305180Z K 7 svn:log V 200 MFC r240575: Remove references to userstat(1) and jailstat(1). Those tools were never merged from the Perforce branch. They might be brought in when %CPU limits go into the tree. PR: docs/171240 END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-10-01T11:26:49.700565Z K 7 svn:log V 79 - Rename .sgml files to .xml to track the recent doc changes MFC after: 1 day END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-10-01T12:28:58.438409Z K 7 svn:log V 571 Attila Bogar and Herbert Poeckl both reported similar problems w.r.t. a Linux NFS client doing a krb5 NFS mount against the FreeBSD server. We determined this was a Linux bug: http://www.spinics.net/lists/linux-nfs/msg32466.html, however the mount failed to work, because the Destroy operation with a bogus encrypted checksum destroyed the authenticator handle. This patch changes the rpcsec_gss code so that it doesn't Destroy the authenticator handle for this case and, as such, the Linux mount will work. Tested by: Attila Bogar and Herbert Poeckl MFC after: 2 weeks END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-10-01T14:52:34.667558Z K 7 svn:log V 41 MFC r238546: Remove trailing whitespace. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-10-01T14:55:22.484223Z K 7 svn:log V 208 MFC r238547: Make sure that arraysz is initialized to a value larger than zero. arraysz could get initialized to zero on ZFS because ZFS reports directory sizes differently compared to UFS. PR: bin/169493 END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-10-01T14:56:48.981989Z K 7 svn:log V 35 Support kernel options from ubldr. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-10-01T15:47:01.261594Z K 7 svn:log V 163 Merge the following from head: r240694 Add PCI subclass for NVM Express devices. r240699, r240739 Recognise NVM devices and pretty-print their name. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-10-01T15:47:13.300776Z K 7 svn:log V 163 Merge the following from head: r240694 Add PCI subclass for NVM Express devices. r240699, r240739 Recognise NVM devices and pretty-print their name. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-10-01T15:47:35.851579Z K 7 svn:log V 163 Merge the following from head: r240694 Add PCI subclass for NVM Express devices. r240699, r240739 Recognise NVM devices and pretty-print their name. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-10-01T15:50:16.555843Z K 7 svn:log V 74 Merge r240683 from head Add entries for two USB devices I have locally. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-10-01T15:50:18.840408Z K 7 svn:log V 74 Merge r240683 from head Add entries for two USB devices I have locally. END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-10-01T16:34:12.617787Z K 7 svn:log V 207 MFC r241024 and r241026 from HEAD: - Add a note to portsnap(8) about the behaviour of the example cron command. - Change "only only" to "only" in portsnap(8). PR: docs/171759 Approved by: gjb (mentor) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-10-01T16:42:07.244479Z K 7 svn:log V 223 Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is a number. This also allow pw user show to work as expected. PR: bin/172112 Submitted by: "Ilya A. Arkhipov" MFC after: 1 month END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-10-01T17:00:33.076983Z K 7 svn:log V 91 Do not treat empty name as an uid 0 Reported by: Robert Bonomi END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-01T17:45:56.208657Z K 7 svn:log V 41 MFC 239771: Fix misspelled "Infiniband". END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-01T19:09:25.246291Z K 7 svn:log V 992 MFC 239008,239020: Improve the handling of static DMA buffers that use non-default memory attributes (currently just BUS_DMA_NOCACHE): - Don't call pmap_change_attr() on the returned address, instead use kmem_alloc_contig() to ask the VM system for memory with the requested attribute. - As a result, always use kmem_alloc_contig() for non-default memory attributes, even for sub-page allocations. This requires adjusting bus_dmamem_free()'s logic for determining which free routine to use. - For x86, add a new dummy bus_dmamap that is used for static DMA buffers allocated via kmem_alloc_contig(). bus_dmamem_free() can then use the map pointer to determine which free routine to use. - For powerpc, add a new flag to the allocated map (bus_dmamem_alloc() always creates a real map on powerpc) to indicate which free routine should be used. Note that the BUS_DMA_NOCACHE handling in powerpc is currently #ifdef'd out. I have left it disabled but updated it to match x86. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-01T19:13:47.358351Z K 7 svn:log V 74 MFC 239739: Don't build and install the 07.lpd doc if WITHOUT_LPR is set. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-01T19:22:53.019372Z K 7 svn:log V 88 MFC 239779: Shorten the name of the fast SWI taskqueue to "fast taskq" so that it fits. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-01T19:43:37.313748Z K 7 svn:log V 88 MFC 239779: Shorten the name of the fast SWI taskqueue to "fast taskq" so that it fits. END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-10-01T21:42:32.224872Z K 7 svn:log V 192 Add the mps(4) driver to the i386 GENERIC config file. LSI has tested it on i386 and verified that it works. Submitted by: Harald Schmalzbauer, John Baldwin, Kashyap Desai MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-01T22:27:34.766132Z K 7 svn:log V 142 Indicate (loudly) that ports csup is going away. While here clarify some other portions. Approved by: cperciva (implicit) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-02T00:30:15.035461Z K 7 svn:log V 210 Correct the tip about finding all the directories on the system Add a tip about clearing the screen. Make things more consistent by removing quotes around 'make search' Approved by: cperciva MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-02T00:30:20.798743Z K 7 svn:log V 118 add SG state type PR: bin/171664 Submitted by: Jan Beich jbeich@tormail.org Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-02T00:30:26.322437Z K 7 svn:log V 151 Implement the Sun/GNU extension of using a default prefix when no arguments are supplied. Reviewed by: jilles Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-02T03:33:41.768251Z K 7 svn:log V 158 Provide a generic way to disable devices at boot time PR: kern/119202 Requested by: peterj Reviewed by: sbruno, jhb Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-02T04:36:37.221676Z K 7 svn:log V 49 Add cd9660 support to userboot to allow CD boot. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-02T04:41:43.816064Z K 7 svn:log V 346 Fix the error return in disk_readslicetab() when an MBR/GPT partition wasn't found, and use that in userdisk_open() to allow raw disks and ISO images to be read. This is a temporary fix - disk.c has changed a lot in CURRENT so this code may be reworked or made redundant on the next IFC. It is useful to be able to boot from CD in the meantime. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-10-02T06:37:46.976770Z K 7 svn:log V 76 MFC r241096: - Rename .sgml files to .xml to track the recent doc changes END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-02T07:14:22.022481Z K 7 svn:log V 148 Introduce a new TLB invalidation function for efficiently invalidating address ranges, and use this function in pmap_remove(). Tested by: jchandra END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-10-02T09:19:28.484189Z K 7 svn:log V 35 Fix build with DEBUGGING disabled. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-10-02T09:23:16.326592Z K 7 svn:log V 58 Fix build with LOG_FILE undefined and DEBUGGING disabled. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-10-02T09:53:50.221353Z K 7 svn:log V 44 mdoc: point to an existing cross reference. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-02T10:05:39.081795Z K 7 svn:log V 40 Remove unused field. MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-10-02T10:09:23.771168Z K 7 svn:log V 26 Style. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-02T12:03:02.449488Z K 7 svn:log V 1500 There is a complex race in in_pcblookup_hash() and in_pcblookup_group(). Both functions need to obtain lock on the found PCB, and they can't do classic inter-lock with the PCB hash lock, due to lock order reversal. To keep the PCB stable, these functions put a reference on it and after PCB lock is acquired drop it. If the reference was the last one, this means we've raced with in_pcbfree() and the PCB is no longer valid. This approach works okay only if we are acquiring writer-lock on the PCB. In case of reader-lock, the following scenario can happen: - 2 threads locate pcb, and do in_pcbref() on it. - These 2 threads drop the inp hash lock. - Another thread comes to delete pcb via in_pcbfree(), it obtains hash lock, does in_pcbremlists(), drops hash lock, and runs in_pcbrele_wlocked(), which doesn't free the pcb due to two references on it. Then it unlocks the pcb. - 2 aforementioned threads acquire reader lock on the pcb and run in_pcbrele_rlocked(). One gets 1 from in_pcbrele_rlocked() and continues, second gets 0 and considers pcb freed, returns. - The thread that got 1 continutes working with detached pcb, which later leads to panic in the underlying protocol level. To plumb that problem an additional INPCB flag introduced - INP_FREED. We check for that flag in the in_pcbrele_rlocked() and if it is set, we pretend that that was the last reference. Discussed with: rwatson, jhb Reported by: Vladimir Medvedkin END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-02T12:25:30.624460Z K 7 svn:log V 376 Rename the module for 'device enc' to "if_enc" to avoid conflicting with the CAM "enc" peripheral (part of ses(4)). Previously the two modules used the same name, so only one was included in a linked kernel causing enc0 to not be created if you added IPSEC to GENERIC. The new module name follows the pattern of other network interfaces (e.g. "if_loop"). MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-02T12:44:46.972392Z K 7 svn:log V 146 To reduce volume of pfsync traffic: - Scan request update queue to prevent doubles. - Do not push undersized daragram in pfsync_update_request(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-02T12:57:47.793354Z K 7 svn:log V 315 Merge r240985 from head: Fix bug in TCP_KEEPCNT setting, which slipped in in the last round of reviewing of r231025. Unlike other options from this family TCP_KEEPCNT doesn't specify time interval, but a count, thus parameter supplied doesn't need to be multiplied by hz. Reported & tested by: amdmi3 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-02T13:03:11.984874Z K 7 svn:log V 344 Merge r240985 from head: Fix bug in TCP_KEEPCNT setting, which slipped in in the last round of reviewing of r231025. Unlike other options from this family TCP_KEEPCNT doesn't specify time interval, but a count, thus parameter supplied doesn't need to be multiplied by hz. Reported & tested by: amdmi3 Approved by: re (kib) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-02T14:48:03.733200Z K 7 svn:log V 186 Fix alignment related warnings reported by gcc Switch from old style arguments to modern C remove WARNS as a result tested with "make universe" Approved by: cperciva MFC after: 1 week END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-10-02T17:04:53.482759Z K 7 svn:log V 747 MFC r240682 if a file in plist starts with / then do not prefix it with "prefix" [1] pkg info -g returns 1 if a file mismatch [2] flush stdout in pkg info -g [3] clean up quiet mode (-q | --quiet) output of pkg_version(1) [4] fix missing error call in uname check added to pkg_version(1) [5] fix pkg_add(1) fails to install with -C from bad path [6] only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7] PR: bin/13128 [1] bin/139015 [2] bin/113702 [3] bin/142570 [4] bin/146857 [5] bin/157543 [6] Submitted by: cy [1] Anton Yuzhaninov [2] Ighighi [3] "N.J. Mann" [4] gcooper [5] David Naylor [6] netchild [7] END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-10-02T17:05:20.071025Z K 7 svn:log V 747 MFC r240682 if a file in plist starts with / then do not prefix it with "prefix" [1] pkg info -g returns 1 if a file mismatch [2] flush stdout in pkg info -g [3] clean up quiet mode (-q | --quiet) output of pkg_version(1) [4] fix missing error call in uname check added to pkg_version(1) [5] fix pkg_add(1) fails to install with -C from bad path [6] only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7] PR: bin/13128 [1] bin/139015 [2] bin/113702 [3] bin/142570 [4] bin/146857 [5] bin/157543 [6] Submitted by: cy [1] Anton Yuzhaninov [2] Ighighi [3] "N.J. Mann" [4] gcooper [5] David Naylor [6] netchild [7] END K 10 svn:author V 4 ache K 8 svn:date V 27 2012-10-02T17:44:08.538364Z K 7 svn:log V 331 Using putenv() and later direct pointer contents modification it is possibe to craft environment variables with similar names like that: a=1 a=2 ... unsetenv("a") should remove them all to make later getenv("a") impossible. Fix it to do so (this is GNU autoconf test #3 failure too). PR: 172273 MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-10-02T17:45:19.634560Z K 7 svn:log V 1215 Migrate the power-save functions to be overridable VAP methods. This turns ieee80211_node_pwrsave(), ieee80211_sta_pwrsave() and ieee80211_recv_pspoll() into methods. The intent is to let drivers override these and tie into the power save management pathway. For ath(4), this is the beginning of forcing a node software queue to stop and start as needed, as well as supporting "leaking" single frames from the software queue to the hardware. Right now, ieee80211_recv_pspoll() will attempt to transmit a single frame to the hardware (whether it be a data frame on the power-save queue or a NULL data frame) but the driver may have hardware/software queued frames queued up. This initial work is an attempt at providing the hooks required to implement correct behaviour. Allowing ieee80211_node_pwrsave() to be overridden allows the ath(4) driver to pause and unpause the entire software queue for a given node. It doesn't make sense to transmit anything whilst the node is asleep. Please note that there are other corner cases to correctly handle - specifically, setting the MORE data bit correctly on frames to a station, as well as keeping the TIM updated. Those particular issues can be addressed later. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-10-02T17:46:32.850863Z K 7 svn:log V 50 Update UPDATING with the ABI change for net80211. END K 10 svn:author V 7 wollman K 8 svn:date V 27 2012-10-02T18:38:05.612039Z K 7 svn:log V 61 Fix spelling of the function name in two assertion messages. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-02T19:00:56.140117Z K 7 svn:log V 217 RPC: Convert all uid and gid variables of the type uid_t and gid_t. This matches what upstream (OpenSolaris) does. Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 project (libtirpc) MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-02T19:03:21.372319Z K 7 svn:log V 400 Fix __rpc_getconfip __rpc_getconfip is supposed to return the first netconf entry supporting tcp or udp, respectively. The code will currently return the *last* entry, plus it will leak memory when there is more than one such entry. This change matches the reference (OpenSolaris) implementation. Tested by: David Wolfskill Obtained from: Bull GNU/linux NFSv4 Project (libtirpc) MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-02T19:10:19.823165Z K 7 svn:log V 428 libtirpc: be sure to free cl_netid and cl_tp When creating a client with clnt_tli_create, it uses strdup to copy strings for these fields if nconf is passed in. clnt_dg_destroy frees these strings already. Make sure clnt_vc_destroy frees them in the same way. This change matches the reference (OpenSolaris) implementation. Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 Project (libtirpc) MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-02T22:03:21.436275Z K 7 svn:log V 221 Implement SATA revision (speed) control for legacy SATA controller for both boot (via loader tunables) and run-time (via `camcontrol negotiate`). Tested to work at least on NVIDIA MCP55 chipset. H/w provided by: glebius END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-10-02T23:04:12.264617Z K 7 svn:log V 110 Add casts to unbreak the i386 PAE build for the mps(4) driver. MFC after: 3 days Prompted by: Garrett Cooper END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-03T00:41:46.500142Z K 7 svn:log V 106 Merge bmake-20120831 from vendor/NetBSD/bmake/dist. Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-10-03T00:46:30.059625Z K 7 svn:log V 212 Get rid of assumptions in the hypervisor that the host physical memory associated with guest physical memory is contiguous. Rewrite vm_gpa2hpa() to get the GPA to HPA mapping by querying the nested page tables. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-10-03T01:18:51.233985Z K 7 svn:log V 236 Get rid of assumptions in the hypervisor that the host physical memory associated with guest physical memory is contiguous. Add check to vm_gpa2hpa() that the range indicated by [gpa,gpa+len) is all contained within a single 4KB page. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2012-10-03T02:32:47.334098Z K 7 svn:log V 399 Import sysutils/sysrc from the ports tree (current version 5.1). Importing disconnected under the WITH_BSDCONFIG flag (a good idea since this version of sysrc(8) indeed requires the `sysrc.subr' module installed by bsdconfig(8)). Multiple reasons sysrc should not simply continue to live in ports. The most important being that it is tightly coupled with the base. Approved by: adrian (co-mentor) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-03T02:58:55.357412Z K 7 svn:log V 166 Restore the ability to boot partitioned disks. The previous submit broke that by forcing raw disks, due to the use of error returns by userboot's initial disk opens. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-03T03:00:37.883788Z K 7 svn:log V 205 Rework the GPT/MBR/raw policy so that it actually works, and navigates around disk_open's current handling of falling back from GPT to MBR. As in the previous commit, this should all be fixed in CURRENT. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-03T03:44:23.764475Z K 7 svn:log V 500 rpc: convert all uid and gid variables of the type uid_t and gid_t. As part of the previous commit, uses of xdr_int() were replaced with xdr_u_int(). This has undesired effects as the second argument doesn't match exactly uid_t or gid_t. It also breaks assumptions in the size of the provided types. To work around those issues we revert back to the use of xdr_int() but provide proper casting so the behaviour doesn't change. While here fix a style issue in the affected lines. Reported by: bde END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-03T04:22:39.553918Z K 7 svn:log V 210 Allow the number of FICL dictionary cells to be overridden. Loading a 7.3 ISO with userboot/amd64 takes up 10035 cells, overflowing the long-standing default of 10000. Bump userboot's value up to 15000 cells. END K 10 svn:author V 4 ache K 8 svn:date V 27 2012-10-03T04:46:58.553438Z K 7 svn:log V 327 Optimize prev. commit for speed. 1) Don't iterate the loop from the environment array beginning each time, iterate it under the last place we deactivate instead. 2) Call __rebuild_environ() not on each iteration but once, only at the end of whole loop (of course, only in case if something is changed). MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-03T05:06:45.430207Z K 7 svn:log V 236 Tidy up a bit: Update some of the comments. In particular, use "sleep" in preference to "block" where appropriate. Eliminate some unnecessary casts. Make a few whitespace changes for consistency. Reviewed by: kib MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-03T05:42:15.489868Z K 7 svn:log V 112 Reimplement pmap_qremove() using the new TLB invalidation function for efficiently invalidating address ranges. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-10-03T10:06:48.389501Z K 7 svn:log V 72 Correct detection of a superblock. Obtained from: Smartcom Bulgaria AD END K 10 svn:author V 4 zont K 8 svn:date V 27 2012-10-03T11:56:01.820035Z K 7 svn:log V 142 MFC r240645: - Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively. MFC r240649: - Bump date. Approved by: kib (mentor) END K 10 svn:author V 4 zont K 8 svn:date V 27 2012-10-03T11:56:18.636684Z K 7 svn:log V 142 MFC r240645: - Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively. MFC r240649: - Bump date. Approved by: kib (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-03T12:43:26.910048Z K 7 svn:log V 56 Fix build without `options ATA_CAM`, broken by r241144. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-10-03T13:51:03.439026Z K 7 svn:log V 300 Fix faulty error code handling in read(2) on TTYs. When performing a non-blocking read(2), on a TTY while no data is available, we should return EAGAIN. But if there's a modem disconnect, we should return 0. Right now we only return 0 when doing a blocking read, which is wrong. MFC after: 1 month END K 10 svn:author V 4 zont K 8 svn:date V 27 2012-10-03T14:28:55.737770Z K 7 svn:log V 1267 MFC r239501: - Use pid_t type instead of just int. MFC r239611: - Put arguments for print_syscall_ret() function in proper order. Bug was introduced in r192025. MFC r239898: - Remove unused variables. - Fix warnings about comparing signed and unsigned ints. MFC r240005: - Style(9) cleanup. MFC r240364: - Remove unused variables. - Remove redundant return after err(3) call. MFC r240393: - Fix detaching under some circumstances. When truss is detaching from very active process it is possible to hang on waitpid(2) in restore_proc() forever, because ptrace(PT_SYSCALL) must be called before detaching, to allow the debugging process to continue execution. Also when truss called with '-c' argument, it does not print anything after detach, because it immediately exits from restore_proc(). To fix these two problems make detaching deferred, but then it is impossible to detach from a process which does not do any system call. To fix this issue use sigaction(2) instead of signal(3) to disable SA_RESTART flag for waitpid(2) that makes it non-restartable. Remove global variable child_pid, because now detaching is handled in context where child's pid is known. MFC r240562: - Make truss thread-aware. Approved by: kib (mentor) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-10-03T16:48:28.584082Z K 7 svn:log V 174 Pull in r164717 from upstream clang trunk: Allow -MF to be used in combination with -E -M or -E -MM. This should help with building the lang/ghc port. MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-10-03T17:20:34.148167Z K 7 svn:log V 92 Replace all references to loader_callbacks_v1 with loader_callbacks. Suggested by: grehan@ END