summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove symlinks in OpenSSL's testing framework. These are not requiredsimon2009-08-1243-43/+0
| | | | | | | | | for normal build, and doesn't export well to CVS. If they are needed later a script will be added to recreate the symlinks when needed at build time. Approved by: re (rwatson)
* Add ddb show dpcpu_off command to ease dpcpu memory debugging.bz2009-08-121-0/+12
| | | | | | | | | | While show pcpu prints pc_dynamic this also prints the original memory address as well as the maths. Once dpcpu goes NUMA this is considered to help debugging as well. Reviewed by: rwatson Approved by: re
* Update DDB show vnet command to print all used and available information.bz2009-08-121-7/+13
| | | | | Reviewed by: rwatson, zec Approved by: re
* Apply the ntp-related part of r195626 to the correct part of the tree --cperciva2009-08-121-2/+0
| | | | | | | | the mkver which is used in builds is the one in usr.sbin/ntp/scripts, not the one in contrib/ntp/scripts. Pointy hat to: cperciva Approved by: re (rwatson)
* Update posix1e-related man pages, especially as relates to MAC, to morerwatson2009-08-127-156/+129
| | | | | | accurately reflect the last ten years of work. Approved by: re (kib)
* Correctly audit real gids following changes to the audit record argumentrwatson2009-08-121-1/+1
| | | | | | interface. Approved by: re (kib)
* Reverse misordered unlock and lock in at_control for netatalk phase Irwatson2009-08-121-2/+2
| | | | | | | addresses. Submitted by: Russell Cattelan <cattelan at thebarn.com> Approved by: re (kib)
* Update procstat(1) for the fact that devfs paths are no longer unsupported.rwatson2009-08-121-4/+2
| | | | Approved by: re (kib)
* Put minimum alignment on the dpcpu and vnet section so that ldbz2009-08-122-6/+10
| | | | | | | | | | | | | | | | | | when adding the __start_ symbol knows the expected section alignment and can place the __start_ symbol correctly. These sections will not support symbols with super-cache line alignment requirements. For full details, see posting to freebsd-current, 2009-08-10, Message-ID: <20090810133111.C93661@maildrop.int.zabbadoz.net>. Debugging and testing patches by: Kamigishi Rei (spambox haruhiism.net), np, lstewart, jhb, kib, rwatson Tested by: Kamigishi Rei, lstewart Reviewed by: kib Approved by: re
* Add padding to struct inpcb, missed during our padding sweep earlier inrwatson2009-08-021-1/+2
| | | | | | the release cycle. Approved by: re (kensmith)
* Many network stack subsystems use a single global data structure to holdrwatson2009-08-0215-32/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | all pertinent statatistics for the subsystem. These structures are sometimes "borrowed" by kernel modules that require a place to store statistics for similar events. Add KPI accessor functions for statistics structures referenced by kernel modules so that they no longer encode certain specifics of how the data structures are named and stored. This change is intended to make it easier to move to per-CPU network stats following 8.0-RELEASE. The following modules are affected by this change: if_bridge if_cxgb if_gif ip_mroute ipdivert pf In practice, most of these statistics consumers should, in fact, maintain their own statistics data structures rather than borrowing structures from the base network stack. However, that change is too agressive for this point in the release cycle. Reviewed by: bz Approved by: re (kib)
* Stop uuidgen(2) from crashing in vimage kerenels.julian2009-08-021-0/+4
| | | | | | | make curvnet valid when needed. Reviewed by: bz@ Approved by: re (kib)
* Make the newbus subsystem Giant free by adding the new newbus sxlock.attilio2009-08-0241-132/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The newbus lock is responsible for protecting newbus internIal structures, device states and devclass flags. It is necessary to hold it when all such datas are accessed. For the other operations, softc locking should ensure enough protection to avoid races. Newbus lock is automatically held when virtual operations on the device and bus are invoked when loading the driver or when the suspend/resume take place. For other 'spourious' operations trying to access/modify the newbus topology, newbus lock needs to be automatically acquired and dropped. For the moment Giant is also acquired in some key point (modules subsystem) in order to avoid problems before the 8.0 release as module handlers could make assumptions about it. This Giant locking should go just after the release happens. Please keep in mind that the public interface can be expanded in order to provide more support, if there are really necessities at some point and also some bugs could arise as long as the patch needs a bit of further testing. Bump __FreeBSD_version in order to reflect the newbus lock introduction. Reviewed by: ed, hps, jhb, imp, mav, scottl No answer by: ariff, thompsa, yongari Tested by: pho, G. Trematerra <giovanni dot trematerra at gmail dot com>, Brandon Gooch <jamesbrandongooch at gmail dot com> Sponsored by: Yahoo! Incorporated Approved by: re (ksmith)
* Fix two bugs related to TTY input:ed2009-08-022-1/+11
| | | | | | | | | | - fix write() on pseudo-terminal masters to return the amount of bytes passed to the TTY, not the amount of bytes read from user. - fix ttydisc_rint_bypass() to set the high watermark when it cannot write all input, just like ttydisc_rint() itself. Approved by: re (kib)
* Make the MacBook3,1 boot again.ed2009-08-022-0/+2
| | | | Approved by: re (kib)
* Import OpenBSM 1.1p2 from vendor branch to 8-CURRENT. This patch releaserwatson2009-08-028-27/+34
| | | | | | | | | | | | addresses several minor issues: - Fix audit_event definitions of AUE_OPENAT_RWT and AUE_OPENAT_RWTC. - Fix build on Linux. - Fix printing of class masks in the audump tool. MFC after: 3 weeks Obtained from: TrustedBSD Project Approved by: re (kib)
* The colour was red as shall be the letters of this warning to people uponrwatson2009-08-011-0/+4
| | | | | | | | boot if the experimental VIMAGE feature was compiled into the kernel. Submitted by: bz Reviewed by: zec Approved by: re (vimage blanket)
* Minor style tweaks.rwatson2009-08-011-17/+16
| | | | Approved by: re (vimage blanket)
* Make the vnet alloc/destroy paths a bit easier to followg by mergingrwatson2009-08-012-41/+20
| | | | | | | vnet_data_init/vnet_data_destroy into vnet_alloc/vnet_destroy. Reviewed by: bz, zec Approved by: re (vimage blanket)
* Remove vnet_foreach() utility function, which previously allowedrwatson2009-08-011-29/+6
| | | | | | | | | vnet.c to iterate virtual network stacks without being aware of the implementation details previously hidden in kern_vimage.c. Now they are in the same file, so remove this added complexity. Reviewed by: bz Approved by: re (vimage blanket)
* Merge the remainder of kern_vimage.c and vimage.h into vnet.c andrwatson2009-08-01142-521/+386
| | | | | | | | | | vnet.h, we now use jails (rather than vimages) as the abstraction for virtualization management, and what remained was specific to virtual network stacks. Minor cleanups are done in the process, and comments updated to reflect these changes. Reviewed by: bz Approved by: re (vimage blanket)
* Add 8Gb support (isp_2500). Fix a fair number of configuration andmjacob2009-08-0116-8142/+10591
| | | | | | | | | | | | | | | | | | | | | firmware loading bugs. Target mode support has received some serious attention to make it more usable and stable. Some backward compatible additions to CAM have been made that make target mode async events easier to deal with have also been put into place. Further refinement and better support for NP-IV (N-port Virtualization) is now in place. Code for release prior to RELENG_7 has been stripped away for code clarity. Sponsored by: Copan Systems Reviewed by: scottl, ken, jung-uk kim Approved by: re
* Add 8Gb card firmware. Update some 2Gb and 4Gb f/w sets.mjacob2009-08-018-17623/+62405
| | | | | | | | Split 4Gb and 8Gb into pieces that can be either multi_id capable or not. Reviewed by: scottl, ken Approved by: re
* fix misplaced #endif that caused tdma handling to be merged with ESS handlingsam2009-07-311-1/+1
| | | | | | (causing tdma scanning to break) Approved by: re (kib)
* Filter setting IFF_PROMISC on tdma vaps; we don't want the underyling devicesam2009-07-311-1/+2
| | | | | | to be in promiscuous mode as we have a h/w bssid. Approved by: re (kib)
* add upgtweongyo2009-07-311-0/+1
| | | | Approved by: re (kib)
* Make the "enforce_statfs" default 2 (most restrictive) in jail_set(2),jamie2009-07-311-3/+4
| | | | | | | | instead of whatever the parent/system has (which is generally 0). This mirrors the old-style default used for jail(2) in conjunction with the security.jail.enforce_statfs sysctl. Approved by: re (kib), bz (mentor)
* Handle kernels that don't have IPv6 by not sending an "ip6.addr"jamie2009-07-311-8/+32
| | | | | | | | parameter unless a (numeric) IPv6 address is given. Even the default binaries built with -DINET6 will work with IPv6-less kernels. With an eye to the future, similarly handle the possibility of an IPv4-less kernel. Approved by: re (kib), bz (mentor)
* Fix some LORs between vnode locks and filedescriptor table locks.jhb2009-07-314-15/+6
| | | | | | | | | | - Don't grab the filedesc lock just to read fd_cmask. - Drop vnode locks earlier when mounting the root filesystem and before sanitizing stdin/out/err file descriptors during execve(). Submitted by: kib Approved by: re (rwatson) MFC after: 1 week
* Free allocated Rx ring dma memory/tags.kevlo2009-07-311-0/+15
| | | | | Reviewed by: yongari@ Approved by: re (kib)
* Correct a stack underflow in gzip:delphij2009-07-311-1/+5
| | | | | | | | | | | | | | - Limit suffix to be no more than 30 bytes long. This matches GNU behavior. - Correct usage of memcpy(). Note that this commit only corrects the stack underflow issue, we still need some other fixes to cover other edges. [1] Reported by: Ron Jude <ronj wytheville org> Discussed with: Matthew Green (original NetBSD gzip author), Eygene Ryabinkin <rea-fbsd codelabs ru> [1] Approved by: re (kib)
* fixes a typo for DWA120 device ID.weongyo2009-07-301-2/+2
| | | | | Reported by: Alexander Kuznetsov <skritku at gmail.com> Approved by: re (kib)
* Show interface name which received short CARP packet (e.g. a VRRP packet),delphij2009-07-301-2/+3
| | | | | | | | in order to match other codepaths nearby. This makes troubleshooting easier. Approved by: re (kib) MFC after: 1 month
* Remove a LOR, where the the sleepable allprison_lock was being obtainedjamie2009-07-301-309/+187
| | | | | | | | | | | | | | | | | | | | in prison_equal_ip4/6 while an inp mutex was held. Locking allprison_lock can be avoided by making a restriction on the IP addresses associated with jails: Don't allow the "ip4" and "ip6" parameters to be changed after a jail is created. Setting the "ip4.addr" and "ip6.addr" parameters is allowed, but only if the jail was already created with either ip4/6=new or ip4/6=disable. With this restriction, the prison flags in question (PR_IP4_USER and PR_IP6_USER) become read-only and can be checked without locking. This also allows the simplification of a messy code path that was needed to handle an existing prison gaining an IP address list. PR: kern/136899 Reported by: Dirk Meyer Approved by: re (kib), bz (mentor)
* Reorder and recomment vnet.c and vnet.h on the basis that they are no longerrwatson2009-07-302-72/+106
| | | | | | solely about the virtual network stack memory allocator. Approved by: re (vimage blanket)
* Style tweak.rwatson2009-07-301-2/+1
| | | | | Approved by: re (kib) MFC after: 3 days
* Add two new privileges for use by OpenAFS, which will be supported forrwatson2009-07-301-1/+7
| | | | | | | | FreeBSD 8.x. MFC after: 3 days Submitted by: Benjamin Kaduk <kaduk at MIT.EDU> Approved by: re (kib)
* Missed this file for r195963:alfred2009-07-301-0/+3
| | | | | | | | | | | | | | | | USB core: - add support for defragging of written device data. - improve handling of alternate settings in device side mode. - correct return value from usbd_get_no_alts() function. - reported by: HPS - P4 ID: 166156, 166168 - report USB device release information to devd and pnpinfo. - reported by: MIHIRA Sanpei Yoshiro - P4 ID: 166221 Submitted by: hps Approved by: re
* USB CORE - Improve HID parsingalfred2009-07-301-3/+61
| | | | | | | | | | | See PR description for more info. Patch is implemented differently than suggested, but having the same result. PR: usb/137188 Submitted by: hps Approved by: re
* USB CORE - compat Linux:alfred2009-07-302-18/+59
| | | | | | | | | - Patch request from Tim Borgeaud: - add automatic locking - add refcount for killing URB's Submitted by: hps Approved by: re
* USB controller:alfred2009-07-301-2/+9
| | | | | | | - allow disabling "root_mount_hold()" by setting "hw.usb.no_boot_wait" sysctl Submitted by: hps Approved by: re
* ULPT:alfred2009-07-301-1/+9
| | | | | | | | - add conditional printer status checking - P4 ID: 166176 Submitted by: hps Approved by: re
* USB core:alfred2009-07-307-71/+145
| | | | | | | | | | | | | | | - add support for defragging of written device data. - improve handling of alternate settings in device side mode. - correct return value from usbd_get_no_alts() function. - reported by: HPS - P4 ID: 166156, 166168 - report USB device release information to devd and pnpinfo. - reported by: MIHIRA Sanpei Yoshiro - P4 ID: 166221 Submitted by: hps Approved by: re
* USB serial:alfred2009-07-303-1/+5
| | | | | | | | | | - add new ID for Huawei - P4 ID: 166150 PR: usb/136761 Submitted by: hps Approved by: re
* USB audio:alfred2009-07-301-38/+40
| | | | | | | | - code factoring patch from "Eygene Ryabinkin" - P4 ID: 166149 Submitted by: hps Approved by: re
* USB CORE:alfred2009-07-3011-42/+222
| | | | | | | | | | | - Add minimum polling support to drive UMASS and UKBD in case of panic. - Add extra check to ukbd probe to fix problem about mouse devices attaching like keyboards. - P4 ID: 166148 Submitted by: hps Approved by: re
* USB inputalfred2009-07-301-3/+45
| | | | | | | | | | | | - add support for setting the UMS polling rate through -F option passed to moused. - requested by Alexander Best - P4 ID: 166075 PR: usb/125264 Submitted by: hps Approved by: re
* USB controller:alfred2009-07-303-0/+14
| | | | | | | | | - patch from Alexander Motin <mav@freebsd.org> - add more ID's - P4 ID: 165805 Submitted by: hps Approved by: re
* LibUSB v1.0:alfred2009-07-309-1531/+1356
| | | | | | | | | - Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069 Submitted by: hps Approved by: re
* Fix XEN build breakage, by implementing pmap_invalidate_cache_range()kib2009-07-291-16/+88
| | | | | | | and using it when appropriate. Merge analogue of the r195836 optimization to XEN. Approved by: re (kensmith)
OpenPOWER on IntegriCloud