Alexander Leidinger
2007-Jul-08 13:21 UTC
mini-heads-up: linuxulator fixes (Fw: cvs commit: src/sys/amd64/linux32 linux.h linux32_machdep.c linux32_sysvec.c syscalls.master src/sys/compat/linprocfs linprocfs.c src/sys/compat/linux linux_misc.c src/sys/i386/linux linux.h linux_machdep.c linux_sysvec.c)
Hi, I MFCed some fixes to the linuxulator today. One major change is correcting the handling of the linux mmap function. This may break some not so good programmed audio programs (mostly some few bad behaving games). If you get hit by this, don't be afraid. The MFC of a change to the sound system (and an entry to UPDATING) will be done "soon" by Ariff. Except for those audio apps, all programs which had problems because of this should work better now. If you stumble upon a problem, please report to emulation@FreeBSD.org. Note: while more MFCs of fixes and missing linux syscalls are planned (before 6.3), the MFC of the linux-2.6 compatibility is not planned (if you need it, you have to update to 7.0 release when it comes out). If someone wants to help test some more patches for the linuxulator in -stable, please contact me and I take you into the loop (the more testers, the faster -stable will see the MFCs). What I need are people which compile and runtest the changes. Most of the changes are straight forward, we only have one part which causes a problem because of an unknown reason (either bad testing hardware or a missing change in my patches). Bye, Alexander. Start weitergeleitete Nachricht: Datum: Sun, 8 Jul 2007 12:20:36 +0000 (UTC) Von: Alexander Leidinger <netchild@FreeBSD.org> An: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Betreff: cvs commit: src/sys/amd64/linux32 linux.h linux32_machdep.c linux32_sysvec.c syscalls.master src/sys/compat/linprocfs linprocfs.c src/sys/compat/linux linux_misc.c src/sys/i386/linux linux.h linux_machdep.c linux_sysvec.c netchild 2007-07-08 12:20:36 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/amd64/linux32 linux.h linux32_machdep.c linux32_sysvec.c syscalls.master sys/compat/linprocfs linprocfs.c sys/compat/linux linux_misc.c sys/i386/linux linux.h linux_machdep.c linux_sysvec.c Log: MFC (5 of X): - linuxulator mmap handling - memleak fixes - extend linux errno mapping - handle address space limits for linux processes - sync linprocfs (/proc/sys/... part) Compile tested by: scf (i386, as part of a mega-MFC-patch) Tested by: Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64) Revision Changes Path 1.1.8.3 +11 -2 src/sys/amd64/linux32/linux.h 1.10.2.2 +114 -64 src/sys/amd64/linux32/linux32_machdep.c 1.7.2.9 +2 -1 src/sys/amd64/linux32/linux32_sysvec.c 1.4.2.2 +1 -1 src/sys/amd64/linux32/syscalls.master 1.89.2.7 +167 -7 src/sys/compat/linprocfs/linprocfs.c 1.170.2.6 +1 -1 src/sys/compat/linux/linux_misc.c 1.64.2.3 +11 -2 src/sys/i386/linux/linux.h 1.48.2.5 +65 -57 src/sys/i386/linux/linux_machdep.c 1.137.2.5 +2 -1 src/sys/i386/linux/linux_sysvec.c http://cvsweb.FreeBSD.org/src/sys/amd64/linux32/linux.h.diff?&r1=1.1.8.2&r2=1.1.8.3&f=h http://cvsweb.FreeBSD.org/src/sys/amd64/linux32/linux32_machdep.c.diff?&r1=1.10.2.1&r2=1.10.2.2&f=h http://cvsweb.FreeBSD.org/src/sys/amd64/linux32/linux32_sysvec.c.diff?&r1=1.7.2.8&r2=1.7.2.9&f=h http://cvsweb.FreeBSD.org/src/sys/amd64/linux32/syscalls.master.diff?&r1=1.4.2.1&r2=1.4.2.2&f=h http://cvsweb.FreeBSD.org/src/sys/compat/linprocfs/linprocfs.c.diff?&r1=1.89.2.6&r2=1.89.2.7&f=h http://cvsweb.FreeBSD.org/src/sys/compat/linux/linux_misc.c.diff?&r1=1.170.2.5&r2=1.170.2.6&f=h http://cvsweb.FreeBSD.org/src/sys/i386/linux/linux.h.diff?&r1=1.64.2.2&r2=1.64.2.3&f=h http://cvsweb.FreeBSD.org/src/sys/i386/linux/linux_machdep.c.diff?&r1=1.48.2.4&r2=1.48.2.5&f=h http://cvsweb.FreeBSD.org/src/sys/i386/linux/linux_sysvec.c.diff?&r1=1.137.2.4&r2=1.137.2.5&f=h -- Just because your doctor has a name for your condition doesn't mean he knows what it is. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Ariff Abdullah
2007-Jul-08 14:42 UTC
mini-heads-up: linuxulator fixes (Fw: cvs commit: src/sys/amd64/linux32 linux.h linux32_machdep.c linux32_sysvec.c syscalls.master src/sys/compat/linprocfs linprocfs.c src/sys/compat/linux linux_misc.c src/sys/i386/linux linux.h linux_machdep.c linux_sysvec.c)
On Sun, 8 Jul 2007 14:49:47 +0200 Alexander Leidinger <Alexander@Leidinger.net> wrote:> Hi, > > I MFCed some fixes to the linuxulator today. One major change is > correcting the handling of the linux mmap function. This may break > some not so good programmed audio programs (mostly some few bad > behaving games). If you get hit by this, don't be afraid. The MFC of > a change to the sound system (and an entry to UPDATING) will be done > "soon" by Ariff. >Technically, this is not the fault of that particular audio apps. Latest mmap changes in linuxlator apparently force PROT_EXEC mapping on all _typical_ mmap invocations, and this affecting not just sound, but bktr(4) as well. Well, bktr a bit lucky since I haven't encounter any linux-binary + bktr apps. Anyway, I've added sysctl hw.snd.compat_linux_mmap, where it is disabled by default. linux mmap breakage: http://lists.freebsd.org/pipermail/freebsd-current/2007-June/073437.html solution: http://lists.freebsd.org/pipermail/cvs-src/2007-July/080531.html> Except for those audio apps, all programs which had problems because > of this should work better now. If you stumble upon a problem, > please report to emulation@FreeBSD.org. > > Note: while more MFCs of fixes and missing linux syscalls are > planned (before 6.3), the MFC of the linux-2.6 compatibility is not > planned (if you need it, you have to update to 7.0 release when it > comes out). > > If someone wants to help test some more patches for the linuxulator > in -stable, please contact me and I take you into the loop (the more > testers, the faster -stable will see the MFCs). What I need are > people which compile and runtest the changes. Most of the changes > are straight forward, we only have one part which causes a problem > because of an unknown reason (either bad testing hardware or a > missing change in my patches). >-- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070708/36ca92ec/attachment.pgp