aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add an example which shows how mdconfig(8) can be usedGiorgos Keramidas2007-05-181-1/+7
| | | | | | | | | | | to mount an ISO 9660 CD image file. PR: 112691 Submitted by: Warren Block, wblock at wonkity.com MFC after: 3 days Notes: svn path=/head/; revision=169672
* Since renaming of vop_lock to _vop_lock, pre- and post-conditionKonstantin Belousov2007-05-1813-31/+31
| | | | | | | | | function calls are no more generated for vop_lock. Rename _vop_lock to vop_lock1 to satisfy tools/vnode_if.awk assumption about vop naming conventions. This restores pre/post-condition calls. Notes: svn path=/head/; revision=169671
* Add -U and -P options that allow the specification of the per-userDiomidis Spinellis2007-05-185-7/+32
| | | | | | | | | and per-process summary file location. These make the program more flexible, and also make it possible to write sane regression tests. Notes: svn path=/head/; revision=169670
* Fix a logic bug I re-introduced in my patch I sent to DanielRuslan Ermilov2007-05-184-4/+4
| | | | | | | | | | that would cause the selected shared threading library to be overwritten with its 32-bit version on amd64. PR: amd64/112509 Notes: svn path=/head/; revision=169669
* o Implement the stop_boot subroutine [1]. This subroutine can be used byMike Makonnen2007-05-188-35/+50
| | | | | | | | | | | | | | | | | | | | scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=169668
* - define and use VMCNT_{GET,SET,ADD,SUB,PTR} macros for manipulatingJeff Roberson2007-05-1846-263/+288
| | | | | | | | | | | vmcnts. This can be used to abstract away pcpu details but also changes to use atomics for all counters now. This means sched lock is no longer responsible for protecting counts in the switch routines. Contributed by: Attilio Rao <attilio@FreeBSD.org> Notes: svn path=/head/; revision=169667
* - Convert turnstiles and sleepqueus to use UMA. This provides a modestJeff Roberson2007-05-182-38/+106
| | | | | | | | | | | | | speedup and will be more useful after each gains a spinlock in the impending thread_lock() commit. - Move initialization and asserts into init/fini routines. fini routines are only needed in the INVARIANTS case for now. Submitted by: Attilio Rao <attilio@FreeBSD.org> Tested by: kris, jeff Notes: svn path=/head/; revision=169666
* __nss_compat_* from net/nss_compat.c are needed by ports/net/nss_ldap, so ↵Jonathan Chen2007-05-181-0/+10
| | | | | | | export them. Notes: svn path=/head/; revision=169665
* - Disabled responding to NI queries from a global address by default asJINMEI Tatuya2007-05-173-7/+35
| | | | | | | | | | | | | | specified in RFC4620. A new flag for icmp6_nodeinfo was added to enable the feature. - Also cleaned up the code so that the semantics of the icmp6_nodeinfo flags is clearer (i.e., defined specific macro names instead of using hard-coded values). Approved by: gnn (mentor) MFC after: 1 week Notes: svn path=/head/; revision=169664
* Update the man page to reflect that certain variables will be unset inChristian S.J. Peron2007-05-171-2/+4
| | | | | | | | the case that the program is set-user-ID or set-group-ID. Add missing annotations for LIBMAP and LIBMAP_DISABLE. Notes: svn path=/head/; revision=169663
* In the event a process is tainted (setuid/setgid binaries), un-set anyChristian S.J. Peron2007-05-171-10/+20
| | | | | | | | | | | | | | | | | | | | | | | potentially dangerous environment variables all together. It should be noted that the run-time linker will not honnor these environment variables if the process is tainted currently. However, once a child of the tainted process calls setuid(2), it's status as being tainted (as defined by issetugid(2)) will be removed. This could be problematic because subsequent activations of the run-time linker could honnor these dangerous variables. This is more of an anti foot-shot mechanism, there is nothing I am aware of in base that does this, however there may be third party utilities which do, and there is no real negative impact of clearing these environment variables. Discussed on: secteam Reviewed by: cperciva PR: kern/109836 MFC after: 2 weeks Notes: svn path=/head/; revision=169661
* Correct typo in commentChristian S.J. Peron2007-05-171-1/+1
| | | | Notes: svn path=/head/; revision=169660
* Fix the construction of the gctl_req that got broken by myMarcel Moolenaar2007-05-171-1/+3
| | | | | | | | | | | | | | | previous commit and that introduced optional parameters. Existing classes (like geli(8)) use empty strings by default and expect the parameter to be passed to the kernel as such. Also, the default value of a string argument can be NULL. Fix both cases by making the optional parameter conditional upon gc_argname being set and making sure to test for NULL before dereferencing the pointer. Reported by: brueffer@ Notes: svn path=/head/; revision=169659
* Eliminate a micro-optimization that hasn't had any effect for 15+ years.Peter Wemm2007-05-171-5/+0
| | | | Notes: svn path=/head/; revision=169658
* Fix small copy/paste mistake.Alexander Motin2007-05-171-1/+1
| | | | Notes: svn path=/head/; revision=169656
* - Fixed 1-2-1 model to not worry about associd in sockoptsRandall Stewart2007-05-1714-103/+175
| | | | | | | | | | | | | | | | | | | | | | | - Fixed RTOinfo for bounding. - Fixed connect() to return ECONNREFUSED when an ABORT is received. - Added comments to direct Static Analysis not to look at some things it does not understand (comments are /* sa_ignore XXXXX */) - Bind when colliding was broken, missing not_found = 1 before checking to see if the port was in use caused endless bind loop. - Cookie life needs to be in milliseconds to conform to socket api. - Cookie life is not supposed to change if its 0, On the assoc level set we changed it to 0 opps. - Two more static analysis issues identified by the cisco tool. Null checks needed. - An issue for sendfile(). Need to validate the correct input argument. - When sending failed due to a no route to host, we leaked the mbuf chain failing to call m_freem(). - Fix #ifdef issue for getting hash block len when HAVE_SHA2 is NOT defined Reviewed by: gnn Notes: svn path=/head/; revision=169655
* o Use the --detach option to kdc(8) instead of using the shellMike Makonnen2007-05-171-3/+3
| | | | | | | | | | | | background operator '&'. PR: conf/102722 o No need to include $kerberos5_server_flags in $command_args as rc.subr(8) will take care of this. Notes: svn path=/head/; revision=169654
* The precmd routine does not need to check whether the command should beMike Makonnen2007-05-173-24/+30
| | | | | | | | | | | | | "forced". If some pre-condition is not met, it should fail as it normally does and rc.subr(8) will make the appropriate decision. Incidentally, the previous behaviour had a bug where the "force" flag was respected only when checking rc.conf(5) knobs. The flag was ignored when verifying the rpcbind(8) dependency. MFC after: 2 weeks Notes: svn path=/head/; revision=169653
* Tighten IP address check, prevent '..' from being passedXin LI2007-05-171-5/+8
| | | | | | | | | | from the check. Submitted by: Ren Zhen <bg1tpt gmail com> MFC after: 2 weeks Notes: svn path=/head/; revision=169652
* RegenDaniel Eischen2007-05-171-1/+4
| | | | Notes: svn path=/head/; revision=169651
* Don't export a kern.conftxt sysctl, except when INCLUDE_CONF_FILE isWarner Losh2007-05-171-3/+1
| | | | | | | | | | | | | | | | | defined. This restores the old behavior, and eliminates the dependency on the kernconf.tmpl when INCLUDE_CONFIG_FILE isn't included in the kernel config. There were many people in the terminal room that had almost, but not quite, up-to-date config files that this helps. I don't know if this is the result of skew among the cvsup servers, or some other more subtle problem. However, this fix should work for any config of recent vintage (I tested with the latest, and one before the recent changes, and eye-balled the intermediate versions). Reviewed by: the terminal room crew Notes: svn path=/head/; revision=169650
* Add a description for the WITHOUT_SYMVER option.Daniel Eischen2007-05-171-0/+2
| | | | Notes: svn path=/head/; revision=169649
* Allow DEFAULT_THREAD_LIB to be set from /etc/src.conf.Daniel Eischen2007-05-174-16/+16
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=169648
* Fix some problems that affect multiple file inclusion. Bruce foundWarner Losh2007-05-173-73/+26
| | | | | | | | | | | | | | | | | this bug and submitted these patches to dunstan@. He sent them to me to test, and I discovered they were needed for the atmel kernel config files. Since we were playing with them in the terminal room after the developer's summit today, I thought I'd go ahead and commit them to allow those folks that now have atmel hardware (thanks Andre) a chance to try it out w/o my help. Since dunstan@ is asleep right now, risk stepping on his toes a little by going ahead and committing this change. Submitted by: dunstan@, bde@ Tested by: bde@ Notes: svn path=/head/; revision=169647
* The HP Diva RMP3 uses BAR 0x14.Marcel Moolenaar2007-05-171-1/+1
| | | | Notes: svn path=/head/; revision=169646
* endrpcent belongs with rpc name service db, not services.Jonathan Chen2007-05-171-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=169645
* fix memory leak from reading nsswitch.confJonathan Chen2007-05-172-0/+7
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=169644
* Make the serdev I/F non-optional. At least 3 drivers depend on itMarcel Moolenaar2007-05-171-1/+1
| | | | | | | | | and they can be loaded as a module. PR: kern/112706 Notes: svn path=/head/; revision=169640
* Fix typo.Juli Mallett2007-05-171-1/+1
| | | | Notes: svn path=/head/; revision=169639
* o) Correct for missing whitespace.Juli Mallett2007-05-171-4/+4
| | | | | | | | o) We don't need to check if ifp == stdin to give the filename, since we already know that ifn will be "stdin" if it is. Notes: svn path=/head/; revision=169638
* Couple of changes, back down on last TSO change, instead make oldJack F Vogel2007-05-172-8/+31
| | | | | | | | | | | | | | adapter list still capable, but only PCI-E adapters are now enabled. The user can enable older PCI-X or PCI adapters using ifconfig. Secondly, Arthur Hartwig pointed out my MSI change was not working correctly, changed to something that now does. Thanks Arthur. There was also a fundamental bug in the 82575 MSIX code, the MSIX registers had to be mapped, opps :) Rubber-stamped by: Pdeuskar Notes: svn path=/head/; revision=169637
* Fix confusing misindentation of a closing-brace. (It goes with the switch, notJuli Mallett2007-05-171-1/+1
| | | | | | | with the while.) Notes: svn path=/head/; revision=169636
* Unbreak IPv4 kernel build.Oleg Bulyzhin2007-05-171-0/+2
| | | | Notes: svn path=/head/; revision=169635
* Don't completely skip pci_cfg_save() in the PCI nomatch routine ifJohn Baldwin2007-05-161-3/+1
| | | | | | | | | | | the power_nodriver tunable is off. pci_cfg_save() already checks the tunable internally, and no other callers of pci_cfg_save() check the tunable. Reviewed by: imp Notes: svn path=/head/; revision=169634
* Fix interrupt routing for some cards after the previous fix to clear BARsJohn Baldwin2007-05-161-6/+7
| | | | | | | | | | in cardbus cards: update the saved copy of the PCIR_INTLINE register in the PCI ivars in addition to the actual register. Reviewed by: imp Notes: svn path=/head/; revision=169633
* - Added TSO supportDavid Christensen2007-05-163-3485/+6212
| | | | | | | | | | | | | | | - Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup - Added MSI (hw.bce.msi_enable) and TSO (hw.bce.tso_enable) sysctls - Fixed kernel panic when MSI is used and module is unloaded - Added several new debug routines - Removed slack space for RX/TX chains since it only covers sloppy coding - Fixed a potential problem when programming jumbo MTU size in hardware - Various other comment changes MFC after: 4 weeks Notes: svn path=/head/; revision=169632
* Bump G_LIB_VERSION to reflect the ABI change.Marcel Moolenaar2007-05-161-1/+1
| | | | | | | Pointed out by: pjd@ Notes: svn path=/head/; revision=169631
* Don't enable symbol versioning on ia64 for now. It causesMarcel Moolenaar2007-05-161-0/+2
| | | | | | | | | | symbol lookup failures that later result in null-pointer dereferences. This needs looking into, but since we're close to release it's possible that it's not resolved before that time. Notes: svn path=/head/; revision=169630
* We don't need --export-dynamic for ld-elf.so.1, because it's aMarcel Moolenaar2007-05-161-1/+0
| | | | | | | shared object. Notes: svn path=/head/; revision=169629
* Work around a vendor issue that was causing the builtin malloc to beMark Peek2007-05-162-2/+3
| | | | | | | | | used instead of the system malloc. Submitted by: ume Notes: svn path=/head/; revision=169626
* Remove leading spaces before tabs spotted thanks to silby usingRobert Watson2007-05-161-3/+3
| | | | | | | kwrite to read ip_input.c. Notes: svn path=/head/; revision=169625
* Generally migrate to ANSI function headers, and remove 'register' use.Robert Watson2007-05-165-181/+106
| | | | Notes: svn path=/head/; revision=169624
* -Fix so getoptinfo() is in conformance with socket api (itRandall Stewart2007-05-161-32/+33
| | | | | | | | | can be used on any read socketopt). -Clean up of sendmsg call and make it conformant when no syscall is available. Notes: svn path=/head/; revision=169623
* Resolves symbols map so sctp_xxx() functions are included.Randall Stewart2007-05-161-0/+14
| | | | | | | | PR: 112704 Submitted by: kou@cozmixng.org Notes: svn path=/head/; revision=169622
* Don't use a subshell where it isn't needed.Dag-Erling Smørgrav2007-05-161-12/+12
| | | | | | | Noticed by: John E Hein <jhein@timing.com> Notes: svn path=/head/; revision=169621
* Write 0 to all the bars in cardbus_cardbus_setup_regs. This is neededWarner Losh2007-05-161-19/+18
| | | | | | | | | | | because on at least my dc based cards there's garbage in there. The recent changes in the resource code appears to have unmasked this problem... At least dc now probes/attaches better than it did before. Also, we no longer need to write to the cfg for the other registers. Notes: svn path=/head/; revision=169620
* Update the comments on if_alloc(), if_free(), if_free_type(), andBrooks Davis2007-05-161-12/+26
| | | | | | | | | | | if_attach. Remove a comment about pre-3.0 network drivers from if_attach(). Be a bit more consistant about whitespace near comments. Notes: svn path=/head/; revision=169619
* o Don't hold lock over bus_teardown_intr when we're waiting for theWarner Losh2007-05-161-5/+3
| | | | | | | | | thread to die, since that can cause deadlock with the ISR (in theory). o Minor cleanup o comment nit Notes: svn path=/head/; revision=169618
* Better message on cbb resource alloc failureWarner Losh2007-05-161-1/+1
| | | | Notes: svn path=/head/; revision=169617
* Change PCIM_CIS_ASI_TUPLE to _CONFIG.Warner Losh2007-05-162-4/+6
| | | | | | | | | Add PCI_MAX_BAR_0 minor style nit. Add PCIM_CIS_CONFIG_MASK Notes: svn path=/head/; revision=169616