summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to OpenSSH 5.5p1.des2010-04-2825-88/+254
|
* fx->lock is used as an index, correct test case.rnoland2010-04-281-1/+1
| | | | MFC after: 1 week
* - When canceling jaddrefs they may not yet be in the journal if this is viajeff2010-04-281-1/+2
| | | | | | a revert call. In this case don't attempt to remove something that has not yet been added. Otherwise this jaddref must hang around to prevent the bitmap write as normal.
* - Fix builds without SOFTUPDATES defined in the kernel config.jeff2010-04-281-0/+171
|
* Setting PG_REFERENCED on a page at the end of vm_fault() is redundant sincealc2010-04-281-1/+0
| | | | | | the page table entry's accessed bit is either preset by the immediately preceding call to pmap_enter() or by hardware (or software) upon return from vm_fault() when the faulting access is restarted.
* Change vm_object_madvise() so that it checks whether the page is invalidalc2010-04-281-10/+6
| | | | | | | | | or unmanaged before acquiring the page queues lock. Neither of these tests require that lock. Moreover, a better way of testing if the page is unmanaged is to test the type of vm object. This avoids a pointless vm_page_lookup(). MFC after: 3 weeks
* Adapt i386 r207205 to mips: Clearing PV_TABLE_REF and setting the page'salc2010-04-281-9/+3
| | | | | PG_REFERENCED flag in pmap_protect() can't really be justified, so don't do it.
* need to initialize the lock before it is usedkmacy2010-04-271-1/+1
| | | | MFC after: 3 days
* On sparc64 obtain the initiator ID to be used for SPI HBAs from themarius2010-04-273-1/+16
| | | | | | | | Open Firmware device tree in order to match what the PROM built-in driver uses. This is especially important when netbooting Fujitsu Siemens PRIMEPOWER250 as in that case the built-in driver isn't used and the port facts PortSCSIID defaults to 0, conflicting with the disk at the same address.
* Replace a magic value with the appropriate macro.marius2010-04-271-2/+3
|
* - On sparc64 obtain the initiator ID from the Open Firmware device treemarius2010-04-271-4/+9
| | | | | in order to match what the PROM built-in driver uses. - Remove some no longer used includes.
* Use _exit(2) system call directly instead of using exit(3) in signaldelphij2010-04-271-1/+1
| | | | | | | | handler, as the latter is not guaranteed to be signal safe, and we do not really care about flushing the stream during SIGINT. Suggested by: Maxim Konovalov <maxim.konovalov gmail com> MFC after: 13 days
* Language improvements to make the BUGS section easier to read.delphij2010-04-271-3/+3
| | | | | Reviewed by: Alexander Best <alexbestms wwu de> MFC after: 13 days
* Update device identify data and serial number when device change detected.mav2010-04-271-2/+6
| | | | Reprobe immediately following this should have fresh data.
* Take advantage of OF_getscsinitid().marius2010-04-271-3/+1
|
* MFP4: @177254bz2010-04-271-3/+8
| | | | | | | | | Add missing CURVNET_RESTORE() calls for multiple code paths, to stop leaking the currently cached vnet into callers and to the process. Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH MFC after: 4 days
* Enhance the historic behaviour of raw sockets and jails in a waybz2010-04-272-6/+19
| | | | | | | | | | | | | | that we allow all possible jail IPs as source address rather than forcing the "primary". While IPv6 naturally has source address selection, for legacy IP we do not go through the pain in case IP_HDRINCL was not set. People should bind(2) for that. This will, for example, allow ping(|6) -S to work correctly for non-primary addresses. Reported by: (ten 211.ru) Tested by: (ten 211.ru) MFC after: 4 days
* Make sure IPv6 source address selection does not change interfacebz2010-04-271-5/+20
| | | | | | | | | addresses while walking the IPv6 address list if in the jail case something is connecting to ::1. Reported by: Pieter de Boer (pieter thedarkside.nl) Tested by: Pieter de Boer (pieter thedarkside.nl) MFC after: 4 days
* Fix a regression where DVMRP diagnostic traffic, such as that usedbms2010-04-271-6/+11
| | | | | | | | by mrinfo and mtrace, was dropped by the IGMP TTL check. IGMP control traffic must always have a TTL of 1. Submitted by: Matthew Luckie MFC after: 3 days
* Style: use #define<TAB> instead of #define<SPACE>.kib2010-04-278-11/+11
| | | | | Noted by: bde, pluknet gmail com MFC after: 11 days
* Provide 32bit compat for SIOCGDEFIFACE_IN6.kib2010-04-271-0/+25
| | | | | | Based on submission by: pluknet gmail com Reviewed by: emaste MFC after: 2 weeks
* Require the option that's mapped be listed in the options file. Thisimp2010-04-271-9/+28
| | | | | | | | | | | | | | | | | will allow people with old config options to either have it just work (if config is new enough), or get a version error (if their config is about 7.0 or newer) rather than getting a cryptic error about duplicated options in the options file, or getting an error about an unknown option, at which point they'd update their config file only to learn they need a new config, only to learn they didn't really need to update their config file... All this because our version checking was in the wrong place for the past decade... # hopefully this is the last change, and we'll be able to config with an # 8.0 GENERIC file on stable/8 after I merge this change and add the # compat options. MFC after: 3 days
* Redo how we add compat options so as to be compatible with oldimp2010-04-272-78/+81
| | | | | | | | | | | | | | versions of config. Remove support for the syntax OLD = NEW form the options file, and instead have a new file $S/conf/options-compat. This file will be parsed as OLD NEW on each line. Bump version of config. Since nothing in -current ever used this, there's no hazards for current users, so I'm not bumping the version in the Makefiles.$MACHINE. No need, really, for this version bump in -current, but this was introduced into -stable before I realized the version check was ineffective there, so the verison bump doesn't hurt here and keeps the two branches in sync, versionwise, after the MFC. MFC after: 3 days
* MFi386 r207205alc2010-04-271-13/+7
| | | | | | Clearing a page table entry's accessed bit (PG_A) and setting the page's PG_REFERENCED flag in pmap_protect() can't really be justified, so don't do it.
* Move checking the version up from Makefile generation to just afterimp2010-04-273-24/+62
| | | | | | | | | | | | | | | | | | | | | | | | we've parsed the config file. Makefile generation is too late if we've introduce changes to the syntax of the metafiles to warn about version skew, since we have to try to parse them and we get an parse error that's rather baffling to the user rather than a 'your config is too old, upgrade' which we should get. We have to defer doing it until after we've read the user's config file because we define machinename there. The version required to compile the kernel is encoded in Makefile.machinename. There's no real reason for this to be the case, but changing it now would introduce some logistical issues that I'd rather avoid for the moment. I intend to revisit this if we're still using config in FreeBSD 10. This also means that we cannot introduce any config metafile changes that result in a syntax error or other error for the user until 9.0 is released. Otherwise, we break the upgrade path, or at least reduce the usefulness of the error messages we generate. # This implies that the config file option mapping will need to be redone. MFC after: 3 days
* It seems ale(4) controllers do not like to see TCP payload in theyongari2010-04-261-4/+33
| | | | | | | | | | | | first descriptor in TSO case. Otherwise controller can generate bad frames during TSO. To address it, make sure to pull up ethernet + IP + TCP header with options in first buffer. Also ensure the buffer length of the first descriptor for TSO covers entire ethernet + IP + TCP with options and setup additional Tx descriptor if the first buffer includes TCP payload. Tested by: Amar Takhar <verm <> darkbeer dot org > MFC after: 1 week
* Don't bother enabling interrupts before we're ready to handle them. Thismarius2010-04-265-30/+38
| | | | | | prevents the firmware of Fujitsu Siemens PRIMEPOWER250, which both causes stray interrupts and erroneously enables interrupts at least when calling SUNW,set-trap-table, in the foot.
* Add a signal handler for SIGINT which removes output file when necessary.delphij2010-04-261-4/+21
| | | | | | | While I'm there, move unlink_input() slightly down to after closing the output file, in uncompression path. MFC after: 2 weeks
* Add OF_getscsinitid(), a helper similar to OF_getetheraddr() but formarius2010-04-263-1/+16
| | | | | obtaining the initiator ID to be used for SPI controllers from the Open Firmware device tree.
* For the on-board interfaces found in Fujitsu SPARC64 machines obtain themarius2010-04-261-1/+1
| | | | MAC address via OFW as well.
* - Add a missing const.marius2010-04-261-1/+2
| | | | - Map the NS16550 found in Fujitsu Siemens PRIMEPOWER250 to PNP0501 as well.
* Skip the pseudo-devices found in Fujitsu Siemens PRIMEPOWER250.marius2010-04-261-0/+2
|
* Better handling of ipv6_default_interface usingume2010-04-263-25/+15
| | | | | | | net.inet6.ip6.use_defaultzone=1. Now, it works IPv6 link-local unicast addresses as well as IPv6 link-local multicast addresses. MFC after: 1 week
* - Rework the underlying ALQ storage to be a circular buffer, which amongst otherlstewart2010-04-263-189/+768
| | | | | | | | | | | | | | | | | | | | | | | things allows variable length messages to be easily supported. - Extend KPI with alq_writen() and alq_getn() to support variable length messages, which is enabled at ALQ creation time depending on the arguments passed to alq_open(). Also add variants of alq_open() and alq_post() that accept a flags argument. The KPI is still fully backwards compatible and shouldn't require any change in ALQ consumers unless they wish to utilise the new features. - Introduce the ALQ_NOACTIVATE and ALQ_ORDERED flags to allow ALQ consumers to have more control over IO scheduling and resource acquisition respectively. - Strengthen invariants checking. - Document ALQ changes in ALQ(9) man page. Sponsored by: FreeBSD Foundation Reviewed by: gnn, jeff, rpaulo, rwatson MFC after: 1 month
* MFp4:mav2010-04-262-14/+19
| | | | Move PI_TAG_ABLE check from ada driver to ATA XPT.
* Mark ATA channel as idle on timeout in non-ATA_CAM mode.mav2010-04-261-1/+1
| | | | | | This should fix possible duplicate request completion. Submitted by: mjacob
* missed pv access before pmap lockkmacy2010-04-251-1/+1
|
* Incremental reduction of delta with head_page_lock_2 branchkmacy2010-04-251-25/+38
| | | | | | - replace modification of pmap resident_count with pmap_resident_count_{inc,dec} - the pv list is protected by the pmap lock, but in several cases we are relying on the vm page queue mutex, move pv_va read under the pmap lock
* Set USB_DEBUG like the other platforms, I had turned it off to test the buildthompsa2010-04-251-1/+1
| | | | | | before committing r207077. Spotted by: marius
* sh: Use stalloc for arith variable names.jilles2010-04-253-24/+10
| | | | | This is simpler than the custom memory tracker I added earlier, and is also needed by the dash arith code I plan to import.
* Clearing a page table entry's accessed bit (PG_A) and setting thealc2010-04-252-45/+12
| | | | | | | | | | | | | | | page's PG_REFERENCED flag in pmap_protect() can't really be justified. In contrast to pmap_remove() or pmap_remove_all(), the mapping is not being destroyed, so the notion that the page was accessed is not lost. Moreover, clearing the page table entry's accessed bit and setting the page's PG_REFERENCED flag can throw off the page daemon's activity count calculation. Finally, in my tests, I found that 15% of the atomic memory operations being performed by pmap_protect() were only to clear PG_A, and not change protection. This could, by itself, be fixed, but I don't see the point given the above argument. Remove a comment from pmap_protect_pde() that is no longer meaningful after the above change.
* Sending a FWDTSN chunk should not affect the retran count.tuexen2010-04-251-1/+1
| | | | MFC after: 3 days.
* Make hash, type and ulimit available via execve().jilles2010-04-252-3/+6
| | | | | | | | | | | | | | | | | | These are specified by POSIX but are not special builtins, and therefore need to be available via execve() and utilities like time, nohup, xargs. (Note that hash was moved from the XSI option to the base in the 2008 standard.) Like most of the POSIX "regular builtin commands", these need to be executed in a shell environment for full functionality, although they may still be of some use outside one. Unlike the POSIX special and regular builtin commands, POSIX does not require these to be found before a PATH search, although that could be an oversight. Like some of the utilities already provided by usr.bin/alias, these may lead to confusing results when invoked from csh(1).
* Provide compat32 shims for bpf(4), except zero-copy facilities.kib2010-04-252-3/+166
| | | | | | | | | | bd_compat32 field of struct bpf_d is kept unconditionally to not impose the requirement of including "opt_compat.h" on all numerous users of bpfdesc.h. Submitted by: jhb (version for 6.x) Reviewed and tested by: emaste MFC after: 2 weeks
* Provide 32bit compat shims for sysctl net.route NET_RT_IFLIST.kib2010-04-251-1/+101
| | | | | | | | | This allows getifaddrs(3) to work for compat32 binaries. Submitted by: jhb (6.x version) Reviewed by: emaste Tested by: emaste and <pluknet gmail com> MFC after: 2 weeks
* Undo my lastest fix since that wasn't one at all.tuexen2010-04-251-19/+19
| | | | MFC after: 3 days.
* unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir()jilles2010-04-251-2/+2
| | | | | | | | | for non-empty directories. POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY, following BSD tradition. MFC after: 1 week
* symlink(7): Add lpathconf(2) and *at system calls.jilles2010-04-251-2/+27
| | | | MFC after: 1 week
* symlink(7): The ownership of symlinks is used by the system,jilles2010-04-251-3/+3
| | | | | | | | | in at least three ways, so do not say it is ignored: * who may delete/rename a symlink in a sticky directory * who may do lchflags(2)/lchown(2)/lchmod(2) * whose inode quota is charged MFC after: 1 week
* kvm(3): Mention that some of the functions use sysctl(3) instead of kmem.jilles2010-04-251-2/+6
| | | | | | | | Additionally, because of sysctl(3) use (which is generally good), behaviour for crash dumps differs slightly from behaviour for live kernels and this will probably never be fixed entirely, so weaken that claim. MFC after: 1 week
OpenPOWER on IntegriCloud