summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | If a drive is not part of the array (i.e. missing) we need to print thebz2011-08-251-1/+1
| | | | | | | | | | | | | | | | | | new line after the pd state information as well, so move it to the outside of the block. Submitted by: Mark Johnston at Sandvine Inc MFC atfer: 3 days Approved by: re (kib)
* | Import bugfix for reading and extracting of FreeBSD ISO images with tar.mm2011-08-259-198/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream revision 3645 (merge of 3642): Change the mechanism handling a rr_moved directory, which is Rockridge extension that can exceed the limitation of a maximum directory depth of ISO 9660. - Stop reading all entries at a time. - Connect "CL" entry to "RE" entry dynamically, which "CL" and "RE" have information to rebuild a full directory tree. - Tweak some related tests since we use Headsort for re-ordering entries and it cannot make a steady order when the keies of the entries are the same. http://code.google.com/p/libarchive/issues/detail?id=168 Reviewed by: kientzle Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3645) MFC after: 3 days
* | Generalize ffs_pages_remove() into vn_pages_remove().mm2011-08-256-20/+28
| | | | | | | | | | | | | | | | | | | | | | Remove mapped pages for all dataset vnodes in zfs_rezget() using new vn_pages_remove() to fix mmapped files changed by zfs rollback or zfs receive -F. PR: kern/160035, kern/156933 Reviewed by: kib, pjd Approved by: re (kib) MFC after: 1 week
* | When the RADIX_MPATH kernel option is enabled, the RADIX_MPATH code triesqingli2011-08-251-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | to find the first route node of an ECMP chain before executing the route command. If the system has a default route, and the specific route argument to the command does not exist in the routing table, then the default route would be reached. The current code does not verify the reached node matches the given route argument, therefore erroneous removed the entry. This patch fixes that bug. Approved by: re MFC after: 3 days
* | We need to unlock and destroy vnode attached to znode which we are freeing.pjd2011-08-241-0/+14
| | | | | | | | | | | | Reviewed by: kib Approved by: re (bz) MFC after: 1 week
* | Rtld links with the specially built pic static libc library to get somekib2011-08-249-54/+573
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C runtime services, like printf(). Unfortunately, the multithread-safeness measures in the libc do not work in rtld environment. Rip the kernel printf() implementation and use it in the rtld instead of libc version. This printf does not require any shared global data and thus is mt-safe. Systematically use rtld_printf() and related functions, remove the calls to err(3). Note that stdio is still pulled from libc due to libmap implementaion using fopen(). This is safe but unoptimal, and can be changed later. Reported and tested by: pgj Diagnosed and reviewed by: kan (previous version) Approved by: re (bz)
* | Fix a missing initialisation of bt_flags when setting up the TDMA beacon.adrian2011-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The AR5212 HAL didn't check this field; timers are enabled a different way. The AR5416 HAL however did, and since this field was uninitialised, it had whatever was on the stack at the time. This lead to "unpredictable" behaviour. This allows TDMA to work on the AR5416 and later chipsets. Thanks to: paradyse@gmail.com Approved by: re (kib, blanket)
* | Reword sentence noting UPDATING entries prior to October 2007 aregjb2011-08-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | only available in older FreeBSD releases. PR: 159220 Submitted by: arundel Patch by: Benjamin Kaduk (kaduk % mit ! edu) OK'd by: imp (via -doc@) MFC after: 1 week Approved by: re (kib)
* | Add ID for ASMedia ASM1061 2-port PCIe 2.0 x1 6Gb/s SATA controller.mav2011-08-241-0/+1
| | | | | | | | | | Approved by: re (blackend) MFC after: 1 week
* | This patch fixes beacon frame sequence number generation. The codeadrian2011-08-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | didn't set a sequence number; it didn't show up earlier because the hardware most people use for hostap (ie, AR5212 series stuff) sets the sequence numbers up in hardware. Later hardware (AR5416, etc) which can do 11n and aggregation require sequence numbers to be generated in software. Submitted by: paradyse@gmail.com Approved by: re (kib)
* | TIM/Timer fixes for AR5416 and later:adrian2011-08-242-5/+17
| | | | | | | | | | | | | | | | | | | | * Fix SLEEP1/SLEEP2 register definitions; the CAB/Beacon timeout fields have changed in AR5416 and later * The TIM_PERIOD and DTIM_PERIOD registers are now microsecond fields, not TU. Obtained from: Linux ath9k, Atheros reference Approved by: re (kib, blanket)
* | Add kern.cam.boot_delay description (with reasonable default) tomarck2011-08-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | default/loader.conf This should help people installing ${OS} to USB devices, where there are frequently cases where kernel tries to mount root before actual umass sensing is finished. Reviewed by: mav Approved by: re (kib) MFC after: 1 week
* | Fix buffer overflow and possible ISO image corruption in wrongmm2011-08-231-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | handling of "." character case in makefs ISO level 1 and 2 filename conversion. Filed as NetBSD PR #45285 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45285 Reviewed by: Christos Zoulas <christos@netbsd.org> Approved by: re (kib) MFC after: 3 days
* | Honor WITHOUT_IPX when installing etc/rc.d/ipxrouted.delphij2011-08-231-1/+5
| | | | | | | | | | MFC after: 1 week Approved by: re (kib)
* | Fix nfsstat(1) so that it prints out correct stats for thermacklem2011-08-231-23/+23
| | | | | | | | | | | | | | | | | | new NFS server when the "-e" option is not used. The bug was that srvrpccnt[] was being indexed by NFSPROC_XXX when it needs to be indexed by NFSV4OP_XXX. Tested by: hrs Approved by: re (bz)
* | These timer registers are all 1uS in resolution in AR5416adrian2011-08-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or later. Previous hardware had some as TU, some as 1/8th TU. * Modify AR_NEXT_DBA and AR_NEXT_SWBA to use a new macro, ONE_EIGHTH_TU_TO_USEC(), which converts the 1/8th TU fields to USEC. This is just cosmetic and matches the Atheros reference driver. * Fix AR_NEXT_TBTT, which is USEC, not TU. Submitted by: paradyse@gmail.com Approved by: re (kib, blanket)
* | Fix nfsstat(1) so that it prints out correct stats for thermacklem2011-08-231-18/+18
| | | | | | | | | | | | | | | | | | | | new NFS server when the "-w" option is used. The problem was spotted by hrs@ during testing where srvrpcnt[] must be indexed by NFSV4OP_XXX and not NFSPROC_XXX. Submitted by: hrs Approved by: re (bz) MFC after: 2 weeks
* | Fix lock leak.ae2011-08-231-2/+2
| | | | | | | | | | | | Reported by: Alex Lyashkov Approved by: re (kib) MFC after: 1 week
* | Fix if_addr_mtx recursion in mld6.pluknet2011-08-221-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mld_set_version() is called only from mld_v1_input_query() and mld_v2_input_query() both holding the if_addr_mtx lock, and then calling into mld_v2_cancel_link_timers() acquires it the second time, which results in mtx recursion. To avoid that, delay if_addr_mtx acquisition until after mld_set_version() is called; while here, further reduce locking scope to protect only the needed pieces: if_multiaddrs, in6m_lookup_locked(). PR: kern/158426 Reported by: Thomas <tps vr-web.de>, Tom Vijlbrief <tom.vijlbrief xs4all.nl> Tested by: Tom Vijlbrief Reviewed by: bz Approved by: re (kib)
* | Spelling corrections for LibUSB manual page (2/2).hselasky2011-08-221-64/+70
| | | | | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898
* | Whitespace corrections for LibUSB manual page (1/2).hselasky2011-08-221-183/+118
| | | | | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898
* | Update some comments in swap_pager.c.kib2011-08-221-30/+17
| | | | | | | | | | | | Reviewed and most wording by: alc MFC after: 1 week Approved by: re (bz)
* | Disable PHY hibernation until I get more detailed hibernationyongari2011-08-221-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | programming secret. The PHY would go into sleep state when it detects no established link and it will re-establish link when the cable is plugged in. Previously it failed to re-establish link when the cable is plugged in such that it required to manually down and up the interface again to make it work. This came from incorrectly programmed hibernation parameters. According to Atheros, each PHY chip requires different configuration for hibernation and different vendor has different settings for the same chip. Disabling hibernation may consume more power but establishing link looks more important than saving power. Special thanks to Atheros for giving me instructions that disable hibernation. MFC after: 1 week Approved by: re (kib)
* | Add two new macros DRIVER_MODULE_ORDERED() and EARLY_DRIVER_MODULE_ORDERED()jhb2011-08-221-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | that allow a module to use an order other than the default of SI_ORDER_MIDDLE when registering a driver. This can be useful for drivers in a kld that contain multiple new-bus drivers as part of one logical device driver. A typical case would be to use SI_ORDER_LAST for the "main" driver to ensure that any other "helper" drivers are registered and available before the "main" driver attempts to attach. Tested by: kib, Jason Harmening jason harmening / gmail Approved by: re (kib) MFC after: 1 week
* | Apply the limit to avoid the overflows in the radix tree subr_blist.ckib2011-08-221-10/+12
| | | | | | | | | | | | | | | | | | | | | | after the conversion of the swap device size to the page size units, not before. That lifts the limit on the usable swap partition size from 32GB to 256GB, that is less depressing for the modern systems. Submitted by: Alexander V. Chernikov <melifaro ipfw ru> Reviewed by: alc Approved by: re (bz) MFC after: 2 weeks
* | Disable TSC usage inside SMP VM environments. On my VMware ESXi 4.1silby2011-08-221-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | environment with a core i5-2500K, operation in this mode causes timeouts from the mpt driver. Switching to the ACPI-fast timer resolves this issue. Switching the VM back to single CPU mode also works, which is why I have not disabled the TSC in that mode. I did not test with KVM or other VM environments, but I am being cautious and assuming that the TSC is not reliable in SMP mode there as well. Reviewed by: kib Approved by: re (kib) MFC after: Not applicable, the timecounter code is new for 9.x
* | Implement support for GRAID volumes in the installer partition editor,nwhitehorn2011-08-214-17/+60
| | | | | | | | | | | | | | rename a few options, clarify some help text, and add help text for the buttons on the main partition editor screen. Approved by: re (kib)
* | Make messages about typos appear on the screen instead of in the log file.nwhitehorn2011-08-212-2/+2
| | | | | | | | | | Reported by: lev Approved by: re (kib)
* | callout_cpu_switch() allows preemption when dropping the outcomingattilio2011-08-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callout cpu lock (and after having dropped it). If the newly scheduled thread wants to acquire the old queue it will just spin forever. Fix this by disabling preemption and interrupts entirely (because fast interrupt handlers may incur in the same problem too) while switching locks. Reported by: hrs, Mike Tancsa <mike AT sentex DOT net>, Chip Camden <sterling AT camdensoftware DOT com> Tested by: hrs, Mike Tancsa <mike AT sentex DOT net>, Chip Camden <sterling AT camdensoftware DOT com>, Nicholas Esborn <nick AT desert DOT net> Approved by: re (kib) MFC after: 10 days
* | Fix the NFSv4 server so that it returns NFSERR_SYMLINK whenrmacklem2011-08-201-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | an attempt to do an Open operation on any type of file other than VREG is done. A recent discussion on the IETF working group's mailing list (nfsv4@ietf.org) decided that NFSERR_SYMLINK should be returned for all non-regular files and not just symlinks, so that the Linux client would work correctly. This change does not affect the FreeBSD NFSv4 client and is not believed to have a negative effect on other NFSv4 clients. Reviewed by: zkirsch Approved by: re (kib) MFC after: 2 weeks
* | In HEAD when doing no further checkes there is no reason use thebz2011-08-203-9/+6
| | | | | | | | | | | | | | | | | | | | temporary variable and check with if as TUNABLE_*_FETCH do not alter values unless successfully found the tunable. Reported by: jhb, bde MFC after: 3 days X-MFC with: r224516 Approved by: re (kib)
* | Fix compilation in case of defined(INET) && defined(IPFIREWALL_FORWARD)bz2011-08-201-5/+2
| | | | | | | | | | | | | | | | | | | | but no INET6. Reported by: avg Tested by: avg MFC after: 4 weeks X-MFC with: r225044 Approved by: re (kib)
* | Add support for IPv6 to ipfw fwd:bz2011-08-2015-85/+800
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Distinguish IPv4 and IPv6 addresses and optional port numbers in user space to set the option for the correct protocol family. Add support in the kernel for carrying the new IPv6 destination address and port. Add support to TCP and UDP for IPv6 and fix UDP IPv4 to not change the address in the IP header. Add support for IPv6 forwarding to a non-local destination. Add a regession test uitilizing VIMAGE to check all 20 possible combinations I could think of. Obtained from: David Dolson at Sandvine Incorporated (original version for ipfw fwd IPv6 support) Sponsored by: Sandvine Incorporated PR: bin/117214 MFC after: 4 weeks Approved by: re (kib)
* | Add an in6_localip() helper function as in6_localaddr() is not doing whatbz2011-08-202-0/+22
| | | | | | | | | | | | | | | | | | people think: returning true for an address in any connected subnet, not necessarily on the local machine. Sponsored by: Sandvine Incorporated MFC after: 2 weeks Approved by: re (kib)
* | Add new USB ID to u3g driver.hselasky2011-08-202-0/+4
| | | | | | | | | | | | Approved by: re (kib) MFC after: 1 week PR: usb/159919
* | Prevent the hiwatermark for the unix domain socket from becomingkib2011-08-201-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | effectively negative. Often seen as upstream fastcgi connection timeouts in nginx when using sendfile over unix domain sockets for communication. Sendfile(2) may send more bytes then currently allowed by the hiwatermark of the socket, e.g. because the so_snd sockbuf lock is dropped after sbspace() call in the kern_sendfile() loop. In this case, recalculated hiwatermark will overflow. Since lowatermark is renewed as half of the hiwatermark by sendfile code, and both are unsigned, the send buffer never reaches the free space requested by lowatermark, causing indefinite wait in sendfile. Reviewed by: rwatson Approved by: re (bz) MFC after: 2 weeks
* | Fix for recursive locking in usb_close() after change 224777.hselasky2011-08-201-6/+18
| | | | | | | | | | | | Approved by: re (kib) MFC after: 3 days Reported by: kwm @
* | Add new USB ID.hselasky2011-08-203-0/+5
| | | | | | | | | | | | Approved by: re (kib) MFC after: 1 week PR: usb/159836
* | Hide IPv6 next header parsing warnings under the verbose sysctlbz2011-08-201-7/+12
| | | | | | | | | | | | | | | | so people can possibly disable it when their consoles are flooded, or enabled it for debugging. MFC after: 2 weeks Approved by: re (kib)
* | Use correct enum instead of constant value.hselasky2011-08-201-1/+1
| | | | | | | | | | | | MFC after: 1 week Spotted by: scf @ Approved by: re (kib)
* | After r225032 fix logging in a similar way masking the the IPv6bz2011-08-201-2/+5
| | | | | | | | | | | | | | | | | | | | more fragments flag off so that offset == 0 checks work properly. PR: kern/145733 Submitted by: Matthew Luckie (mjl luckie.org.nz) MFC after: 2 weeks X-MFC with: r225032 Approved by: re (kib)
* | If we detect an IPv6 fragment header and it is not the first fragment,bz2011-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | then terminate the loop as we will not find any further headers and for short fragments this could otherwise lead to a pullup error discarding the fragment. PR: kern/145733 Submitted by: Matthew Luckie (mjl luckie.org.nz) MFC after: 2 weeks Approved by: re (kib)
* | ipfw internally checks for offset == 0 to determine whether thebz2011-08-201-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packet is a/the first fragment or not. For IPv6 we have added the "more fragments" flag as well to be able to determine on whether there will be more as we do not have the fragment header avaialble for logging, while for IPv4 this information can be derived directly from the IPv4 header. This allowed fragmented packets to bypass normal rules as proper masking was not done when checking offset. Split variables to not need masking for IPv6 to avoid further errors. PR: kern/145733 Submitted by: Matthew Luckie (mjl luckie.org.nz) MFC after: 2 weeks Approved by: re (kib)
* | While not explicitly allowed by RFC 2460, in case there is nobz2011-08-201-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | translation technology involved (and that section is suggested to be removed by Errata 2843), single packet fragments do not harm. There is another errata under discussion to clarify and allow this. Meanwhile add a sysctl to allow disabling this behaviour again. We will treat single packet fragment (a fragment header added when not needed) as if there was no fragment header. PR: kern/145733 Submitted by: Matthew Luckie (mjl luckie.org.nz) (original version) Tested by: Matthew Luckie (mjl luckie.org.nz) MFC after: 2 weeks Approved by: re (kib)
* | o Fix mdoc formatting for the '.Fx' macro. [1]ae2011-08-201-3/+13
| | | | | | | | | | | | | | | | o Add information about APM scheme and fix typos. [2] Submitted by: gjb [1], nwhitehorn [2] Approved by: re (kib) MFC after: 1 week
* | Fix WWN printing in `camcontrol identify` output.mav2011-08-191-1/+1
| | | | | | | | | | Approved by: re (kib) MFC after: 1 week
* | Walk the zombproc list as well as the allproc list when enumerating threadsjhb2011-08-191-33/+48
| | | | | | | | | | | | | | | | | | and processes in a kernel image. This allows examination of threads that have exited or are in the late stages of exiting. Tested by: avg Approved by: re (kib) MFC after: 1 week
* | Revert r224157, re-enabling r222135. The underlying problem keeping themarius2011-08-191-2/+0
| | | | | | | | | | | | | | latter from working as expected was fixed in r225014. MFC after: 3 days Approved by: re (kib)
* | r221812 reveals that at least some Broadcom PHYs default to being not onlymarius2011-08-192-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | isolated but also powered down after a reset and while they just work fine [sic] when both is the case they don't if they are only deisolate but still powered down. So in order to put PHYs in an overall normal operation mode for the common case, ensure in mii_phy_reset() that they are not powered down after a reset. Unfortunately, this only helps in case of BCM5421, while BCM5709S apparently only work when they remain isolated and powered down after a reset. So don't call mii_phy_reset() in brgphy_reset() and implement the reset locally leaving the problematic bits alone. Effectively this bypasses r221812 for brgphy(4). Thanks to Justin Hibbits for doing a binary search in order to identify the problematic commit. PR: 157405, 158156 Reviewed by: yongari (mii_phy_reset() part) Approved by: re (kib) MFC after: 3 days
* | Correctly handle BAR TX failures.adrian2011-08-191-1/+5
| | | | | | | | | | | | | | | | On a TX failure, ic_raw_xmit will still call ieee80211_node_free(). There's no need to call it here. Submitted by: moonlightakkiy@yahoo.ca Approved by: re (kib)
OpenPOWER on IntegriCloud