From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 20 09:17:12 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D698C16A418 for ; Mon, 20 Aug 2007 09:17:12 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 5C48C13C458 for ; Mon, 20 Aug 2007 09:17:12 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so608476nfb for ; Mon, 20 Aug 2007 02:17:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Zb/ZNb+AWzNmh8Vh8Z/dKHLJbVAXXeYgf/LWazWS+EudiMhzrz6yEb3uHpf7l9Q7//RVKzWPkvVHffHNKPianHLirYgAIsfNhr6o4Mxh8rIp1PgVtyx8qv+ggtFGx1GXGZlelQXCeHB882xg7iPVvLSunFRNFMAqkdT3QEDT7xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=bPvuEayk8PJbyyIjRUTc8URcE+xlC/QQbdLjNOK+aHiEccq06G1UqhE5b9lNTj0NPFd3W1qBNuSTAevlgEyv8nyN9rcYYBi5dm6iAyrbrqR8ByONtfOueSYBVuQAUxchu+sc81omIun4gab7V57DTPN5EI7LUlqknPFiSN8gdEM= Received: by 10.86.4.2 with SMTP id 2mr4368766fgd.1187601430770; Mon, 20 Aug 2007 02:17:10 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id p9sm9226408fkb.2007.08.20.02.17.09 (version=SSLv3 cipher=RC4-MD5); Mon, 20 Aug 2007 02:17:10 -0700 (PDT) Message-ID: <46C95C04.9090401@gmail.com> Date: Mon, 20 Aug 2007 13:16:52 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 09:17:12 -0000 Hi, all. I am installed AUDIT http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html # praudit /etc/auditpipe | grep "xxx" & # praudit /etc/auditpipe | tee file.log & # praudit /etc/auditpipe > file.log this is not work please help me /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 20 09:03:44 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACB3316A418 for ; Mon, 20 Aug 2007 09:03:44 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id 860B313C491 for ; Mon, 20 Aug 2007 09:03:44 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so899602rvb for ; Mon, 20 Aug 2007 02:03:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=G7/Sz0w3JZ6Qi0J5gZhFbLVqrfoqeX434GBPI51/KEjV91WU0pIDMFz70OEQENKee0DtSedWtf7+J5DjocqfoZEW9Dci/kjVbR7UZB2HXFIVyfXto/depKYnLGfZYY0kTHemmqVZXPqbFqX7cVFbIIRtxgg890PeQPI8+lNsP0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=BhtUC4i/vRggkGtL01tgQ9SmoWNe9ts3snusMYtwRbIKTRrUZmTsoe7f+VhPP9jbsztXO5WEDg3FBPimBUiDOy8lIt8POveigR9h5umqJIw1LC/gja6SY3gFBr97owmUEP4gtXZ3iR40wjSNaM4123B0PfU22o/YuCjTrSkROrg= Received: by 10.140.249.20 with SMTP id w20mr2541404rvh.1187599005799; Mon, 20 Aug 2007 01:36:45 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id f13sm11011739rvb.2007.08.20.01.36.42 (version=SSLv3 cipher=RC4-MD5); Mon, 20 Aug 2007 01:36:44 -0700 (PDT) Message-ID: <46C9528D.8010201@gmail.com> Date: Mon, 20 Aug 2007 12:36:29 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 20 Aug 2007 11:19:21 +0000 Subject: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 09:03:44 -0000 Hi, all. I am installed AUDIT http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html # praudit /etc/auditpipe | grep "xxx" & # praudit /etc/auditpipe | tee file.log & # praudit /etc/auditpipe > file.log this is not work please help me /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 20 15:50:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7893616A41A for ; Mon, 20 Aug 2007 15:50:06 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.freebsd.org (Postfix) with ESMTP id 1055313C45B for ; Mon, 20 Aug 2007 15:50:04 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-13-z2.arcor-online.net (mail-in-13-z2.arcor-online.net [151.189.8.30]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id D00F427B24D for ; Mon, 20 Aug 2007 15:12:26 +0200 (CEST) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-13-z2.arcor-online.net (Postfix) with ESMTP id B4AD41B8E4A for ; Mon, 20 Aug 2007 15:12:26 +0200 (CEST) Received: from stronghold.seifert.lan (p549534D1.dip0.t-ipconnect.de [84.149.52.209]) (Authenticated sender: julian.seifert@arcor.de) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 721CCBC5E3 for ; Mon, 20 Aug 2007 15:12:22 +0200 (CEST) Received: from alamar by stronghold.seifert.lan with local (Exim 4.63) (envelope-from ) id 1IN73K-0000cV-M9 for freebsd-hackers@freebsd.org; Mon, 20 Aug 2007 15:12:18 +0200 Date: Mon, 20 Aug 2007 15:12:18 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20070820131218.GA2198@alamar.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) From: "Julian D. Seifert" X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: alamar@alamar.org X-SA-Exim-Scanned: No (on stronghold.seifert.lan); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV 0.91.1/4009/Mon Aug 20 11:50:32 2007 on mail-in-10.arcor-online.net X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 20 Aug 2007 16:08:56 +0000 Subject: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 15:50:06 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5-Release. Most times it runs totally okay but sometimes (not reproducable)=20 the process freezes with state "*inp" shown with "top". On no other operating system this problem occurs. (Linux 2.6.x and FreeBSD 6.2 and -Current)=20 When I googled for information I found this in the FAQ of unrealircd: http://www.unrealircd.com/faq.php#105 I assume the bug they refer to is also present in 5.5-Rls and that this is the cause of the random freezes. I asked the unreal developers if they know any more specifics but they didn't.=20 Does anyone know what "tcp socket bug" they are referring to? I'm not so familiar with the FreeBSD kernel(and debugging it etc.) The simplest solution is probably to upgrade to 6.2 but I'd prefer fixing t= he bug for 5.5.. (I forgot to mention that I formerly had 5.4-RLS installed and experienced = the same problem)=20 MfG, =09 Julian D. `alamar` Seifert -- =20 "Emacs is a nice operating system, but I prefer UNIX." - Tom Christiansen gpg fingerprint: 435D DDDA 251B 9D70 2F72 78E0 AA5F 11F4 A4ED 451E --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGyZMyql8R9KTtRR4RAnqGAKCVioPhY8449JHm1Trpao7V3PO2BgCfQ7H2 1DpjVnr6yOYioyzz9lnL57g= =RIvv -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 20 22:53:25 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B588516A418 for ; Mon, 20 Aug 2007 22:53:25 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from snipe.secure-computing.net (snipe.secure-computing.net [209.240.66.149]) by mx1.freebsd.org (Postfix) with ESMTP id 6BBE913C45B for ; Mon, 20 Aug 2007 22:53:25 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.3] (unknown [209.240.66.157]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ecrist@secure-computing.net) by snipe.secure-computing.net (Postfix) with ESMTP id 04F511704B for ; Mon, 20 Aug 2007 17:35:37 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <20070820131218.GA2198@alamar.org> References: <20070820131218.GA2198@alamar.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Mon, 20 Aug 2007 17:35:34 -0500 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.3) X-Mailman-Approved-At: Tue, 21 Aug 2007 02:16:54 +0000 Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 22:53:25 -0000 On Aug 20, 2007, at 8:12 AMAug 20, 2007, wrote: > Hi, > > I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5- > Release. > Most times it runs totally okay but sometimes (not reproducable) > the process freezes with state "*inp" shown with "top". At the risk of sounding rude, the 5.x series of FreeBSD is deprecated. I'm running UnrealIRCd on a few different FreeBSD systems, and I've never had any problems. Try running on 6.2-RELEASE and I'm sure you won't have any problems. ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 00:13:26 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56E0216A419 for ; Tue, 21 Aug 2007 00:13:26 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from snipe.secure-computing.net (snipe.secure-computing.net [209.240.66.149]) by mx1.freebsd.org (Postfix) with ESMTP id EE3E613C491 for ; Tue, 21 Aug 2007 00:13:25 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.3] (unknown [209.240.66.157]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ecrist@secure-computing.net) by snipe.secure-computing.net (Postfix) with ESMTP id 562CB17026 for ; Mon, 20 Aug 2007 19:04:12 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <20070820131218.GA2198@alamar.org> References: <20070820131218.GA2198@alamar.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <816F3FBD-9350-4266-80BE-78039CB75BB3@secure-computing.net> Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Mon, 20 Aug 2007 19:04:08 -0500 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.3) X-Mailman-Approved-At: Tue, 21 Aug 2007 02:16:54 +0000 Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 00:13:26 -0000 On Aug 20, 2007, at 8:12 AMAug 20, 2007, wrote: > Hi, > > I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5- > Release. > Most times it runs totally okay but sometimes (not reproducable) > the process freezes with state "*inp" shown with "top". At the risk of sounding rude, the 5.x series of FreeBSD is deprecated. I'm running UnrealIRCd on a few different FreeBSD systems, and I've never had any problems. Try running on 6.2-RELEASE and I'm sure you won't have any problems. ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 01:28:15 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFCE116A421 for ; Tue, 21 Aug 2007 01:28:15 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from snipe.secure-computing.net (snipe.secure-computing.net [209.240.66.149]) by mx1.freebsd.org (Postfix) with ESMTP id C41F513C48E for ; Tue, 21 Aug 2007 01:28:15 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.3] (unknown [209.240.66.157]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ecrist@secure-computing.net) by snipe.secure-computing.net (Postfix) with ESMTP id 4B3021704B for ; Mon, 20 Aug 2007 20:28:15 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <20070820131218.GA2198@alamar.org> References: <20070820131218.GA2198@alamar.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Mon, 20 Aug 2007 20:28:11 -0500 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.3) X-Mailman-Approved-At: Tue, 21 Aug 2007 02:16:54 +0000 Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 01:28:16 -0000 On Aug 20, 2007, at 8:12 AMAug 20, 2007, wrote: > Hi, > > I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5- > Release. > Most times it runs totally okay but sometimes (not reproducable) > the process freezes with state "*inp" shown with "top". At the risk of sounding rude, the 5.x series of FreeBSD is deprecated. I'm running UnrealIRCd on a few different FreeBSD systems, and I've never had any problems. Try running on 6.2-RELEASE and I'm sure you won't have any problems. ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 02:25:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBF416A41B for ; Tue, 21 Aug 2007 02:25:40 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.freebsd.org (Postfix) with ESMTP id E721A13C468 for ; Tue, 21 Aug 2007 02:25:39 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 2649E31F021 for ; Tue, 21 Aug 2007 04:25:39 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 14874346AC1 for ; Tue, 21 Aug 2007 04:25:39 +0200 (CEST) Received: from stronghold.seifert.lan (p549523B3.dip0.t-ipconnect.de [84.149.35.179]) (Authenticated sender: julian.seifert@arcor.de) by mail-in-08.arcor-online.net (Postfix) with ESMTP id DC3E12C29E2 for ; Tue, 21 Aug 2007 04:25:34 +0200 (CEST) Received: from alamar by stronghold.seifert.lan with local (Exim 4.63) (envelope-from ) id 1INJQy-00028s-Uy for freebsd-hackers@freebsd.org; Tue, 21 Aug 2007 04:25:33 +0200 Date: Tue, 21 Aug 2007 04:25:32 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20070821022532.GA26975@alamar.org> References: <20070820131218.GA2198@alamar.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: "Julian D. Seifert" X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: alamar@alamar.org X-SA-Exim-Scanned: No (on stronghold.seifert.lan); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV 0.91.1/4016/Tue Aug 21 01:40:52 2007 on mail-in-08.arcor-online.net X-Virus-Status: Clean X-Mailman-Approved-At: Tue, 21 Aug 2007 02:29:05 +0000 Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 02:25:40 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 20, 2007 at 05:35:34PM -0500, Eric F Crist wrote: > At the risk of sounding rude, the 5.x series of FreeBSD is =20 > deprecated. I'm running UnrealIRCd on a few different FreeBSD =20 > systems, and I've never had any problems. Try running on 6.2-RELEASE =20 > and I'm sure you won't have any problems. As I have already pointed out in my e-mail this problem has been fixed in= =20 FreeBSD 6.2. (See also the URL in my e-mail) The question is _what_ bug this is causing.=20 And besides I also have pointed out that upgrading might be the easiest/bes= t=20 way but that I'd prefer fixing it in 5.5.=20 greets, =09 Julian D. `alamar` Seifert -- =20 Why geeks like computers: unzip, strip, touch, finger, grep, mount,=20 fsck, more, yes,fsck,fsck,fsck,umount, sleep. gpg fingerprint: 435D DDDA 251B 9D70 2F72 78E0 AA5F 11F4 A4ED 451E --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGyk0cql8R9KTtRR4RAuH0AJ0fIyszI7OVf3mMYXLHPo+BR8ZeeQCgnee7 88V+GY7yGkuR9v8SXDfsH80= =HnGh -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 04:25:36 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B2F316A419 for ; Tue, 21 Aug 2007 04:25:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 3747E13C46E for ; Tue, 21 Aug 2007 04:25:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [89.162.146.170] (helo=skuns.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1INKkL-000LCW-TU for hackers@freebsd.org; Tue, 21 Aug 2007 06:49:46 +0300 Received: from deviant.kiev.zoral.com.ua (root@[10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l7KG8rXi053820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Aug 2007 19:08:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l7KG8rWl074608; Mon, 20 Aug 2007 19:08:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l7KG8rCT074607; Mon, 20 Aug 2007 19:08:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 20 Aug 2007 19:08:53 +0300 From: Kostik Belousov To: Yuriy Tsibizov Message-ID: <20070820160853.GS2738@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XhI9yHzIhar7c5RA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 5e2df25549de819b25d1bfd51e9f52eb X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1391 [August 20 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: hackers@freebsd.org Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 04:25:36 -0000 --XhI9yHzIhar7c5RA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 18, 2007 at 02:01:26PM +0400, Yuriy Tsibizov wrote: > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > i386). >=20 > User-mode Linux in it's start-up tests tries to modify syscall number (to= be > called by kernel) on-the-fly > (http://fxr.watson.org/fxr/source/arch/um/os-Linux/start_up.c?v=3Dlinux-2= .6). > It forks a child thread that stops > (using SIGSTOP), calls getpid() (that will be intercepted by parent thread > using PTRACE_SYSCALL) > and return some value based on getpid() results. Main thread waits for > SIGSTOP in child process and > enables PTRACE_SYSCALL (I have some code that implements it. It makes some > incompatible changes > to PT_SYSCALL that will break FreeBSD applications, but works for Linux > apps). When main thread > catches SIGTRAP (generated by ptrace) it tries to modify EAX of child thr= ead > (with PTRACE_PEEKUSR > and PTRACE_POKEUSR) to replace getpid syscall with getppid. >=20 > is it possible to get updated EAX (and other registers as well) in > syscall(...) after ptracestop(...) in PTRACESTOP_SC(...) returns? >=20 > Hope for your help, >=20 > Yuriy. If I understand right what you want, I doubt that existing code would allow you to change syscall number in debugger process for debuggee. You shall look at the sys/i386/i386/trap.c, syscall() function [adjust as needed for other arches]. It calculates callp before doing PTRACESTOP_SC, as well as copies the syscall arguments into the kernel address space. --XhI9yHzIhar7c5RA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGybyVC3+MBN1Mb4gRAoihAKCTDL7I7Jl1iYmGLeIaLVUUFjpNHwCfV/wi T25OLXGdcNdI6pIaWn+inbw= =pij+ -----END PGP SIGNATURE----- --XhI9yHzIhar7c5RA-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 09:53:42 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C278C16A468 for ; Tue, 21 Aug 2007 09:53:42 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from mail.ki.iif.hu (mail.ki.iif.hu [IPv6:2001:738:0:411::241]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB0513C48E for ; Tue, 21 Aug 2007 09:53:42 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from localhost (localhost [IPv6:::1]) by mail.ki.iif.hu (Postfix) with ESMTP id 1926584814 for ; Tue, 21 Aug 2007 11:53:41 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mignon.ki.iif.hu Received: from mail.ki.iif.hu ([127.0.0.1]) by localhost (mignon.ki.iif.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IjBFgQ5gCIiD for ; Tue, 21 Aug 2007 11:53:38 +0200 (CEST) Received: by mail.ki.iif.hu (Postfix, from userid 9002) id C0CEB84720; Tue, 21 Aug 2007 11:53:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.ki.iif.hu (Postfix) with ESMTP id BFB63845B0 for ; Tue, 21 Aug 2007 11:53:36 +0200 (CEST) Date: Tue, 21 Aug 2007 11:53:36 +0200 (CEST) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: freebsd-hackers@freebsd.org Message-ID: <20070821113922.B40614@mignon.ki.iif.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 09:53:42 -0000 Dear All, What is the recommended way to configure vlan interfaces on etherchannel bonded interfaces in a failure mode. I found, that etherchannel is supported by ng_fec(4) (but not exactly what I want) and also found that there two? way of configuring vlans: vlan(4) and ng_vlan(4). But I did not found any description or configuration snippet to configure both preferentially via /etc/rc.conf neither in FreeBSD 6.x-stable, neither in FreeBSD-7.0-current. What I want to achieve: [switch1]-----GE---bge0----\ /----vlan100 }=={-----vlan101 [switch2]-----FE---bge1----/ \----vlan102 \---vlan103 I would like to prefer all the vlans via bge0 with GE towards switch1. And use only bge1 in case of switch1 or bge0 link failure. I could use bond on Linux for this purpose. How to achieve similar setup? Best Regards, Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning and Projects NIIF/HUNGARNET, HUNGARY Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 11:17:42 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0CE916A418 for ; Tue, 21 Aug 2007 11:17:42 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from s200aog14.obsmtp.com (s200aog14.obsmtp.com [207.126.144.128]) by mx1.freebsd.org (Postfix) with SMTP id 7BD1C13C469 for ; Tue, 21 Aug 2007 11:17:40 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from source ([217.206.187.80]) by eu1sys200aob014.postini.com ([207.126.147.11]) with SMTP; Tue, 21 Aug 2007 11:17:37 UTC Received: from [10.0.0.89] (bill.mintel.co.uk [10.0.0.89]) by rodney.mintel.co.uk (Postfix) with ESMTP id 8FAA2181428; Tue, 21 Aug 2007 11:48:41 +0100 (BST) Message-ID: <46CAC308.7070509@tomjudge.com> Date: Tue, 21 Aug 2007 11:48:40 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Mohacsi Janos References: <20070821113922.B40614@mignon.ki.iif.hu> In-Reply-To: <20070821113922.B40614@mignon.ki.iif.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 11:17:42 -0000 Mohacsi Janos wrote: > Dear All, > What is the recommended way to configure vlan interfaces on > etherchannel bonded interfaces in a failure mode. I found, that > etherchannel is supported by ng_fec(4) (but not exactly what I want) and > also found that there two? way of configuring vlans: vlan(4) and > ng_vlan(4). But I did not found any description or configuration snippet > to configure both preferentially via /etc/rc.conf neither in FreeBSD > 6.x-stable, neither in FreeBSD-7.0-current. What I want to achieve: > > [switch1]-----GE---bge0----\ /----vlan100 > }=={-----vlan101 > [switch2]-----FE---bge1----/ \----vlan102 > \---vlan103 > > > I would like to prefer all the vlans via bge0 with GE towards switch1. > And use only bge1 in case of switch1 or bge0 link failure. > > I could use bond on Linux for this purpose. How to achieve similar setup? > You may want to take a look at if_lagg, it supports EtherChannel (AKA fec), LACP and failover modes (Which is what you would need). It is available in RELENG_6 and Current. You may wish to take a look at: http://nzfug.nz.freebsd.org/nzfug/HandbookUpdates/NetworkAggregation rc.conf entries for the example might look like (not tried this): cloned_interfaces="lagg0" ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1" As for the vlan interfaces we use if_vlan and rc.conf snippets look as follows: cloned_interfaces="vlan1 vlan2" ifconfig_vlan1="inet x.x.x.x/24 vlan 1 vlandev bge1" ifconfig_vlan2="inet x.x.x.x/24 vlan 2 vlandev bge1" Putting these to together for you use might look like this: cloned_interfaces="lagg0 vlan100 vlan101 vlan102 vlan103" ifconfig_lagg0="laggproto failover laggport bge0 laggport bge1" ifconfig_vlan100="inet x.x.x.x/24 vlan 100 vlandev lagg0" ifconfig_vlan101="inet x.x.x.x/24 vlan 101 vlandev lagg0" ifconfig_vlan102="inet x.x.x.x/24 vlan 102 vlandev lagg0" ifconfig_vlan103="inet x.x.x.x/24 vlan 103 vlandev lagg0" Tom From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 05:17:29 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C946A16A469 for ; Tue, 21 Aug 2007 05:17:29 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 7870913C4CE for ; Tue, 21 Aug 2007 05:17:29 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so181309anc for ; Mon, 20 Aug 2007 22:17:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kR/dnk1JW1C/bw5lThMpQW6izMN4JYmTnN1WPbm05U/8M6Khy/5GyyETGWY0s3LYZVt4NhaYjcqm+ZSz2X9b40YZQs/cphDHb1qQbWtKFNd6wKAFvVZ3akHdcsx/qBgv6c5HodbJdGBYU9a/JB9xLVaqdU7eGxBW2ZJ7Ncz2eWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ayFDcHneCmKcsmT4Xv6G+LwA44dbMbVlu+Xxm1ZtsbQtYL5Af4jp7vKQRr6YWQhiLho+xZgw5qytlzAZ/KfyH6wSbLYXQNUIeKEur+hBb2eowmUwGtGza2XwRe4890euo4DfZYPfg/GEG0Z4Khg1hN3dxPotDaFDA2WJWorgViA= Received: by 10.90.34.3 with SMTP id h3mr866280agh.1187671709288; Mon, 20 Aug 2007 21:48:29 -0700 (PDT) Received: by 10.90.84.15 with HTTP; Mon, 20 Aug 2007 21:48:29 -0700 (PDT) Message-ID: Date: Tue, 21 Aug 2007 08:48:29 +0400 From: "Yuriy Tsibizov" To: "Kostik Belousov" In-Reply-To: <20070820160853.GS2738@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070820160853.GS2738@deviant.kiev.zoral.com.ua> X-Mailman-Approved-At: Tue, 21 Aug 2007 11:28:21 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 05:17:29 -0000 2007/8/20, Kostik Belousov : > On Sat, Aug 18, 2007 at 02:01:26PM +0400, Yuriy Tsibizov wrote: > > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > > i386). > > > > User-mode Linux in it's start-up tests tries to modify syscall number (to be > > called by kernel) on-the-fly > > (http://fxr.watson.org/fxr/source/arch/um/os-Linux/start_up.c?v=linux-2.6). > > It forks a child thread that stops > > (using SIGSTOP), calls getpid() (that will be intercepted by parent thread > > using PTRACE_SYSCALL) > > and return some value based on getpid() results. Main thread waits for > > SIGSTOP in child process and > > enables PTRACE_SYSCALL (I have some code that implements it. It makes some > > incompatible changes > > to PT_SYSCALL that will break FreeBSD applications, but works for Linux > > apps). When main thread > > catches SIGTRAP (generated by ptrace) it tries to modify EAX of child thread > > (with PTRACE_PEEKUSR > > and PTRACE_POKEUSR) to replace getpid syscall with getppid. > > > > is it possible to get updated EAX (and other registers as well) in > > syscall(...) after ptracestop(...) in PTRACESTOP_SC(...) returns? > > > > Hope for your help, > > > > Yuriy. > > If I understand right what you want, I doubt that existing code would > allow you to change syscall number in debugger process for debuggee. > You shall look at the sys/i386/i386/trap.c, syscall() function [adjust > as needed for other arches]. It calculates callp before doing PTRACESTOP_SC, > as well as copies the syscall arguments into the kernel address space. Yes, I know this. I'm going to recalculate callp after PTRACESTOP_SC. And, there will be no need to copyin from user space -- all syscalls parameters are passed in registers (it will be used only for processes running under Linux emulation). I know that there is no real use for this feature for native code. Yuriy From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 11:35:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A55A16A41A for ; Tue, 21 Aug 2007 11:35:20 +0000 (UTC) (envelope-from dindin@dindin.ru) Received: from terra.tbt.ru (mail.dindin.ru [217.66.16.39]) by mx1.freebsd.org (Postfix) with ESMTP id 0B9A613C45D for ; Tue, 21 Aug 2007 11:35:20 +0000 (UTC) (envelope-from dindin@dindin.ru) Received: from terra.tbt.ru (unknown [127.0.0.1]) by terra.tbt.ru (Postfix) with ESMTP id CBB983BA94E for ; Tue, 21 Aug 2007 15:14:53 +0400 (MSD) Received: by terra.tbt.ru (Postfix, from userid 1003) id BF5643BA949; Tue, 21 Aug 2007 15:14:53 +0400 (MSD) X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on terra.tbt.ru X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_50, X_OS autolearn=ham version=3.2.1 Received: from alpha.tbt.ru (alpha.i.tbt.ru [192.168.7.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by terra.tbt.ru (Postfix) with ESMTP id 833893BA911 for ; Tue, 21 Aug 2007 15:14:46 +0400 (MSD) Received: from alpha.tbt.ru (localhost.hitv.ru [127.0.0.1]) by alpha.tbt.ru (8.13.8/8.13.8) with ESMTP id l7LBEd0v022200 for ; Tue, 21 Aug 2007 15:14:39 +0400 (MSD) (envelope-from dindin@dindin.ru) Received: (from dindin@localhost) by alpha.tbt.ru (8.13.8/8.13.8/Submit) id l7LBEddk022199 for freebsd-hackers@freebsd.org; Tue, 21 Aug 2007 15:14:39 +0400 (MSD) (envelope-from dindin@dindin.ru) X-Authentication-Warning: alpha.tbt.ru: dindin set sender to dindin@dindin.ru using -f Date: Tue, 21 Aug 2007 15:14:38 +0400 From: Denis Barov To: freebsd-hackers@freebsd.org Message-ID: <20070821111438.GC1538@alpha.tbt.ru> Mail-Followup-To: Denis Barov , freebsd-hackers@freebsd.org References: <20070821113922.B40614@mignon.ki.iif.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline In-Reply-To: <20070821113922.B40614@mignon.ki.iif.hu> X-Operating-System: FreeBSD alpha.tbt.ru 6.2-STABLE FreeBSD 6.2-STABLE User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Mailman-Approved-At: Tue, 21 Aug 2007 11:40:14 +0000 Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 11:35:20 -0000 --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue Aug 21, 2007 at 11:53:36 +0200, Mohacsi Janos wrote: > Dear All, > What is the recommended way to configure vlan interfaces on etherchannel= bonded interfaces in=20 > a failure mode. I found, that etherchannel is supported by ng_fec(4) (but= not exactly what I=20 > want) and also found that there two? way of configuring vlans: vlan(4) an= d ng_vlan(4). But I=20 > did not found any description or configuration snippet to configure both = preferentially via=20 > /etc/rc.conf neither in FreeBSD 6.x-stable, neither in FreeBSD-7.0-curren= t. What I want to=20 > achieve: >=20 > [switch1]-----GE---bge0----\ /----vlan100 > }=3D=3D{-----vlan101 > [switch2]-----FE---bge1----/ \----vlan102 > \---vlan103 >=20 >=20 > I would like to prefer all the vlans via bge0 with GE towards switch1. A= nd use only bge1 in=20 > case of switch1 or bge0 link failure. >=20 > I could use bond on Linux for this purpose. How to achieve similar setup? >=20 > Best Regards, >=20 > Janos Mohacsi > Network Engineer, Research Associate, Head of Network Planning and Projec= ts > NIIF/HUNGARNET, HUNGARY > Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" Probably net/ucarp? Cheers, Denis Barov --5G06lTa6Jq83wMTw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iQCVAwUBRsrJHrQNqrxww2yeAQINYAP/fuXT9pGzjyXbIKBOd9STwsvn63L35f2g UvY/LZ+4NNKGQUrE5umd/wXpLLftl2trgN5iLcM5Tb90anzfZdq8+5S1GrrAfOnt e3R3ASMUbaa3fP1Q3N83JkIjv/2aI6F35pPooCGdF+POTu8QItkYqj0QJLvRqP42 U2z2R/1oVzo= =KU/g -----END PGP SIGNATURE----- --5G06lTa6Jq83wMTw-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 11:41:45 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79DBD16A417 for ; Tue, 21 Aug 2007 11:41:45 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3BBED13C465 for ; Tue, 21 Aug 2007 11:41:45 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 235C74A7DA; Tue, 21 Aug 2007 07:41:40 -0400 (EDT) Date: Tue, 21 Aug 2007 12:41:40 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: sam In-Reply-To: <46C9528D.8010201@gmail.com> Message-ID: <20070821123943.N50579@fledge.watson.org> References: <46C9528D.8010201@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 11:41:45 -0000 On Mon, 20 Aug 2007, sam wrote: > I am installed AUDIT > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html > > # praudit /etc/auditpipe | grep "xxx" > & > # praudit /etc/auditpipe | tee file.log > & > # praudit /etc/auditpipe > file.log > > this is not work > please help me Vladimir, Could you confirm that when you typed the command, you entered it as above instead of using /dev/auditpipe, the actual name of the audit device? I think all the examples in the Handbook are correct, suggesting a transcription error either when you typed the command, or when you copied it to the e-mail. If that's not it, could you be more specific about the failure mode? Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 11:51:34 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6529516A419 for ; Tue, 21 Aug 2007 11:51:34 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from s200aog11.obsmtp.com (s200aog11.obsmtp.com [207.126.144.125]) by mx1.freebsd.org (Postfix) with SMTP id 8DC3A13C4A7 for ; Tue, 21 Aug 2007 11:51:17 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from source ([217.206.187.80]) by eu1sys200aob011.postini.com ([207.126.147.11]) with SMTP; Tue, 21 Aug 2007 11:51:12 UTC Received: from [10.0.0.89] (bill.mintel.co.uk [10.0.0.89]) by rodney.mintel.co.uk (Postfix) with ESMTP id 32AE4181422; Tue, 21 Aug 2007 12:51:12 +0100 (BST) Message-ID: <46CAD1AF.4080002@tomjudge.com> Date: Tue, 21 Aug 2007 12:51:11 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Arne Schwabe References: <20070821113922.B40614@mignon.ki.iif.hu> <46CAC308.7070509@tomjudge.com> <46CACCA5.3050608@uni-paderborn.de> In-Reply-To: <46CACCA5.3050608@uni-paderborn.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Mohacsi Janos Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 11:51:34 -0000 Arne Schwabe wrote: > Tom Judge schrieb: >> Mohacsi Janos wrote: >>> Dear All, >>> What is the recommended way to configure vlan interfaces on >>> etherchannel bonded interfaces in a failure mode. I found, that >>> etherchannel is supported by ng_fec(4) (but not exactly what I want) >>> and also found that there two? way of configuring vlans: vlan(4) and >>> ng_vlan(4). But I did not found any description or configuration >>> snippet to configure both preferentially via /etc/rc.conf neither in >>> FreeBSD 6.x-stable, neither in FreeBSD-7.0-current. What I want to >>> achieve: >>> >>> [switch1]-----GE---bge0----\ /----vlan100 >>> }=={-----vlan101 >>> [switch2]-----FE---bge1----/ \----vlan102 >>> \---vlan103 >>> >>> >>> I would like to prefer all the vlans via bge0 with GE towards >>> switch1. And use only bge1 in case of switch1 or bge0 link failure. >>> >>> I could use bond on Linux for this purpose. How to achieve similar >>> setup? >>> >> >> You may want to take a look at if_lagg, it supports EtherChannel (AKA >> fec), LACP and failover modes (Which is what you would need). It is >> available in RELENG_6 and Current. > If the switches don't support LACP/Fec over two devices use bridge_stp > to simulate a switche and let spanning-tree do the failover. > > Arne Spanning tree may not select the GigE connection as the primary connection and use the FastE connection instead. if_lagg with laggproto=failover will do exactly as specified, use bge0 when the link to the switch is good, and fail over to bge1 when bge0 goes down. There is no switch side support required for this configuration. Tom From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 12:11:10 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D8E216A468 for ; Tue, 21 Aug 2007 12:11:10 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.freebsd.org (Postfix) with SMTP id 32CBA13C4A7 for ; Tue, 21 Aug 2007 12:11:08 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 17095 invoked by uid 98); 21 Aug 2007 11:44:26 -0000 Received: from 192.168.229.11 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:1(192.168.229.11):. Processed in 0.046094 secs); 21 Aug 2007 11:44:26 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.229.11):. Processed in 0.046094 secs) Received: from unknown (HELO aurynhome1ws2.zirakzigil.org) (postmaster@zirakzigil.org@192.168.229.11) by 0 with SMTP; 21 Aug 2007 11:44:26 -0000 Message-ID: <46CAD015.90209@zirakzigil.org> Date: Tue, 21 Aug 2007 13:44:21 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: benjsc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: WPI driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 12:11:10 -0000 Hi, I'm trying your driver in my sony AR41S notebook: pciconf -lv ... device = '3945ABG Intel 3945ABG Wireless LAN controller' ... cbb0@pci8:3:0: class=0x060700 card=0x9016104d chip=0x8039104c rev=0x00 hdr=0x02 uname -a ... 7.0-CURRENT FreeBSD 7.0-CURRENT #3 : Tue Aug 21 12:41:59 CEST 2007 ... amd64 I've downloaded the source: 20070715-wpi-freebsd-7.0-current.tgz I've built and installed both the firmware and the driver without problems. Unfortunately when I start the driver: ifconfig wpi0 up I get a neverending output which loops on and on: -------- Aug 21 13:36:13 aurynmob2 kernel: wpi_init Aug 21 13:36:13 aurynmob2 kernel: Resetting the card - clearing any uploaded firmware Aug 21 13:36:13 aurynmob2 kernel: EEPROM Version 0x10000004, HW 0x200 Aug 21 13:36:13 aurynmob2 kernel: Loading firmware to adapter at 0x800000, size 0x8000 Aug 21 13:36:13 aurynmob2 kernel: firmware status=0xbfbf0000, val=0x40400000, result=0x0 Aug 21 13:36:13 aurynmob2 kernel: firmware status=0xffff0000, val=0x40400000, result=0x40400000 Aug 21 13:36:13 aurynmob2 kernel: Status Match! - ntries = 1 Aug 21 13:36:13 aurynmob2 kernel: Loading firmware to adapter at 0x0, size 0x95c Aug 21 13:36:13 aurynmob2 kernel: firmware status=0xbfbf0000, val=0x40400000, result=0x0 Aug 21 13:36:13 aurynmob2 kernel: firmware status=0xffff0000, val=0x40400000, result=0x40400000 Aug 21 13:36:13 aurynmob2 kernel: Status Match! - ntries = 1 Aug 21 13:36:13 aurynmob2 kernel: DATA Aug 21 13:36:13 aurynmob2 kernel: DATA Matched Aug 21 13:36:13 aurynmob2 kernel: TEXT Aug 21 13:36:13 aurynmob2 kernel: TEXT Matched Aug 21 13:36:13 aurynmob2 kernel: notify qid=80 idx=0 flags=0 type=1 len=36 Aug 21 13:36:13 aurynmob2 kernel: microcode alive notification version 10e02 alive 1 Aug 21 13:36:13 aurynmob2 kernel: temperature -135 Aug 21 13:36:13 aurynmob2 kernel: NEWSTATE:SCAN Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 72 size 8 async 1 Aug 21 13:36:13 aurynmob2 kernel: wpi_scan_start Aug 21 13:36:13 aurynmob2 kernel: wpi_ops: command: 1 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=0 flags=0 type=72 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=0 flags=0 type=72 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_ops: command: 8 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 119 size 32 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=1 flags=0 type=119 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=1 flags=0 type=119 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 155 size 12 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=2 flags=0 type=155 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=2 flags=0 type=155 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 16 size 43 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=3 flags=0 type=16 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=3 flags=0 type=16 len=4 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 12: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 18: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 24: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 36: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 48: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 72: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 96: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 108: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 2: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 4: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 11: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 1/rate 22: power index 51 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 151 size 52 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=4 flags=0 type=151 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=4 flags=0 type=151 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 24 size 64 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=5 flags=0 type=24 len=8 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=5 flags=0 type=24 len=8 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 71 size 52 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=6 flags=0 type=71 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=6 flags=0 type=71 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 71 size 52 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=7 flags=0 type=71 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=7 flags=0 type=71 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_ops: command: 2 Aug 21 13:36:13 aurynmob2 kernel: Scanning Essid: "" Aug 21 13:36:13 aurynmob2 kernel: Scanning 1 Passive: 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=8 flags=0 type=128 len=8 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=8 flags=0 type=128 len=8 Aug 21 13:36:13 aurynmob2 kernel: notify qid=80 idx=1 flags=0 type=130 len=24 Aug 21 13:36:13 aurynmob2 kernel: scanning channel 1 status 1 Aug 21 13:36:13 aurynmob2 kernel: notify qid=80 idx=2 flags=0 type=131 len=20 Aug 21 13:36:13 aurynmob2 kernel: notify qid=80 idx=3 flags=0 type=132 len=16 Aug 21 13:36:13 aurynmob2 kernel: scan finished nchan=1 status=1 chan=1 Aug 21 13:36:13 aurynmob2 kernel: wpi_ops: command: 32 Aug 21 13:36:13 aurynmob2 kernel: wpi_ops: command: 8 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 119 size 32 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=9 flags=0 type=119 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=9 flags=0 type=119 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 155 size 12 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=10 flags=0 type=155 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=10 flags=0 type=155 len=4 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 16 size 43 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=11 flags=0 type=16 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=11 flags=0 type=16 len=4 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 12: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 18: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 24: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 36: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 48: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 72: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 96: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 108: power index 41 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 2: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 4: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 11: power index 51 Aug 21 13:36:13 aurynmob2 kernel: chan 6/rate 22: power index 51 Aug 21 13:36:13 aurynmob2 kernel: wpi_cmd 151 size 52 async 0 Aug 21 13:36:13 aurynmob2 kernel: notify qid=4 idx=12 flags=0 type=151 len=4 Aug 21 13:36:13 aurynmob2 kernel: cmd notification qid=4 idx=12 flags=0 type=151 len=4 ...... and so on... ------------------ Any light to shed? Thanks. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 11:46:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1EC16A421 for ; Tue, 21 Aug 2007 11:46:13 +0000 (UTC) (envelope-from schwabe@uni-paderborn.de) Received: from mail.blinkt.de (mail.blinkt.de [88.198.169.219]) by mx1.freebsd.org (Postfix) with ESMTP id 40CD813C457 for ; Tue, 21 Aug 2007 11:46:11 +0000 (UTC) (envelope-from schwabe@uni-paderborn.de) Received: from dslb-084-062-202-150.pools.arcor-ip.net ([84.62.202.150] helo=styx.local) by mail.blinkt.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1INRve-000LJ1-4W; Tue, 21 Aug 2007 13:29:46 +0200 Message-ID: <46CACCA5.3050608@uni-paderborn.de> Date: Tue, 21 Aug 2007 13:29:41 +0200 From: Arne Schwabe User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Tom Judge References: <20070821113922.B40614@mignon.ki.iif.hu> <46CAC308.7070509@tomjudge.com> In-Reply-To: <46CAC308.7070509@tomjudge.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 21 Aug 2007 12:18:54 +0000 Cc: freebsd-hackers@freebsd.org, Mohacsi Janos Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 11:46:13 -0000 Tom Judge schrieb: > Mohacsi Janos wrote: >> Dear All, >> What is the recommended way to configure vlan interfaces on >> etherchannel bonded interfaces in a failure mode. I found, that >> etherchannel is supported by ng_fec(4) (but not exactly what I want) >> and also found that there two? way of configuring vlans: vlan(4) and >> ng_vlan(4). But I did not found any description or configuration >> snippet to configure both preferentially via /etc/rc.conf neither in >> FreeBSD 6.x-stable, neither in FreeBSD-7.0-current. What I want to >> achieve: >> >> [switch1]-----GE---bge0----\ /----vlan100 >> }=={-----vlan101 >> [switch2]-----FE---bge1----/ \----vlan102 >> \---vlan103 >> >> >> I would like to prefer all the vlans via bge0 with GE towards >> switch1. And use only bge1 in case of switch1 or bge0 link failure. >> >> I could use bond on Linux for this purpose. How to achieve similar >> setup? >> > > > You may want to take a look at if_lagg, it supports EtherChannel (AKA > fec), LACP and failover modes (Which is what you would need). It is > available in RELENG_6 and Current. If the switches don't support LACP/Fec over two devices use bridge_stp to simulate a switche and let spanning-tree do the failover. Arne From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 12:52:21 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3ABA16A419 for ; Tue, 21 Aug 2007 12:52:21 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id 60D0F13C478 for ; Tue, 21 Aug 2007 12:52:21 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so937704nfb for ; Tue, 21 Aug 2007 05:52:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gVWDsmVf62gVZ0tY9K0TLQRmKTYwDmr+jdgbZR885PA5nGzy0dpsRRqZgWz0DaLzBk3Z8YHQxnnrNzhooo5UwQCtJgjQUktUuSVgRkMag4kaEnmx0jvtRgIjzM6T9oeD8cNVMI6p6Exb5SYr1taWuqGWQTu3iVN7EgLWLC9UsMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=b5suutsyL7RyTBskZxEgrJP4WGycouQ3EKkBzg623Y35uIBBoo7jLlLFtxezmN0lHtoTpOCjSZYQWpKcfRIJm3IOfv2GQM8yWNuOMHBHFmVURPw65PYyKG+HFcfRfYzJRfT57qEhtWIrGZ3kI6pjI52r+GlUDikBdxHmVvdyivg= Received: by 10.86.98.18 with SMTP id v18mr5413058fgb.1187700739497; Tue, 21 Aug 2007 05:52:19 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id k29sm11811282fkk.2007.08.21.05.52.18 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Aug 2007 05:52:19 -0700 (PDT) Message-ID: <46CADFF9.2000700@gmail.com> Date: Tue, 21 Aug 2007 16:52:09 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Robert Watson References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> In-Reply-To: <20070821123943.N50579@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 12:52:22 -0000 Robert Watson wrote: > > On Mon, 20 Aug 2007, sam wrote: > >> I am installed AUDIT >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html >> >> # praudit /etc/auditpipe | grep "xxx" >> & >> # praudit /etc/auditpipe | tee file.log >> & >> # praudit /etc/auditpipe > file.log >> >> this is not work >> please help me > > Vladimir, > > Could you confirm that when you typed the command, you entered it as > above instead of using /dev/auditpipe, the actual name of the audit > device? I think all the examples in the Handbook are correct, > suggesting a transcription error either when you typed the command, or > when you copied it to the e-mail. If that's not it, could you be more > specific about the failure mode? > > Robert N M Watson > Computer Laboratory > University of Cambridge > sorry my problem in buffer-pipe # praudit -l /dev/auditpipe | tee file.log need full load in buffer-pipe (4096 bytes), after data forward to STDOUT & file.log please help me data forward without buffer-pipe ?? sorry, my bad english /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 13:21:28 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D2F316A421 for ; Tue, 21 Aug 2007 13:21:28 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id A31B813C458 for ; Tue, 21 Aug 2007 13:21:27 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so944559nfb for ; Tue, 21 Aug 2007 06:21:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=LED4WozKrG+G38ikaJjfgw0eXR3BQOWFSHT3decXv6zzTDzjSUEvAMWxcvrdrhKsfmGWCgqeDp7DnSuHYV5q2rxoIwzBCzDJ71Ar+ABe0+zHNK6OfJtBTcgCXr1aKQsisuEuZ/eG6u2hX8hPQwMAvpDHlD1CNOobQdFwAQdIwlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Qeq6N9BLNmXEctlX4b1qWjE3/dqS+t2E0bk6x8AlDZyF3qQXBYavUc6l7Zg2Z/hZvqzkw/fDS7xZG8jsbl3w0Hc+oYpyTJyBak8d1DSzkCM7geghRHHreOByAPAhZUmHcXF5hOoJ8fGgaW+LIWLlLGBmgT7fMO2gxIP+H6xlNlM= Received: by 10.86.81.8 with SMTP id e8mr5419504fgb.1187702486207; Tue, 21 Aug 2007 06:21:26 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id k29sm11872657fkk.2007.08.21.06.21.24 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Aug 2007 06:21:25 -0700 (PDT) Message-ID: <46CAE6C7.5060706@gmail.com> Date: Tue, 21 Aug 2007 17:21:11 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Eric Crist References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:21:28 -0000 Eric Crist wrote: > On Aug 21, 2007, at 7:52 AMAug 21, 2007, sam wrote: > >> Robert Watson wrote: >>> >>> On Mon, 20 Aug 2007, sam wrote: >>> >>>> I am installed AUDIT >>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html >>>> >>>> # praudit /etc/auditpipe | grep "xxx" >>>> & >>>> # praudit /etc/auditpipe | tee file.log >>>> & >>>> # praudit /etc/auditpipe > file.log >>>> >>>> this is not work >>>> please help me >>> >>> Vladimir, >>> >>> Could you confirm that when you typed the command, you entered it as >>> above instead of using /dev/auditpipe, the actual name of the audit >>> device? I think all the examples in the Handbook are correct, >>> suggesting a transcription error either when you typed the command, >>> or when you copied it to the e-mail. If that's not it, could you be >>> more specific about the failure mode? >>> >>> Robert N M Watson >>> Computer Laboratory >>> University of Cambridge >>> >> sorry >> my problem in buffer-pipe >> # praudit -l /dev/auditpipe | tee file.log >> >> need full load in buffer-pipe (4096 bytes), after data forward to >> STDOUT & file.log >> please help me data forward without buffer-pipe ?? > > Try the --line-buffered option to grep. I've had a lot of luck with > it. Something like the following may work for you: > > # praudit /etc/auditpipe | grep --line-buffered -e "xxx" > > If you just want to pipe to a file, use something like: > > # praudit /etc/auditpipe | grep --line-buffered -e "$" >> file.log > > HTH > ----- > Eric F Crist > Secure Computing Networks > > > thx this not working wite up buffer-pipe to 4096 bytes From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 13:25:42 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F112A16A418 for ; Tue, 21 Aug 2007 13:25:42 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id A2F1A13C459 for ; Tue, 21 Aug 2007 13:25:42 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2687779pyb for ; Tue, 21 Aug 2007 06:25:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=YP6VmeLvsWLsNkQg1mYL0outKatMXEu1VVO4vPPS7umG7qYAhHQvMCtd+BAI8fgkOUYPtk4LZ09ha6STVwEfdmZ0j6TXVeCk20Hv/EYVInYFt4gShkJA4XwTpdFRgO/M7kiHxztEfJKAV4erJuxTMcq4+Tc/b9h/1x/XJc0WIkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=NskBLCHDZv2s1UBP5UQKUiSXPtHIMJGgM1cFdQbtK8VMmRZYCwX1ik1HyL+ck+Ae9+Txv1cXxInaJ3CaJKQnT9Mq/DJEHLNb//l5b9h99C4NwEJbKtoCFAydloXG+4G9f5D+K1jIVuRsX/qGFW+pv+bJwSxmWvpWpWLXaGR5hYU= Received: by 10.35.86.19 with SMTP id o19mr8813956pyl.1187702737151; Tue, 21 Aug 2007 06:25:37 -0700 (PDT) Received: from ?192.168.1.3? ( [209.240.66.157]) by mx.google.com with ESMTPS id f78sm10653236pyh.2007.08.21.06.25.27 (version=SSLv3 cipher=OTHER); Tue, 21 Aug 2007 06:25:28 -0700 (PDT) In-Reply-To: <46CAE6C7.5060706@gmail.com> References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> <46CAE6C7.5060706@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 21 Aug 2007 08:25:21 -0500 To: sam X-Mailer: Apple Mail (2.752.3) Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:25:43 -0000 On Aug 21, 2007, at 8:21 AMAug 21, 2007, sam wrote: > Eric Crist wrote: >> On Aug 21, 2007, at 7:52 AMAug 21, 2007, sam wrote: >> >>> Robert Watson wrote: >>>> >>>> On Mon, 20 Aug 2007, sam wrote: >>>> >>>>> I am installed AUDIT >>>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ >>>>> audit.html >>>>> >>>>> # praudit /etc/auditpipe | grep "xxx" >>>>> & >>>>> # praudit /etc/auditpipe | tee file.log >>>>> & >>>>> # praudit /etc/auditpipe > file.log >>>>> >>>>> this is not work >>>>> please help me >>>> >>>> Vladimir, >>>> >>>> Could you confirm that when you typed the command, you entered >>>> it as above instead of using /dev/auditpipe, the actual name of >>>> the audit device? I think all the examples in the Handbook are >>>> correct, suggesting a transcription error either when you typed >>>> the command, or when you copied it to the e-mail. If that's not >>>> it, could you be more specific about the failure mode? >>>> >>>> Robert N M Watson >>>> Computer Laboratory >>>> University of Cambridge >>>> >>> sorry >>> my problem in buffer-pipe >>> # praudit -l /dev/auditpipe | tee file.log >>> >>> need full load in buffer-pipe (4096 bytes), after data forward to >>> STDOUT & file.log >>> please help me data forward without buffer-pipe ?? >> >> Try the --line-buffered option to grep. I've had a lot of luck >> with it. Something like the following may work for you: >> >> # praudit /etc/auditpipe | grep --line-buffered -e "xxx" >> >> If you just want to pipe to a file, use something like: >> >> # praudit /etc/auditpipe | grep --line-buffered -e "$" >> file.log >> >> HTH >> ----- >> Eric F Crist >> Secure Computing Networks >> >> >> > thx > this not working > wite up buffer-pipe to 4096 bytes > Can I ask what is in the /etc/auditpipe file? ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 13:26:49 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC4EA16A418 for ; Tue, 21 Aug 2007 13:26:49 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id 743F713C480 for ; Tue, 21 Aug 2007 13:26:49 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2688378pyb for ; Tue, 21 Aug 2007 06:26:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=s1kaAkNiS/EVV721vbgOuA7sDiSCfCvUcqRBRgpUUxTPfJ0I66XbKd+tf5nkVDanrolpWHS41WdW/G8/4TF8PtBbV5lYD3gZVrlJUmempMasiiBVAE98mIFIoS8qoS5tMJ1ffAfVTJsJl0AUMadClCucQ+DOwwKbRIDcDCv+XSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=WgdW9BhOd+vwWBAOGC+5eZJuSD5cpkOED6s4NyItvcAKyRXvD+a+ulBg825wpI3ACkXYPEJCPUrLhe91Eh9eEIHt47p8Sk2Sb5S66xergwLXNya7kGIZEAwxCshfarGcxson/NCXu8p8MqIDUFNQzZzQRqEB8I4TB/9UJmC7Zro= Received: by 10.35.41.8 with SMTP id t8mr8791681pyj.1187701111499; Tue, 21 Aug 2007 05:58:31 -0700 (PDT) Received: from ?192.168.1.3? ( [209.240.66.157]) by mx.google.com with ESMTPS id u2sm10278259pyb.2007.08.21.05.58.29 (version=SSLv3 cipher=OTHER); Tue, 21 Aug 2007 05:58:29 -0700 (PDT) In-Reply-To: <46CADFF9.2000700@gmail.com> References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 21 Aug 2007 07:58:22 -0500 To: sam X-Mailer: Apple Mail (2.752.3) Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:26:49 -0000 On Aug 21, 2007, at 7:52 AMAug 21, 2007, sam wrote: > Robert Watson wrote: >> >> On Mon, 20 Aug 2007, sam wrote: >> >>> I am installed AUDIT >>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html >>> >>> # praudit /etc/auditpipe | grep "xxx" >>> & >>> # praudit /etc/auditpipe | tee file.log >>> & >>> # praudit /etc/auditpipe > file.log >>> >>> this is not work >>> please help me >> >> Vladimir, >> >> Could you confirm that when you typed the command, you entered it >> as above instead of using /dev/auditpipe, the actual name of the >> audit device? I think all the examples in the Handbook are >> correct, suggesting a transcription error either when you typed >> the command, or when you copied it to the e-mail. If that's not >> it, could you be more specific about the failure mode? >> >> Robert N M Watson >> Computer Laboratory >> University of Cambridge >> > sorry > my problem in buffer-pipe > # praudit -l /dev/auditpipe | tee file.log > > need full load in buffer-pipe (4096 bytes), after data forward to > STDOUT & file.log > please help me data forward without buffer-pipe ?? Try the --line-buffered option to grep. I've had a lot of luck with it. Something like the following may work for you: # praudit /etc/auditpipe | grep --line-buffered -e "xxx" If you just want to pipe to a file, use something like: # praudit /etc/auditpipe | grep --line-buffered -e "$" >> file.log HTH ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 13:31:12 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6B1B16A41B for ; Tue, 21 Aug 2007 13:31:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6198813C4A7 for ; Tue, 21 Aug 2007 13:31:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 37118483CF; Tue, 21 Aug 2007 09:31:11 -0400 (EDT) Date: Tue, 21 Aug 2007 14:31:11 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Eric Crist In-Reply-To: <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> Message-ID: <20070821142858.C50579@fledge.watson.org> References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> <46CAE6C7.5060706@gmail.com> <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, sam Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:31:12 -0000 On Tue, 21 Aug 2007, Eric Crist wrote: >> thx this not working wite up buffer-pipe to 4096 bytes > > Can I ask what is in the /etc/auditpipe file? I believe what is meant is /dev/auditpipe, which provides a live event stream from the kernel's audit subsystem in FreeBSD 6.2 and later. You can read more about the event audit facility here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html The auditpipe(4) man page provides more detailed information on audit pipes, which, unlike the trail files in /var/audit, provide live streams in a lossy way, and allow applications to push filters into the kernel as to what events they are interested in hearing about. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 13:36:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B8C316A417 for ; Tue, 21 Aug 2007 13:36:06 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 79FE913C46A for ; Tue, 21 Aug 2007 13:36:05 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so948332nfb for ; Tue, 21 Aug 2007 06:36:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=fuw4hVEO87PTwjf53wY/RT3dw1f4873c6vAys/CBo924Htg55GztqqjHZGUPGtq5ZmUg5lddeaVuMNSQgORW2XxARRJOJmOMN8ILp8BFOT99BmaXYHREWT2n2q9wvqD0ga2fqlkOpo7U7wVvtM4DFnWjyfqJ7NUi0hvQVj1AI0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CvPcRM2Cm29BrKwG1w6UzRxFznwZi5N8w1b61diwnx90pA7Lp77sUqukf7SG4/quD/1rq6M7cFPUnzeOGcw8LB04JwuFRGJFvuxwHqe09mLHDEbg6F+0m9xGtHisxQ1ioWfAXZ5JftucZzxnoMoF3X4WwI2BJbZSDXxQe+A1PnI= Received: by 10.86.71.1 with SMTP id t1mr5449992fga.1187703363841; Tue, 21 Aug 2007 06:36:03 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id 22sm11958163fkr.2007.08.21.06.36.03 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Aug 2007 06:36:03 -0700 (PDT) Message-ID: <46CAEA34.40409@gmail.com> Date: Tue, 21 Aug 2007 17:35:48 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Eric Crist References: <46C9528D.8010201@gmail.com> <20070821123943.N50579@fledge.watson.org> <46CADFF9.2000700@gmail.com> <46CAE6C7.5060706@gmail.com> <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> In-Reply-To: <80FA5D23-FA4E-4D1D-87E8-B06E4931C48D@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: work praudit with tee & grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:36:06 -0000 >>> Try the --line-buffered option to grep. I've had a lot of luck with >>> it. Something like the following may work for you: >>> >>> # praudit /etc/auditpipe | grep --line-buffered -e "xxx" >>> >>> If you just want to pipe to a file, use something like: >>> >>> # praudit /etc/auditpipe | grep --line-buffered -e "$" >> file.log >>> >>> HTH >>> ----- >>> Eric F Crist >>> Secure Computing Networks >>> >>> >>> >> thx >> this not working >> wite up buffer-pipe to 4096 bytes >> > > Can I ask what is in the /etc/auditpipe file? > > ----- > Eric F Crist > Secure Computing Networks > > > # ls -l /etc/auditpipe ls: /etc/auditpipe: No such file or directory # ls -l /dev/auditpipe crw------- 1 root wheel 1, 92 Aug 17 11:05 /dev/auditpipe /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 14:34:36 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10DBA16A417 for ; Tue, 21 Aug 2007 14:34:36 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from mail.ki.iif.hu (mail.ki.iif.hu [IPv6:2001:738:0:411::241]) by mx1.freebsd.org (Postfix) with ESMTP id 42D5513C4B4 for ; Tue, 21 Aug 2007 14:34:35 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from localhost (localhost [IPv6:::1]) by mail.ki.iif.hu (Postfix) with ESMTP id 8CE3D84738; Tue, 21 Aug 2007 16:34:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mignon.ki.iif.hu Received: from mail.ki.iif.hu ([127.0.0.1]) by localhost (mignon.ki.iif.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id E4-2u2TMajSF; Tue, 21 Aug 2007 16:34:27 +0200 (CEST) Received: by mail.ki.iif.hu (Postfix, from userid 9002) id 4C94384689; Tue, 21 Aug 2007 16:34:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.ki.iif.hu (Postfix) with ESMTP id 4B58F8454D; Tue, 21 Aug 2007 16:34:27 +0200 (CEST) Date: Tue, 21 Aug 2007 16:34:27 +0200 (CEST) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: Tom Judge In-Reply-To: <46CAC308.7070509@tomjudge.com> Message-ID: <20070821162824.Q40614@mignon.ki.iif.hu> References: <20070821113922.B40614@mignon.ki.iif.hu> <46CAC308.7070509@tomjudge.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 14:34:36 -0000 Hi Tom, Thanks! Very helpful informations! Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning and Projects NIIF/HUNGARNET, HUNGARY Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 On Tue, 21 Aug 2007, Tom Judge wrote: > Mohacsi Janos wrote: >> Dear All, >> What is the recommended way to configure vlan interfaces on >> etherchannel bonded interfaces in a failure mode. I found, that >> etherchannel is supported by ng_fec(4) (but not exactly what I want) and >> also found that there two? way of configuring vlans: vlan(4) and >> ng_vlan(4). But I did not found any description or configuration snippet to >> configure both preferentially via /etc/rc.conf neither in FreeBSD >> 6.x-stable, neither in FreeBSD-7.0-current. What I want to achieve: >> >> [switch1]-----GE---bge0----\ /----vlan100 >> }=={-----vlan101 >> [switch2]-----FE---bge1----/ \----vlan102 >> \---vlan103 >> >> >> I would like to prefer all the vlans via bge0 with GE towards switch1. And >> use only bge1 in case of switch1 or bge0 link failure. >> >> I could use bond on Linux for this purpose. How to achieve similar setup? >> > > > You may want to take a look at if_lagg, it supports EtherChannel (AKA fec), > LACP and failover modes (Which is what you would need). It is available in > RELENG_6 and Current. > > You may wish to take a look at: > > http://nzfug.nz.freebsd.org/nzfug/HandbookUpdates/NetworkAggregation > > rc.conf entries for the example might look like (not tried this): > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1" > > > As for the vlan interfaces we use if_vlan and rc.conf snippets look as > follows: > > cloned_interfaces="vlan1 vlan2" > ifconfig_vlan1="inet x.x.x.x/24 vlan 1 vlandev bge1" > ifconfig_vlan2="inet x.x.x.x/24 vlan 2 vlandev bge1" > > Putting these to together for you use might look like this: > > cloned_interfaces="lagg0 vlan100 vlan101 vlan102 vlan103" > ifconfig_lagg0="laggproto failover laggport bge0 laggport bge1" > ifconfig_vlan100="inet x.x.x.x/24 vlan 100 vlandev lagg0" > ifconfig_vlan101="inet x.x.x.x/24 vlan 101 vlandev lagg0" > ifconfig_vlan102="inet x.x.x.x/24 vlan 102 vlandev lagg0" > ifconfig_vlan103="inet x.x.x.x/24 vlan 103 vlandev lagg0" > > > Tom > From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 15:03:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72C5C16A468 for ; Tue, 21 Aug 2007 15:03:18 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id EA00913C465 for ; Tue, 21 Aug 2007 15:03:17 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2738459pyb for ; Tue, 21 Aug 2007 08:03:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=aeW4DfltjbDuZBWzlc2LhzPEuvgWht0QWl89Rlac3yNKK8CFWaJCbIaes6dFRFAnd6rSBITSDv39BgXJ12eIdKdfSp1e+t8t9RgeJ3TZYIh81qADBsQXXKNNn1B5ANDyfISiTAWi3DjDaPQiEQRsNqNyIdvUccQo4e+I+a+ZFhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qt3EMSjYBpJDdroI88CoGTSAPjap43eXGmQQo/+BlbTJDfcsWlFaMJanUeP5n+NeWGxBDHqcWm14oDCQBM6EraH8XqDipciw1uui5/OyoK2HocG6HYzpzJ83dNI8dkNEKCbxlO+fTTDs+ebZm8Lq3D2AP87957SFgNwHq3pReZ0= Received: by 10.114.136.1 with SMTP id j1mr1196389wad.1187706866903; Tue, 21 Aug 2007 07:34:26 -0700 (PDT) Received: by 10.114.58.6 with HTTP; Tue, 21 Aug 2007 07:34:26 -0700 (PDT) Message-ID: <61b573980708210734x7023782fk9532bfa31c5879f6@mail.gmail.com> Date: Tue, 21 Aug 2007 17:34:26 +0300 From: "Shteryana Shopova" Sender: shteryana@gmail.com To: "Tom Judge" In-Reply-To: <46CAD1AF.4080002@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070821113922.B40614@mignon.ki.iif.hu> <46CAC308.7070509@tomjudge.com> <46CACCA5.3050608@uni-paderborn.de> <46CAD1AF.4080002@tomjudge.com> X-Google-Sender-Auth: 33a947eb51943eee Cc: freebsd-hackers@freebsd.org, Mohacsi Janos , Arne Schwabe Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syrinx@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 15:03:18 -0000 On 8/21/07, Tom Judge wrote: > Arne Schwabe wrote: > > Tom Judge schrieb: > >> Mohacsi Janos wrote: > >>> Dear All, > >>> What is the recommended way to configure vlan interfaces on > >>> etherchannel bonded interfaces in a failure mode. I found, that > >>> etherchannel is supported by ng_fec(4) (but not exactly what I want) > >>> and also found that there two? way of configuring vlans: vlan(4) and > >>> ng_vlan(4). But I did not found any description or configuration > >>> snippet to configure both preferentially via /etc/rc.conf neither in > >>> FreeBSD 6.x-stable, neither in FreeBSD-7.0-current. What I want to > >>> achieve: > >>> > >>> [switch1]-----GE---bge0----\ /----vlan100 > >>> }=={-----vlan101 > >>> [switch2]-----FE---bge1----/ \----vlan102 > >>> \---vlan103 > >>> > >>> > >>> I would like to prefer all the vlans via bge0 with GE towards > >>> switch1. And use only bge1 in case of switch1 or bge0 link failure. > >>> > >>> I could use bond on Linux for this purpose. How to achieve similar > >>> setup? > >>> > >> > >> You may want to take a look at if_lagg, it supports EtherChannel (AKA > >> fec), LACP and failover modes (Which is what you would need). It is > >> available in RELENG_6 and Current. > > If the switches don't support LACP/Fec over two devices use bridge_stp > > to simulate a switche and let spanning-tree do the failover. > > > > Arne > > Spanning tree may not select the GigE connection as the primary > connection and use the FastE connection instead. if_lagg with That is not correct in the default case - STP caluculates the pathcost for a link based on its speed. Also one can always force a better priority for a link using ifconfig(8) on FreeBSD. I'd recommend reading http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bridging.html to start with. Also freebsd-net@ might be a better place for asking networking related questions. :) cheers, Shteryana From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 15:11:45 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97CD916A419 for ; Tue, 21 Aug 2007 15:11:45 +0000 (UTC) (envelope-from cb@severious.net) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.freebsd.org (Postfix) with ESMTP id 81D2613C4B5 for ; Tue, 21 Aug 2007 15:11:45 +0000 (UTC) (envelope-from cb@severious.net) Received: by ion.gank.org (Postfix, from userid 1001) id 28E2E11039; Tue, 21 Aug 2007 10:11:45 -0500 (CDT) Date: Tue, 21 Aug 2007 10:11:38 -0500 From: Craig Boston To: Eric F Crist Message-ID: <20070821151134.GA35752@nowhere> Mail-Followup-To: Craig Boston , Eric F Crist , freebsd-hackers@freebsd.org References: <20070820131218.GA2198@alamar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 15:11:45 -0000 On Mon, Aug 20, 2007 at 05:35:34PM -0500, Eric F Crist wrote: > On Aug 20, 2007, at 8:12 AM, Julian D. Seifert wrote: > >I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5- > >Release. > > At the risk of sounding rude, the 5.x series of FreeBSD is > deprecated. FYI, 5.5 is officially supported until May 31, 2008. See http://www.freebsd.org/security/#adv Only security fixes would go into the 5.5 release branch, however. If you have to run 5.x I'd recommend 5-STABLE as regular bug fixes can be committed there. Craig From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 16:12:26 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DA0816A419 for ; Tue, 21 Aug 2007 16:12:26 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id D008613C4CB for ; Tue, 21 Aug 2007 16:12:25 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so989896nfb for ; Tue, 21 Aug 2007 09:12:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=OQYbJ3HQzM9zX/1vHyweJuYnUX4O+4IZdQSUcTygcioA8JUbDU2UNd3WpqKlAtjemPdzR3jY+Ngt0NtgZdpGL5TJI1nVcA9adbPwQe8dum+wuP2BaBX2gctL51LSLLUa76JIFXjCbcOuo2PrlF9fbHSq45WsCFZ2Y9+fDyUZqDQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=sCMXUxHnlQ4gcQgl83WmcF6kEQawGXt9Hs+XHarBGnqTSAUrZDaSWzag1O9WHIYaDwqEh6A9+O+hQnu5l/lDdmWAdcEUERY+e1i+0xuslu4LjL3q43kulNZetGr+5UyTGR3qNdVMyYtxIxiNltehMWwrOppPF20VJ+ndj5IvGEY= Received: by 10.86.68.16 with SMTP id q16mr5531261fga.1187712743176; Tue, 21 Aug 2007 09:12:23 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id a37sm12274606fkc.2007.08.21.09.12.22 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Aug 2007 09:12:22 -0700 (PDT) Message-ID: <46CB0EBF.9000601@gmail.com> Date: Tue, 21 Aug 2007 20:11:43 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 16:12:26 -0000 Hi, all. i am try runing Enemy Territory: Quake Wars server (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) # uname -rms FreeBSD 6.2-STABLE amd64 # mount | grep linproc linprocfs on /usr/compat/linux/proc (linprocfs, local) # cat run.sh #!/bin/sh cd `dirname $0` export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." exec ./etqwded.x86 "$@" # ./run.sh cannot set up thread-local storage: cannot set up LDT for thread-local storage # truss ./run.sh | less *** getpgrp() = 1047 (0x417) wait4(0xffffffff,0x7fffffffe764,0x2,0x0) = 1050 (0x41a) stat(".",{mode=drwxr-xr-x ,inode=2779536,size=512,blksize=4096}) = 0 (0x0) chdir("/usr/home/games/etqw") = 0 (0x0) execve("./etqwded.x86",,) truss: execution type Linux ELF32 is not supported -- using FreeBSD ELF64: Bad address ktrace(0x1) = 148492288 (0x8d9d000) settimeofday(0x0) = 0 (0x0) access("",149108384) ERR#-2 'Unknown error: -2' open("",O_RDWR,00) ERR#-2 'Unknown error: -2' open("",O_RDWR,00) ERR#-2 'Unknown error: -2' open("",O_RDWR,00) ERR#-2 'Unknown error: -2' open("",O_RDWR,00) ERR#-2 'Unknown error: -2' open("",O_SHLOCK|O_FSYNC|O_EXCL|O_DIRECT|0x8e23000,01) = 4 (0x4) *** please help me etqw-server startup /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 16:53:27 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EE2F16A41B for ; Tue, 21 Aug 2007 16:53:27 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.200.81]) by mx1.freebsd.org (Postfix) with ESMTP id 67C2013C4A8 for ; Tue, 21 Aug 2007 16:53:27 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from discordia (c-75-69-212-227.hsd1.nh.comcast.net[75.69.212.227]) by comcast.net (sccrmhc11) with ESMTP id <2007082116420401100li6hoe>; Tue, 21 Aug 2007 16:42:04 +0000 Received: by discordia (Postfix, from userid 103) id 1E52C1634F6; Tue, 21 Aug 2007 12:42:04 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (unknown [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id 8A3DC1634F6; Tue, 21 Aug 2007 12:41:48 -0400 (EDT) Message-ID: <46CB159F.4030404@FreeBSD.org> Date: Tue, 21 Aug 2007 12:41:03 -0400 From: Coleman Kane Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (X11/20070813) MIME-Version: 1.0 To: ports@FreeBSD.org References: <1761162510.20070729004710@serebryakov.spb.ru> <46ACDB4B.6090707@FreeBSD.org> In-Reply-To: <46ACDB4B.6090707@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, Lev Serebryakov Subject: Re: REQUEST FOR TESTERS: `devel/mingw32-gcc' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 16:53:27 -0000 Coleman Kane wrote: > Lev Serebryakov wrote: >> Hello ports, >> >> Latest versions of `mingw32-binutils' and `mingw32-bin-msvcrt' were >> committed. >> `mingw32-gcc' is on pipeline. >> But it is BIG update: new version is 4.2.0 >> I ask you to test this `almost new' port before commit. >> >> http://lev.serebryakov.spb.ru/download/port-mingw32-gcc-4.2.0.tar.gz >> >> Many thanks to Coleman Kane , who helps me to >> prepare this update. >> > I'd like to know what everyone else's experience with these new > mingw32- ports are. So far I have been building Win32 applications > from my FreeBSD box with these versions quite successfully. I think > that the binutils and GCC are actually newer than the ones currently > shipping with the MinGW32 binary distribution too. > > -- > Coleman Kane > I haven't seen any activity on the above email, and I am curious if: 1) It was missed (and this really does affect people) 2) Nobody cross-compiles using the mingw32-* ports (it is really very handy!) 3) Nobody really cares that mingw32-gcc will move from 3.4.5 --> 4.2.0 Please, if this affects you test out the above port tarball! Otherwise, this will end up going in and not take into account any problems that might arise in your environment. -- Coleman Kane From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 18:53:25 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0444916A421 for ; Tue, 21 Aug 2007 18:53:25 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 9937E13C480 for ; Tue, 21 Aug 2007 18:53:24 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1197673wra for ; Tue, 21 Aug 2007 11:53:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=LVqPpitbrD0WiF5RxuMmAH4GMeau5B4QRRYty6k7/r/WYG7du08UrQXzK3ws8Q6TE0yU4XL5ReWJSR9F/Mg8FaWpaFTLtE2RFXTgRn1f1zSFleO62KgJNQXEZc3NgLS2wxa2gW6XXF/53Itn5Po/gD8g+PpAPUY3uoFtNT7270c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=qE2/3HQLtYYld0u4il8JqDoq6LUU7PPj55WegOMYHblp1dQwkK9y4W2nb3q93h7osyMyJcbFypY91HiOFshA4J0BG1p1W7rWXGz7vRjr2Zt+0rX+/gOrg9RcSSpXCNt9VVNmxwVP68LwE2zjau4TDSHKC51kccRLudS4vRZAUdU= Received: by 10.90.71.3 with SMTP id t3mr2623491aga.1187722403776; Tue, 21 Aug 2007 11:53:23 -0700 (PDT) Received: by 10.90.84.15 with HTTP; Tue, 21 Aug 2007 11:53:23 -0700 (PDT) Message-ID: Date: Tue, 21 Aug 2007 22:53:23 +0400 From: "Yuriy Tsibizov" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Tue, 21 Aug 2007 18:59:01 +0000 Cc: freebsd-emulation@freebsd.org Subject: User-mode Linux (Was: modify syscall nr on-the-fly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 18:53:25 -0000 (replying to myself) 2007/8/21, Yuriy Tsibizov : > 2007/8/20, Kostik Belousov : > > On Sat, Aug 18, 2007 at 02:01:26PM +0400, Yuriy Tsibizov wrote: > > > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > > > i386). > > > > > > User-mode Linux in it's start-up tests tries to modify syscall number (to be > > > called by kernel) on-the-fly > > > (http://fxr.watson.org/fxr/source/arch/um/os-Linux/start_up.c?v=linux-2.6). > > > It forks a child thread that stops > > > (using SIGSTOP), calls getpid() (that will be intercepted by parent thread > > > using PTRACE_SYSCALL) > > > and return some value based on getpid() results. Main thread waits for > > > SIGSTOP in child process and > > > enables PTRACE_SYSCALL (I have some code that implements it. It makes some > > > incompatible changes > > > to PT_SYSCALL that will break FreeBSD applications, but works for Linux > > > apps). When main thread > > > catches SIGTRAP (generated by ptrace) it tries to modify EAX of child thread > > > (with PTRACE_PEEKUSR > > > and PTRACE_POKEUSR) to replace getpid syscall with getppid. > > > > > > is it possible to get updated EAX (and other registers as well) in > > > syscall(...) after ptracestop(...) in PTRACESTOP_SC(...) returns? > > > > > > Hope for your help, > > > > > > Yuriy. > > > > If I understand right what you want, I doubt that existing code would > > allow you to change syscall number in debugger process for debuggee. > > You shall look at the sys/i386/i386/trap.c, syscall() function [adjust > > as needed for other arches]. It calculates callp before doing PTRACESTOP_SC, > > as well as copies the syscall arguments into the kernel address space. > > Yes, I know this. I'm going to recalculate callp after PTRACESTOP_SC. > And, there will be no need to copyin from user space -- all syscalls > parameters are passed in registers (it will be used only for processes > running under Linux emulation). Updated registers are available via *frame. With some hacks (some return codes needed by user-mode Linux are hardcoded into kernel) it loads: Core dump limits : soft - NONE hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...missing Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm Checking PROT_EXEC mmap in /tmp/...OK Checking for the skas3 patch in the host: - /proc/mm... - PTRACE_FAULTINFO... - PTRACE_LDT...UML running in SKAS0 mode Linux version 2.6.22-rc2 (jdike@tp.user-mode-linux.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #342 Wed May 23 11:56:49 EDT 2007 Built 1 zonelists. Total pages: 8128 Kernel command line: root=98:0 PID hash table entries: 128 (order: 7, 512 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 30288k available Mount-cache hash table entries: 512 Checking for host processor cmov support...Yes Checking for host processor xmm support...No openpty failed, errno = 22 openpty failed, errno = 22 aio_thread failed to initialize context, err = 38 2.6 AIO not supported on the host - reverting to 2.4 AIO 2.6 host AIO support not used - falling back to I/O thread NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered Checking host MADV_REMOVE support...OK os_set_fd_async : Failed to fcntl F_SETOWN (or F_SETSIG) fd 6 to pid 1191, errno = 22 Failed to get IRQ for management console os_set_fd_async : Failed to fcntl F_SETOWN (or F_SETSIG) fd 8 to pid 1191, errno = 22 um_request_irq failed - errno = 22 Host TLS support detected Detected host type: i386 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Initialized stdio console driver Console initialized on /dev/tty0 Initializing software serial port version 1 Couldn't stat "root_fs" : err = 2 Failed to initialize ubd device 0 :Couldn't determine size of device's file VFS: Cannot open root device "98:0" or unknown-block(98,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0) EIP: 0033:[<28093021>] CPU: 0 Not tainted ESP: 003b:28068fc4 EFLAGS: 00000246 Not tainted EAX: 00000000 EBX: 000004aa ECX: 00000013 EDX: 000004aa ESI: 000004a7 EDI: 00000000 EBP: 28068fd8 DS: 003b ES: 003b 087fce64: [<08069628>] show_regs+0xb4/0xb9 087fce90: [<08057ca8>] panic_exit+0x25/0x3f 087fcea4: [<08078720>] notifier_call_chain+0x21/0x46 087fcec4: [<080787bb>] __atomic_notifier_call_chain+0x17/0x19 087fcee0: [<080787d2>] atomic_notifier_call_chain+0x15/0x17 087fcefc: [<0806daba>] panic+0x52/0xdd 087fcf1c: [<08049af9>] mount_block_root+0x100/0x116 087fcf70: [<08049b5b>] mount_root+0x4c/0x54 087fcf94: [<08049c41>] prepare_namespace+0xde/0x10a 087fcfa4: [<08049827>] kernel_init+0x79/0x85 087fcfb4: [<08063a39>] run_kernel_thread+0x37/0x42 087fcfe0: [<08058095>] new_thread_handler+0x57/0x7e 087fcffc: [] 0xa55a5a5a I'll need two more flags in p_stops to add two optios: - respect PTRACE_(OLD)SETOPTIONS PTRACE_O_TRACESYSGOOD (generate SIGTRAP | 0x80 instead of plain SIGTRAP) - use Linux PTRACE_SYSCALL conventions (clear S_PT_SCE and S_PT_SCX in PTRACESTOP_SC) to make it more than just a set of hacks to run single program. PTRACE_(PEEK|POKE)USR seems to need small rewrite too. Yuriy. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 22:21:53 2007 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D65F616A41A for ; Tue, 21 Aug 2007 22:21:53 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from mojo.ru (mojo.ru [84.252.152.63]) by mx1.freebsd.org (Postfix) with ESMTP id 4955513C442 for ; Tue, 21 Aug 2007 22:21:53 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from [192.168.0.16] (nc-76-4-28-21.dhcp.embarqhsd.net [76.4.28.21]) (authenticated bits=0) by mojo.ru (8.12.11.20060308/8.12.10) with ESMTP id l7LM8iiC021991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Aug 2007 02:08:47 +0400 Message-ID: <46CB625D.7040505@FreeBSD.org> Date: Tue, 21 Aug 2007 18:08:29 -0400 From: "Constantine A. Murenin" Organization: Google Summer of Code 2007 Student @ The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-gb, en-gb-oed, en, en-us, ru, ru-ru, ru-su MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "Constantine A. Murenin" Subject: device hints for isa modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 22:21:53 -0000 Dear freebsd-hackers@, Is there a way to statically compile device hints into an isa(4) module? From what it looks, there is no place in the source tree to put the hints for isa(4) modules -- you either have to place default hints into GENERIC.hints, implying that the driver will be compiled into a GENERIC kernel, or place it into NOTES. In the former case, having a module is then useless; in the latter, the module simply ain't going to work. This is complicated further by the fact that changing isa hints after the boot has no effect on isa driver modules that use standard methods of resource acquisition. (Specifically, notice that kenv(1) won't give you an error message when you try to create a new hint or update an existing one, and the new or updated hint will in fact be visible back from kenv(1), but it won't have any effect on bus_alloc_resource(9) calls, thus modules depending on isa hints will fail to find their hardware.) I'm specifically looking for a solution to a usable module for my lm(4) driver in soc2007/cnst-sensors perforce branch... Cheers, Constantine. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 23:36:32 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D20F416A418 for ; Tue, 21 Aug 2007 23:36:32 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb5:7e66]) by mx1.freebsd.org (Postfix) with ESMTP id 1777B13C481 for ; Tue, 21 Aug 2007 23:36:31 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l7LNaLj1032390; Wed, 22 Aug 2007 01:36:21 +0200 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Wed, 22 Aug 2007 01:36:20 +0200 User-Agent: KMail/1.9.7 References: <46CB0EBF.9000601@gmail.com> In-Reply-To: <46CB0EBF.9000601@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708220136.20703.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: sam Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 23:36:32 -0000 On Tuesday 21 August 2007, sam wrote: > Hi, all. > > i am try runing Enemy Territory: Quake Wars server > (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) > > # uname -rms > FreeBSD 6.2-STABLE amd64 > > # mount | grep linproc > linprocfs on /usr/compat/linux/proc (linprocfs, local) > > # cat run.sh > #!/bin/sh > cd `dirname $0` > export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." > exec ./etqwded.x86 "$@" > > # ./run.sh > cannot set up thread-local storage: cannot set up LDT for thread-local > storage TLS for Linux programs only work on i386 or -current amd64, so either downgrade to 32bits FreeBSD or upgrade to FreeBSD 7, or find a version of the program that doesn't use TLS (non threaded version). Hope this helps, Pieter de Goeje From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 07:07:17 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F368816A418 for ; Wed, 22 Aug 2007 07:07:16 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 853ED13C4A7 for ; Wed, 22 Aug 2007 07:07:16 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so66011nfb for ; Wed, 22 Aug 2007 00:07:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=W3TNix//MyJrC8gv8PEWBR0YExpvzxCqs8R9kAVqLOFUpMiQVnLavGCVaJ4Q+h9AA1fL3Hw1jFTMAWqQw8yKT68lhIOA+NxPHwDxCh4IXKXFQ34U7lQcq9jU1zPGgnGYad7+GfywBhjZuPEm/qWkwyZ6KpJMGDTszW/vPTa6F10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=O2/98tTxmvAa98DFTOhhLZvoESsDHAap1qhpumJHFk3egWeOf9tYuCM84zPDrrZ30Hx61GsINmsyOoPEp4YaeVE7J0nzZuSEXwEcvfUjV4AM8dJPiHhkxQnDLwB9DMwKkRzlrW3yeK/E0fFmUi2+y3OUeeRd6lSfkWgx4jpLa9U= Received: by 10.86.1.1 with SMTP id 1mr290540fga.1187766435220; Wed, 22 Aug 2007 00:07:15 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id d13sm559720fka.2007.08.22.00.07.09 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Aug 2007 00:07:10 -0700 (PDT) Message-ID: <46CBE096.90805@gmail.com> Date: Wed, 22 Aug 2007 11:07:02 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: rwatson@FreeBSD.org References: <46C55191.2050205@gmail.com> <20070821145603.L50579@fledge.watson.org> <46CAF217.7040204@gmail.com> <20070821151108.Y53914@fledge.watson.org> <46CAF4E9.2030700@gmail.com> <20070821152327.R53914@fledge.watson.org> In-Reply-To: <20070821152327.R53914@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, trustedbsd-audit@FreeBSD.org, freebsd-audit@freebsd.org Subject: Re: praudit parse with gnu grep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 07:07:17 -0000 Robert Watson wrote: > > On Tue, 21 Aug 2007, sam wrote: > >>>>>> # praudit /etc/auditpipe | grep "bla bla bla" & # praudit >>>>>> /etc/auditpipe | tee file.log >>>>>> >>>>>> this is not work please help me >>>>> >>>>> This thread is also on freebsd-hackers, but just to follow up here >>>>> as well for the purposes of the archives: >>>>> >>>>> - It's /dev/auditpipe not /etc/auditpipe >>>>> - If you're using grep, try --line-buffered >>>>> >>>> --line-buffered is not helped to me >>> >>> When you run praudit on /dev/auditpipe directly, do you get the >>> records you expect? >> >> yes > > So what are you getting or not getting that is unexpected when you run > with grep? Have you tried forcing lots of records of the type you > would be matching to be created to make sure the buffers are flushing > from praudit/grep/etc? The input/output buffers in stdio mean that > you may not see output immediately, the buffer has to fill enough to > trigger an I/O before that will happen. > > We could add an fflush call to praudit's output, which would flush the > I/O out the file descriptor, but that wouldn't necessarily solve > grep's buffering. The attached patch might do this. > > Robert N M Watson > Computer Laboratory > University of Cambridge > > Index: praudit.c > =================================================================== > RCS file: /data/fbsd-cvs/ncvs/src/contrib/openbsm/bin/praudit/praudit.c,v > retrieving revision 1.1.1.3 > diff -u -r1.1.1.3 praudit.c > --- praudit.c 16 Apr 2007 15:36:57 -0000 1.1.1.3 > +++ praudit.c 21 Aug 2007 14:26:43 -0000 > @@ -107,6 +107,7 @@ > free(buf); > if (oneline) > printf("\n"); > + fflush(stdout); > } > return (0); > } > my big thanks this patch is working /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 08:10:27 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19E1A16A417 for ; Wed, 22 Aug 2007 08:10:27 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C7A6113C442 for ; Wed, 22 Aug 2007 08:10:26 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 343958C1648; Wed, 22 Aug 2007 10:10:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id co36jLdYsq+E; Wed, 22 Aug 2007 10:10:23 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 0294B8C1649; Wed, 22 Aug 2007 10:10:23 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7M8AKeA016943; Wed, 22 Aug 2007 10:10:20 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 22 Aug 2007 10:10:20 +0200 From: Roman Divacky To: Pieter de Goeje Message-ID: <20070822081020.GA16860@freebsd.org> References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708220136.20703.pieter@degoeje.nl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org, sam Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 08:10:27 -0000 On Wed, Aug 22, 2007 at 01:36:20AM +0200, Pieter de Goeje wrote: > On Tuesday 21 August 2007, sam wrote: > > Hi, all. > > > > i am try runing Enemy Territory: Quake Wars server > > (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) > > > > # uname -rms > > FreeBSD 6.2-STABLE amd64 > > > > # mount | grep linproc > > linprocfs on /usr/compat/linux/proc (linprocfs, local) > > > > # cat run.sh > > #!/bin/sh > > cd `dirname $0` > > export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." > > exec ./etqwded.x86 "$@" > > > > # ./run.sh > > cannot set up thread-local storage: cannot set up LDT for thread-local > > storage > TLS for Linux programs only work on i386 or -current amd64, so either > downgrade to 32bits FreeBSD or upgrade to FreeBSD 7, or find a version of the > program that doesn't use TLS (non threaded version). I think the program is trying to set up "TLS" using user LDT. not the GDT segment TLS Linux 2.6 uses. ie. upgrading to 7.x etc. wont help From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 08:13:56 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 286A716A418 for ; Wed, 22 Aug 2007 08:13:56 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id 66AF313C45B for ; Wed, 22 Aug 2007 08:13:55 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so106877mue for ; Wed, 22 Aug 2007 01:13:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=iiIhGH5AK18FZRQ2r0VBgjs7ZCJ3ralQZz73yLD3lX3O9oCN0fA7tqCtW5hT8Qv2irqiGBDeQopK5USx1oWGMk+t4a93JN3ZHFtuSFG4rywRXNILrIR8I7qOTNQk8xMbM/M7j8nqb4Hy4ke6sagnchCvObXvgRnyhGO9ilTugFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=jvpz6kB+gkfsoZ1rzNsGziifmPdChlzS/aQf6lX32MfRp1w6eF15QUnBt4drJqfM9OgJdZVlvvwT0MjIEPdbZ2mB0tn9gSxycucJsaA57+gy1NAKwpws/uD+up73z4F5Gz+ATLc8Y/wFSQ8tKCT+rGCnJCwf5UdDODkaq+GUuvM= Received: by 10.86.1.1 with SMTP id 1mr331506fga.1187770432640; Wed, 22 Aug 2007 01:13:52 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id f31sm677234fkf.2007.08.22.01.13.51 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Aug 2007 01:13:52 -0700 (PDT) Message-ID: <46CBF03C.4060301@gmail.com> Date: Wed, 22 Aug 2007 12:13:48 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Roman Divacky References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> In-Reply-To: <20070822081020.GA16860@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pieter de Goeje , freebsd-hackers@freebsd.org Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 08:13:56 -0000 Roman Divacky wrote: > On Wed, Aug 22, 2007 at 01:36:20AM +0200, Pieter de Goeje wrote: > >> On Tuesday 21 August 2007, sam wrote: >> >>> Hi, all. >>> >>> i am try runing Enemy Territory: Quake Wars server >>> (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) >>> >>> # uname -rms >>> FreeBSD 6.2-STABLE amd64 >>> >>> # mount | grep linproc >>> linprocfs on /usr/compat/linux/proc (linprocfs, local) >>> >>> # cat run.sh >>> #!/bin/sh >>> cd `dirname $0` >>> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." >>> exec ./etqwded.x86 "$@" >>> >>> # ./run.sh >>> cannot set up thread-local storage: cannot set up LDT for thread-local >>> storage >>> >> TLS for Linux programs only work on i386 or -current amd64, so either >> downgrade to 32bits FreeBSD or upgrade to FreeBSD 7, or find a version of the >> program that doesn't use TLS (non threaded version). >> > > I think the program is trying to set up "TLS" using user LDT. not the GDT segment > TLS Linux 2.6 uses. ie. upgrading to 7.x etc. wont help > > quote message from etqw doc: Minimum system requirements: ---------------------------- - GNU/Linux x86 system x64/amd64 systems supported through 32 bit emulation layer only BSD systems through Linux emulation - Pentium(r) 4 2.0 GHz or Athlon(tm) XP 2000+ processor - 512MB RAM - Kernel 2.6, configured for 1000Hz tick and other low latency settings From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 10:20:27 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BE3A16A480; Wed, 22 Aug 2007 10:20:27 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:ef56]) by mx1.freebsd.org (Postfix) with ESMTP id 67A8813C442; Wed, 22 Aug 2007 10:20:25 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l7MAKJ1R027772; Wed, 22 Aug 2007 12:20:19 +0200 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Wed, 22 Aug 2007 12:20:17 +0200 User-Agent: KMail/1.9.7 References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> In-Reply-To: <20070822081020.GA16860@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708221220.18721.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Roman Divacky , sam Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 10:20:27 -0000 On Wednesday 22 August 2007, Roman Divacky wrote: > On Wed, Aug 22, 2007 at 01:36:20AM +0200, Pieter de Goeje wrote: > > On Tuesday 21 August 2007, sam wrote: > > > Hi, all. > > > > > > i am try runing Enemy Territory: Quake Wars server > > > (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) > > > > > > # uname -rms > > > FreeBSD 6.2-STABLE amd64 > > > > > > # mount | grep linproc > > > linprocfs on /usr/compat/linux/proc (linprocfs, local) > > > > > > # cat run.sh > > > #!/bin/sh > > > cd `dirname $0` > > > export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." > > > exec ./etqwded.x86 "$@" > > > > > > # ./run.sh > > > cannot set up thread-local storage: cannot set up LDT for thread-local > > > storage > > > > TLS for Linux programs only work on i386 or -current amd64, so either > > downgrade to 32bits FreeBSD or upgrade to FreeBSD 7, or find a version of > > the program that doesn't use TLS (non threaded version). > > I think the program is trying to set up "TLS" using user LDT. not the GDT > segment TLS Linux 2.6 uses. ie. upgrading to 7.x etc. wont help Hmm, I have a Linux binary here that spews out exactly the same error on 6.2-amd64 but works on 7.0-amd64. So that let me to believe 'etqwded.x86' might run on 7. Pieter de Goeje From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 10:29:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FC9916A417 for ; Wed, 22 Aug 2007 10:29:08 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 1E22F13C483 for ; Wed, 22 Aug 2007 10:29:07 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l7MAT6KF001996; Wed, 22 Aug 2007 20:29:06 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l7MAT6Z3001995; Wed, 22 Aug 2007 20:29:06 +1000 (EST) (envelope-from peter) Date: Wed, 22 Aug 2007 20:29:06 +1000 From: Peter Jeremy To: sam Message-ID: <20070822102906.GB1181@turion.vk2pj.dyndns.org> References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <46CBF03C.4060301@gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 10:29:08 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Aug-22 12:13:48 +0400, sam wrote: >Minimum system requirements: =2E.. >- Kernel 2.6, configured for 1000Hz tick and other low latency settings FreeBSD currently only emulates kernel 2.4. Kernel 2.6 is a SoC project. --=20 Peter Jeremy --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGzA/y/opHv/APuIcRAj1JAKC6yM0+W+HcJvri/fp7D3iKl/EuYQCgpLDA knp+kijeqACvPZGMpPf7OC0= =+pH7 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 09:42:15 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED17216A469 for ; Wed, 22 Aug 2007 09:42:15 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.freebsd.org (Postfix) with ESMTP id A907F13C48E for ; Wed, 22 Aug 2007 09:42:15 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so109640wxd for ; Wed, 22 Aug 2007 02:42:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ENKNQevGb8ZVMZy0E827bMsVhK3Km3XL7W1osJZmYLuJsvJFuoe2oxwgpvotnQNX+YAQRIOk81p+qV3S5eoyUVKSMaHxfoN6WAIgYqHZTue6eH/t3jqCGJIv/57/m5FJbtwbYQBTSMhUKIedGRA/kA4rMpNLqBP4SEVUUfDc/xQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t1/qgTlQzk9DZDXe+qv9k6g6iPC5cz2oOMISMLf1DrGzQgMhFyB/y+sm4XBXJM8dYkpxgHrJnmHn0mCPG4AocX0RV9MTkNHBG3konpLev6FKF9gI4i+bleYJSsTieth49Bt80xVnB7TsnzggUJLV64RBISLpZHKfc+V6fzlibpQ= Received: by 10.90.83.14 with SMTP id g14mr4030730agb.1187775733229; Wed, 22 Aug 2007 02:42:13 -0700 (PDT) Received: by 10.90.84.15 with HTTP; Wed, 22 Aug 2007 02:42:13 -0700 (PDT) Message-ID: Date: Wed, 22 Aug 2007 13:42:13 +0400 From: "Yuriy Tsibizov" To: freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Mailman-Approved-At: Wed, 22 Aug 2007 11:26:37 +0000 Cc: freebsd-emulation@freebsd.org Subject: Re: User-mode Linux (Was: modify syscall nr on-the-fly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 09:42:16 -0000 > 2007/8/21, Yuriy Tsibizov : > > 2007/8/20, Kostik Belousov : > > > On Sat, Aug 18, 2007 at 02:01:26PM +0400, Yuriy Tsibizov wrote: > > > > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > > > > i386). > > > > > > > > User-mode Linux in it's start-up tests tries to modify syscall number (to be > > > > called by kernel) on-the-fly > > > > (http://fxr.watson.org/fxr/source/arch/um/os-Linux/start_up.c?v=linux-2.6). > > > > It forks a child thread that stops > > > > (using SIGSTOP), calls getpid() (that will be intercepted by parent thread > > > > using PTRACE_SYSCALL) > > > > and return some value based on getpid() results. Main thread waits for > > > > SIGSTOP in child process and > > > > enables PTRACE_SYSCALL (I have some code that implements it. It makes some > > > > incompatible changes > > > > to PT_SYSCALL that will break FreeBSD applications, but works for Linux > > > > apps). When main thread > > > > catches SIGTRAP (generated by ptrace) it tries to modify EAX of child thread > > > > (with PTRACE_PEEKUSR > > > > and PTRACE_POKEUSR) to replace getpid syscall with getppid. > > > > > > > > is it possible to get updated EAX (and other registers as well) in > > > > syscall(...) after ptracestop(...) in PTRACESTOP_SC(...) returns? > > > > > > > > Hope for your help, > > > > > > > > Yuriy. > > > > > > If I understand right what you want, I doubt that existing code would > > > allow you to change syscall number in debugger process for debuggee. > > > You shall look at the sys/i386/i386/trap.c, syscall() function [adjust > > > as needed for other arches]. It calculates callp before doing PTRACESTOP_SC, > > > as well as copies the syscall arguments into the kernel address space. > > > > Yes, I know this. I'm going to recalculate callp after PTRACESTOP_SC. > > And, there will be no need to copyin from user space -- all syscalls > > parameters are passed in registers (it will be used only for processes > > running under Linux emulation). > Updated registers are available via *frame. > > With some hacks (some return codes needed by user-mode Linux are > hardcoded into kernel) it loads: [...] > I'll need two more flags in p_stops to add two optios: > - respect PTRACE_(OLD)SETOPTIONS PTRACE_O_TRACESYSGOOD (generate > SIGTRAP | 0x80 instead of plain SIGTRAP) > - use Linux PTRACE_SYSCALL conventions (clear S_PT_SCE and S_PT_SCX in > PTRACESTOP_SC) > to make it more than just a set of hacks to run single program. > > PTRACE_(PEEK|POKE)USR seems to need small rewrite too. patch (against -CURRENT) is available on http://chibis.persons.gfk.ru/linux/ptrace.diff You will need to rebuild both kernel an linux module. Yuriy. From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 10:55:12 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF85A16A417 for ; Wed, 22 Aug 2007 10:55:12 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 878A113C4EA for ; Wed, 22 Aug 2007 10:55:12 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (localhost [127.0.0.1]) by blah.sun-fish.com (Postfix) with ESMTP id 2EA491B10ED2; Wed, 22 Aug 2007 12:38:50 +0200 (CEST) Received: from hater.cmotd.com (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 2B82F1B10E0D; Wed, 22 Aug 2007 12:38:50 +0200 (CEST) Message-ID: <46CC123A.3090406@moneybookers.com> Date: Wed, 22 Aug 2007 13:38:50 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.4pre (X11/20070711) MIME-Version: 1.0 To: Peter Jeremy References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> <20070822102906.GB1181@turion.vk2pj.dyndns.org> In-Reply-To: <20070822102906.GB1181@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on BLAH X-Mailman-Approved-At: Wed, 22 Aug 2007 11:26:37 +0000 Cc: freebsd-hackers@freebsd.org, sam Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 10:55:12 -0000 Hello, Peter Jeremy wrote: > On 2007-Aug-22 12:13:48 +0400, sam wrote: > >> Minimum system requirements: >> > ... > >> - Kernel 2.6, configured for 1000Hz tick and other low latency settings >> > > FreeBSD currently only emulates kernel 2.4. Kernel 2.6 is a SoC project. > > Take a look at /usr/ports/UPDATING : 20070327: AFFECTS: users of emulators/linux_base-fc6 AUTHOR: bsam@FreeBSD.org ATTENTION! The port is experimental for now. Use it at your own risk. This port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16. So it's not just a SoC project :) -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 14:22:15 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94DB416A469 for ; Wed, 22 Aug 2007 14:22:15 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id 6D63613C4A8 for ; Wed, 22 Aug 2007 14:22:15 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so118241rvb for ; Wed, 22 Aug 2007 07:22:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=esQ2m2pvOYhr84Xdkg7kTCXbM8jFPh3Zlry4w2bKKKMXU2lgogP/CaNzB8R0c7mlFaaV3+UKmzjnYKiyPbVkPw3EO3kJKb65pw0vAmJAMEni5UvsgBiLGOCdprOEsWQXNuBq1cnextPqm/2JB7bPztIuUhKnyitLF9nmiChy6zI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fVSPPkKJ70zSb7xNw7i9Y4oKgWgHdmt1ui0xeyTLAgHC2ltnnvueh+bzrY9VO5L7G47bhGQxhbpnxWwJVahKTLilBl8b88PNVrA8WxoIeokt8wqlYDLYUz7+eD1a7WZAGbXxISzWMWRIe3oXNLf9uRFNnWIh15JGZ/bfaJC8Bn4= Received: by 10.141.128.19 with SMTP id f19mr313303rvn.1187792535123; Wed, 22 Aug 2007 07:22:15 -0700 (PDT) Received: by 10.141.115.2 with HTTP; Wed, 22 Aug 2007 07:22:15 -0700 (PDT) Message-ID: <653e03e70708220722r21613409y33ecb45483523ebc@mail.gmail.com> Date: Wed, 22 Aug 2007 07:22:15 -0700 From: "shyam burkule" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: patches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 14:22:15 -0000 hellow can someone send me patch implementating page replacement algorithm in freeBSD Thanks Shyam From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 14:39:59 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A23CB16A469 for ; Wed, 22 Aug 2007 14:39:59 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id 3E9AA13C46A for ; Wed, 22 Aug 2007 14:39:59 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so121585rvb for ; Wed, 22 Aug 2007 07:39:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=ucrxYP1CnGP0Q01fiVdfn9zjSf/xrp2xZiaADsYGp/aKsVQjRaGHj8WRd6bAAo7sqXlcsA+Y4w4suqTI58y9PT1gXhPOPGPua8BHRtb36eaV3lfQ+1SKEwqBiujqmDDZZyoY74lHwpJL5uoxCQasc+i3cz5IGLWg3GXe6qHg1QA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=MJ2x+7mH+y3alIXCwDuhB9NQHLaDTZvl8uZa3jX/D2K083SoellbB6HMQbaeBXkiidaDRNxC29zBZWwSEIfRuUl4Jxqk6G6QaHMXSorGJz1j6OluyPU5fZYmyC7bZ2qVyz57+sOyEY/3KdgzNujTF1LxVQAkLHWAdoA1i0I6cRM= Received: by 10.141.210.5 with SMTP id m5mr289954rvq.1187791910482; Wed, 22 Aug 2007 07:11:50 -0700 (PDT) Received: by 10.141.115.2 with HTTP; Wed, 22 Aug 2007 07:11:50 -0700 (PDT) Message-ID: <653e03e70708220711n7a794d49jd78c9d5d35dc2d7d@mail.gmail.com> Date: Wed, 22 Aug 2007 07:11:50 -0700 From: "shyam burkule" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: freeBSD patches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 14:39:59 -0000 hellow Please tell me where can i get new freeBSD patches Thanks Shyam From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 14:46:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D053F16A41A for ; Wed, 22 Aug 2007 14:46:40 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from mail.ki.iif.hu (mail.ki.iif.hu [IPv6:2001:738:0:411::241]) by mx1.freebsd.org (Postfix) with ESMTP id 14CD413C45A for ; Wed, 22 Aug 2007 14:46:40 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from localhost (localhost [IPv6:::1]) by mail.ki.iif.hu (Postfix) with ESMTP id 50079847E5; Wed, 22 Aug 2007 16:46:38 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mignon.ki.iif.hu Received: from mail.ki.iif.hu ([127.0.0.1]) by localhost (mignon.ki.iif.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2qQWWbw0Hp5m; Wed, 22 Aug 2007 16:46:35 +0200 (CEST) Received: by mail.ki.iif.hu (Postfix, from userid 9002) id 5921B847E0; Wed, 22 Aug 2007 16:46:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.ki.iif.hu (Postfix) with ESMTP id 57F3884764; Wed, 22 Aug 2007 16:46:35 +0200 (CEST) Date: Wed, 22 Aug 2007 16:46:35 +0200 (CEST) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: shyam burkule In-Reply-To: <653e03e70708220711n7a794d49jd78c9d5d35dc2d7d@mail.gmail.com> Message-ID: <20070822164450.U40614@mignon.ki.iif.hu> References: <653e03e70708220711n7a794d49jd78c9d5d35dc2d7d@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: freeBSD patches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 14:46:40 -0000 Hi! Have a look at Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors.html Regards, Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning and Projects NIIF/HUNGARNET, HUNGARY Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 On Wed, 22 Aug 2007, shyam burkule wrote: > hellow > Please tell me where can i get new freeBSD patches > > Thanks > Shyam > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 14:54:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02F5516A419 for ; Wed, 22 Aug 2007 14:54:20 +0000 (UTC) (envelope-from silby@silby.com) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id BE9B513C467 for ; Wed, 22 Aug 2007 14:54:19 +0000 (UTC) (envelope-from silby@silby.com) Received: (qmail 98656 invoked from network); 22 Aug 2007 14:27:38 -0000 Received: from 209.68.2.70 (HELO localhost) (209.68.2.70) by relay00.pair.com with SMTP; 22 Aug 2007 14:27:38 -0000 X-pair-Authenticated: 209.68.2.70 Date: Wed, 22 Aug 2007 09:27:36 -0500 (CDT) From: Mike Silbersack To: shyam burkule In-Reply-To: <653e03e70708220722r21613409y33ecb45483523ebc@mail.gmail.com> Message-ID: <20070822092716.P18538@odysseus.silby.com> References: <653e03e70708220722r21613409y33ecb45483523ebc@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: patches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 14:54:20 -0000 On Wed, 22 Aug 2007, shyam burkule wrote: > hellow > can someone send me patch implementating page replacement algorithm in > freeBSD > > Thanks > Shyam No. Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 20:50:32 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67FF316A417 for ; Wed, 22 Aug 2007 20:50:32 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 1EDDE13C465 for ; Wed, 22 Aug 2007 20:50:31 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 1A1BC8C16D5; Wed, 22 Aug 2007 22:50:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GoRY+BDcnw5t; Wed, 22 Aug 2007 22:50:29 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 0AE638C156B; Wed, 22 Aug 2007 22:50:29 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7MKoRmU035705; Wed, 22 Aug 2007 22:50:27 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 22 Aug 2007 22:50:27 +0200 From: Roman Divacky To: Stefan Lambrev Message-ID: <20070822205027.GA35647@freebsd.org> References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> <20070822102906.GB1181@turion.vk2pj.dyndns.org> <46CC123A.3090406@moneybookers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46CC123A.3090406@moneybookers.com> User-Agent: Mutt/1.4.2.3i Cc: sam , freebsd-hackers@freebsd.org Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 20:50:32 -0000 > Take a look at /usr/ports/UPDATING : 20070327: > AFFECTS: users of emulators/linux_base-fc6 > AUTHOR: bsam@FreeBSD.org > > ATTENTION! The port is experimental for now. Use it at your own risk. This > port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16. > > So it's not just a SoC project :) well. actually it was implemented during a SoC so it can be considered kind of a SoC project ;) anyway, the current status is that 7.0R will contain roughly working 2.6 emulation while 8-current will have fine working 2.6 emulation turned on default. so things are slowly improving ;) roman From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 21:10:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC4A16A417; Wed, 22 Aug 2007 21:10:50 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 5858813C46A; Wed, 22 Aug 2007 21:10:50 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 536E78C16DB; Wed, 22 Aug 2007 23:10:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sfQfqnuPJPPY; Wed, 22 Aug 2007 23:10:47 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E11AF8C1623; Wed, 22 Aug 2007 23:10:47 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7MLAlR2036219; Wed, 22 Aug 2007 23:10:47 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 22 Aug 2007 23:10:47 +0200 From: Roman Divacky To: Yuriy Tsibizov Message-ID: <20070822211047.GA35783@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: User-mode Linux (Was: modify syscall nr on-the-fly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 21:10:51 -0000 here is a little review of mine... just little suggestions. Index: i386/i386/trap.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/trap.c,v retrieving revision 1.307 diff -u -r1.307 trap.c --- i386/i386/trap.c 26 Jul 2007 15:32:55 -0000 1.307 +++ i386/i386/trap.c 22 Aug 2007 08:53:19 -0000 @@ -1004,6 +1004,32 @@ PTRACESTOP_SC(p, td, S_PT_SCE); + if (__predict_false(p->p_sysent->sv_name[0]=='L')) { please use __predict_true(p->p_sysent != &elf_linux_sysvec) + if (code != frame->tf_eax) { + printf("linux sysctl patched: code %d return eax %d\n", code, frame->tf_eax); + /* retry */ + code = frame->tf_eax; + + if (p->p_sysent->sv_prepsyscall) + /* + * The prep code is MP aware. + */ + (*p->p_sysent->sv_prepsyscall)(frame, args, &code, ¶ms); + /* else should always be null */ + + if (p->p_sysent->sv_mask) + code &= p->p_sysent->sv_mask; the sv_mask should be removed.. dont use it in your code. its entirely pointless when dealing with Linux binaries + if (code >= p->p_sysent->sv_size) + callp = &p->p_sysent->sv_table[0]; + else + callp = &p->p_sysent->sv_table[code]; + + narg = callp->sy_narg; + /* retry ends */ + } + } + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args); AUDIT_SYSCALL_EXIT(error, td); Index: i386/linux/linux_ptrace.c =================================================================== RCS file: /home/ncvs/src/sys/i386/linux/linux_ptrace.c,v retrieving revision 1.17 diff -u -r1.17 linux_ptrace.c --- i386/linux/linux_ptrace.c 22 Feb 2006 18:57:49 -0000 1.17 +++ i386/linux/linux_ptrace.c 22 Aug 2007 09:27:01 -0000 @@ -78,6 +78,7 @@ #define PTRACE_SETFPXREGS 19 #define PTRACE_SETOPTIONS 21 +#define PTRACE_O_TRACESYSGOOD 0x00000001 /* * Linux keeps debug registers at the following @@ -95,6 +96,10 @@ return ((signum == SIGSTOP)? 0 : signum); } +struct linux_pt_lreg { + l_long reg[19]; +}; + struct linux_pt_reg { l_long ebx; l_long ecx; @@ -103,17 +108,17 @@ l_long edi; l_long ebp; l_long eax; - l_int xds; - l_int xes; - l_int xfs; - l_int xgs; + l_long xds; + l_long xes; + l_long xfs; + l_long xgs; l_long orig_eax; l_long eip; - l_int xcs; + l_long xcs; l_long eflags; l_long esp; - l_int xss; -}; + l_long xss; +} __packed; why is this necessary? how does it affect amd64 linux32 emulator? /* * Translate i386 ptrace registers between Linux and FreeBSD formats. @@ -247,6 +252,7 @@ struct linux_pt_reg reg; struct linux_pt_fpreg fpreg; struct linux_pt_fpxreg fpxreg; + struct linux_pt_lreg lreg; } r; union { struct reg bsd_reg; @@ -429,20 +435,21 @@ * as necessary. */ if (uap->addr < sizeof(struct linux_pt_reg)) { + if (uap->addr == (11 << 2)) /* orig_eax */ + uap->addr = (6 << 2); /* eax */ + error = kern_ptrace(td, PT_GETREGS, pid, &u.bsd_reg, 0); if (error != 0) break; map_regs_to_linux(&u.bsd_reg, &r.reg); if (req == PTRACE_PEEKUSR) { - error = copyout((char *)&r.reg + uap->addr, - (void *)uap->data, sizeof(l_int)); + error = copyout((l_long*)(&r.lreg.reg[uap->addr>>2]), + (void *)uap->data, sizeof(l_long)); break; } - *(l_int *)((char *)&r.reg + uap->addr) = - (l_int)uap->data; - + r.lreg.reg[uap->addr>>2] = (l_long)uap->data; map_regs_from_linux(&u.bsd_reg, &r.reg); error = kern_ptrace(td, PT_SETREGS, pid, &u.bsd_reg, 0); } @@ -470,11 +477,34 @@ error = kern_ptrace(td, PT_SETDBREGS, pid, &u.bsd_dbreg, 0); } - + } + break; + case PTRACE_SETOPTIONS: { + struct proc *p; + if (uap->data == PTRACE_O_TRACESYSGOOD) { + p = td->td_proc; + PROC_LOCK(p); + p->p_stops |= S_PT_SYSGOOD; + PROC_UNLOCK(p); + break; + } + printf("linux: ptrace(21,...,%u) not implemented\n", + (unsigned int)uap->data); + error = EINVAL; + } break; braces around case "case" ? please remove (the blocking there is implicit) and introduce procedure-wide "p" + case PTRACE_SYSCALL: { + struct proc *p; + + p = td->td_proc; + PROC_LOCK(p); + p->p_stops |= S_PT_LINUX; + PROC_UNLOCK(p); + + if (addr == NULL) addr = (void *)1; + error = kern_ptrace(td, PT_SYSCALL, pid, addr, uap->data); } - case PTRACE_SYSCALL: - /* fall through */ + break; ditto. default: printf("linux: ptrace(%u, ...) not implemented\n", (unsigned int)uap->req); Index: sys/cdefs.h =================================================================== RCS file: /home/ncvs/src/sys/sys/cdefs.h,v retrieving revision 1.93 diff -u -r1.93 cdefs.h --- sys/cdefs.h 21 Sep 2006 01:38:58 -0000 1.93 +++ sys/cdefs.h 10 Aug 2007 18:01:34 -0000 @@ -338,6 +338,10 @@ #endif /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ +#ifndef __FreeBSD_cc_version +#define __FreeBSD_cc_version 0 +#endif + #if __FreeBSD_cc_version >= 300001 && defined(__GNUC__) && !defined(__INTEL_COMPILER) #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) Index: sys/ptrace.h =================================================================== RCS file: /home/ncvs/src/sys/sys/ptrace.h,v retrieving revision 1.28 diff -u -r1.28 ptrace.h --- sys/ptrace.h 6 Feb 2006 09:41:56 -0000 1.28 +++ sys/ptrace.h 22 Aug 2007 08:53:45 -0000 @@ -103,7 +103,12 @@ #define PTRACESTOP_SC(p, td, flag) \ if ((p)->p_flag & P_TRACED && (p)->p_stops & (flag)) { \ PROC_LOCK(p); \ - ptracestop((td), SIGTRAP); \ + if (__predict_false(p->p_sysent->sv_name[0]=='L')) { \ please use p->p_sysent instead like stated above + (p)->p_stops &= ~(S_PT_SCE | S_PT_SCX); \ + ptracestop((td), SIGTRAP | 0x80); \ + } \ + else \ + ptracestop((td), SIGTRAP); \ PROC_UNLOCK(p); \ } /* @@ -112,6 +117,16 @@ */ #define S_PT_SCE 0x000010000 #define S_PT_SCX 0x000020000 +/* + * Linux ptrace conventions: clear S_PT_SCE and S_PT_SCX before raising + * signals + */ +#define S_PT_LINUX 0x000040000 +/* + * Linux ptrace option PTRACE_O_TRACESYSGOOD, when enabled, changes signal + * number to ( SIGTRAP | 0x80 ) + */ +#define S_PT_SYSGOOD 0x000080000 int ptrace_set_pc(struct thread *_td, unsigned long _addr); int ptrace_single_step(struct thread *_td); Index: compat/linux/linux_misc.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_misc.c,v retrieving revision 1.213 diff -u -r1.213 linux_misc.c --- compat/linux/linux_misc.c 12 Jun 2007 00:11:57 -0000 1.213 +++ compat/linux/linux_misc.c 22 Aug 2007 09:07:34 -0000 @@ -63,6 +63,7 @@ #include #include #include +#include #include @@ -852,6 +853,8 @@ if (args->status) { tmpstat &= 0xffff; + if (!(td->td_proc->p_stops & S_PT_SYSGOOD)) + tmpstat &= 0x7fff; if (WIFSIGNALED(tmpstat)) tmpstat = (tmpstat & 0xffffff80) | BSD_TO_LINUX_SIGNAL(WTERMSIG(tmpstat)); @@ -898,6 +901,8 @@ if (args->status) { tmpstat &= 0xffff; + if (!(td->td_proc->p_stops & S_PT_SYSGOOD)) + tmpstat &= 0x7fff; if (WIFSIGNALED(tmpstat)) tmpstat = (tmpstat & 0xffffff80) | BSD_TO_LINUX_SIGNAL(WTERMSIG(tmpstat)); thnx for the patch! roman From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 21:29:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDDD116A418 for ; Wed, 22 Aug 2007 21:29:18 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8EC13C467 for ; Wed, 22 Aug 2007 21:29:18 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id E3546619CFB for ; Wed, 22 Aug 2007 14:05:30 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16789-01 for ; Wed, 22 Aug 2007 14:05:29 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id C6C62619B85 for ; Wed, 22 Aug 2007 14:05:29 -0700 (PDT) Message-ID: <46CCA519.9080303@miralink.com> Date: Wed, 22 Aug 2007 14:05:29 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary="------------000608040502020106040109" X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Aug 22 14:05:30 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46cca51a207591542430122 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.494 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.005, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.494 X-Spam-Level: Subject: Relocatable intel 'em' driver patch(intel v6.4.1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 21:29:19 -0000 This is a multi-part message in MIME format. --------------000608040502020106040109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I did a small amount of search and replace against the intel em ethernet driver to allow it to be relocatable today. If anyone is interested, here is the diff against my tree. So, one should be able to copy v6.4.1 of the intel driver into the kernel src tree, overwriting RELENG_6's version and apply this diff. I've tested it a couple of times, but buyer beware. This might just be a good reference for someone wanting to do the same thing I needed to do. sean P.S I'm not sure of the history here, but is there any specific reason that this driver is being maintained outside of the mainline kernel branches? --------------000608040502020106040109 Content-Type: text/x-patch; name="intel_em.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="intel_em.diff" 38c38 < #include "e1000_80003es2lan.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 42c42 < #include "e1000_api.h" --- > #include 41c41 < #include "e1000_82541.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 39c39 < #include "e1000_82543.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 40c40 < #include "e1000_82571.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 35,37c35,37 < #include "e1000_mac.h" < #include "e1000_nvm.h" < #include "e1000_phy.h" --- > #include > #include > #include 38c38 < #include "e1000_hw.h" --- > #include 38,40c38,40 < #include "e1000_osdep.h" < #include "e1000_regs.h" < #include "e1000_defines.h" --- > #include > #include > #include 497,500c497,500 < #include "e1000_mac.h" < #include "e1000_phy.h" < #include "e1000_nvm.h" < #include "e1000_manage.h" --- > #include > #include > #include > #include 39c39 < #include "e1000_ich8lan.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 35c35 < #include "e1000_mac.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 35c35 < #include "e1000_manage.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 35c35 < #include "e1000_nvm.h" --- > #include 38c38 < #include "e1000_api.h" --- > #include 35c35 < #include "e1000_phy.h" --- > #include 51c51 < #include "e1000_api.h" --- > #include 81,82c81,82 < #include "e1000_api.h" < #include "if_e1000.h" --- > #include > #include 6,10c6,10 < SRCS = device_if.h bus_if.h pci_if.h opt_bdg.h < SRCS += if_e1000.c $(SHARED_SRCS) < SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c < SHARED_SRCS += e1000_80003es2lan.c e1000_82542.c e1000_82541.c e1000_82543.c < SHARED_SRCS += e1000_82540.c e1000_ich8lan.c e1000_82571.c --- > SRCS = device_if.h bus_if.h pci_if.h opt_bdg.h \ > if_e1000.c e1000_api.c e1000_phy.c e1000_nvm.c \ > e1000_mac.c e1000_manage.c e1000_80003es2lan.c \ > e1000_82542.c e1000_82541.c e1000_82543.c \ > e1000_82540.c e1000_ich8lan.c e1000_82571.c 14c14 < CFLAGS += -I/usr/src/sys/dev/em --- > #CFLAGS += -I../../dev/em --------------000608040502020106040109-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 22:03:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D52916A41B for ; Wed, 22 Aug 2007 22:03:01 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id BEF2E13C458 for ; Wed, 22 Aug 2007 22:03:00 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1INyHz-000820-8S for freebsd-hackers@freebsd.org; Thu, 23 Aug 2007 00:02:59 +0200 Received: from 89-172-36-165.adsl.net.t-com.hr ([89.172.36.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 00:02:59 +0200 Received: from ivoras by 89-172-36-165.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 00:02:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Wed, 22 Aug 2007 04:17:01 +0200 Lines: 32 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-36-165.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.4 (X11/20070714) Sender: news Subject: pw not creating home directories with -V +patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 22:03:01 -0000 Hi, I've just found out that pw(8) isn't creating home directories when -V (alternate /etc directory) is specified. I realize this was probably made to avoid foot-shooting but I also think there should be a way to enable this feature. I've created the following patch: --- pw_user.c.old 2007-08-22 04:00:24.000000000 +0200 +++ pw_user.c 2007-08-22 04:10:30.000000000 +0200 @@ -775,7 +775,7 @@ * that this also `works' for editing users if -m is used, but * existing files will *not* be overwritten. */ - if (!PWALTDIR() && getarg(args, 'm') != NULL && pwd->pw_dir && *pwd->pw_dir == '/' && pwd->pw_dir[1]) { + if ((!PWALTDIR() | (PWALTDIR() && getarg(args, 'd') != NULL)) && getarg(args, 'm') != NULL && pwd->pw_dir && *pwd->pw_dir == '/' && pwd->pw_dir[1]) { copymkdir(pwd->pw_dir, cnf->dotdir, cnf->homemode, pwd->pw_uid, pwd->pw_gid); pw_log(cnf, mode, W_USER, "%s(%ld) home %s made", pwd->pw_name, (long) pwd->pw_uid, pwd->pw_dir); This will enable pw to create user's home directory only if the directory name was explicitly specified on the command line (the -d switch), which I think is in the spirit of the -V switch. If someone's available, I'd like this to get committed as soon as possible. (If you need an example of why this behavior is useful, think of creating users for a jail from outside the jail, installers, etc.) From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 22:10:04 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A86016A421 for ; Wed, 22 Aug 2007 22:10:04 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id C758C13C458 for ; Wed, 22 Aug 2007 22:10:03 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1INyOo-0008Tx-Ko for freebsd-hackers@freebsd.org; Thu, 23 Aug 2007 00:10:02 +0200 Received: from 89-172-36-165.adsl.net.t-com.hr ([89.172.36.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 00:10:02 +0200 Received: from ivoras by 89-172-36-165.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 00:10:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Wed, 22 Aug 2007 04:24:09 +0200 Lines: 7 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-36-165.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.4 (X11/20070714) In-Reply-To: Sender: news Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 22:10:04 -0000 Yuriy Tsibizov wrote: > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > i386). This is very interesting. Do you have a web page with progress status, blog or something similar to track your work? I'm interested in testing this when it's ready (in absence of Xen, this could be the next best thing). From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 22:43:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B15816A417 for ; Wed, 22 Aug 2007 22:43:57 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [IPv6:2001:4ca0:22ff:10::7]) by mx1.freebsd.org (Postfix) with ESMTP id BE15C13C46A for ; Wed, 22 Aug 2007 22:43:56 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id C1109281EF; Thu, 23 Aug 2007 00:44:08 +0200 (CEST) X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella.fs.ei.tum.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7AyFgRp9iaLX; Thu, 23 Aug 2007 00:44:08 +0200 (CEST) Received: from sweatshorts.home.corecode.ath.cx (85-218-11-202.dclient.lsne.ch [85.218.11.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 7241E281CD; Thu, 23 Aug 2007 00:44:08 +0200 (CEST) Message-ID: <46CCBC29.50404@fs.ei.tum.de> Date: Thu, 23 Aug 2007 00:43:53 +0200 From: Simon 'corecode' Schubert User-Agent: Thunderbird 2.0.0.4 (X11/20070627) MIME-Version: 1.0 To: Ivan Voras References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 22:43:57 -0000 Ivan Voras wrote: > This is very interesting. Do you have a web page with progress status, > blog or something similar to track your work? I'm interested in testing > this when it's ready (in absence of Xen, this could be the next best > thing). You might also want to look into porting the vkernel stuff from DragonFly. It shouldn't be very much work to do. Don't expect great performance though, it's mostly still a development tool. cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 03:47:23 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3A1216A41B for ; Thu, 23 Aug 2007 03:47:23 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id BEFB913C478 for ; Thu, 23 Aug 2007 03:47:23 +0000 (UTC) (envelope-from shyam.linux@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so272610rvb for ; Wed, 22 Aug 2007 20:47:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=l1VHgwf9J0PHmM0wyDvIBn23c/7a+kS7ixdQaAqohhUyQlrss144UW1Hk2JOyARJCX1FLY8FjpXpO6SplI5rQfcYskxLAlWxo5GtfsvqETMPkcn1NTnOKPkI/rHzlTX2K8tuk3+83HXaezrnnxYRgu8KYIL0RcoBRfht4qUfTJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=nQJ4kuQmpSivrvYywsC9HChDcZqJCpM6uuYMuh6H2qrC1LTPk6DlKUyL2Uvmigw4prkWGJuzkN6zFNYdI01412SXtH8AJqWlGirOJoaOaVGSHssPi5Xv3WAlWGfsf7CRdPC5lJuX8BIeDH1aYb05lwCWlb9UpW+m2kdba9mkQUU= Received: by 10.141.19.16 with SMTP id w16mr628151rvi.1187840842954; Wed, 22 Aug 2007 20:47:22 -0700 (PDT) Received: by 10.141.115.2 with HTTP; Wed, 22 Aug 2007 20:47:22 -0700 (PDT) Message-ID: <653e03e70708222047g46ebcdfeq88c91f87dc472d5c@mail.gmail.com> Date: Wed, 22 Aug 2007 20:47:22 -0700 From: "shyam burkule" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: freeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 03:47:24 -0000 Hi All I am new to freeBSD .I am doing engineering from india...and doing my graduate project in memory management area.I really need a patch that implements page replecement in freeBSD or patch that implement *Unified Buffer Management Scheme (by Jong Min Kim, Jongmoo Choi, Jesung Kim, Sam H. Noh,Sang Lyul Min, Yookun Cho, Chong Sang Kim) *in freeBSD .......if you have idea please tell me... Thanks Shyam From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 04:21:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FDCD16A418 for ; Thu, 23 Aug 2007 04:21:40 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate1.pacific.net.sg (smtpgate1.pacific.net.sg [203.120.90.31]) by mx1.freebsd.org (Postfix) with SMTP id 936FD13C457 for ; Thu, 23 Aug 2007 04:21:39 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 2698 invoked from network); 23 Aug 2007 03:54:58 -0000 Received: from bb121-7-26-238.singnet.com.sg (HELO ?192.168.1.101?) (oceanare@121.7.26.238) by smtpgate1.pacific.net.sg with ESMTPA; 23 Aug 2007 03:54:56 -0000 Message-ID: <46CD05E2.1070200@pacific.net.sg> Date: Thu, 23 Aug 2007 11:58:26 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: shyam burkule References: <653e03e70708222047g46ebcdfeq88c91f87dc472d5c@mail.gmail.com> In-Reply-To: <653e03e70708222047g46ebcdfeq88c91f87dc472d5c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: freeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 04:21:40 -0000 Hi, shyam burkule wrote: > Hi All > > I am new to freeBSD .I am doing engineering from india...and doing my > graduate project in memory management area.I really need a patch that it seems to me that you are the perfect guy the provide the patch as you have all the knowledge. Erich > implements page replecement in freeBSD or patch that implement *Unified > Buffer Management Scheme (by Jong Min Kim, Jongmoo Choi, Jesung Kim, Sam H. > Noh,Sang Lyul Min, Yookun Cho, Chong Sang Kim) *in freeBSD .......if you > have idea please tell me... > > > > Thanks > Shyam > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 04:28:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D228516A418; Thu, 23 Aug 2007 04:28:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7FFE113C457; Thu, 23 Aug 2007 04:28:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l7N4PCx2025113; Wed, 22 Aug 2007 22:25:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 22 Aug 2007 22:25:16 -0600 (MDT) Message-Id: <20070822.222516.-1749707994.imp@bsdimp.com> To: cnst@freebsd.org From: "M. Warner Losh" In-Reply-To: <46CB625D.7040505@FreeBSD.org> References: <46CB625D.7040505@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 22 Aug 2007 22:25:13 -0600 (MDT) Cc: freebsd-hackers@freebsd.org Subject: Re: device hints for isa modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 04:28:08 -0000 In message: <46CB625D.7040505@FreeBSD.org> "Constantine A. Murenin" writes: : Dear freebsd-hackers@, : : Is there a way to statically compile device hints into an isa(4) module? : : From what it looks, there is no place in the source tree to put the : hints for isa(4) modules -- you either have to place default hints into : GENERIC.hints, implying that the driver will be compiled into a GENERIC : kernel, or place it into NOTES. In the former case, having a module is : then useless; in the latter, the module simply ain't going to work. No. It isn't useless. If you have a driver listed in GENERIC.hints, but not GENERIC, then there's no driver that will be attached and the hint will effectively be ignored. If you later load a driver of the proper name, it will use the hints. We do this all the time at work so that we can load our drivers and have them probe/attach for the custom ISA hardware we produce (it doesn't do ISA PNP). You actually need to place them in both places. : This is complicated further by the fact that changing isa hints after : the boot has no effect on isa driver modules that use standard methods : of resource acquisition. (Specifically, notice that kenv(1) won't give : you an error message when you try to create a new hint or update an : existing one, and the new or updated hint will in fact be visible back : from kenv(1), but it won't have any effect on bus_alloc_resource(9) : calls, thus modules depending on isa hints will fail to find their : hardware.) This is actually a bug. It would be desirable to place hints into the hint space after boot. : I'm specifically looking for a solution to a usable module for my lm(4) : driver in soc2007/cnst-sensors perforce branch... Just add them to GENERIC.hints. Then if/when your driver is loaded, it will properly probe/attach. If it is never loaded, then there's no real harm. I have a kernel without sio. Yet I have the following hints: hint.sio.0.at="isa" hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.0.port="0x3F8" hint.sio.1.at="isa" hint.sio.1.irq="3" hint.sio.1.port="0x2F8" hint.sio.2.at="isa" hint.sio.2.disabled="1" hint.sio.2.irq="5" hint.sio.2.port="0x3E8" hint.sio.3.at="isa" hint.sio.3.disabled="1" hint.sio.3.irq="9" hint.sio.3.port="0x2E8" The only side effect you'll see is with devinfo -v: nexus0 acpi0 pcib0 pnpinfo _HID=PNP0A03 _UID=1 at handle=\_SB_.PCI0 pci0 isab0 pnpinfo vendor=0x1002 device=0x4377 subvendor=0x0000 subdevice=0x0000 class=0x060100 at slot=20 function=3 handle=\_SB_.PCI0.LPC0 isa0 sio0 sio1 sio2 sio3 devinfo doesn't show it. kldstat on my box doesn't list any sio devices. When I load sio.ko, sio0-sio3 do not attach because I don't have any real COMx devices. This is a little confusing, but has proven to be fairly useful in practice. It would be a little nicer if devinfo -v reported if the device was attached or not... Warner From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 05:34:12 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6264816A421 for ; Thu, 23 Aug 2007 05:34:12 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.freebsd.org (Postfix) with ESMTP id 088F713C46B for ; Thu, 23 Aug 2007 05:34:11 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so299937wra for ; Wed, 22 Aug 2007 22:34:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=okeTw7CCf3PdlGa7/nl0oxUuRuNCy56DiXfYspy64Uzuw3ZsrzthAg+cuzaWPCYW6Gx0bzvQn2jqYfE7XlVCDlgKteAYYNw/Z419vUFaml37FIQfMmcnoJAgtt0zD7DH8S7PTap8BfaMVjZHtCYgg4+uXtLqfFyhIuBnr+BdJao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=so9nXdG1vCKL7OFlVgi4asqQQu5eTZv2SiJRArPAiMH/GfxO+mL4wCJ+ZbMxOYkxXLL/ntdRRQzDRhCg/dY5udJJS7sXTaxCyPVI3/Kjbqee1+T7svIiK901EqhLOVBJX+ED4YQfIaaMddVPyYXOce4LmK1iVbzvEiLwkdoy7ZA= Received: by 10.90.88.13 with SMTP id l13mr5963135agb.1187847250834; Wed, 22 Aug 2007 22:34:10 -0700 (PDT) Received: by 10.90.84.15 with HTTP; Wed, 22 Aug 2007 22:34:10 -0700 (PDT) Message-ID: Date: Thu, 23 Aug 2007 09:34:10 +0400 From: "Yuriy Tsibizov" To: "Roman Divacky" In-Reply-To: <20070822211047.GA35783@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070822211047.GA35783@freebsd.org> X-Mailman-Approved-At: Thu, 23 Aug 2007 05:39:21 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: User-mode Linux (Was: modify syscall nr on-the-fly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 05:34:12 -0000 2007/8/23, Roman Divacky : > here is a little review of mine... just little suggestions. > > Index: i386/i386/trap.c > =================================================================== > RCS file: /home/ncvs/src/sys/i386/i386/trap.c,v > retrieving revision 1.307 > diff -u -r1.307 trap.c > --- i386/i386/trap.c 26 Jul 2007 15:32:55 -0000 1.307 > +++ i386/i386/trap.c 22 Aug 2007 08:53:19 -0000 > @@ -1004,6 +1004,32 @@ > > PTRACESTOP_SC(p, td, S_PT_SCE); > > + if (__predict_false(p->p_sysent->sv_name[0]=='L')) { > > please use __predict_true(p->p_sysent != &elf_linux_sysvec) Will it be possible to link (GENERIC) kernel wih this check? I can't find elf_linux_sysvec in my /boot/kernel/kernel... > > + if (code != frame->tf_eax) { > + printf("linux sysctl patched: code %d return eax %d\n", code, frame->tf_eax); > + /* retry */ > + code = frame->tf_eax; > + > + if (p->p_sysent->sv_prepsyscall) > + /* > + * The prep code is MP aware. > + */ > + (*p->p_sysent->sv_prepsyscall)(frame, args, &code, ¶ms); > + /* else should always be null */ > + > + if (p->p_sysent->sv_mask) > + code &= p->p_sysent->sv_mask; > > the sv_mask should be removed.. dont use it in your code. its entirely pointless when dealing > with Linux binaries ok > > + if (code >= p->p_sysent->sv_size) > + callp = &p->p_sysent->sv_table[0]; > + else > + callp = &p->p_sysent->sv_table[code]; > + > + narg = callp->sy_narg; > + /* retry ends */ > + } > + } > + > AUDIT_SYSCALL_ENTER(code, td); > error = (*callp->sy_call)(td, args); > AUDIT_SYSCALL_EXIT(error, td); > Index: i386/linux/linux_ptrace.c > =================================================================== > RCS file: /home/ncvs/src/sys/i386/linux/linux_ptrace.c,v > retrieving revision 1.17 > diff -u -r1.17 linux_ptrace.c > --- i386/linux/linux_ptrace.c 22 Feb 2006 18:57:49 -0000 1.17 > +++ i386/linux/linux_ptrace.c 22 Aug 2007 09:27:01 -0000 > @@ -78,6 +78,7 @@ > #define PTRACE_SETFPXREGS 19 > > #define PTRACE_SETOPTIONS 21 > +#define PTRACE_O_TRACESYSGOOD 0x00000001 > > /* > * Linux keeps debug registers at the following > @@ -95,6 +96,10 @@ > return ((signum == SIGSTOP)? 0 : signum); > } > > +struct linux_pt_lreg { > + l_long reg[19]; > +}; > + > struct linux_pt_reg { > l_long ebx; > l_long ecx; > @@ -103,17 +108,17 @@ > l_long edi; > l_long ebp; > l_long eax; > - l_int xds; > - l_int xes; > - l_int xfs; > - l_int xgs; > + l_long xds; > + l_long xes; > + l_long xfs; > + l_long xgs; > l_long orig_eax; > l_long eip; > - l_int xcs; > + l_long xcs; > l_long eflags; > l_long esp; > - l_int xss; > -}; > + l_long xss; > +} __packed; > > why is this necessary? how does it affect amd64 linux32 emulator? I'll need to re-check this. It should not access segment registers. > > /* > * Translate i386 ptrace registers between Linux and FreeBSD formats. > @@ -247,6 +252,7 @@ > struct linux_pt_reg reg; > struct linux_pt_fpreg fpreg; > struct linux_pt_fpxreg fpxreg; > + struct linux_pt_lreg lreg; > } r; > union { > struct reg bsd_reg; > @@ -429,20 +435,21 @@ > * as necessary. > */ > if (uap->addr < sizeof(struct linux_pt_reg)) { > + if (uap->addr == (11 << 2)) /* orig_eax */ > + uap->addr = (6 << 2); /* eax */ > + > error = kern_ptrace(td, PT_GETREGS, pid, &u.bsd_reg, 0); > if (error != 0) > break; > > map_regs_to_linux(&u.bsd_reg, &r.reg); > if (req == PTRACE_PEEKUSR) { > - error = copyout((char *)&r.reg + uap->addr, > - (void *)uap->data, sizeof(l_int)); > + error = copyout((l_long*)(&r.lreg.reg[uap->addr>>2]), > + (void *)uap->data, sizeof(l_long)); > break; > } > > - *(l_int *)((char *)&r.reg + uap->addr) = > - (l_int)uap->data; > - > + r.lreg.reg[uap->addr>>2] = (l_long)uap->data; > map_regs_from_linux(&u.bsd_reg, &r.reg); > error = kern_ptrace(td, PT_SETREGS, pid, &u.bsd_reg, 0); > } > @@ -470,11 +477,34 @@ > error = kern_ptrace(td, PT_SETDBREGS, pid, > &u.bsd_dbreg, 0); > } > - > + } > + break; > + case PTRACE_SETOPTIONS: { > + struct proc *p; > + if (uap->data == PTRACE_O_TRACESYSGOOD) { > + p = td->td_proc; > + PROC_LOCK(p); > + p->p_stops |= S_PT_SYSGOOD; > + PROC_UNLOCK(p); > + break; > + } > + printf("linux: ptrace(21,...,%u) not implemented\n", > + (unsigned int)uap->data); > + error = EINVAL; > + } > break; > > braces around case "case" ? please remove (the blocking there is implicit) and introduce > procedure-wide "p" Similar blocks was in original code, I were trying to keep in it's style. > > + case PTRACE_SYSCALL: { > + struct proc *p; > + > + p = td->td_proc; > + PROC_LOCK(p); > + p->p_stops |= S_PT_LINUX; > + PROC_UNLOCK(p); > + > + if (addr == NULL) addr = (void *)1; > + error = kern_ptrace(td, PT_SYSCALL, pid, addr, uap->data); > } > - case PTRACE_SYSCALL: > - /* fall through */ > + break; > > ditto. > > default: > printf("linux: ptrace(%u, ...) not implemented\n", > (unsigned int)uap->req); > Index: sys/cdefs.h > =================================================================== > RCS file: /home/ncvs/src/sys/sys/cdefs.h,v > retrieving revision 1.93 > diff -u -r1.93 cdefs.h > --- sys/cdefs.h 21 Sep 2006 01:38:58 -0000 1.93 > +++ sys/cdefs.h 10 Aug 2007 18:01:34 -0000 > @@ -338,6 +338,10 @@ > #endif > > /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ > +#ifndef __FreeBSD_cc_version > +#define __FreeBSD_cc_version 0 > +#endif > + > #if __FreeBSD_cc_version >= 300001 && defined(__GNUC__) && !defined(__INTEL_COMPILER) > #define __printf0like(fmtarg, firstvararg) \ > __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) > Index: sys/ptrace.h > =================================================================== > RCS file: /home/ncvs/src/sys/sys/ptrace.h,v > retrieving revision 1.28 > diff -u -r1.28 ptrace.h > --- sys/ptrace.h 6 Feb 2006 09:41:56 -0000 1.28 > +++ sys/ptrace.h 22 Aug 2007 08:53:45 -0000 > @@ -103,7 +103,12 @@ > #define PTRACESTOP_SC(p, td, flag) \ > if ((p)->p_flag & P_TRACED && (p)->p_stops & (flag)) { \ > PROC_LOCK(p); \ > - ptracestop((td), SIGTRAP); \ > + if (__predict_false(p->p_sysent->sv_name[0]=='L')) { \ > > please use p->p_sysent instead like stated above > > + (p)->p_stops &= ~(S_PT_SCE | S_PT_SCX); \ > + ptracestop((td), SIGTRAP | 0x80); \ > + } \ > + else \ > + ptracestop((td), SIGTRAP); \ > PROC_UNLOCK(p); \ > } > /* > @@ -112,6 +117,16 @@ > */ > #define S_PT_SCE 0x000010000 > #define S_PT_SCX 0x000020000 > +/* > + * Linux ptrace conventions: clear S_PT_SCE and S_PT_SCX before raising > + * signals > + */ > +#define S_PT_LINUX 0x000040000 > +/* > + * Linux ptrace option PTRACE_O_TRACESYSGOOD, when enabled, changes signal > + * number to ( SIGTRAP | 0x80 ) > + */ > +#define S_PT_SYSGOOD 0x000080000 > > int ptrace_set_pc(struct thread *_td, unsigned long _addr); > int ptrace_single_step(struct thread *_td); > Index: compat/linux/linux_misc.c > =================================================================== > RCS file: /home/ncvs/src/sys/compat/linux/linux_misc.c,v > retrieving revision 1.213 > diff -u -r1.213 linux_misc.c > --- compat/linux/linux_misc.c 12 Jun 2007 00:11:57 -0000 1.213 > +++ compat/linux/linux_misc.c 22 Aug 2007 09:07:34 -0000 > @@ -63,6 +63,7 @@ > #include > #include > #include > +#include > > #include > > @@ -852,6 +853,8 @@ > > if (args->status) { > tmpstat &= 0xffff; > + if (!(td->td_proc->p_stops & S_PT_SYSGOOD)) > + tmpstat &= 0x7fff; > if (WIFSIGNALED(tmpstat)) > tmpstat = (tmpstat & 0xffffff80) | > BSD_TO_LINUX_SIGNAL(WTERMSIG(tmpstat)); > @@ -898,6 +901,8 @@ > > if (args->status) { > tmpstat &= 0xffff; > + if (!(td->td_proc->p_stops & S_PT_SYSGOOD)) > + tmpstat &= 0x7fff; > if (WIFSIGNALED(tmpstat)) > tmpstat = (tmpstat & 0xffffff80) | > BSD_TO_LINUX_SIGNAL(WTERMSIG(tmpstat)); > > > thnx for the patch! Thanks for review, I'm also trying to get PTRACE_SYSEMU to work (looks like the same as PTRACE_SYSCTL, but it does not call syscall handler and relies on SIGTRAP handler to do all syscall work). UM Linux also uses PTRACE_FAULTINFO (returns pointer to something, like a last page fault address) and PTRACE_LDT (updates a process LDT entry), but they are not included in stock Linux kernel and there is no man page describing their behavior. It boots without them. bad news that UM Linux can't access hdd image ("hostfs" does not work too)-- it hangs detecting partitions. Yuriy. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 08:09:51 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BB1A16A421 for ; Thu, 23 Aug 2007 08:09:51 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5201D13C458 for ; Thu, 23 Aug 2007 08:09:50 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IO7lC-0004ni-2l for freebsd-hackers@freebsd.org; Thu, 23 Aug 2007 10:09:46 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 10:09:46 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 10:09:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 23 Aug 2007 10:09:30 +0200 Lines: 37 Message-ID: References: <46CCBC29.50404@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF20CEF00DC901012771D2ABD" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: <46CCBC29.50404@fs.ei.tum.de> X-Enigmail-Version: 0.94.2.0 Sender: news Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 08:09:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF20CEF00DC901012771D2ABD Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Simon 'corecode' Schubert wrote: > Ivan Voras wrote: >> This is very interesting. Do you have a web page with progress status,= =20 >> blog or something similar to track your work? I'm interested in=20 >> testing this when it's ready (in absence of Xen, this could be the=20 >> next best thing). >=20 > You might also want to look into porting the vkernel stuff from=20 > DragonFly. It shouldn't be very much work to do. Don't expect great=20 > performance though, it's mostly still a development tool. I know of it, but does it run Linux? :) --------------enigF20CEF00DC901012771D2ABD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGzUDAldnAQVacBcgRAufeAJ9D0Wn065xyxQxymbiIEvFjPqgC7ACgqXCl /8EURtiayfl+Di82QbXLr8g= =rYfv -----END PGP SIGNATURE----- --------------enigF20CEF00DC901012771D2ABD-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 08:21:45 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7023416A417 for ; Thu, 23 Aug 2007 08:21:45 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [IPv6:2001:4ca0:22ff:10::7]) by mx1.freebsd.org (Postfix) with ESMTP id B1D8D13C478 for ; Thu, 23 Aug 2007 08:21:44 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id A80B428214; Thu, 23 Aug 2007 10:21:42 +0200 (CEST) X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella.fs.ei.tum.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3BXondjVCKnm; Thu, 23 Aug 2007 10:21:42 +0200 (CEST) Received: from sweatshorts.home.corecode.ath.cx (85-218-11-169.dclient.lsne.ch [85.218.11.169]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 64B572820B; Thu, 23 Aug 2007 10:21:42 +0200 (CEST) Message-ID: <46CD4396.8030309@fs.ei.tum.de> Date: Thu, 23 Aug 2007 10:21:42 +0200 From: Simon 'corecode' Schubert User-Agent: Thunderbird 2.0.0.4 (X11/20070627) MIME-Version: 1.0 To: Ivan Voras References: <46CCBC29.50404@fs.ei.tum.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 08:21:45 -0000 Ivan Voras wrote: >> You might also want to look into porting the vkernel stuff from >> DragonFly. It shouldn't be very much work to do. Don't expect great >> performance though, it's mostly still a development tool. > I know of it, but does it run Linux? :) No, but I've heard about people wondering if they could use it for UML or kqemu. But these are probably just ideas. cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 10:25:43 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0257B16A41A for ; Thu, 23 Aug 2007 10:25:43 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B3A5213C45D for ; Thu, 23 Aug 2007 10:25:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 94F3820B2; Thu, 23 Aug 2007 12:25:32 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 878F820B1; Thu, 23 Aug 2007 12:25:32 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 68FB284479; Thu, 23 Aug 2007 12:25:32 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "shyam burkule" References: <653e03e70708222047g46ebcdfeq88c91f87dc472d5c@mail.gmail.com> Date: Thu, 23 Aug 2007 12:25:32 +0200 In-Reply-To: <653e03e70708222047g46ebcdfeq88c91f87dc472d5c@mail.gmail.com> (shyam burkule's message of "Wed\, 22 Aug 2007 20\:47\:22 -0700") Message-ID: <86ir761rab.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: freeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 10:25:43 -0000 "shyam burkule" writes: > I am new to freeBSD .I am doing engineering from india...and doing my > graduate project in memory management area.I really need a patch that > implements page replecement in freeBSD or patch that implement > *Unified Buffer Management Scheme (by Jong Min Kim, Jongmoo Choi, > Jesung Kim, Sam H. Noh,Sang Lyul Min, Yookun Cho, Chong Sang Kim) *in > freeBSD .......if you have idea please tell me... FreeBSD already does page replacement. You can't have virtual memory without it. I suggest you start by reading _Modern Operating Systems_ by Andrew Tannenbaum, then read the article in question (citeseer entry: http://citeseer.ist.psu.edu/401041.html), then do your own homework. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 12:07:42 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97E9216A41B for ; Thu, 23 Aug 2007 12:07:42 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 5309D13C459 for ; Thu, 23 Aug 2007 12:07:42 +0000 (UTC) (envelope-from yuriy.tsibizov@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so413778wxd for ; Thu, 23 Aug 2007 05:07:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=invYSqLBceoammmjml2ub0K3X90e2OPW4LVC34P/BUgCT7q1EVGBfKHD8eFBYTG3XL9mxyFb/Ke/kt/5Ww4Pa08m8gQaLS4N9bb0er3erwmN6Li71FZkDQ1HOTPK0Ox0CLsueifIBRGzf7kOwAoSMI1INIojfLMyEvmBP10hppk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=afG6JyJym5rnosVvzLfhzxZ0qseggrBc10x5hD7bUDYHZnNZI1czqjHEQ1JkKgJkBRff65SDQP2GsPO933sATLqIrpxHCHPLw1mFKnabSai9LWiLX0zYIXO0hQDo7XLSUejj2aIFzEWpSKs4cL/WVAhheaMfguEGiUTIf6rcULc= Received: by 10.90.100.2 with SMTP id x2mr6379294agb.1187870861365; Thu, 23 Aug 2007 05:07:41 -0700 (PDT) Received: by 10.90.84.15 with HTTP; Thu, 23 Aug 2007 05:07:41 -0700 (PDT) Message-ID: Date: Thu, 23 Aug 2007 16:07:41 +0400 From: "Yuriy Tsibizov" To: ivoras@fer.hr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Mailman-Approved-At: Thu, 23 Aug 2007 13:49:03 +0000 Cc: hackers@freebsd.org Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 12:07:42 -0000 > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > i386). Ivan, current status & patches are on http://chibis.persons.gfk.ru/linux/. Yuriy. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 15:07:05 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8472016A41A for ; Thu, 23 Aug 2007 15:07:05 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 1323813C45A for ; Thu, 23 Aug 2007 15:07:04 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so466270nfb for ; Thu, 23 Aug 2007 08:07:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CP/gBAnPwNxa6GjBKVqE6G5zaLec+7olTwQIG99IvcNOTaN+Wwpvt591/rDVGkie9VQnwVQcJ8RZPsvu7MPq4g3BsLMYGxIPex2G6uWlfP94gpSqgMZDbmyb8Ln81dVJRFUYLEUGB+1JPrqxP8KdqHtOdoiXnbzE5UNOowZFKLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=b/0vQfZYEXCnhJv4WeFzodgMWP49zK/OZ5ND+CPzJFkBR/lD11xhrqI7JcdzcwgeU+he3dJtTAtu5sIv9LAyMTFt4p2cRB+brrD9+HLuWsgjY8tfW/z53xqiuqa4GxAqBS6/wGiRM0pF0hi9Z4ElKKoPxIQyOM11jopR2I9IuSo= Received: by 10.86.99.9 with SMTP id w9mr1454574fgb.1187881623554; Thu, 23 Aug 2007 08:07:03 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id p9sm3770505fkb.2007.08.23.08.06.57 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Aug 2007 08:06:58 -0700 (PDT) Message-ID: <46CDA27F.1080501@gmail.com> Date: Thu, 23 Aug 2007 19:06:39 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> <20070822102906.GB1181@turion.vk2pj.dyndns.org> <46CC123A.3090406@moneybookers.com> In-Reply-To: <46CC123A.3090406@moneybookers.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 15:07:05 -0000 Stefan Lambrev wrote: > Hello, > > Peter Jeremy wrote: >> On 2007-Aug-22 12:13:48 +0400, sam wrote: >> >>> Minimum system requirements: >>> >> ... >> >>> - Kernel 2.6, configured for 1000Hz tick and other low latency settings >>> >> >> FreeBSD currently only emulates kernel 2.4. Kernel 2.6 is a SoC >> project. >> >> > > Take a look at /usr/ports/UPDATING : 20070327: > AFFECTS: users of emulators/linux_base-fc6 > AUTHOR: bsam@FreeBSD.org > > ATTENTION! The port is experimental for now. Use it at your own risk. > This > port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16. > > So it's not just a SoC project :) > Yes, Enemy Territory: Quake Wars server linux (ETQW) working on FreeBSD 7.0-CURRENT with port linux_base-fc6 /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 15:15:25 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D82AF16A417 for ; Thu, 23 Aug 2007 15:15:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 8DCE013C45A for ; Thu, 23 Aug 2007 15:15:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8k) with ESMTP id 204831900-1834499 for multiple; Thu, 23 Aug 2007 11:15:30 -0400 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l7NFFHrr018935; Thu, 23 Aug 2007 11:15:21 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 23 Aug 2007 09:55:34 -0400 User-Agent: KMail/1.9.7 References: <20070820131218.GA2198@alamar.org> In-Reply-To: <20070820131218.GA2198@alamar.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708230955.34963.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Thu, 23 Aug 2007 11:15:21 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/4033/Thu Aug 23 05:36:42 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: "Julian D. Seifert" Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 15:15:25 -0000 On Monday 20 August 2007 09:12:18 am Julian D. Seifert wrote: > Hi, > > I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5-Release. > Most times it runs totally okay but sometimes (not reproducable) > the process freezes with state "*inp" shown with "top". > > On no other operating system this problem occurs. > (Linux 2.6.x and FreeBSD 6.2 and -Current) > > When I googled for information I found this in the FAQ of unrealircd: > http://www.unrealircd.com/faq.php#105 > > I assume the bug they refer to is also present in 5.5-Rls and that this is > the cause of the random freezes. I asked the unreal developers if they > know any more specifics but they didn't. > > Does anyone know what "tcp socket bug" they are referring to? > I'm not so familiar with the FreeBSD kernel(and debugging it etc.) > The simplest solution is probably to upgrade to 6.2 but I'd prefer fixing the > bug for 5.5.. > > (I forgot to mention that I formerly had 5.4-RLS installed and experienced the > same problem) > > MfG, > > Julian D. `alamar` Seifert The "*inp" state means that the thead is blocked on a mutex named "inp", probably a lock for an inpcb (internet protocol control block: IP-specific data about a socket). The network stack locking had a _lot_ of changes in 6.x, and backporting them is probably very non-trivial. I'd definitely suggest updating to 6.2 (or even 6-stable) as there are many more bugs fixed in 6.x whereas 5.x does not receive hardly any bug fixes at this point. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 17:13:24 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30B3416A419 for ; Thu, 23 Aug 2007 17:13:24 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id A7F3213C461 for ; Thu, 23 Aug 2007 17:13:23 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so499517nfb for ; Thu, 23 Aug 2007 10:13:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=LSO8swC1IVStZey0AKvBqdTv98L+zBPLWV2T6xoYxitCFBAD2dxkyjZIUlM2T32PBFp+3cewqyXPTZ9dZVp9Yw58SM5GdKuCumcKsfMlOwURE01IfwJUcqanr2zA+En67TkSOZ4xFJS2SXyhzTcOrKmT9sMwDzKvpwrk64iq29M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=HPwvKcV62WO6Ld3MeY0iX2gpO7nrqjC4egOaTEkTqm63jd4h+ovXVSHR9YLq656qej3yPuQNwMP/rGkzB8cpF2N1iHxnD0yfkTXkg8HTkhJ1KJqBUVgupazEH62O0v43TwoFxfsY9BcC/8Vlfd6NElQAwlKIWjBm3ydao/RDtl4= Received: by 10.86.74.15 with SMTP id w15mr1506048fga.1187889202617; Thu, 23 Aug 2007 10:13:22 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id f19sm4014067fka.2007.08.23.10.13.19 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Aug 2007 10:13:19 -0700 (PDT) Message-ID: <46CDC02F.3060504@gmail.com> Date: Thu, 23 Aug 2007 21:13:19 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> <20070822102906.GB1181@turion.vk2pj.dyndns.org> <46CC123A.3090406@moneybookers.com> <46CDA27F.1080501@gmail.com> In-Reply-To: <46CDA27F.1080501@gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: linuxolator problem on i386 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 17:13:24 -0000 # uname -a FreeBSD localhost 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Thu Aug 23 15:51:18 SAMST 2007 root@localhost:/usr/obj/usr/src/sys/CS2 i386 # pkg_info|grep linux linux_base-fc6-6_2 Base set of packages needed in Linux mode (for i386/amd64) # mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s1d on /tmp (ufs, local, soft-updates) /dev/ad0s1e on /usr (ufs, local, soft-updates) /dev/ad0s1f on /var (ufs, local, soft-updates) linsysfs on /usr/compat/linux/sys (linsysfs, local) linprocfs on /usr/compat/linux/proc (linprocfs, local) # kldstat Id Refs Address Size Name 1 14 0xc0400000 3e6458 kernel 2 1 0xc07e7000 69514 acpi.ko 6 1 0xc3eba000 3000 linsysfs.ko 7 2 0xc3ebd000 21000 linux.ko 8 1 0xc445f000 7000 linprocfs.ko # sysctl compat compat.linux.oss_version: 198144 compat.linux.osrelease: 2.6.16 compat.linux.osname: Linux ******************************************************************* ]# su -l hlds -c "cd /home/hlds/1.6 && ./hlds_run -binary ./hlds_i486 -game cstrike +port 27015 +map de_piranesi +maxplayers 20 -nojoy -heapsize 256000 -pingboost 3 -pidfile hlds.pid" Auto-restarting the server on crash Console initialized. scandir failed:/usr/home/hlds/1.6/./platform/SAVE Protocol version 47 Exe version 1.1.2.5/Stdio (cstrike) Exe build: 16:14:38 Oct 24 2006 (3651) STEAM Auth Server couldn't exec language.cfg Server IP address 81.176.175.14:27015 Metamod version 1.19 Copyright (c) 2001-2006 Will Day Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; type `meta gpl' for details. AMX Mod X version 1.76 Copyright (c) 2004-2006 AMX Mod X Development Team AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'. This is free software and you are welcome to redistribute it under certain conditions; type 'amxx gpl' for details. scandir failed:/usr/home/hlds/1.6/./platform/SAVE L 08/23/2007 - 22:04:13: -------- Mapchange to de_piranesi -------- L 08/23/2007 - 22:04:14: Nextmap Chooser: maps.ini succesfully loaded. *** glibc detected *** ./hlds_i486: double free or corruption (!prev): 0x090c3bc8 *** ======= Backtrace: ========= /lib/libc.so.6[0x2811a2ee] /lib/libc.so.6(cfree+0x90)[0x2811d9b0] /lib/libc.so.6(closedir+0x28)[0x2813e068] /lib/libc.so.6(scandir+0x14b)[0x2813e58b] /usr/home/hlds/1.6/filesystem_stdio_i386.so(findFileInDirCaseInsensitive__FPCc+0xe4)[0x28af61d8] /usr/home/hlds/1.6/filesystem_stdio_i386.so(FS_stat__17CFileSystem_StdioPCcP4stat+0x40)[0x28afa61c] /usr/home/hlds/1.6/filesystem_stdio_i386.so(FastFindFileSize__15CBaseFileSystemPCQ215CBaseFileSystem11CSearchPathPCc+0x17e)[0x28af772a] /usr/home/hlds/1.6/filesystem_stdio_i386.so(Size__15CBaseFileSystemPCc+0x5b)[0x28af757b] /usr/home/hlds/1.6/engine_i486.so(FS_FileSize+0x2d)[0x282857bd] /usr/home/hlds/1.6/engine_i486.so(SV_CreateResourceList+0x179)[0x282c25f9] /usr/home/hlds/1.6/engine_i486.so(SV_ActivateServer+0x235)[0x282c34a5] /usr/home/hlds/1.6/engine_i486.so(Host_Map+0xff)[0x2828fcff] /usr/home/hlds/1.6/engine_i486.so(Host_Map_f+0x37a)[0x282901ca] /usr/home/hlds/1.6/engine_i486.so(Cmd_ExecuteString+0x7f)[0x28274a6f] /usr/home/hlds/1.6/engine_i486.so(Cbuf_Execute+0x103)[0x28273b93] /usr/home/hlds/1.6/engine_i486.so(Host_InitializeGameDLL+0x42)[0x2828e592] /usr/home/hlds/1.6/engine_i486.so(Sys_InitGame__FPcT0Pvi+0x18d)[0x282b439d] /usr/home/hlds/1.6/engine_i486.so(Load__7CEnginebPcT2+0x50)[0x282b6d00] /usr/home/hlds/1.6/engine_i486.so(Init__19CDedicatedServerAPIPcT1PFPCcPi_P14IBaseInterfaceT3+0x12a)[0x282b491a] ./hlds_i486(vfprintf+0x343)[0x804ab37] ./hlds_i486(vfprintf+0xb08)[0x804b2fc] ./hlds_i486(_start+0x3a)[0x804a88a] ======= Memory map: ======== 08048000-08054000 r-xp 0003a000 00:00 1931337 /usr/home/hlds/1.6/hlds_i486 08054000-0805b000 rw-p 0003a000 00:00 1931337 /usr/home/hlds/1.6/hlds_i486 0805b000-0805f000 rw-p 01081000 00:00 0 0805f000-090dc000 rwxp 01081000 00:00 0 28054000-2806d000 r-xp 0001e000 00:00 1719473 /usr/compat/linux/lib/ld-2.5.so 2806d000-2806e000 r-xp 0001e000 00:00 1719473 /usr/compat/linux/lib/ld-2.5.so 2806e000-2806f000 rw-p 00002000 00:00 0 2806f000-28070000 rwxp 00002000 00:00 0 28071000-28073000 r-xp 00004000 00:00 1719486 /usr/compat/linux/lib/libdl-2.5.so 28073000-28074000 r-xp 00004000 00:00 1719486 /usr/compat/linux/lib/libdl-2.5.so 28074000-28075000 rwxp 00004000 00:00 1719486 /usr/compat/linux/lib/libdl-2.5.so 28075000-28076000 rwxp 00001000 00:00 0 28076000-28088000 r-xp 0001e000 00:00 1719504 /usr/compat/linux/lib/libpthread-2.5.so 28088000-28089000 r-xp 0001e000 00:00 1719504 /usr/compat/linux/lib/libpthread-2.5.so 28089000-2808a000 rwxp 0001e000 00:00 1719504 /usr/compat/linuxAbort trap (core dumped) Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem Thu Aug 23 22:04:23 SAMST 2007: Server restart in 10 seconds Thu Aug 23 22:04:31 SAMST 2007: Server Quit any solutions (no problem on 6.2-STABLE & linux_base-fc4)? From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 24 05:28:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 045A916A468 for ; Fri, 24 Aug 2007 05:28:50 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 8244D13C4B6 for ; Fri, 24 Aug 2007 05:28:49 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so633364nfb for ; Thu, 23 Aug 2007 22:28:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=JXLVYdaDnVIeLn96r4B1UtXOL0O4lefDfnbO430w0DbRS6fZ+feCb9iZSWnlBp+kTKsEbpcSnrDghN8M3nHP8mcPQU3Q5UIGVrQa1w30bYf8pQDKheTEvMYmRjLrdKkytO7NUUMl4UJQ/UZa3EtsRWamPSXZgUneGLPixtTNVrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Ndw5iELkkOqtH6f4hvR3ZsR0OjhQ3LiOWhk+j9+ia78W1CZKv1RKrX+ZSWeuwCIq2XyG5jFh6317VnzOmlnECtMbG8CBrfSd4suPux4D59laadD89+rO+rZbHjVlDRGfJhMV0APjTb2VyMXXmd4R+yA+E/1eDVy1SjkqzCpu0KE= Received: by 10.86.76.16 with SMTP id y16mr1961790fga.1187933328155; Thu, 23 Aug 2007 22:28:48 -0700 (PDT) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id 31sm5139859fkt.2007.08.23.22.28.44 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Aug 2007 22:28:45 -0700 (PDT) Message-ID: <46CE6C85.1020704@gmail.com> Date: Fri, 24 Aug 2007 09:28:37 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <46CB0EBF.9000601@gmail.com> <200708220136.20703.pieter@degoeje.nl> <20070822081020.GA16860@freebsd.org> <46CBF03C.4060301@gmail.com> <20070822102906.GB1181@turion.vk2pj.dyndns.org> <46CC123A.3090406@moneybookers.com> <46CDA27F.1080501@gmail.com> In-Reply-To: <46CDA27F.1080501@gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator problem on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 05:28:50 -0000 sam wrote: > Stefan Lambrev wrote: >> Hello, >> >> Peter Jeremy wrote: >>> On 2007-Aug-22 12:13:48 +0400, sam wrote: >>> >>>> Minimum system requirements: >>>> >>> ... >>> >>>> - Kernel 2.6, configured for 1000Hz tick and other low latency >>>> settings >>>> >>> >>> FreeBSD currently only emulates kernel 2.4. Kernel 2.6 is a SoC >>> project. >>> >>> >> >> Take a look at /usr/ports/UPDATING : 20070327: >> AFFECTS: users of emulators/linux_base-fc6 >> AUTHOR: bsam@FreeBSD.org >> >> ATTENTION! The port is experimental for now. Use it at your own >> risk. This >> port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16. >> >> So it's not just a SoC project :) >> > > Yes, Enemy Territory: Quake Wars server linux (ETQW) > working on FreeBSD 7.0-CURRENT with port linux_base-fc6 > > /Vladimir Ermakov > ssory, linux_base-fc4 linux_base-fc6 - bad solution (unstable work) /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 24 07:12:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E43C316A41A for ; Fri, 24 Aug 2007 07:12:08 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id A10C413C469 for ; Fri, 24 Aug 2007 07:12:08 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so1413187pyb for ; Fri, 24 Aug 2007 00:12:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=ru39lywwgv99pzrcyqgtprLI+Thy5ihP6XpnzVXRPvFJujWAFuUWY+aNvTEvAFaFam8S9mQWwvSn3giJMsh0jJJuGFlrWf75wnBW3KRWQu/TpBC9JiHFHkTaw4pi1RTi2mpWRWJtndNDFxNKd8RsDJMy0WH5d6uR9YQu7WqmfVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=msqBASucliuPrrV5+qEITuX010BY8O73P4Oi8HBulkFSeshcZrYicts/T+A+YmJmoDF94X+nc41OaccYkiMUkp0nj+WCFWDZBtxOgIk4dYqJ2OgL3NyHC+dsbmYjo9G0WJryjwHr5rVzXj8RnyNNzc+qSzcAMuAxAAhfGjQjpW0= Received: by 10.35.101.1 with SMTP id d1mr3115941pym.1187939527831; Fri, 24 Aug 2007 00:12:07 -0700 (PDT) Received: from ?192.168.1.3? ( [74.134.230.123]) by mx.google.com with ESMTPS id z52sm2304611pyg.2007.08.24.00.12.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2007 00:12:06 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v624) Content-Transfer-Encoding: 7bit Message-Id: <7ed534d5904b6579416f3c1be82c2792@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: Joshua Isom Date: Fri, 24 Aug 2007 02:13:08 -0500 X-Mailer: Apple Mail (2.624) Subject: Debugging problems on amd64-current X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 07:12:09 -0000 As some may remember, about a month ago I asked a question about my dvd drive, apparently an sata atapi drive. Updating to a 7.0-current/amd64 kernel did allow it to be recognized and I've been able to use it. But recently I'd been noticing a kernel crash I could create. My computer is headless so I didn't get any dump(savecore saved nothing). If I used gdb and stepped after a segfault, it'd crash the system. Pressing the power button did nothing, and pressing and holding it was required to get it to do something. Although I knew there was a problem, I figured I'd update my world to match my kernel(a few apps didn't work with the mismatch but those I needed did). It went smoothly, until I tried running gdb. I currently do some work on parrot(http://parrotcode.org) and have worked on the amd64 jit for it(I prefer asm over c apparently). To do this, I have to use a debugging to be able to look at the generated machine code. Before, I could debug but just had to mind myself. Now I can't debug the program at all. Here's a ps snippet while running gdb(after running parrot). 7316 p0 R 0:19.17 gdb parrot 7320 p0 TX+ 0:08.62 /bin/tcsh -c exec /usr/home/jisom/parrot/parrot -j t/compilers 7323 p0 Z+ 0:00.01 It does not matter what options I pass to 'run' but the program will not run. The program itself will run just fine. I tried a quick test of using gdb on ls and it worked just fine. At the same time, some other change seems to have broken the jit I'd done, and I also can't debug it. So presently my options seem to be "not see my dvd drive" with a 6-stable system, "dvd drive works but risky debugging and some stuff broken" with a 7-current kernel and a 6-stable system, or "dvd drive works but can't debug at all" with a 7-current system. So far, the middle option seemed the best. I'm using a GENERIC kernel not for safety because I didn't deal with figuring out all the options needed for the hardware I'd use. Anyway, here's some of the relevant information that might be needed. [freebsd:~] jisom% uname -a FreeBSD freebsd 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Wed Aug 22 07:44:19 CDT 2007 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 [freebsd:~] jisom% dmesg Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #2: Wed Aug 22 07:44:19 CDT 2007 root@freebsd:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3000+ (1999.79-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf4a Stepping = 10 Features=0x78bfbff usable memory = 505294848 (481 MB) avail memory = 485785600 (463 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard ...[etc probably less relevant]... If any more information is wanted. Since this is very disparaging to me, I'm hoping for some resolution. From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 24 17:20:53 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F1CF16A418 for ; Fri, 24 Aug 2007 17:20:53 +0000 (UTC) (envelope-from jacula@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 043D413C457 for ; Fri, 24 Aug 2007 17:20:52 +0000 (UTC) (envelope-from jacula@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so755456nfb for ; Fri, 24 Aug 2007 10:20:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:x-disclaimer:x-operating-system:x-editor:x-face:user-agent; b=Objw0SzbgddNgNuhwpiD9T70Dp40wQ1C+rvd6dbi4ZcTs64Nrapazu1/p7pldv6AhJFPp0piD1tSErcl7RWO7WGDT7lhcCM0MHd1IqLxY3bEjYJ/u8BJ5JrWEOC1GAhTQlyn6esfoA+3dUEgeQqwxCDOUSwKzwsZmVlKtV71Hdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:x-disclaimer:x-operating-system:x-editor:x-face:user-agent; b=QTMjLdvTkPUb0+li6A36MXxEUJte8hfouRMKv8DpLP+m4kZqArVMR1B/zJizlffgprod563ZHlDCJgR0Z+xmaSQN4WJ9BKv3YaMkPGxdie9INR5VdDGM9eV8j0FPPgfyXXRP9CFOkSq494ssdPvxa90oNFe8Z4ciV9pUTQqUtCA= Received: by 10.78.150.7 with SMTP id x7mr2107023hud.1187974393688; Fri, 24 Aug 2007 09:53:13 -0700 (PDT) Received: from splork.wirewater.yow ( [82.59.34.163]) by mx.google.com with ESMTPS id d23sm389945nfh.2007.08.24.09.53.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2007 09:53:11 -0700 (PDT) Received: from localhost.wirewater.yow [127.0.0.1] by splork.wirewater.yow (Sendmail: 8.14.1/8.14.1) with ESMTP id l7OGr8SX032065 ;Fri, 24 Aug 2007 16:53:08 GMT Received: by splork.wirewater.yow (Sendmail: 8.14.1/8.14.1/Submit) id l7OGr7Ac032064 ; Fri, 24 Aug 2007 16:53:07 GMT Date: Fri, 24 Aug 2007 16:53:07 +0000 From: Jacula Modyun To: freebsd-ports@freebsd.org, ports@freebsd.org, hackers@freebsd.org, Lev Serebryakov Message-ID: <20070824165307.GA31818@splork.wirewater.yow> Mail-Followup-To: freebsd-ports@freebsd.org, ports@freebsd.org, hackers@freebsd.org, Lev Serebryakov References: <1761162510.20070729004710@serebryakov.spb.ru> <46ACDB4B.6090707@FreeBSD.org> <46CB159F.4030404@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <46CB159F.4030404@FreeBSD.org> X-Disclaimer: Freebsd...you are my daemon! X-Operating-System: FreeBSD 6.2-STABLE X-Editor: VIM - Vi IMproved 7.1 X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^ 42Ev$Il|;Ztn=, C User-Agent: Mutt/1.5.16 (2007-06-09) X-Mailman-Approved-At: Fri, 24 Aug 2007 20:02:32 +0000 Cc: Subject: Re: REQUEST FOR TESTERS: `devel/mingw32-gcc' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 17:20:53 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 21, 2007 at 12:41:03PM -0400, Coleman Kane = wrote: > Coleman Kane wrote: >> Lev Serebryakov wrote: >>> Hello ports, >>>=20 >>> Latest versions of `mingw32-binutils' and `mingw32-bin-msvcrt' were= =20 >>> committed. >>> `mingw32-gcc' is on pipeline. >>> But it is BIG update: new version is 4.2.0 >>> I ask you to test this `almost new' port before commit. >>>=20 >>> http://lev.serebryakov.spb.ru/download/port-mingw32-gcc-4.2.0.tar.gz >>>=20 >>> Many thanks to Coleman Kane , who helps me to=20 >>> prepare this update. >>> =20 >> I'd like to know what everyone else's experience with these new mingw32-= =20 >> ports are. So far I have been building Win32 applications from my FreeBS= D=20 >> box with these versions quite successfully. I think that the binutils an= d=20 >> GCC are actually newer than the ones currently shipping with the MinGW32= =20 >> binary distribution too. >>=20 >> --=20 >> Coleman Kane >>=20 > I haven't seen any activity on the above email, and I am curious if: > 1) It was missed (and this really does affect people) > 2) Nobody cross-compiles using the mingw32-* ports (it is really very=20 > handy!) > 3) Nobody really cares that mingw32-gcc will move from 3.4.5 --> 4.2.0 >=20 > Please, if this affects you test out the above port tarball! Otherwise,= =20 > this will end up going in and not take into account any problems that mig= ht=20 > arise in your environment. >=20 > -- > Coleman Kane >=20 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" Hello ports; Hello Coleman Kane, I'd like thank you for your work. I installed this version of mingw32-gcc.= =20 Until now I've not any problem; I's a great port. The only problem was with the mingw32-binutils port (it was broken for size mismatch), but I committed a little patch. Thank you very match. Bye by JM --=20 HASKELL: To call a spade a thpade. --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iQIVAwUBRs8M8NlCXyCLn0uLAQqZeg//T8cS24xRur2LZQ4FidFZcFMcvodhQRoG GIo17YmFUGSTBRAEeCcf7dCNaA36QtAcEn5vG5QqKmSg3Y7oj9jtdB6Tm+CCTbsC puisTZZY7GZa/62w3EEs4In7n2HLcTAenyPSuOJB/56+IaVdDHrWpC8yeX5YWLaN 22dzyFSzynuP3rV4PGEgH6cjaYqt+Tx/9tg+eXxhCeNW+2proaj3id+H/p7ykY33 ykVxZgrjsXrT3JVwJobzocCXkMAgZ5jEuMExGGHQLxNdmENKIVcjDlF2JE7KLnaP TZx17pdpKj7UX0LiZekRNqSJSUT4WPVC80IdqzQwGozBn5yCPAhjEN/9H34vNwMl mJnxo39plni4+e2M4Kknin8fE1IUIA35573BHEEsYTtB4FhZrnDUU7bvZ8jDMSHy +K32dSFboEKZQcWXoXh6CcFA7M4aWtpFBZJwVGMa4I7MiT5tmSB1BkbI5eR/rW4g PzPZN2tzSPmb5fi/b2U3wf22Km92oMCzcaEZYE1yc6zps2hT5OuVShXnEjfuO/DK /ysO3VnTxRklcrO77rfuVDiedqqzFOZn8ltAbqn9GJrqgPOsLbomlT9QsP0iCRbD +nBAwUxopS10kAzrJO0U0a2dGj8azpTEHlTpZ7/XdTov7GN1DryQGPfcUrGuh4sx KsdkljUgfso= =bWs7 -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 09:48:54 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03DB216A419 for ; Sat, 25 Aug 2007 09:48:54 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id AD38A13C45E for ; Sat, 25 Aug 2007 09:48:48 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id CCAC18C0A59; Sat, 25 Aug 2007 11:48:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bIxWzhp1Apri; Sat, 25 Aug 2007 11:48:40 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B989B8C18DB; Sat, 25 Aug 2007 11:48:40 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7P9meJN051149; Sat, 25 Aug 2007 11:48:40 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 25 Aug 2007 11:48:40 +0200 From: Roman Divacky To: Yuriy Tsibizov Message-ID: <20070825094840.GA51121@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: hackers@freebsd.org, ivoras@fer.hr Subject: Re: modify syscall nr on-the-fly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 09:48:54 -0000 On Thu, Aug 23, 2007 at 04:07:41PM +0400, Yuriy Tsibizov wrote: > > I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on > > i386). > > Ivan, > > current status & patches are on http://chibis.persons.gfk.ru/linux/. what fbsd version are you using? if 7.x is it with 2.4 emulation or 2.6 emulation? do you have /compat/linux/proc and sys mounted? From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 12:13:09 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9009516A420 for ; Sat, 25 Aug 2007 12:13:09 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.freebsd.org (Postfix) with ESMTP id 3ABF313C457 for ; Sat, 25 Aug 2007 12:13:09 +0000 (UTC) (envelope-from alamar@alamar.org) Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 2C29D9800D for ; Sat, 25 Aug 2007 14:13:08 +0200 (CEST) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 16000345C67 for ; Sat, 25 Aug 2007 14:13:08 +0200 (CEST) Received: from stronghold.seifert.lan (p5495182F.dip0.t-ipconnect.de [84.149.24.47]) (Authenticated sender: julian.seifert@arcor.de) by mail-in-11.arcor-online.net (Postfix) with ESMTP id C7EFA13EB8 for ; Sat, 25 Aug 2007 14:13:03 +0200 (CEST) Received: from alamar by stronghold.seifert.lan with local (Exim 4.63) (envelope-from ) id 1IOuVi-0000gY-50 for freebsd-hackers@freebsd.org; Sat, 25 Aug 2007 14:13:02 +0200 Date: Sat, 25 Aug 2007 14:13:02 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20070825121302.GA2238@alamar.org> References: <20070820131218.GA2198@alamar.org> <200708230955.34963.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <200708230955.34963.jhb@freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: "Julian D. Seifert" X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: alamar@alamar.org X-SA-Exim-Scanned: No (on stronghold.seifert.lan); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV 0.91.1/4054/Fri Aug 24 18:55:59 2007 on mail-in-11.arcor-online.net X-Virus-Status: Clean Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 12:13:09 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > The "*inp" state means that the thead is blocked on a mutex named "inp", > probably a lock for an inpcb (internet protocol control block: IP-specific > data about a socket). The network stack locking had a _lot_ of changes in > 6.x, and backporting them is probably very non-trivial. I'd definitely > suggest updating to 6.2 (or even 6-stable) as there are many more bugs > fixed in 6.x whereas 5.x does not receive hardly any bug fixes at this > point. Hi! Thank you for this bit of very interesting information. This actually convinced me to move up to 6.2. (I formerly tried to avoid this as I'm a little bit frightened by the=20 idea of upgrading from 5.5-rls to 6.2-rls) Are there some things I really should think of? (Besides making a Backup?) (I'm using http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-5x-6x.txt as a reference and checked the RLS notes of 6.2) greets, =09 Julian D. `alamar` Seifert --=20 If it looks good,And it taste good,And it feels good, There has got to be something wrong some where, So be careful. gpg fingerprint: 435D DDDA 251B 9D70 2F72 78E0 AA5F 11F4 A4ED 451E --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG0BzOql8R9KTtRR4RAp0PAKC6LTpREcreUGlT8+/qoPhntUL41ACfZmR8 aYslAa2uz4Um968Dlq/xMWw= =tSbq -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 12:17:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26F2916A419 for ; Sat, 25 Aug 2007 12:17:08 +0000 (UTC) (envelope-from Jose-Marcio.Martins@ensmp.fr) Received: from cascavel.ensmp.fr (cascavel.ensmp.fr [194.214.158.227]) by mx1.freebsd.org (Postfix) with ESMTP id B224C13C46B for ; Sat, 25 Aug 2007 12:17:07 +0000 (UTC) (envelope-from Jose-Marcio.Martins@ensmp.fr) Received: from [192.168.12.3] (mar92-6-82-226-38-60.fbx.proxad.net [82.226.38.60]) (authenticated bits=0) by cascavel.ensmp.fr (8.14.0/8.14.0/JMMC-23/Mar/2006) with ESMTP id l7PBvpif024653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 25 Aug 2007 13:57:52 +0200 (MEST) Message-ID: <46D0193F.3030308@ensmp.fr> Date: Sat, 25 Aug 2007 13:57:51 +0200 From: Jose-Marcio Martins da Cruz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070719 Fedora/1.0.9-2.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at cascavel with ID 46D0193F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-j-chkmail-Score: MSGID : 46D0193F.000 on cascavel : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: HAM Subject: Upgrading from FreeBSD 5.3 to 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jose-Marcio.Martins@ensmp.fr List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 12:17:08 -0000 I found Ralph Engelschall scripts to upgrade FreeBSD systems. http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-5x-6x.txt But there's a line saying : **** The following is a step-by-step procedure for upgrading a server from FreeBSD 5.[45]-STABLE to a FreeBSD 6.2-STABLE. **** Probably this line tell me that I can't use it to upgrade from 5.3 to 6.2. If I'm write, what can I do and how to modify it to upgrade a 5.3 box ? Any other suggestion ??? From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 12:02:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA8D416A418 for ; Sat, 25 Aug 2007 12:02:08 +0000 (UTC) (envelope-from martins@ensmp.fr) Received: from cascavel.ensmp.fr (cascavel.ensmp.fr [194.214.158.227]) by mx1.freebsd.org (Postfix) with ESMTP id 5D90313C4EA for ; Sat, 25 Aug 2007 12:02:08 +0000 (UTC) (envelope-from martins@ensmp.fr) Received: from [192.168.12.3] (mar92-6-82-226-38-60.fbx.proxad.net [82.226.38.60]) (authenticated bits=0) by cascavel.ensmp.fr (8.14.0/8.14.0/JMMC-23/Mar/2006) with ESMTP id l7PBj6bp024648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 25 Aug 2007 13:45:06 +0200 (MEST) Message-ID: <46D01641.6000809@ensmp.fr> Date: Sat, 25 Aug 2007 13:45:05 +0200 From: Jose-Marcio Martins da Cruz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070719 Fedora/1.0.9-2.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at cascavel with ID 46D01642.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-j-chkmail-Score: MSGID : 46D01642.000 on cascavel : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: HAM X-Mailman-Approved-At: Sat, 25 Aug 2007 12:24:45 +0000 Subject: Upgrading from FreeBSD 5.3 to 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martins@paris.ensmp.fr List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 12:02:08 -0000 Ralph, I found Ralph Engelschall scripts to upgrade FreeBSD systems. http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-5x-6x.txt But there's a line saying : **** The following is a step-by-step procedure for upgrading a server from FreeBSD 5.[45]-STABLE to a FreeBSD 6.2-STABLE. **** Probably this line tell me that I can't use it to upgrade from 5.3 to 6.2. If I'm write, what can I do and how to modify it to upgrade a 5.3 box ? Any other suggestion ??? From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 14:26:51 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9498816A421 for ; Sat, 25 Aug 2007 14:26:51 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from mx.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE5513C468 for ; Sat, 25 Aug 2007 14:26:51 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (unknown [192.168.3.39]) by mx.nitro.dk (Postfix) with ESMTP id 890312E5EEE; Sat, 25 Aug 2007 14:10:48 +0000 (UTC) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 348261147E; Sat, 25 Aug 2007 16:10:48 +0200 (CEST) Date: Sat, 25 Aug 2007 16:10:47 +0200 From: "Simon L. Nielsen" To: martins@paris.ensmp.fr Message-ID: <20070825141046.GA978@zaphod.nitro.dk> References: <46D01641.6000809@ensmp.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46D01641.6000809@ensmp.fr> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Upgrading from FreeBSD 5.3 to 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 14:26:51 -0000 On 2007.08.25 13:45:05 +0200, Jose-Marcio Martins da Cruz wrote: > > Ralph, > > I found Ralph Engelschall scripts to upgrade FreeBSD systems. > > http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-5x-6x.txt I would suggested just using the documented procedure from the FreeBSD Handbook. I haven't done any 5.3 -> 6.2 upgrades but I have done many other 5.x -> 6.x and I haven't had a problem in any of the cases. Of course I mostly have console on systems which makes everything a lot simpler / safer, but you didn't say if that was requirement for you (being able to upgrade without console). -- Simon L. Nielsen From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 25 15:22:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8285716A474 for ; Sat, 25 Aug 2007 15:22:01 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3354F13C483 for ; Sat, 25 Aug 2007 15:22:00 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IOxS1-0003SG-Be for freebsd-hackers@freebsd.org; Sat, 25 Aug 2007 17:21:25 +0200 Received: from 89-172-34-204.adsl.net.t-com.hr ([89.172.34.204]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Aug 2007 17:21:25 +0200 Received: from ivoras by 89-172-34-204.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Aug 2007 17:21:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sat, 25 Aug 2007 17:19:31 +0200 Lines: 38 Message-ID: References: <46D01641.6000809@ensmp.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD49BCF4790D617CC34931E35" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-34-204.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <46D01641.6000809@ensmp.fr> X-Enigmail-Version: 0.95.3 Sender: news Subject: Re: Upgrading from FreeBSD 5.3 to 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 15:22:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD49BCF4790D617CC34931E35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jose-Marcio Martins da Cruz wrote: > > I found Ralph Engelschall scripts to upgrade FreeBSD systems. > > http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-5x-6x.txt > Probably this line tell me that I can't use it to upgrade from 5.3 to > 6.2. If I'm write, what can I do and how to modify it to upgrade a 5.3 > box ? Any other suggestion ??? 5.3 contains enough "new-style" FreeBSD features that upgrade should go without problems. The instructions at the above link are a bit over-cautious but look correct. If you ever did any FreeBSD upgrades successfully (following documented procedures), you probably already do everything that's necessary, there's nothing very specific to do about 5.= 3. --------------enigD49BCF4790D617CC34931E35 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG0EiDldnAQVacBcgRAgIlAKCWvJN5EkMyj8E8WzgjIMQY3+E/SACeO3JZ 9nBsuUWbcrcqup7OvtHy0Do= =ZFOE -----END PGP SIGNATURE----- --------------enigD49BCF4790D617CC34931E35--