summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix double free.glebius2011-07-011-1/+0
| | | | Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>
* Make lukemftpd properly set login class and cpumask.trasz2011-06-301-5/+5
|
* Make Sendmail properly set login class and cpumask.trasz2011-06-301-0/+6
|
* Change the management of nested faults by switching to physicalmarcel2011-06-302-133/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addressing while reading or writing the trap frame. It's not possible to guarantee that the one translation cache entry that we depend on is not going to get purged by the CPU. We already know that global shootdowns (ptc.g and/or ptc.ga) can (and will) cause multiple TC entries to get purged and we initialize tried to handle that by serializing kernel entry with these operations. However, we need to serialize kernel exit as well. But even if we can serialize, it appears that CPU threads within a core can affect each other's TC entries beyond the global shootdown. This would mean serializing any and all translatation cache updates with the threads in a core with the kernel entry and exit of any thread in that core. This is just too painful and complicated. Since we already properly coded for the 2 nested faults that we can get, all we need to do is use those to obtain the physical address of the trap frame, switch to physical mode and in that way eliminate any further faults. The trap frame is already aligned to 1KB boundaries to make sure we don't cross the page boundary, this is safe to do. We still need to serialize ptc.g or ptc.ga across CPUs because the platform can only have 1 such operation outstanding at the same time. We can now use a regular (spin) lock for this. Also, it has been observed that we can get a nested TLB faults for region 7 virtual addresses. This was unexpected. For now, we enhance the nested TLB fault handler to deal with those as well, but it needs to be understood.
* Add ID for Marvell 88SE9125 SATA controller.mav2011-06-301-0/+1
| | | | | PR: kern/157843 MFC after: 1 week
* Add the missing sca_keylength field to the sctp_authkey structure,tuexen2011-06-302-1/+12
| | | | | | which is used the the SCTP_AUTH_KEY socket option. MFC after: 1 month.
* Add a version of the FreeBSD bootloader which can run in userland, packageddfr2011-06-3032-4/+4633
| | | | | as a shared library. This is intended to be used by BHyVe to load FreeBSD kernels into new virtual machines.
* When Capsicum starts creating capabilities to wrap existing filejonathan2011-06-302-27/+60
| | | | | | | | | | descriptors, we will want to allocate a new descriptor without installing it in the FD array. Split falloc() into falloc_noinstall() and finstall(), and rewrite falloc() to call them with appropriate atomicity. Approved by: mentor (rwatson), re (bz)
* Add some checks to ensure that Capsicum is behaving correctly, and add somejonathan2011-06-308-37/+117
| | | | | | | more explicit comments about what's going on and what future maintainers need to do when e.g. adding a new operation to a sys_machdep.c. Approved by: mentor(rwatson), re(bz)
* Fix quota(1) output.pluknet2011-06-301-5/+11
| | | | | | | | | | | - Fix calculation of 1024-byte sized blocks from disk blocks shown when -h option isn't specified. It was broken with quota64 integration. - In prthumanval(): limit the size of a buffer passed to humanize_number() to a width of 5 bytes but allow a shorter length if requested. That's what users expect. PR: bin/150151 Reviewed by: Kirk McKusick
* - Handle the JOP_SYNC case as appropriate.jeff2011-06-301-0/+1
| | | | Reported by: pho
* Add detection for the Marvel 88E1149R and treat it just like theimp2011-06-302-1/+6
| | | | 88E1149.
* Handle the FREEDEP case in softdep_sync_buf().mckusick2011-06-291-0/+1
| | | | | | This fix failed to get added in -r223325. Submitted by: Peter Holm
* Document two known hardware errata which requires manual linkyongari2011-06-291-1/+15
| | | | | | configuration. Submitted by: Aries Lee (arieslee <> jmicron com)
* Add a new option, OBJPR_NOTMAPPED, to vm_object_page_remove(). Passing thisalc2011-06-2914-78/+100
| | | | | | | | | | | | | | | | | | option to vm_object_page_remove() asserts that the specified range of pages is not mapped, or more precisely that none of these pages have any managed mappings. Thus, vm_object_page_remove() need not call pmap_remove_all() on the pages. This change not only saves time by eliminating pointless calls to pmap_remove_all(), but it also eliminates an inconsistency in the use of pmap_remove_all() versus related functions, like pmap_remove_write(). It eliminates harmless but pointless calls to pmap_remove_all() that were being performed on PG_UNMANAGED pages. Update all of the existing assertions on pmap_remove_all() to reflect this change. Reviewed by: kib
* - Add read-only sysctls for all of the tunables supported by the igb andjhb2011-06-293-5/+53
| | | | | | | | | | | em drivers. - Make the per-instance 'enable_aim' sysctl truly per-instance by having it change a per-instance variable (which is used to control AIM) rather than having all of the per-instance sysctls operate on a single global variable. Reviewed by: jfv (earlier version) MFC after: 1 week
* Set proper root device name when legacy NFS client is compiled into kernel.gber2011-06-291-0/+4
| | | | Approved by: cognet (mentor)
* Add support for a MosChip PCI express serial port adapter.hselasky2011-06-291-0/+2
| | | | MFC after: 1 week
* Fix a corner case in STA beacon processing when a CSA is received butadrian2011-06-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the AP doesn't transmit beacons. If the AP requests a CSA (ie, a channel switch) and then enters CAC (channel availability check) for 60 seconds, it doesn't send beacons and it just listens for radar events (and other things which we don't do yet.) Now, ath_newstate() was not resetting the beacon timer config on a transition to the RUN state when in STA mode - it was setting sc_syncbeacon, which simply updates the beacon config from the contents of the next received beacon. This means the STA never generates beacon miss events. If the AP goes into CAC for 60 seconds and recovers, the STA will happily receive the first beacon and reconfigure timers. But if it gets a radar event after that, it'll change channel again, not notify the station that it's changed channel.. and since the station is happily waiting for the first beacon to configure the beacon timer details from, it won't ever generate a beacon miss interrupt and it'll sit there forever (or until the AP appears on that channel once again.) This change forces the last known beacon timer config to be written to hardware on a transition from CSA->RUN in STA mode. This forces bmiss events to occur and the STA will eventually (after a handful of beacon miss events) begin scanning for another access point.
* Clarify that we broke pfsync(4) backward compat with the pf commit r223637.bz2011-06-291-0/+2
| | | | Suggested by: Anton Yuzhaninov (citrin citrin.ru)
* We may split today's CAPABILITIES into CAPABILITY_MODE (which hasjonathan2011-06-297-14/+14
| | | | | | | | | | | | | to do with global namespaces) and CAPABILITIES (which has to do with constraining file descriptors). Just in case, and because it's a better name anyway, let's move CAPABILITIES out of the way. Also, change opt_capabilities.h to opt_capsicum.h; for now, this will only hold CAPABILITY_MODE, but it will probably also hold the new CAPABILITIES (implying constrained file descriptors) in the future. Approved by: rwatson Sponsored by: Google UK Ltd
* In case ntp cannot resolve a hostname on startup it will queue the entrybz2011-06-292-20/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for resolving by a child process that, upon success, will add the entry to the config of the running running parent process. Unfortunately there are a couple of bugs with this, fixed in various later versions of upstream in potentially different ways due to other code changes: 1) Upon server [-46] <FQDN> the [-46] are used as FQDN for later resolving which does not work. Make sure we always pass the name (or IP there). 2) The intermediate file to carry the information to the child process does not know about -4/-6 restrictions, so that a dual-stacked host could resolve to an IPv6 address but that might be unreachable (see r223626) leading to no working synchronization ignoring a IPv4 record. Thus alter the intermediate format to also pass the address family (AF_UNSPEC (default), AF_INET or AF_INET6) to the child process depending on -4 or -6. 3) Make the child process to parse the new intermediate file format and save the address family for getaddrinfo() hints flags. 4) Change child to always reload resolv.conf calling res_init() before trying to resolve names. This will pick up resolv.conf changes or new resolv.confs should they have not existed or been empty or unusable on ntp startup. This fix is more conditional in upstream versions but given FreeBSD has res_init there is no need for the configure logic as well. Approved by: roberto Sponsored by: Sandvine Incorporated MFC after: 9 days
* Add new rule actions "call" and "return" to ipfw. They makeae2011-06-298-1/+240
| | | | | | | | | | | | | possible to organize subroutines with rules. The "call" action saves the current rule number in the internal stack and rules processing continues from the first rule with specified number (similar to skipto action). If later a rule with "return" action is encountered, the processing returns to the first rule with number of "call" rule saved in the stack plus one or higher. Submitted by: Vadim Goncharov Discussed by: ipfw@, luigi@
* Typokevlo2011-06-291-1/+1
| | | | | Submitted by: Damjan Marion <damjan dot marion at gmail dot com> MFC after: 3 days
* add SNDCTL_DSP_HALT specified by OSSavg2011-06-291-1/+2
| | | | | | | | | This is really a new name for SNDCTL_DSP_RESET. And this what commit r222723 should really have been in the first place. PR: kern/156874 Submitted by: gerald MFC after: 1 week
* revert r222723: wrong change was committedavg2011-06-291-2/+1
| | | | | | | | The commit intended to add SNDCTL_DSP_HALT, but actually added SNDCTL_SEQ_HALT, which is not defined in the OSS specs. Reported by: Pan Tsu <inyaoo@gmail.com> Pointyhat to: gerald, avg
* Improve error reporting. Use corresponding error message when file to beae2011-06-291-4/+11
| | | | | | | | preprocessed is missing. Also suggest to use absolute pathname if -p option is specified. PR: bin/156653 MFC after: 2 weeks
* Initialize elements of state array when creating the GPT table.ae2011-06-291-34/+33
| | | | | | | | | This fixes the problem, when the secondary GPT header is not erased when partition table destroyed. Move equal operations from g_part_gpt_create and g_part_gpt_recover to the separate function g_gpt_set_defaults. Reported by: dwhite MFC after: 1 week
* Fix the new NFSv4 client so that it doesn't fill the cachedrmacklem2011-06-283-5/+15
| | | | | | | | | | | | mode attribute in as 0 when doing writes. The change adds the Mode attribute plus the others except Owner and Owner_group to the list requested by the NFSv4 Write Operation. This fixed a problem where an executable file built by "cc" would get mode 0111 instead of 0755 for some NFSv4 servers. Found at the recent NFSv4 interoperability Bakeathon. Tested by: tdh at excfb.com MFC after: 2 weeks
* Check the returned value of activemap_write_complete() and update matadata ontrociny2011-06-281-2/+5
| | | | | | | | disk if needed. This should fix a potential case when extents are cleared in activemap but metadata is not updated on disk. Suggested by: pjd Approved by: pjd (mentor)
* Make activemap_write_start/complete check the keepdirty list, whentrociny2011-06-281-5/+8
| | | | | | | | stating if we need to update activemap on disk. This makes keepdirty serve its purpose -- to reduce number of metadata updates. Discussed with: pjd Approved by: pjd (mentor)
* Revert the mechanical change from 'file system' to 'filesystem', committedtrasz2011-06-282-41/+41
| | | | in r223429. As bde@ pointed out, it was mostly backwards.
* Fix typo in r223648 which was accidentally committedmarius2011-06-281-1/+1
|
* - In gem_reset_rx() also reset the RX MAC which is necessary in order tomarius2011-06-282-48/+55
| | | | | | | | | | | | | | | | | get it out of a stuck condition that can be caused by GEM_MAC_RX_OVERFLOW. - In gem_reset_rxdma() call gem_setladrf() in order to reprogram the RX filter and restore the previous content of GEM_MAC_RX_CONFIG. While at it consistently use the newly introduced sc_mac_rxcfg throughout the driver instead of reading the its old content. - Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation failure. - According to the GEM datasheet the RX MAC should also be disabled in gem_setladrf() before changing its configuration. - Add error messages to gem_disable_{r,t}x() and take advantage of these throughout the driver instead of duplicating their functionality all over the place. In joint forces with: yongari
* Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags}pluknet2011-06-281-1/+1
| | | | | | | | is correctly expanded inside stop_cmd instead of getting nothing. PR: conf/157687 Reported by: Dmitry Banschikov <d.banschikov peterhost ru> MFC after: 1 week
* LibUSB v1.0: Need at least one frame when doing the dummy openhselasky2011-06-281-1/+1
| | | | else clear stall won't work in that case.
* Remove needless file due to Russia scraps DST in 2011.osa2011-06-282-17/+0
| | | | | | | | | | | | | | | > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M calendars/ru_RU.KOI8-R/calendar.all D calendars/ru_RU.KOI8-R/calendar.msk
* Update packet filter (pf) code to OpenBSD 4.5.bz2011-06-2865-7033/+11303
| | | | | | | | You need to update userland (world and ports) tools to be in sync with the kernel. Submitted by: mlaier Submitted by: eri
* Remove AN again now that tzdata2011h has been imported.edwin2011-06-281-1/+0
|
* MFV of tzdata2011h, r223627edwin2011-06-285-34/+72
| | | | | - Russia scraps DST in 2011 - Remove Netherlands Antilles, add Bonaire, Curacao, Sint Maarten
* Compare port numbers correctly. They are stored by SRCPORT()bz2011-06-281-3/+3
| | | | | | | | | | | | | | in host byte order, so we need to compare them as such. Properly compare IPv6 addresses as well. This allows the, by default, 8 badaddrs slots per address family to work correctly and only print sendto() errors once. The change is no longer applicable to any latest upstream versions. Approved by: roberto Sponsored by: Sandvine Incorporated MFC after: 1 week
* Update ifc_len field of struct ifconf passed for the ioctl SIOCGIFCONF32pluknet2011-06-281-0/+2
| | | | | | | | | (i.e. under COMPAT_FREEBSD32) in case ifconf() returned success to match the native SIOCGIFCONF behavior. PR: kern/158369 Reported by: Paul Procacci <pprocacci att gmail com> MFC after: 1 week
* Remove duplicate header includeskevlo2011-06-2813-20/+0
|
* Add a new "REFCOMPRESSRATIO" property.mm2011-06-285-7/+30
| | | | | | | | | | | | | | For snapshots, this is the same as COMPRESSRATIO, but for filesystems/volumes, the COMPRESSRATIO is based on the data "USED" (ie, includes blocks in children, but not blocks shared with the origin). This is needed to figure out how much space a filesystem would use if it were not compressed (ignoring snapshots). Illumos-gate revision: 13387 Obtained from: Illumos (Feature #1092) MFC after: 2 weeks
* Disable vdev cache (readahead) by default.mm2011-06-281-1/+8
| | | | | | | | | | The vdev cache is very underutilized (hit ratio 30%-70%) and may consume excessive memory on systems with many vdevs. Illumos-gate revision: 13346 Obtained from: Illumos (Bug #175) MFC after: 1 week
* Allow mountpoints as arguments for the 'zfs get' command.mm2011-06-281-2/+2
| | | | | | | Illumos-gate revision: 13295 Obtained from: Illumos (Feature #510) MFC after: 1 week
* Incorporate vendor commit ecdc5c0a7f7591a7cd4a:delphij2011-06-281-0/+11
| | | | | | | | | | | | In userland, sign extend the offset for JA instructions. We currently use that to implement "ip6 protochain", and "pc" might be wider than "pc->k", in which case we need to arrange that "pc->k" be sign-extended, by casting it to bpf_int32. PR: kern/157188 Submitted by: plosher MFC after: 2 weeks
* Make sure the extended regdomain word is initialised.adrian2011-06-282-0/+3
| | | | | As with the AR9285, the AR9287 has a default word of 0x1F which means all the various bits in that field are set on by default.
* Add support for SCTP_PR_SCTP_NONE which I misded to add.tuexen2011-06-271-1/+2
| | | | | | This constant is defined in the socket API ID. MFC after: 2 months.
* Revert the entry point label to 'start' to unbreak the build.jhb2011-06-272-3/+3
| | | | Pointy hat to: jhb
OpenPOWER on IntegriCloud