summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump __FreeBSD_version. Add UPDATING entry about low-level Bluetooth HCI API.emax2009-04-222-1/+5
|
* Implement low-level Bluetooth HCI API.emax2009-04-224-19/+836
| | | | | | | | | This should make it easier to make Linux BlueZ libhci port. Reviewed by: Iain Hibbert < plunky -at- rya-online -dot- net > of NetBSD MFC after: 1 week Inspired by: Linux BlueZ Inspired by: NetBSD
* Provide manual page for the tsec(4) device driver.raj2009-04-222-1/+158
| | | | Obtained from: Semihalf
* Add a few more models of AMBICOM cards from data from linux driver andimp2009-04-221-0/+4
| | | | pccard.conf.
* Add AmbiCom AMB8002, AMB8010 (2 variants) and AMB8610. These wereimp2009-04-221-0/+4
| | | | inferred from data in the linux driver.
* These were a placeholder and don't belong here. Remove them.imp2009-04-221-143/+1
|
* Don't leak information via uninitialized space in db(3) records. [09:07]cperciva2009-04-223-0/+16
| | | | | | | | | | | Sanity-check string lengths in order to stop OpenSSL crashing when printing corrupt BMPString or UniversalString objects. [09:08] Security: FreeBSD-SA-09:07.libc Security: FreeBSD-SA-09:08.openssl Security: CVE-2009-0590 Approved by: re (kensmith) Approved by: so (cperciva)
* Eliminate redundant setting of HID0_EMCP.raj2009-04-221-1/+0
|
* Minor style consistency fix.raj2009-04-221-7/+7
|
* Provide cpu_throw() for Book-E. Adjust cpu_switch() towards ULE support.raj2009-04-222-10/+11
| | | | Obtained from: Freescale, Semihalf
* Centralize setting HID0/1 for E500. Rename HID defines which are specificraj2009-04-222-4/+21
| | | | | | to E500 rather than shared within Book-E family. Obtained from: Freescale, Semihalf
* Turns out rtm_use does still exist, just under different name - fortrasz2009-04-221-0/+5
| | | | | a long time (since 6.1) it was #defined as rtm_fmask. Update manual page. While here, sync some constants with what's in route.h.
* Kill stray bootverbose debug tool.imp2009-04-221-2/+0
| | | | Submitted by: juli@
* Turns out the code improvements I did for the TC5299J support wereimp2009-04-221-13/+154
| | | | | anti-improvements and broke support for this part. Revert the part of the improvement at fault.
* - Rename ds1672 and ds133x devices to "ds1672_rtc" and "ds133x_rtc"stas2009-04-215-8/+8
| | | | | | | | respectivly. This will allow one to have a kernel with both devices present and use it for multiple boards with different types of RTC sitting on a bus. Discussed with: imp
* Bump __FreeBSD_version to 800082 to reflect the addition of if_refcount,rwatson2009-04-211-1/+1
| | | | | | if_ref(), and if_rele(). MFC after: 3 weeks
* Start to address a number of races relating to use of ifnet pointersrwatson2009-04-213-28/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after the corresponding interface has been destroyed: (1) Add an ifnet refcount, ifp->if_refcount. Initialize it to 1 in if_alloc(), and modify if_free_type() to decrement and check the refcount. (2) Add new if_ref() and if_rele() interfaces to allow kernel code walking global interface lists to release IFNET_[RW]LOCK() yet keep the ifnet stable. Currently, if_rele() is a no-op wrapper around if_free(), but this may change in the future. (3) Add new ifnet field, if_alloctype, which caches the type passed to if_alloc(), but unlike if_type, won't be changed by drivers. This allows asynchronous free's of the interface after the driver has released it to still use the right type. Use that instead of the type passed to if_free_type(), but assert that they are the same (might have to rethink this if that doesn't work out). (4) Add a new ifnet_byindex_ref(), which looks up an interface by index and returns a reference rather than a pointer to it. (5) Fix if_alloc() to fully initialize the if_addr_mtx before hooking up the ifnet to global lists. (6) Modify sysctls in if_mib.c to use ifnet_byindex_ref() and release the ifnet when done. When this change is MFC'd, it will need to replace if_ispare fields rather than adding new fields in order to avoid breaking the binary interface. Once this change is MFC'd, if_free_type() should be removed, as its 'type' argument is now optional. This refcount is not appropriate for counting mbuf pkthdr references, and also not for counting entry into the device driver via ifnet function pointers. An rmlock may be appropriate for the latter. Rather, this is about ensuring data structure stability when reaching an ifnet via global ifnet lists and tables followed by copy in or out of userspace. MFC after: 3 weeks Reported by: mdtancsa Reviewed by: brooks
* Fix sbappendrecord_locked().emax2009-04-211-8/+2
| | | | | | | | | | | | | | | | | | The main problem is that sbappendrecord_locked() relies on sbcompress() to set sb_mbtail. This will not happen if sbappendrecord_locked() is called with mbuf chain made of exactly one mbuf (i.e. m0->m_next == NULL). In this case sbcompress() will be called with m == NULL and will do nothing. I'm not entirely sure if m == NULL is a valid argument for sbcompress(), and, it rather pointless to call it like that, but keep calling it so it can do SBLASTMBUFCHK(). The problem is triggered by the SOCKBUF_DEBUG kernel option that enables SBLASTRECORDCHK() and SBLASTMBUFCHK() checks. PR: kern/126742 Investigated by: pluknet < pluknet -at- gmail -dot- com > No response from: freebsd-current@, freebsd-bluetooth@ MFC after: 3 days
* Acquire the interface address list lock over some iterations overrwatson2009-04-211-8/+34
| | | | | | | if_addrhead. This closes some reader-writer races associated with the address list. MFC after: 2 weeks
* Couple of changes based on feedbackrdivacky2009-04-211-4/+7
| | | | | | | | | | | | o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] Suggested by: naddy mips.inka.de (Christian Weisgerber) [1] Requested by: danfe, deischen [2] Suggested by: jmallett [3] Approved by: ed (mentor)
* Lower VM_MAX_KERNEL_ADDRESS to 0xf8000000. We actually havemarcel2009-04-211-1/+1
| | | | | devices below CCSRBAR_VA, which overlap with KVA if that's out limit.
* o Properly set ksym_start & ksym_end when options DDB is set.marcel2009-04-211-2/+18
| | | | | | | | | | Include opt_ddb.h for that. Now you can actually boot with -d and set breakpoints using function names. o Make sure to include opt_msgbuf.h. o Carve out the first 1MB of physical memory. The MPC85xx has DMA problems with addresses below 1MB. Ideally busdma knows how to avoid allocating below 1MB for MPC85xx, but that requires a bit more work. For now, ignore the 1MB of DRAM.
* Bracket struct mfc and struct rtdetq with #ifdef _KERNEL.bms2009-04-212-1/+8
| | | | | | | | | | Match the bracketing in netstat. Since the cleanup of MROUTING, ports have broken because they expect to include <netinet/ip_mroute.h> without including <sys/queue.h>. Fix breakage at source. The real fix, of course, is to fix the MROUTING APIs by blowing them away and replacing them with something else...
* remove IFF_ASSERTGIANTbms2009-04-211-13/+0
|
* Back out my previous changekevlo2009-04-211-1/+1
|
* Add another FTDI serial converter.takawata2009-04-212-0/+2
|
* To make it easy whether xl(4) missed Tx completion interrupt checkyongari2009-04-211-3/+19
| | | | | | | number of queued packets in watchdog timeout handler. If there are no queued packets just print a informational message and return without resetting controller. Also fix to invoke correct Tx completion handler as 3C905B needs different handler.
* Clear IFF_DRV_OACTIVE flag if one of queued packets was transmitted.yongari2009-04-211-2/+6
| | | | | | | | | | | Previously it used to clear the flag only when the transmit queue is empty which may slow down Tx performance. While I'm here check whether driver is running and whether we can queue more packets in if_start handler. This fixes occasional watchdog timeouts. Reported by: xer < xernet <> hotmail dot it > Tested by: xer < xernet <> hotmail dot it >
* Acquire interfce address list lock while walking the interface addressrwatson2009-04-201-0/+2
| | | | | | list during tun device initialization. MFC after: 2 weeks
* Acquire address list lock before walking an interface's address list torwatson2009-04-201-0/+4
| | | | | | identify possible jail addresses on it for IPv4 and IPv6. MFC after: 2 weeks
* Assert the interface address list lock in IFP_TO_IA6(), as it willrwatson2009-04-202-2/+5
| | | | | | | iterate the interface address list. Marginally expand IF_ADDR_LOCK() coverage in mld6.c to make sure it's held when IFP_TO_IA6() is called. MFC after: 2 weeks
* Prefer structure fields (ifa_link) to macro aliases for themrwatson2009-04-206-20/+20
| | | | | | (ifa_list). MFC after: 2 weeks
* Prefer ifa_link (structure field) to ifa_list (macro alias for it).rwatson2009-04-201-1/+1
| | | | MFC after: 2 weeks
* Prefer actual field names (if_addrhead, ifa_link) to macros aliasingrwatson2009-04-202-2/+2
| | | | | | those field names in FreeBSD code. MFC after: 2 weeks
* Acquire interface address list lock around access to if_addrhead,rwatson2009-04-204-8/+40
| | | | | | closing several writer-writer races, and some read-write races. MFC after: 2 weeks
* Use TAILQ_FOREACH() and TAILQ_FOREACH_SAFE() rather than manuallyrwatson2009-04-206-29/+21
| | | | | | | | | accessing queue(9) structure fields for if_addrhead. Prefer FreeBSD field name if_addrhead to compatibility macro if_addrlist. MFC after: 2 weeks
* Prefer if_addrhead (FreeBSD) to if_addrlist (BSD compat) naming for therwatson2009-04-201-1/+4
| | | | | | | | interface address list in if_stf.c. Acquire interface address list locks around address list access. MFC after: 2 months
* Implement highlighting of today in month view of cal/ncal just likerdivacky2009-04-202-14/+82
| | | | | | | | gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. Reviewed by: Simon 'corecode' Schubert <corecode fs.ei.tum.de> Approved by: ed
* simplify code by removing bit_fns and replacing with the use of a temporary maskkmacy2009-04-201-56/+20
|
* Close some but not all writer-writer races when maintaining IPv6rwatson2009-04-201-1/+18
| | | | | | interface address lists by locking the interface address list lock. MFC after: 2 weeks
* - Give a warning and start the oscillator if it was not previouslystas2009-04-204-25/+72
| | | | | | | | runned. - Rename ds1672 -> rtc to follow the other drivers. - Refactor/simplify the code a bit. MFC after: 2 weeks
* Sometimes we can call ed_detach() before the mtx has been initialized.imp2009-04-201-2/+4
| | | | Avoid it if it hasn't been initialized.
* Make mse(4) use si_drv1, instead of using unit numbers.ed2009-04-201-16/+12
| | | | Discussed with: imp
* Fix typo.kib2009-04-201-1/+1
| | | | | Noted by: jhb MFC after: 2 weeks
* vlan(4) no longer depends on miibus(4).antoine2009-04-202-13/+1
| | | | | Reviewed by: jhb@ MFC after: 1 month
* Lock interface address lists before iterating over them in nd6.rwatson2009-04-201-0/+5
| | | | MFC after: 2 weeks
* Conditionally add the interface name and address if availablebz2009-04-204-4/+14
| | | | | | | | | | so that a ppp running in `receiver' (server) mode can properly update routes, for example to update the MTU. Submitted by: loos.br gmail.com (Luiz Otavio O Souza) PR: bin/130159 PR: kern/125079, kern/122068, bin/126892 MFC after: 3 days
* In ufs_checkpath(), recheck that '..' still points to the inode withkib2009-04-203-41/+55
| | | | | | | | | | | | | | | | | | the same inode number after VFS_VGET() and relock of the vp. If '..' changed, redo the lookup. To reduce code duplication, move the code to read '..' dirent into the static helper function ufs_dir_dd_ino(). Supply the source inode number as an argument to ufs_checkpath() instead of the source inode itself. The inode is unlocked, thus it might be reclaimed, causing accesses to the freed memory. Use vn_vget_ino() to get the '..' vnode by its inode number, instead of directly code VFS_VGET() and relock, to properly busy the mount point while vp lock is dropped. Noted and reviewed by: tegge Tested by: pho MFC after: 1 month
* In ip_input(), cache the received mbuf's network interface in a localrwatson2009-04-201-16/+23
| | | | | | | | variable. Acquire the interface address list lock when iterating over the interface address list searching for a matching received broadcast address. MFC after: 2 weeks
* On the exit of the child process which parent either set SA_NOCLDWAITkib2009-04-201-4/+4
| | | | | | | | | | | | | | | or ignored SIGCHLD, unconditionally wake up the parent instead of doing this only when the child is a last child. This brings us in line with other U**xes that support SA_NOCLDWAIT. If the parent called waitpid(childpid), then exit of the child should wake up the parent immediately instead of forcing it to wait for all children to exit. Reported by: Alan Ferrency <alan pair com> Submitted by: Jilles Tjoelker <jilles stack nl> PR: 108390 MFC after: 2 weeks
OpenPOWER on IntegriCloud