summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Acquire a hold reference on the vnode when a knote is instantiated.kib2013-09-261-0/+2
| | | | | | | | | | | | Otherwise, knote keeps a pointer to a vnode which could become invalid any time. Reported by: many Tested by: Patrick Lamaiziere <patfbsd@davenulle.org> Discussed with: jmg Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (marius)
* Now that the portsnap buildbox is generating the raw bits for INDEX-10,cperciva2013-09-261-0/+1
| | | | | | | add it to the set of INDEX files built by portsnap. Approved by: re (marius), portmgr (erwin) MFC after: 3 days
* Make the callout arithmetic more robust adding checks for overflow.davide2013-09-261-1/+6
| | | | | | | | | | | | | | | | Without these, if the timeout value passed is "large enough", the value of the sum of it and other factors (e.g. current time as returned by sbinuptime() or 'precision' argument) might result in a negative number. This negative number is then passed to eventtimers(4), which causes et_start() routine to load et_min_period into eventtimer, making the CPU where the thread is stuck forever in timer interrupt handler routine. This is now avoided rounding to INT64_MAX the timeout period in case of overflow. Reported by: kib, pho Discussed with: kib, mav Tested by: pho (stress2 suite, kevent7.sh scenario) Approved by: re (kib)
* Add an elf note on ARM to store the MACHINE_ARCH an executable was builtandrew2013-09-264-0/+18
| | | | | | | | | | for. This is useful for software needing to know which architecture a binary is built for as arm and armv6 have slight differences meaning only some binaries build for one will work as expected on the other. It is expected pkgng will be able to make use of this to simplify the logic to determine which package ABI to use. Approved by: re (kib)
* Correct a NULL pointer deference in nslookup and nsupdate that woulddelphij2013-09-252-2/+4
| | | | | | | | cause the utility to crash in interactive mode when the user gives an EOF on standard input. MFC after: 3 days Approved by: re (gjb)
* Additional BIND files.des2013-09-251-0/+28
| | | | | Submitted by: bdrewery Approved by: re (blanket)
* Re-do r255853. Along with adding back the API/ABI changes from thescottl2013-09-2516-30/+59
| | | | | | | | original, this hides the contents of cam_compat.h from ktrace/kdump/truss, avoiding problems there. There are no user-servicable parts in there, so no need for those tools to be groping around in there. Approved by: re
* Re-do r255853. Along with adding back the API/ABI changes from thescottl2013-09-256-90/+399
| | | | | | | | original, this hides the contents of cam_compat.h from ktrace/kdump/truss, avoiding problems there. There are no user-servicable parts in there, so no need for those tools to be groping around in there. Approved by: re
* Add PCI device ID for MegaRAID Invader cards. This was the onlyambrisko2013-09-251-0/+1
| | | | | | change needed to make it work on my card. Approved by: re (glebius)
* Avoid memory accesses reordering which can result in fget_unlocked()attilio2013-09-251-2/+14
| | | | | | | | | | seeing a stale fd_ofiles table once fd_nfiles is already updated, resulting in OOB accesses. Approved by: re (kib) Sponsored by: EMC / Isilon storage division Reported and tested by: pho Reviewed by: benno
* NULL stale pointers (should be a no-op as they should no longer bejmg2013-09-251-0/+5
| | | | | | | | | used)... Reviewed by: dteske Approved by: re (kib) Sponsored by: Vicor MFC after: 3 days
* fix a bug where we access a bread buffer after we have brelse'd it...jmg2013-09-251-5/+5
| | | | | | | | | | | The kernel normally didn't unmap/context switch away before we accessed the buffer most of the time, but under heavy I/O pressure and lots of mount/unmounting this would cause a fault on nofault panic... Reviewed by: dteske Approved by: re (kib) Sponsored by: Vicor MFC after: 3 days
* Revert r255853 pending fixes to build errors in usr.bin/kdumpgjb2013-09-2522-451/+119
| | | | Approved by: re (implicit)
* Minor mdoc fixes.joel2013-09-241-31/+62
| | | | Approved by: re (blanket)
* Introduce a kern.geom.notaste sysctl that can be used to temporarilydes2013-09-243-1/+8
| | | | | | | | | | disable GEOM tasting to avoid the "bouncing GEOM" problem where, when you shut down the consumer of a provider which can be viewed in multiple ways (typically a mirror whose members are labeled partitions), GEOM will immediately taste that provider's alter ego and reattach the consumer. Approved by: re (glebius)
* Don't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined.jhb2013-09-241-0/+2
| | | | | Approved by: re (gjb) MFC after: 1 week
* As it turns out, when MOD_LOAD handler returns error, kernel calls MOD_UNLOADtrasz2013-09-241-11/+7
| | | | | | | handler. Make the new iSCSI initiator not panic when this happens. Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Improve error handling in the old initiator, preventing panic on attempttrasz2013-09-241-9/+14
| | | | | | | to load iscsi_initiator.ko when iscsi.ko is already loaded. Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Update head/ to -ALPHA3.gjb2013-09-241-1/+1
| | | | | | | | This commit marks the point the final KBI change was made as part of the 10.0-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Update the CAM API for FreeBSD 10:scottl2013-09-2422-119/+451
| | | | | | | | | | | | | | | | | | | | | | - Remove the timeout_ch field. It's been deprecated since FreeBSD 7.0; MPSAFE drivers should be managing their own timeout storage. The remaining non-MPSAFE drivers have been modified to also manage their own storage, and should be considered for updating to MPSAFE (or removal) during the FreeBSD 10.x lifecycle. - Add fields related to soft timeouts and quality of service, to be used in upcoming work. - Add room for more flags in the CCB header and path_inq structures. - Begin support for extended 64-bit LUNs. - Bump the CAM version number to 0x18, but add compat shims. Tested with camcontrol and smartctl. Reviewed by: nathanw, ken, kib Approved by: re Obtained from: Netflix
* Update dialog to 1.2-20130923.dteske2013-09-2434-1939/+4819
| | | | Approved by: re (marius)
* Regenerate.des2013-09-241-76/+25
| | | | Approved by: re (blanket)
* Flip the switch: disable BIND and enable LDNS_UTILS.des2013-09-245-9/+9
| | | | Approved by: re (blanket)
* In pmap_clear_modify(), initialize pvh even for fictitious managedkib2013-09-241-1/+1
| | | | | | | | | page, otherwise the small mappings loop would use uninitialized value. Note that currently pmap_clear_modify() is not called for fictitious pages. Sponsored by: The FreeBSD Foundation Approved by: re (glebius)
* Properly ignore PDUs with CmdSN outside of allowed range.trasz2013-09-241-17/+18
| | | | | Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Use the pv lists generation count to read-lock the pvh_global_lock inkib2013-09-241-5/+30
| | | | | | | | | pmap_clear_modify(). Noted and reviewed by: alc Tested by: pho Sponsored by: The FreeBSD Foundation Approved by: re (marius)
* Ensure that the ERESTART return from the syscall reloads thekib2013-09-241-0/+4
| | | | | | | | | | | registers, to make the restarted syscall instruction pass the correct arguments. PR: kern/182161 Reported by: Russ Cox <rsc@swtch.com> Sponsored by: The FreeBSD Foundation MFC after: 3 days Approved by: re (marius)
* Forgotten in r255825: NETWORKING requires local_unbound.des2013-09-241-1/+1
| | | | Approved by: re (blanket)
* Replace the unused /etc/unbound directory with a symlink to /var/unbound.des2013-09-242-2/+5
| | | | Approved by: re (blanket)
* Regeneratedes2013-09-247-202/+120
| | | | Approved by: re (blanket)
* Regenerate the configure script before running it.des2013-09-241-1/+3
| | | | | | Set the default config file to /var/unbound/unbound.conf. Approved by: re (blanket)
* Don't include the build date or command-line arguments in the binary.des2013-09-242-15/+0
| | | | Approved by: re (blanket)
* Fix a few instances of M_WAITOK in threads marked as prohibited from sleep,trasz2013-09-241-2/+16
| | | | | | | missed in r255824. Approved by: re (kib) Sponsored by: FreeBSD Foundation
* Make load average sampling asynchronous to hardclock ticks. This improvesmav2013-09-241-2/+2
| | | | | | | | | | | | | measurement of load caused by time-related events still using hardclock. For example, without this change dummynet, scheduling events each hardclock tick, was always miscounted as load of 1. There is still aliasing with events delayed by the new precision mechanism, but it probably can't be avoided without moving this sampling from using callout to some lower-level code or handling it in some other special way. Reviewed by: davide Approved by: re (marius)
* - Add myself as port commiter and my mentors relationship.danilo2013-09-242-1/+5
| | | | | | - Add myself to calendar.freebsd. Approved by: re (gjb), wg (mentor)
* Unbreak the WITHOUT_KERBEROS build and try to reduce the odds of ades2013-09-239-21/+76
| | | | | | | | | repeat performance by introducing a script that runs configure with and without Kerberos, diffs the result and generates krb5_config.h, which contains the preprocessor macros that need to be defined in the Kerberos case and undefined otherwise. Approved by: re (marius)
* Correcting EXAMPLES section.hiren2013-09-231-5/+5
| | | | Approved by: re (gjb)
* Free both KVA and backing pages when freeing TSS memory.kib2013-09-232-2/+2
| | | | | | Reported and tested by: pho Sponsored by: The FreeBSD Foundation Approved by: re (marius)
* Prevent resolvconf from updating /etc/resolv.conf. As Jakob Schlyterdes2013-09-231-5/+3
| | | | | | | | | | pointed out, having additional nameservers listed in /etc/resolv.conf can break DNSSEC verification by providing a false positive if unbound returns SERVFAIL due to an invalid signature. The downside is that the domain / search path won't get updated either, but we can live with that. Approved by: re (blanket)
* Move local_unbound up in the rc order.des2013-09-231-1/+1
| | | | Approved by: re (blanket)
* Don't use M_WAITOK when running from context where sleeping is prohibited,trasz2013-09-232-5/+26
| | | | | | | such as callout or a geom thread. Approved by: re (marius) Sponsored by: FreeBSD Foundation
* Fix coredump on 'arp -d'.glebius2013-09-231-1/+4
| | | | | Submitted by: az Approved by: re (kib)
* Ensure that resolvconf(8) preserves the edns0 setting.des2013-09-231-0/+1
| | | | Approved by: re (blanket)
* Fix a bug in HTTP checking/fetching.dteske2013-09-234-4/+38
| | | | | | | | | | Fix a bug in HTTP checking/fetching. Add Main Site to HTTP menu. Add new example script browse_packages_http.sh and move existing example script browse_packages.sh -> browse_packages_ftp.sh Reviewed by: gjb, brd Approved by: re (gjb), clusteradm (brd) MFC after: 3 days
* Add installer support for CHRP/PAPR PowerPC systems that use MBR+BSDnwhitehorn2013-09-232-2/+4
| | | | | | | formatting, like x86, but with an additional MBR slice containing a raw boot partition. Approved by: re (gjb)
* Fix DELAY() on RPi, the wrong math was making it take twice it should.loos2013-09-231-1/+1
| | | | | | Reported by: Alexander <sht@ropnet.ru> Approved by: adrian (mentor) Approved by: re (gjb)
* Import a new libcxxrt. This fixes some potential crashing in the demangler.theraven2013-09-233-17/+74
| | | | | Approved by: re (gjb) MFC after: 1 week
* Prevent "lock (iscsi) sx does not match earlier (sleep mutex) lock" panictrasz2013-09-231-1/+1
| | | | | | | triggered by "kldload iscsi_initiator; kldunload iscsi_initiator; kldload iscsi". Approved by: re (marius)
* Add a setup script for unbound(8) called local-unbound-setup. Itdes2013-09-2311-4/+488
| | | | | | | | | | | | | | | | | | | | | | | | | generates a configuration suitable for running unbound as a caching forwarding resolver, and configures resolvconf(8) to update unbound's list of forwarders in addition to /etc/resolv.conf. The initial list is taken from the existing resolv.conf, which is rewritten to point to localhost. Alternatively, a list of forwarders can be provided on the command line. To assist this script, add an rc.subr command called "enabled" which does nothing except return 0 if the service is enabled and 1 if it is not, without going through the usual checks. We should consider doing the same for "status", which is currently pointless. Add an rc script for unbound, called local_unbound. If there is no configuration file, the rc script runs local-unbound-setup to generate one. Note that these scripts place the unbound configuration files in /var/unbound rather than /etc/unbound. This is necessary so that unbound can reload its configuration while chrooted. We should probably provide symlinks in /etc. Approved by: re (blanket)
* Launch the bourne shell using "sh" rather than "${SHELL}", as the latterian2013-09-231-1/+1
| | | | | | | | | | may come in from the environment and reflect the user's interactive shell. Using bare "sh" is the dominant pattern in existing makefiles. MFC this together with r255775. Approved by: re () MFC after: 2 weeks
OpenPOWER on IntegriCloud