summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix SSL memory handlig for (EC)DH cipher suites, in particular fordelphij2011-09-082-7/+21
| | | | | | | | | multi-threaded use of ECDH. Security: CVE-2011-3210 Reviewed by: stas Obtained from: OpenSSL CVS Approved by: re (kib)
* Don't use the whole free space when resizing partition to a larger sizeae2011-09-081-6/+6
| | | | | | | | | | | on a disk with non zero stripesize (e.g. disks with 4k sector size)[1]. Also do not use automatic alignment when size is exactly specified, but an alignment is not. Use automatic alignment only for case when user omits both "-s" and "-a" options. Reported by: Mikael Fridh <frimik at gmail> [1] Approved by: re (kib) MFC after: 1 week
* Update the TSF and next-TBTT methods to work for the AR5416 and later NICs.adrian2011-09-0819-55/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another commit in a series of TDMA support fixes for the 11n NICs. * Move ath_hal_getnexttbtt() into the HAL; write methods for it. This returns a timer value in TSF, rather than TU. * Move ath_hal_getcca() and ath_hal_setcca() into the HAL too, where they likely now belong. * Create a new HAL capability: HAL_CAP_LONG_RXDESC_TSF. The pre-11n NICs write 15 bit TSF snapshots into the RX descriptor; the AR5416 and later write 32 bit TSF snapshots into the RX descriptor. * Use the new capability to choose between 15 and 31 bit TSF adjustment functions in ath_extend_tsf(). * Write ar5416GetTsf64() and ar5416SetTsf64() methods. ar5416GetTsf64() tries to compensate for TSF changes at the 32 bit boundary. According to yin, this fixes the TDMA beaconing on 11n chipsets and TDMA stations can now associate/talk, but there are still issues with traffic stability which need to be investigated. The ath_hal_extendtsf() function is also used in RX packet timestamping; this may improve adhoc mode on the 11n chipsets. It also will affect the timestamps seen in radiotap frames. Submitted by: Kang Yin Su <cantona@cantona.net> Approved by: re (kib)
* vge(4) hardwares poll media status and generates an interruptyongari2011-09-072-7/+13
| | | | | | | | | | | | | | | | | | | whenever the link state is changed. Using software based polling for media status tracking is known to cause MII access failure under certain conditions once link is established so vge(4) used to rely on link status change interrupt. However DEVICE_POLLING completely disables generation of all kind of interrupts on vge(4) such that this resulted in not detecting link state change event. This means vge(4) does not correctly detect established/lost link with DEVICE_POLLING. Losing the interrupt made vge(4) not to send any packets to peer since vge(4) does not try to send any packets when there is no established link. Work around the issue by generating link state change interrupt with DEVICE_POLLING. PR: kern/160442 Approved by: re (kib)
* Fix whitespace.trasz2011-09-071-1/+1
| | | | | Submitted by: amdmi3 Approved by: re (rwatson)
* Add a definition for ASYNC_CAUSE_CLR. It's not used yet, but theadrian2011-09-071-0/+1
| | | | | | | | reference driver does clear the async interrupts after each service. I'll tinker with this in a future commit. Obtained from: Atheros Approved by: re (kib)
* Correct a typo.bz2011-09-071-1/+1
| | | | | | Submitted by: gcooper Reviewed by: nwhitehorn Approved by: re (kib)
* Fix two problems:bz2011-09-072-4/+8
| | | | | | | | | | | | 1) if no default gateway is given the route command will fail and the script will abort with an error leading to an endless loop unless configuration is cancelled or changed. [1] 2) In the IPv6 case add -inet6 to not alter the legacy IP default route. Reported by: Oleg Ginzburg (olevole olevole.ru) [1] Tested by: Oleg Ginzburg (olevole olevole.ru) [1] Approved by: re (kib)
* Shorten a variable access some using a cached value rather thanbz2011-09-071-2/+1
| | | | | | | | casting the input argument again, making the code more readable. Reviewed by: jhb MFC after: 2 weeks Approved by: re (kib)
* Work around a kernel panic triggered by forkbomb with an rctl ruletrasz2011-09-061-0/+11
| | | | | | | | such as j:name:maxproc:sigkill=100. Proper fix - deferring psignal to a taskqueue - is somewhat complicated and thus will happen after 9.0. Approved by: re (kib)
* Fix 5ghz calibration logic when using AR9280 w/ fast clock.adrian2011-09-061-8/+9
| | | | | | | | | | | | | | | | | | When the fast clock (44mhz) is enabled for 5ghz HT20, the dual ADCs aren't enabled. Trying to do the ADC calibrations here would result in calibration never completing; this resulted in IQ calibration never running and thus performance issues in 11a/11n HT20 mode. Leave it enabled for non-fastclock (40mhz) 11a mode and HT40 modes. This has been fixed in discussion with Felix Fietkau (nbd) and discussions with the Atheros baseband team. Linux ath9k now has a similar fix. Approved by: re (kib)
* Fix the addac serial load register write for AR5416.adrian2011-09-061-1/+1
| | | | | Obtained from: Linux, Atheros Approved by: re (kib)
* Document vm_page_aflag_set(9), vm_page_aflag_clear(9) and vm_page_reference(9).kib2011-09-063-13/+57
| | | | | | | Retire vm_page_flag_set() and vm_page_flag_clear() functions. Reviewed by: alc Approved by: re (bz)
* Split the vm_page flags PG_WRITEABLE and PG_REFERENCED into atomickib2011-09-0621-275/+288
| | | | | | | | | | | | | | | | | flags field. Updates to the atomic flags are performed using the atomic ops on the containing word, do not require any vm lock to be held, and are non-blocking. The vm_page_aflag_set(9) and vm_page_aflag_clear(9) functions are provided to modify afalgs. Document the changes to flags field to only require the page lock. Introduce vm_page_reference(9) function to provide a stable KPI and KBI for filesystems like tmpfs and zfs which need to mark a page as referenced. Reviewed by: alc, attilio Tested by: marius, flo (sparc64); andreast (powerpc, powerpc64) Approved by: re (bz)
* Do not use the function pointers for the internal operation of rtld_printf()kib2011-09-061-21/+26
| | | | | | | | | functions. The _rtld_error() function might be called early during the rtld bootstrap, in which case function pointers are not yet functional on ia64 due to required relocations not yet performed. Reported, reviewed and tested by: marcel Approved by: re (bz)
* dd -t switch for mdmfs to enable TRIM on the configured filesystem.kib2011-09-062-6/+16
| | | | | | | | While there, fix minor style issues. Submitted by: Alex Kozlov <spam rm-rf kiev ua> MFC after: 1 week Approved by: re (bz)
* Fix for the obsolete libraries list after the 9.0 bump.kib2011-09-061-2/+4
| | | | | Partially noted by: pluknet Approved by: re (bz)
* Fix precedence warning when compiling kernel with clang.hselasky2011-09-061-2/+2
| | | | | | Approved by: re (kib) Submitted by: dim MFC after: 1 week
* The maximum read size of incoming packets is done in 1024-byte increments.qingli2011-09-051-3/+6
| | | | | | | | | | | | | | | The current code was rounding down the maximum frame size instead of routing up, resulting in a read size of 1024 bytes, in the non-jumbo frame case, and splitting the packets across multiple mbufs. Consequently the above problem exposed another issue, which is when packets were splitted across multiple mbufs, and all of the mbufs in the chain have the M_PKTHDR flag set. Submitted by: original patch by Ray Ruvinskiy at BlueCoat dot com Reviewed by: jfv, kmacy, rwatson Approved by: re (rwatson) MFC after: 5 days
* Some USB mass storage devices requires that the sense informationhselasky2011-09-051-2/+33
| | | | | | | | | | | is retrieved after a failed SCSI command to continue normal operation. Else this sense information is retrived at the next SCSI command. Approved by: re (kib) Reported by: Alex Kozlov MFC after: 1 week PR: usb/160299
* MIPS XLP platform code update.jchandra2011-09-0539-2509/+3948
| | | | | | | | | | | | | | * Update the hardware access register definitions and functions to bring them in line with other Netlogic software. * Update the platform bus to use PCI even for on-chip devices. Add a dummy PCI driver to ignore on-chip devices which do not need driver. * Provide memory and IRQ resource allocation code for on-chip devices which cannot get it from PCI config. * add support for on-chip PCI and USB interfaces. * update conf files, enable pci and retain old MAXCPU until we can support >32 cpus. Approved by: re(kib), jmallett
* On the first loop for generating a bridge MAC address use the localthompsa2011-09-041-6/+21
| | | | | | | | | | hostid, this gives a good chance of keeping the same address over reboots. This is intended to help IPV6 and similar which generate their addresses from the mac. PR: kern/160300 Submitted by: mdodd Approved by: re (kib)
* Interrupts are disabled/enabled when entering and exiting the KDB context.attilio2011-09-041-0/+14
| | | | | | | | | | | | | | | While this is generally good, it brings along a serie of problems, like clocks going off sync and in presence of SW_WATCHDOG, watchdogs firing without a good reason (missed hardclock wdog ticks update). Fix the latter by kicking the watchdog just before to re-enable the interrupts. Also, while here, not rely on users to stop the watchdog manually when entering DDB but do that when entering KDB context. Sponsored by: Sandvine Incorporated Reviewed by: emaste, rstone Approved by: re (kib) MFC after: 1 week
* Since r224036 the cputime and wallclock are supposed to be in seconds,trasz2011-09-041-2/+2
| | | | | | not microseconds. Make it so. Approved by: re (kib)
* Add my doc mentor/mentee relationships.gavin2011-09-031-0/+4
| | | | Approved by: re (kib), bcr, jkois (mentors)
* When libexec/rtld-elf/rtld.c is compiled with clang, the r_debug_state()dim2011-09-031-1/+9
| | | | | | | | | | | | | function (a hook necessary for gdb support), is inlined, but since the function contains no code, no calls to it are generated. When gdb is debugging a dynamically linked program, this causes backtraces to be corrupted. Fix it by marking the function __noinline, and inserting an empty asm statement, that pretends to clobber memory. This forces the compiler to emit calls to r_debug_state() throughout rtld.c. Approved by: re (kib)
* Fix panic that happens when fork(2) fails due to a limit other thantrasz2011-09-031-7/+12
| | | | | | | the rctl one - for example, it happens when someone reaches maximum number of processes in the system. Approved by: re (kib)
* Upgrade to BIND version 9.8.1. Release notes at:dougb2011-09-03215-8395/+12076
|\ | | | | | | | | | | | | | | https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib)
| * Add pkcs11 and unit to the list of things to remove from configure.indougb2011-09-011-2/+3
| | | | | | | | Make a line more copy-pastable
| * Vendor import of BIND 9.8.1dougb2011-09-01212-8394/+12063
| |
| * Update for 9.8.1dougb2011-09-011-0/+7
| |
* | Forgot this nit in r221107.des2011-09-031-1/+1
| | | | | | | | Approved by: re (kib)
* | Fix the NFS servers so that they can do a Lookup of "..",rmacklem2011-09-032-0/+2
| | | | | | | | | | | | | | which requires that ni_strictrelative be set to 0, post-r224810. Tested by: swills (earlier version), geo dot liaskos at gmail.com Approved by: re (kib)
* | - Fix NULL pointer dereference when a packet of uneven size is beingstas2011-09-021-1/+4
| | | | | | | | | | | | | | transmitted. Approved by: re (kib) MFC after: 3 days
* | Restore behavior of the autoboot_delay="-1" boot menu setting to thejh2011-09-022-6/+11
| | | | | | | | | | | | | | | | | | pre-r222417 state. The behavior was essentially reversed in r222417 which can cause confusion. PR: 159775 Submitted by: Devin Teske Approved by: re (kib)
* | Wording, grammar and markup cleanup.brueffer2011-09-021-26/+38
| | | | | | | | | | | | PR: 159948 Submitted by: Ben Kaduk <kaduk@mit.edu> Approved by: re (kib)
* | This patch adds automatic detection of USB mass storage deviceshselasky2011-09-0211-34/+149
| | | | | | | | | | | | | | | | | | | | | | | | which does not support the no synchronize cache SCSI command. The __FreeBSD_version version macro has been bumped and external kernel modules needs to be recompiled after this patch. Approved by: re (kib) MFC after: 1 week PR: usb/160299
* | Remove an incorrect apostrophe.brueffer2011-09-021-1/+1
| | | | | | | | | | | | | | PR: 160267 Submitted by: Warren Block <wblock@wonkity.com> Approved by: re (kib) MFC after: 1 week
* | Fix a little typo and get rid of a cryptic description by aligning therse2011-09-021-2/+2
| | | | | | | | | | | | text to the remaining description. Approved by: re
* | Correct several issues in the integration of POSIX shared memory objectsrwatson2011-09-028-28/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and the new setmode and setowner fileops in FreeBSD 9.0: - Add new MAC Framework entry point mac_posixshm_check_create() to allow MAC policies to authorise shared memory use. Provide a stub policy and test policy templates. - Add missing Biba and MLS implementations of mac_posixshm_check_setmode() and mac_posixshm_check_setowner(). - Add 'accmode' argument to mac_posixshm_check_open() -- unlike the mac_posixsem_check_open() entry point it was modeled on, the access mode is required as shared memory access can be read-only as well as writable; this isn't true of POSIX semaphores. - Implement full range of POSIX shared memory entry points for Biba and MLS. Sponsored by: Google Inc. Obtained from: TrustedBSD Project Approved by: re (kib)
* | Add support for alternative break-to-debugger support on the Xen console.rwatson2011-09-021-1/+9
| | | | | | | | | | | | | | | | This should help debug boot-time hangs experienced in 9.0-BETA. MFC after: 3 weeks Tested by: sbruno Approved by: re (kib)
* | Clear the mountprog variable after each mountfs() call so that mountprogjhb2011-09-021-0/+5
| | | | | | | | | | | | | | | | | | options don't leak over into subsequent mounts listed in /etc/fstab. While here, fix a memory leak in debug mode. Reported by: rank1seeker @ gmail Approved by: re (kib) MFC after: 1 week
* | Fix a bug in ichwd(4) which prevents it from beig enabled if the newdelphij2011-09-021-4/+3
| | | | | | | | | | | | | | | | | | timeout is the same timeout. Submitted by: Dmitrij Tejblum <tejblum yandex-team.ru> PR: kern/139604 MFC after: 2 weeks Approved by: re (kib)
* | Expose more variables from coretemp(4) via sysctl:delphij2011-09-021-60/+157
| | | | | | | | | | | | | | | | | | | | | | - tjmax - Tj(max) value from the CPU - delta - current delta reading - resolution - sensor resolution in Celsius - throttle_log - whether a #PROCHOT was asserted since last reset Submitted by: Mark Johnston <markjdb gmail.com> (mostly) MFC after: 1 month Approved by: re (kib)
* | Fix the check in dircheck() on namlen.delphij2011-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of namlen is copied from on-disk d_namlen, which is a 8-bit unsigned integer which can never exceed MAXNAMLEN (255) so the test is always true. Moreover, UFS does not allow d_namelen being zero. Change namlen from u_int to u_int8_t, and replace the unneeded test with a useful test. PR: bin/160339 Submitted by: Eugene Grosbein <eugen grosbein.pp.ru> MFC after: 2 weeks Approved by: re (kib)
* | Fix alignment assumptions.marius2011-09-022-6/+4
| | | | | | | | | | | | PR: 160289 Approved by: re (kib) MFC after: 3 days
* | Move the logic to parse volume cache commands out into a separate functionjhb2011-09-022-119/+159
| | | | | | | | | | | | | | | | | | and use a loop so that multiple cache commands can be strung together on the command line into a single update to the volume's properties. Reviewed by: bz Approved by: re (kib) MFC after: 1 week
* | Cosmetic cleanup: remove #define LIBMEMSTAT used to prevent a nestedpluknet2011-09-021-1/+0
| | | | | | | | | | | | | | | | include of opt_vmpage.h from vm/vm_page.h. opt_vmpage.h was retired before 7.0 together with options PQ_NOOPT. Approved by: re (kib) MFC after: 3 days
* | Import additional bugfix for reading and extracting makefs-createdmm2011-09-021-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ISO images with tar. Vendor revision 3648 (merge of 3647): Additional fix to issue 168 because the change of r3642 was not sufficient. - Make sure "CL" entry appear after its "RE" entry which the "CL" entry should be connected with. - Give consideration to the case that the top level "RE" entry has already been exposed outside before its tree. Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3648) MFC after: 3 days
* | Swap FTP paths to be MACHINE/MACHINE_ARCH instead of MACHINE_ARCH/MACHINE.nwhitehorn2011-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | This follows what the output of make targets looks like, and reduces the number of directories needed on the FTP server, since we now have only one architecture with multiple machine types (i386, which has i386 and pc98), but 3 machines with 9 architectures between them (powerpc, mips, and arm). Requested by: kensmith, bz Approved by: re(kensmith)
OpenPOWER on IntegriCloud