kib [Fri, 7 Dec 2007 14:30:26 +0000 (14:30 +0000)]
MFC rev. 1.181:
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.
jfv [Fri, 7 Dec 2007 04:01:16 +0000 (04:01 +0000)]
DUH, fix breakage of last checkin. Its kinda humorous,
the code is broken in 7 but that will never be a problem
because of defines, but it broke here, oh well :)
jfv [Fri, 7 Dec 2007 01:06:41 +0000 (01:06 +0000)]
MFC of a few important fixes done in RELENG_7 to 6
- WITNESS lock problem due to naming of multi locks
- Race in em_stop if you don't hold the TX lock
- Bug in TSO code when you have fowarding and different
MSS sizes (this more for completeness since TSO is not
enabled in 6.3)
Essentially syncs the two drivers up to version 6.7.3
yongari [Thu, 6 Dec 2007 06:01:47 +0000 (06:01 +0000)]
MFC if_re.c, rev 1.98 to RELENG_6
Always honor promiscuous flag prior to programming Rx multicast
filter. This fixes a regression introduced in rev 1.89.
kmacy [Wed, 5 Dec 2007 22:05:49 +0000 (22:05 +0000)]
Very belated MFC.
- fix qset to port binding as a proper fix for the problems encountered on the 4-port
- fix the use after free seen when sending packets small enough to fit as an immediate
and bpf peers are present
- update to firmware rev 4.7 along with various small vendor fixes
rwatson [Wed, 5 Dec 2007 00:00:10 +0000 (00:00 +0000)]
Call NET_LOCK_GIANT/NET_UNLOCK_GIANT around calls to protocol drain
methods in mb_reclaim(). This is not an MFC, as debug.mpsafenet is
not present in 7.x or 8.x. In practice, this likely resulted in
instability only on kernels with INVARIANTS, as the protocol drain
paths are generally MPSAFE.
PR: 116034
Reported by: Dan Lukes <dan@obluda.cz>
Discussed with: kmacy, alc
Approved by: re (kensmith)
Tested by: Eugene Grosbein <eugen at grosbein dot pp dot ru>
cperciva [Tue, 4 Dec 2007 22:51:36 +0000 (22:51 +0000)]
MFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
UpdateIfUnmodified directive in order to avoid overwriting these when
users upgrade to future versions of FreeBSD.
- Fix the handling of R_SPARC_OLO10, which is a bit of a special case
in the way we implement handling of relocations.
While at it replace some more ELF_R_TYPE which should have been
ELF64_R_TYPE_ID but didn't cause problems so far.
- Sync a sanity check between kernel and rtld(1) and change it to be
maintenance free regarding the type used for the lookup table.
- Sprinkle const on lookup tables.
- Use __FBSDID.
jhb [Mon, 3 Dec 2007 21:53:23 +0000 (21:53 +0000)]
MFC: Sync up SYSV IPC with HEAD some:
- Add kern_semctl() and use it for Linux, IBCS2, and SVR4 ABIs.
- Don't pass a bufsz pointer to kern_shmctl() for operations that don't
need it.
- Add module dependencies for SYSV IPC modules to IBCS2 and SVR4.
- Use kern_shmctl() in SVR4.
- Use kern_msgctl(), kern_semctl(), and kern_shmctl() in IBCS2.
- Mark linux_ipc(), svr4_sys_shmsys(), and svr4_sys_semsys() MPSAFE.
- Add GNU symbol versioning constants.
- Correct URL to ELF header documantation.
- Add Sparc TLS relocation definitions.
- Move the relocation definitions to the common elf header so that DTrace
can use them on one architecture targeted to a different one.
Add the additional ELF types defines in Sun's "Linker and Libraries"
manual.
- Add `PN_XNUM', for supporting ELF objects with a large number of program
header table entries.
Discussed with: jb (who in turn discussed the MFC with jkoshy)
jkoshy [Mon, 3 Dec 2007 11:00:39 +0000 (11:00 +0000)]
MFC r1.6:
"Revert revision 1.4.
Intel CPUs with family 0x6, model 0xE and later (i.e., Intel Core(TM))
have a PMC architecture that differs somewhat from previous CPUs in
family 0x6. Even though the basic programming model is similar, the
documented set of legal values that may be loaded into their PMC MSRs
differs from that of the previous PMCs in family 0x6 and reusing bit
values legal for the older PMCs could result in undefined behaviour in
the general case."
marcus [Sun, 2 Dec 2007 23:46:27 +0000 (23:46 +0000)]
Forced commit to correct file handle reversal in previous commit. The
message should have read:
This is a partial MFC of rev 1.126 from HEAD's libkse. This only merges the
fix which causes stderr_debug to write output to STDOUT_FILENO instead
of STDERR_FILENO. This is known to fix (or workaround) some mono-related
build problems.
marcus [Sun, 2 Dec 2007 23:42:38 +0000 (23:42 +0000)]
MFC: rev 1.126
This is a partial MFC of rev 1.126 from HEAD's libkse. This only merges the
fix which causes stderr_debug to write output to STDERR_FILENO instead
of STDOUT_FILENO. This is known to fix (or workaround) some mono-related
build problems.
cognet [Sun, 2 Dec 2007 14:21:27 +0000 (14:21 +0000)]
MFC:
arm/at91/kb920x_machdep.c rev 1.24, 1.25 and 1.26
arm/at91/std.at91 rev 1.4
arm/at91/std.kb920x rev 1.5
arm/at91/at91rm92reg.h rev 1.6
conf/options.arm 1.18
Small tweaks to be able to load the kernel at a different address than
0x20000000 + add an option to override the default value of the master clock
frequency.
arm/at91/if_ate.c rev 1.21:
In ate_get_mac(), try to get the mac address in the right order, at least
in the same order as it's set in ate_set_mac.
darrenr [Sat, 1 Dec 2007 00:52:48 +0000 (00:52 +0000)]
MFC:
Fix 3 issues relating to the use of "auth" rules in IPFilter, from sourceforge: 1837014 Kernel panics after authentication of an outgoing packet 1836992 Potential bugs in packet auth code (w/patches) 1836967 Kernel panic when using auth rule with keep state
and another reported only to FreeBSD by Andiry (see PR)
ariff [Fri, 30 Nov 2007 15:11:42 +0000 (15:11 +0000)]
MFC: (revision 1.47, 1.48)
- Add missing MCP65 id which was accidentally removed in previous commit.
- Add Analog Devices AD1984 codec id.
- Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake)
hints so the parser will grab it and allocate "speaker" control.
- Fix regression while preparing DAC and ADC for multichannel
format. Since playback policy is to output to every possible path,
ensure that each DAC is started.
ariff [Tue, 27 Nov 2007 23:37:48 +0000 (23:37 +0000)]
* Fix support for followings:
o Acer Aspire 4520 laptop
- jack sensing / automute
o Toshiba Satellite A135-S4527 laptop
- jack sensing / automute
Tested by: lioux
o Apple Macbook 3 (is it?)
- require gpio0 (for speakers) and ovref50 (for headphone)
to make it works
- jack sensing / automute
Tested by: Ed Schouten
* Add Nvidia MCP67 controller ids.
* Be sensible about simmilar controller with multiple pci ids.
* Connect unused DAC/ADC to stream#0 rather than forcing each of them
managing their own stream.
jhb [Tue, 27 Nov 2007 17:43:49 +0000 (17:43 +0000)]
Cleanup the alpha bus dma code a bit and sync it up with i386. Changes
include:
- Honor alignment and boundary restrictions on DMA tags by using bounce
pages for misaligned buffers and not coalescing pages if the resulting
segment would cross a boundary.
- Teach the _bus_dmamap_load_buffer() helper function to use bounce pages
when needed and change bus_dmamap_load() to use the helper function
instead of largely duplicating it. As a side effect, this enables bounce
page support for the other load routines (load_mbuf(), load_mbuf_sg(),
and load_uio()).
Honoring the boundary restrictions partially helps with the Alpha ATA DMA
problem. More work is needed for that however (and forthcoming).
PR: alpha/75317
Tested by: wilko
Approved by: re (kensmith)
avatar [Tue, 27 Nov 2007 08:11:13 +0000 (08:11 +0000)]
MFC(if_an.c:1.85, if_anreg.h:1.24): Trying to eliminate a racing as well as
reducing the chance of device removal(PCCARD) panic by replacing the
timeout(9) with callout(9) APIs.
Let sunkbd(4) emulate an AT keyboard by default.
This has the following benefits:
- allows to use the AT keyboard maps in share/syscons/keymaps with
sunkbd(4),
- allows to use kbdmux(4) with sunkbd(4),
- allows Sun RS232 keyboards to be configured and used the same
way as Sun USB keyboards driven by ukbd(4) (which also does AT
keyboard emulation) with X.Org, putting an end to the problem
of native support for the former in X.Org being broken over and
over again.
scottl [Mon, 26 Nov 2007 15:08:35 +0000 (15:08 +0000)]
MFC: Expand critical section coverage so that shared fast and ithread handlers
don't stall. Unlike 8-CURRENT and 7-STABLE, sparc64 and powerpc in 6-STABLE
do not appear to have this problem.
rafan [Mon, 26 Nov 2007 03:29:17 +0000 (03:29 +0000)]
- Put __mb_sb_limit symbol back to libc to ease users' pain when upgrading
their 6-STABLE system. This is necessary because we have this symbol
exported between 20071025 and 20071030. Binaries built during that perios
will be broken after 602115.
dumbbell [Sun, 25 Nov 2007 11:54:27 +0000 (11:54 +0000)]
MFC 1.193:
The kernel uses two ways to write data on a pipe:
o buffered write, for chunks smaller than PIPE_MINDIRECT bytes
o direct write, for everything else
A call to writev(2) may receive struct iov of various size and the
kernel may have to switch from one solution to the other. Before doing
this, it must wake reader processes and any select/poll/kqueue up.
This commit fixes a bug where select/poll/kqueue are not triggered
when switching from buffered write to direct write. It adds calls to
pipeselwakeup().
I give more details on freebsd-arch@:
http://lists.freebsd.org/pipermail/freebsd-arch/2007-September/006790.html
This should fix issues with Erlang (lang/erlang) and kqueue.
Reported by: Rickard Green (Erlang)
Approved by: re (kensmith)
cperciva [Wed, 21 Nov 2007 14:37:03 +0000 (14:37 +0000)]
MFC revisions 1.11,1.12: Unbreak "freebsd-update rollback" applied to
minor version upgrades, by being more careful about the order in which
files are rolled back to their old versions.
glebius [Wed, 21 Nov 2007 12:14:00 +0000 (12:14 +0000)]
MFC:
- Merge all the ng_send_fn2* functions into one - ng_send_fn2(),
removing some copy&pasted code.
- Reduce copy and paste in ng_apply_item().
- Resurrect ng_send_fn() as a valid symbol, not a define.
dhartmei [Wed, 21 Nov 2007 06:25:59 +0000 (06:25 +0000)]
restrict the tcp.finwait timeout (45s) to state combinations where we have seen a FIN from both sides (whether ACKed or not) and use tcp.closing (900s) for half closed connections. otherwise half closed connections will time out within 45s.
rafan [Wed, 21 Nov 2007 01:31:49 +0000 (01:31 +0000)]
- Back out previous ctype(3) fix for UTF-8 locale due to forward ABI
compatibility is still broken as we add new symbols to libc. Those
symboles are __sbmaskrune, __sbistype, __sbtoupper and __sbtolower.
The latter three are directly referred by binaries use ctype(3) family
functions (see include/ctype.h for details). This means if a binary
built on 6.3, it uses these symbols that are not available on older
system.
- As this has been in 6 for a month, I intentionally leave these symbols
in libc but map them to original version. So binary built after 602113
will not be broken after this commit.
- Bump __FreeBSD_version for this back-out
PR: 116363
Discussed with: kris, kensmith
Approved by: re (kensmith)
darrenr [Sun, 18 Nov 2007 11:03:29 +0000 (11:03 +0000)]
MFC IPFilter update from 4.1.13 to 4.1.28, including additional fixes applied
post 4.1.28 for FreeBSD. See src/contrib/ipfilter/HISTORY for more details
of the bugs fixed, etc.
rwatson [Sat, 17 Nov 2007 22:14:29 +0000 (22:14 +0000)]
Re-add $FreeBSD$ lost during vendor merge of OpenBSM 1.0 to RELENG_6.
No $FreeBSD$ tags in the vendor code, but we need them in FreeBSD to
support mergemaster and related tools.
cognet [Sat, 17 Nov 2007 18:24:46 +0000 (18:24 +0000)]
MFC arm/xscale/ixp425/files.ixp425 up to rev 1.4, add IxNpeMicrocode.dat.uu
Now that Intel changed the license for the NPE firmware, import it directly
hexed into our tree, instead of requiring the user to download it.
date: 2007/05/24 16:31:22; author: sam; state: Exp; lines: +3 -3
Search for a proper ucode image to use by incrementing the minor
release number up to the max. This should eliminate the need to
tweak the default imageid define for later releases that are found
on the Intel web site.
ups [Fri, 16 Nov 2007 21:24:54 +0000 (21:24 +0000)]
MFC: nfs_socket.c 1.148
Log: NetApp filers return corrupt post op attrs in the wcc on NFS error responses.
This is easy to reproduce for EROFS. I am not sure if the attrs can be corrupt
for other NFS error responses. For now, disabling wcc pre-op attr checks and
post-op attr loads on NFS errors (sysctl'ed).