From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 6 00:33:23 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2698016A41F for ; Sun, 6 Nov 2005 00:33:23 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93F4A43D48 for ; Sun, 6 Nov 2005 00:33:22 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id jA60XG9A069151; Sat, 5 Nov 2005 17:33:18 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <436D4F4D.8080301@samsco.org> Date: Sat, 05 Nov 2005 17:33:17 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Charles Sprickman References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: hackers@freebsd.org Subject: Re: twe and giant 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: Sun, 06 Nov 2005 00:33:23 -0000 Charles Sprickman wrote: > Hello all, > > I was just wondering about this... I recently bumped a soon-to-be > production box to 6.0 as it seems like upgrading now is easier than > doing it the week after the box goes into production (it's amazing how > the release engineering team knows to schedule this way...:). > > One thing I noticed in reviewing the boot messages is that twe is still > under the giant lock: > > twe0: <3ware Storage Controller. Driver version 1.50.01.002> port > 0x2860-0x286f mem 0xf4000000-0xf47fffff irq 17 at device 13.0 on pci0 > twe0: [GIANT-LOCKED] > twe0: 4 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048 > > I bring this up because I could have sworn that I read here or elsewhere > that this driver was revamped. I also could have sworn that at some > point in 5.x it was not under giant. Maybe I'm imagining things... > > Anyhow, does anyone know the status of this, and also is there a central > repository that tracks changes like this that I can watch? > > Thanks, > > Charles I have some old patches that lock twe. They aren't quite complete or right due to an edge case with DMA handling. I'll probably dust them off and finish them soon. Scott From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 6 00:35:38 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ECBC16A41F for ; Sun, 6 Nov 2005 00:35:38 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D30D43D45 for ; Sun, 6 Nov 2005 00:35:38 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 0FF4D1A3C2B; Sat, 5 Nov 2005 16:35:38 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 07A4351352; Sat, 5 Nov 2005 19:35:37 -0500 (EST) Date: Sat, 5 Nov 2005 19:35:36 -0500 From: Kris Kennaway To: Charles Sprickman Message-ID: <20051106003536.GA52953@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: hackers@freebsd.org Subject: Re: twe and giant 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: Sun, 06 Nov 2005 00:35:38 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 05, 2005 at 06:36:56PM -0500, Charles Sprickman wrote: > Hello all, >=20 > I was just wondering about this... I recently bumped a soon-to-be=20 > production box to 6.0 as it seems like upgrading now is easier than doing= =20 > it the week after the box goes into production (it's amazing how the=20 > release engineering team knows to schedule this way...:). >=20 > One thing I noticed in reviewing the boot messages is that twe is still= =20 > under the giant lock: >=20 > twe0: <3ware Storage Controller. Driver version 1.50.01.002> port=20 > 0x2860-0x286f mem 0xf4000000-0xf47fffff irq 17 at device 13.0 on pci0 > twe0: [GIANT-LOCKED] > twe0: 4 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048 >=20 > I bring this up because I could have sworn that I read here or elsewhere= =20 > that this driver was revamped. I also could have sworn that at some poin= t=20 > in 5.x it was not under giant. Maybe I'm imagining things... Under later 5.x the message was not reported except under boot -v because too many people were seeing the message and panicking thinking that it was a regression compared to 4.x, since 4.x didn't say anything about giant locking (but of course under 4.x the ENTIRE KERNEL was giant locked). > Anyhow, does anyone know the status of this, and also is there a central= =20 > repository that tracks changes like this that I can watch? Yes, you can subscribe to the cvs mailing lists. Kris --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDbU/YWry0BWjoQKURAjm8AJ4qZWbpePanfMq0Vfbqk3Xjx/s1/wCfXECq r3MmbYk4dhK5lD0yzzMGmkg= =AtHI -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl-- From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 6 11:14:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62EB816A41F for ; Sun, 6 Nov 2005 11:14:32 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C7DE43D53 for ; Sun, 6 Nov 2005 11:14:31 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so205756wxc for ; Sun, 06 Nov 2005 03:14:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l7isa2pmqGT5BbdHU2cl/LYMZRbHMg3AFC0DHRXmZMUQ7aYhMKlHtOyu0V34I46PpPpwmpNvaHWPYDLNy790dsd39eObEFCXor5QyoIdTY6/tSMNKRsWbNJoWQakxmu61kDHYWmVZNqrTLxnfTDfrK483RlH0lisErILjlndLcU= Received: by 10.70.24.6 with SMTP id 6mr3831368wxx; Sun, 06 Nov 2005 03:14:31 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sun, 6 Nov 2005 03:14:30 -0800 (PST) Message-ID: <87ab37ab0511060314m2eef7458vefc4f5f657ea6501@mail.gmail.com> Date: Sun, 6 Nov 2005 19:14:31 +0800 From: kylin To: "M. Warner Losh" In-Reply-To: <20051105.140416.69987626.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> <20051105.140416.69987626.imp@bsdimp.com> Cc: "freebsd-hackers@freebsd.org" Subject: Re: misc questions about the device&driver arch 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: Sun, 06 Nov 2005 11:14:32 -0000 T24gMTEvNi8wNSwgTS4gV2FybmVyIExvc2ggPGltcEBic2RpbXAuY29tPiB3cm90ZToKPiBJbiBt ZXNzYWdlOiA8ODdhYjM3YWIwNTExMDMyMDMwbzEzNGI5MzE2ajgzMjk1ZGQzMDNlNGU0NGJAbWFp bC5nbWFpbC5jb20+Cj4gICAgICAgICAgICBreWxpbiA8ZmllcnlreWxpbkBnbWFpbC5jb20+IHdy aXRlczoKPiA6IC8vLy8vLy8vLy8vLy8vLwo+IDogcGNpIGJyaWRnZSBkeW5hbWljIHJlc2l6ZQo+ IDogLy8vLy8vLy8vLy8vLwo+IDogaXQgc2VlbXMgdGhhdCB0aGUgZGV2aWNlIGFyY2ggb2YgZnJl ZWJzZCBpcyBzaW1pbGFyIHRvIHdoYXQgaXMgcmV2ZWFsZWQgaW4KPiA6IHdpbmRvdyBPUy4gaSBo YXZlIHJlYWQgdGhlIHBjaWUgaG90cGx1ZyB0cHMgb2Ygd2luZG93cyBsb25naG9ybiAsaXQgaXMg c2FpZAo+IDogdGhhdCB3aXRoIHNvbWUgaGFyZHdhcmUgbWVjaGFuaXNtcyB0aGUgcGNpIGJyaWRn ZSBkcml2ZXIgY2FuIGRvIGdsb2JhbCBwY2kKPiA6IHJlc291cmNlIHdpbmRvdyByZWNvbmZpZ3Vy YXRpb24uc28gZ29vZCB0byB0aGUgaG90cGx1Z2luIHBjaSBkZXZpY2UgZm9yIGl0Cj4gOiBhdm9p ZCBwcmVsb2NhdGluZyByZXNvdXJjZSBmb3IgdGhlIGRldmljZSAuCj4gOiBpIHdvbmRlciAsaWYg dGhlIG1lbSAvaW8vaXJxIHJlY29uZmlndXJhdGlvbiBwb3NzaWJsZSB1bmRlciBmcmVlYnNkIC46 KQo+IDogIDEKPgo+IFllcy4gIENhcmRidXMgZG9lcyBpdCBhbGwgdGhlIHRpbWUuICBIb3dldmVy LCB0aGVyZSdzIG5vIHBjaWUgaG90LXBsdWcKPiBzdXBwb3J0IHlldCwgc28gdGhlIHByb2Nlc3Mg Zm9yIGtpY2tpbmcgb2ZmIGNvbmZpZ3VyYXRpb24gb2YgdGhlIG5ldwo+IGRldmljZSBkb2Vzbid0 IGhhcHBlbi4KPgo+IFdhcm5lcgo+CnNvcnJ5IGZvciBteSBwb29yIGdyYW1tYXIgLGkgdGhpbmsg aSBjb25mdXNlZCB0aGUgcHVibGljOikgaSB3aWxsIG1ha2UKbXlzZWxmIGNsZWFyIHdpdGggdGhl IHdvcmRzIGJlbG93IGFib3V0IHRoZSAgUENJIE11bHRpLWxldmVsIFJlYmFsYW5jZQoKUENJIE11 bHRpLWxldmVsIFJlYmFsYW5jZSBpbiBXaW5kb3dzIExvbmdob3JuClVwZGF0ZWQ6IE5vdmVtYmVy IDI1LCAyMDAzCgoKVGhlIE1pY3Jvc29mdChyKSBXaW5kb3dzKHIpIGNvZGVuYW1lICJMb25naG9y biIgb3BlcmF0aW5nIHN5c3RlbSB3aWxsCmluY2x1ZGUgc3VwcG9ydCBmb3IgcmVzb3VyY2UgcmVi YWxhbmNpbmcgYXQgbXVsdGlwbGUgbGV2ZWxzIGFjcm9zcyBhClBDSSBoaWVyYXJjaHkuIFdpbmRv d3MgTG9uZ2hvcm4gbXVsdGktbGV2ZWwgcmViYWxhbmNpbmcgc3VwcG9ydHMKc3lzdGVtcyB0aGF0 IHVzZSBtdWx0aXBsZSBQQ0ktdG8tUENJIGJyaWRnZSBsZXZlbHMsIGluY2x1ZGluZyBDYXJkQnVz CmJyaWRnZXMsIGFuZCBhbHNvIGVuaGFuY2VzIHN1cHBvcnQgZm9yIGhvdCBwbHVnIHRlY2hub2xv Z2llcy4gSG93ZXZlciwKbXVsdGktbGV2ZWwgcmViYWxhbmNpbmcgY2FuIGV4cG9zZSBwcm9ibGVt cyBpbiBkZXZpY2UgZHJpdmVycyB0aGF0IGRvCm5vdCBoYW5kbGUgUGx1ZyBhbmQgUGxheSBJL08g cmVxdWVzdCBwYWNrZXRzIChJUlBzKSBjb3JyZWN0bHkuCgpQcm9ibGVtIFNjZW5hcmlvcwpJbnN1 ZmZpY2llbnQgYnJpZGdlIHJlc291cmNlcyBhcHBlYXIgd2hlbiB0aGUgcGxhdGZvcm0gQklPUyBj YW5ub3QKYXNzaWduIGFwcHJvcHJpYXRlIFBDSS1icmlkZ2UgcmVzb3VyY2Ugd2luZG93cyBkdXJp bmcgUE9TVC4gU3lzdGVtcwpzdXBwb3J0aW5nIGhvdC1wbHVnIFBDSSBkZXZpY2VzIGFyZSBwYXJ0 aWN1bGFybHkgcHJvYmxlbWF0aWMuIFdoZW4gYQpQQ0kgZGV2aWNlIGNhbiBiZSBob3QtcGx1Z2dl ZCBiZWhpbmQgYSBQQ0kgYnJpZGdlIGF0IHJ1biB0aW1lLCBpdCBpcwppbXBvc3NpYmxlIGZvciB0 aGUgQklPUyB0byBhc2NlcnRhaW4gZHVyaW5nIFBPU1QgaG93IGxhcmdlIGEgYnJpZGdlCnJlc291 cmNlIHdpbmRvdyBtdXN0IGJlIHRvIGFjY29tbW9kYXRlIGEgZGV2aWNlLiBBZGRpdGlvbmFsbHks IGEgUENJCmJyaWRnZSBkZXZpY2UgbWlnaHQgYmUgaG90IHBsdWdnZWQgaW4gY2VydGFpbiBzaXR1 YXRpb25zl2ZvciBleGFtcGxlLAppbiBnZW5lcmljIGRvY2tpbmcgc29sdXRpb25zIHRoYXQgY29u bmVjdCB0aHJvdWdoIENhcmRCdXMgYWRhcHRlcnMsIG9yCmluIHRoZSBJL08gZXhwYW5zaW9uIGNo YXNzaXMgb2Z0ZW4gdXNlZCBpbiBsYXJnZSBzZXJ2ZXIgc3lzdGVtcy4KCkR5bmFtaWMgcmVjb25m aWd1cmF0aW9uIGltcGxpZXMgdGhhdCBhIFBDSSBicmlkZ2UsIHdob3NlIHJlc291cmNlCndpbmRv d3MgYXJlIG5vdCBiZWluZyBjb25zdW1lZCBieSBkZXZpY2VzIGJlaGluZCB0aGUgYnJpZGdlLCBt aWdodApsb3NlIHJlc291cmNlcyB0byBhbm90aGVyIGJyaWRnZSB0aGF0IG5lZWRzIHN1cHBsZW1l bnRhbCByZXNvdXJjZXMuCgpNdWx0aS1sZXZlbCBSZWJhbGFuY2UgRGV2aWNlIERyaXZlciBSZXF1 aXJlbWVudHMKV2luZG93cyBkZXZpY2UgZHJpdmVycyBtdXN0IGJlIGNhcmVmdWxseSBkZXNpZ25l ZCBhbmQgdGhvcm91Z2hseQp0ZXN0ZWQgdG8gcHJvcGVybHkgc3VwcG9ydCBXaW5kb3dzIERyaXZl ciBNb2RlbCAoV0RNKSBzdG9wIHNlbWFudGljcy4KVGhlIFN0b3AgcmVxdWVzdCBpcyBhbiBvcGVy YXRpb25hbCBwYXVzZSB3aGVyZSB0aGUgZHJpdmVyIHRha2VzCm5lY2Vzc2FyeSBzdGVwcyB0byBz dXNwZW5kIGFuIG9wZXJhdGlvbiB1bnRpbCB0aGUgYXNzaWdubWVudCBvZiBuZXcKcmVzb3VyY2Vz IGlzIGNvbXBsZXRlZC4KCk5vdGU6IFRoZSByZWJhbGFuY2UgcHJvY2VzcyBtdXN0IHJlbWFpbiB0 cmFuc3BhcmVudCB0byBhcHBsaWNhdGlvbnMKYW5kIGVuZCB1c2Vycy4gRW5kIHVzZXJzIG1pZ2h0 IGV4cGVyaWVuY2UgYSB0ZW1wb3JhcnkgZGVsYXkgaW4gYQpkZXZpY2UncyBvcGVyYXRpb24sIGJ1 dCBkYXRhIG11c3QgbmV2ZXIgYmUgbG9zdC4KClNldmVyYWwgZXZlbnRzIGNhbiB0cmlnZ2VyIGEg cmVzb3VyY2UgcmViYWxhbmNlIHJlcXVlc3QuIEZvciBleGFtcGxlLAp0aGUgc3lzdGVtIGNhbiBm YWlsIHRvIGFzc2lnbiByZXNvdXJjZXMgdG8gYSBkZXZpY2UgYmVoaW5kIGEgYnJpZGdlCndob3Nl IHJlc291cmNlIHdpbmRvd3MgYXJlIG5vdCBvcGVuZWQgd2lkZSBlbm91Z2ggdG8gc3VwcG9ydCB0 aGUKcmVzb3VyY2UgcmVxdWVzdC4gQSBkZXZpY2UgbWlnaHQgYWxzbyByZXBvcnQgdGhhdCBpdHMg cmVzb3VyY2UKcmVxdWlyZW1lbnRzIGhhdmUgY2hhbmdlZCBhdCBydW4gdGltZS4gV2luZG93cyBj YW4gYWxzbyBkZXRlcm1pbmUgdGhhdAphIFBDSSBicmlkZ2Ugd2FzIGNvbmZpZ3VyZWQgdG8gYm9v dCB3aXRoIGEgcmVzb3VyY2Ugd2luZG93IHRoYXQgaXMKbGFyZ2VyIHRoYW4gbmVjZXNzYXJ5LCB0 aGVuIFdpbmRvd3Mgd2lsbCByZWR1Y2UgdGhlIHNpemUgb2YgdGhlCnJlc291cmNlIHdpbmRvdyBh bmQgcmVsZWFzZSBhc3NvY2lhdGVkIHJlc291cmNlcy4KCi0tCndlIHdobyByIGFib3V0IHRvIGRp ZSxzYWx1dGUgdSEK From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 6 15:40:21 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E06816A41F for ; Sun, 6 Nov 2005 15:40:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from speedfactory.net (mail5.speedfactory.net [66.23.216.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B192343D45 for ; Sun, 6 Nov 2005 15:40:20 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 1468683 for multiple; Sun, 06 Nov 2005 10:42:23 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jA6FeDlQ003644; Sun, 6 Nov 2005 10:40:16 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Sun, 6 Nov 2005 10:07:02 -0500 User-Agent: KMail/1.8 References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> <20051105.140416.69987626.imp@bsdimp.com> <87ab37ab0511060314m2eef7458vefc4f5f657ea6501@mail.gmail.com> In-Reply-To: <87ab37ab0511060314m2eef7458vefc4f5f657ea6501@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511061007.03634.jhb@FreeBSD.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=100 Cc: kylin Subject: Re: misc questions about the device&driver arch 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: Sun, 06 Nov 2005 15:40:21 -0000 On Sunday 06 November 2005 06:14 am, kylin wrote: > On 11/6/05, M. Warner Losh wrote: > > In message: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.co= m> > > > > kylin writes: > > : /////////////// > > : pci bridge dynamic resize > > : ///////////// > > : it seems that the device arch of freebsd is similar to what is reveal= ed > > : in window OS. i have read the pcie hotplug tps of windows longhorn ,it > > : is said that with some hardware mechanisms the pci bridge driver can = do > > : global pci resource window reconfiguration.so good to the hotplugin p= ci > > : device for it avoid prelocating resource for the device . > > : i wonder ,if the mem /io/irq reconfiguration possible under freebsd .= :) > > : 1 > > > > Yes. Cardbus does it all the time. However, there's no pcie hot-plug > > support yet, so the process for kicking off configuration of the new > > device doesn't happen. > > > > Warner > > sorry for my poor grammar ,i think i confused the public:) i will make > myself clear with the words below about the PCI Multi-level Rebalance > > PCI Multi-level Rebalance in Windows Longhorn > Updated: November 25, 2003 No, FreeBSD doesn't currently do what this decribes yet. It would be possi= ble=20 to do it by adding a new device_pause() method that drivers would be requir= ed=20 to implement while the resources were shuffled around though and possibly a= =20 device_unpause() method so that they could update their state if their=20 resources were changed while the device was paused. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 6 16:46:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C7AA16A421 for ; Sun, 6 Nov 2005 16:46:20 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3701743D49 for ; Sun, 6 Nov 2005 16:46:16 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so239313wxc for ; Sun, 06 Nov 2005 08:46:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bSYBftODAOYsynFxmqVEOam84cSPRRuefOfTYgy/Qa+4p74GX68NBUUqJlcXgMvWG/xd57NjkF7cC3BjhKTCxVE9WWtmOkRmHuziUQp5Hk4SP/lkkk4rY5HL/9vw5XeDjDDaFIkYfNL0gJsNy6Vb+yoKmCA+GaG8M8JS+NSRib0= Received: by 10.70.6.2 with SMTP id 2mr4048791wxf; Sun, 06 Nov 2005 08:46:16 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sun, 6 Nov 2005 08:46:16 -0800 (PST) Message-ID: <87ab37ab0511060846v203a266dtf6058ebbd4afcc90@mail.gmail.com> Date: Mon, 7 Nov 2005 00:46:16 +0800 From: kylin To: John Baldwin , "M. Warner Losh" , "freebsd-hackers@freebsd.org" In-Reply-To: <200511061007.03634.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> <20051105.140416.69987626.imp@bsdimp.com> <87ab37ab0511060314m2eef7458vefc4f5f657ea6501@mail.gmail.com> <200511061007.03634.jhb@FreeBSD.org> Cc: Subject: Re: misc questions about the device&driver arch 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: Sun, 06 Nov 2005 16:46:20 -0000 On 11/6/05, John Baldwin wrote: > On Sunday 06 November 2005 06:14 am, kylin wrote: > > On 11/6/05, M. Warner Losh wrote: > > > In message: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.= com> > > > > > > kylin writes: > > > : /////////////// > > > : pci bridge dynamic resize > > > : ///////////// > > > : it seems that the device arch of freebsd is similar to what is reve= aled > > > : in window OS. i have read the pcie hotplug tps of windows longhorn = ,it > > > : is said that with some hardware mechanisms the pci bridge driver ca= n do > > > : global pci resource window reconfiguration.so good to the hotplugin= pci > > > : device for it avoid prelocating resource for the device . > > > : i wonder ,if the mem /io/irq reconfiguration possible under freebsd= .:) > > > : 1 > > > > > > Yes. Cardbus does it all the time. However, there's no pcie hot-plu= g > > > support yet, so the process for kicking off configuration of the new > > > device doesn't happen. > > > > > > Warner > > > > sorry for my poor grammar ,i think i confused the public:) i will make > > myself clear with the words below about the PCI Multi-level Rebalance > > > > PCI Multi-level Rebalance in Windows Longhorn > > Updated: November 25, 2003 > > No, FreeBSD doesn't currently do what this decribes yet. It would be pos= sible > to do it by adding a new device_pause() method that drivers would be requ= ired > to implement while the resources were shuffled around though and possibly= a > device_unpause() method so that they could update their state if their > resources were changed while the device was paused. > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > To be or Not to be ,really a question ,may be the change is so huge that a new branch is suitable -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 07:29:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A4716A41F; Mon, 7 Nov 2005 07:29:57 +0000 (GMT) (envelope-from nocool@263.net) Received: from smtp.263.net (smtp.x263.net [211.150.96.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 076C443D55; Mon, 7 Nov 2005 07:29:54 +0000 (GMT) (envelope-from nocool@263.net) Received: from iscas-zfw728iit (smtp1 [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id E585B1187; Mon, 7 Nov 2005 15:29:55 +0800 (CST) (envelope-from nocool@263.net) X-Originating-IP: [159.226.5.225] Date: Mon, 7 Nov 2005 15:30:39 +0800 From: "nocool" To: "Robert Watson" X-mailer: Foxmail 5.0 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Message-Id: <20051107072955.E585B1187@smtp.263.net> Cc: freebsd-hackers , freebsd-current Subject: Re: Why INVARIANTS option and sanity checking? 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, 07 Nov 2005 07:29:58 -0000 >The design for FreeBSD calls for all memory and other resources provided >to unprivileged processes to be scrubbed before being made available. >Only using privilege should a process be able to gain access to unscrubbed >resources through allocation. For example: > >- When a process allocates a new file, it will be created as zero-length. > When extended using ftruncate(), any data read or pages mapped from the > file will be zero-filled. > >- When new memory is allocated to the process at time of exec(), using > brk(), or using anonymous mmap(), zero'd pages are provided to the > process (often optimized using copy-on-write). > I noticed the code for brk() and mmap() only set up the structure for addrees mapping, and the physical pages are allocated in vmfault(). I looked through the code of vmfault(), but I can't find the optimization of COW from zero's pages you mentioned. Can you give me some tips? Thanks. >- When kernel data structures are returned to user space, they are zero'd. > This is necessary even when a structure is filled out explicitly, as the > padding in the structure introduced by the compiler must also be zero'd. > For example, with data structures returned by ioctl(), sysctl(), etc. > I can't grasp your meaning. You mean to zero the structure before kernel filling it and copyouting it to the user space, or to zero after filling? I scan ioctl() and find the codes: { memp = malloc((u_long)size, M_IOCTLOPS, M_WAITOK); data = memp; ... if (com & IOC_OUT) { bzero(data, size); } ... error = fo_ioctl(fp, com, data, td->td_ucred, td); if (error == 0 && (com & IOC_OUT)) error = copyout(data, uap->data, (u_int)size); } These codes is consistent to my first understanding. Did you mean the same. But I really finds some codes not coincident with your answer, for example: In msgsnd(), message segments from msgpool[] are organised to form the message buffer, and kernel copy the user message into these buffer. And in msgrcv() the message are copyout to user area according the length strod in message header. There are not cleaning for these message segments in both functions. Can you give me some further explanation. Have a good weekend. Thanks From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 11:20:38 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75B0F16A41F for ; Mon, 7 Nov 2005 11:20:38 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web35715.mail.mud.yahoo.com (web35715.mail.mud.yahoo.com [66.163.179.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 17D0A43D45 for ; Mon, 7 Nov 2005 11:20:37 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 19788 invoked by uid 60001); 7 Nov 2005 11:20:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uLPQeVk3AjTB7JJKvOZhIiuxIwN82sBsE5Lvrim3T06XGQShp8AdnTFemtgPDzcxtErBzs8VSjjaIOdIn0h5kTrCprnsi5r99Yd3LHosLdstlOMN6LiyIUVx8VQpz10e8X7dxyKLiF9zvoVeJXz3oVdVg8wSFND7+pU9bF0etzE= ; Message-ID: <20051107112037.19786.qmail@web35715.mail.mud.yahoo.com> Received: from [202.79.62.15] by web35715.mail.mud.yahoo.com via HTTP; Mon, 07 Nov 2005 03:20:37 PST Date: Mon, 7 Nov 2005 03:20:37 -0800 (PST) From: kamal kc To: freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: fatal trap 12; page fault in kernel mode --HELP 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, 07 Nov 2005 11:20:38 -0000 dear all, i am written code for compression/decompression which works very fine for binary as well as the ascii data. i have put the routine just before the if_output() so that i do not interfere with the kernel ip operations. Now the compression/decompression works fine most of the times but eventually i get a fatal trap, sooner or later. my compression/decompression uses about 14KB of memory per packet which i malloc/free after the job is done. the fatal trap i observed is: ------------- Fatal Trap 12 page fault while in kernel mode fault virtual address=0xc195600 fault code=supervisor write, page not present instruction pointer=0x8:0xc0594877 stack pointer =0x10:0xcc6218fc frame pointer=0x10:0xcc621908 code segment=base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def 32 1, gran processor eflags=interrupt enabled, resume, IOPL=0 current process=37(swi1:net) trap number=12 panic:page fault ------------ i used the core dump with kgdb and got the following results: decomp# kgdb kernel.debug /var/crash/vmcore.35 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:159 159 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc0510c86 in boot (howto=260) at ../../../kern/kern_shutdown.c:410 #2 0xc0510f1c in panic (fmt=0xc06b5c31 "%s") at ../../../kern/kern_shutdown.c:566 #3 0xc068eb30 in trap_fatal (frame=0xcc6218bc, eva=3247792128) at ../../../i386/i386/trap.c:817 #4 0xc068e89b in trap_pfault (frame=0xcc6218bc, usermode=0, eva=3247792128) at ../../../i386/i386/trap.c:735 #5 0xc068e4fd in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1047715840, tf_esi = -1047207936, tf_ebp = -865986296, tf_isp = -865986328, tf_ebx = -1047209984, tf_edx = 129, tf_ecx = 34816, tf_eax = 256, tf_trapno = 12, tf_err = 2, tf_eip = -1067890569, tf_cs = 8, tf_eflags = 66054, tf_esp = 376, tf_ss = 385}) at ../../../i386/i386/trap.c:425 #6 0xc067efea in calltrap () at ../../../i386/i386/exception.s:140 #7 0x00000018 in ?? () #8 0x00000010 in ?? () #9 0x00000010 in ?? () #10 0xc18d2000 in ?? () #11 0xc194e000 in ?? () #12 0xcc621908 in ?? () #13 0xcc6218e8 in ?? () #14 0xc194d800 in ?? () #15 0x00000081 in ?? () ---Type to continue, or q to quit--- #16 0x00008800 in ?? () #17 0x00000100 in ?? () #18 0x0000000c in ?? () #19 0x00000002 in ?? () #20 0xc0594877 in get_string (code=0, decode_stack=0xc194d800 "", code_value=0xc18d1000, prefix_code=0xc18d2000, append_character=0xc194e000 "", add_index=0xcc621940) at ../../../netinet/ip_output.c:2733 #21 0xc0594739 in decompress_the_ip_packet (ipheaderlength=0, ippacketlength=0, compressed_buffer=0xc194f000 "", output_buffer=0xc194e800 "") at ../../../netinet/ip_output.c:2665 #22 0xc0593ec8 in copy_the_memorybuffer (m=0xc1904900) at ../../../netinet/ip_output.c:2237 #23 0xc05922ae in ip_output (m=0xc1904900, opt=0xc1941010, ro=0xcc6219c8, flags=1, imo=0x0, inp=0x0) at ../../../netinet/ip_output.c:827 #24 0xc05918d8 in ip_forward (m=0xc1904900, srcrt=0) at ../../../netinet/ip_input.c:1780 #25 0xc05905f7 in ip_input (m=0xc1904900) at ../../../netinet/ip_input.c:679 #26 0xc05806d3 in netisr_processqueue (ni=0xc074d0b8) at ../../../net/netisr.c:233 #27 0xc05808ca in swi_net (dummy=0x0) at ../../../net/netisr.c:346 #28 0xc04fd599 in ithread_loop (arg=0xc1541200) at ../../../kern/kern_intr.c:547 #29 0xc04fc82c in fork_exit (callout=0xc04fd448 , ---Type to continue, or q to quit--- arg=0xc1541200, frame=0xcc621d48) at ../../../kern/kern_fork.c:791 #30 0xc067f04c in fork_trampoline () at ../../../i386/i386/exception.s:209 (kgdb) list *0xc0594877 0xc0594877 is in get_string (../../../netinet/ip_output.c:2733). 2728 break; 2729 } 2730 */ 2731 i=code-256; 2732 do 2733 { decode_stack[stack_length++]=append_character[i]; 2734 i=prefix_code[i]-256; 2735 }while(i>=0); 2736 decode_stack[stack_length]=i+256; 2737 return stack_length; (kgdb) up 20 #20 0xc0594877 in get_string (code=0, decode_stack=0xc194d800 "", code_value=0xc18d1000, prefix_code=0xc18d2000, append_character=0xc194e000 "", add_index=0xcc621940) at ../../../netinet/ip_output.c:2733 2733 { decode_stack[stack_length++]=append_character[i]; (kgdb) print i $1 = 0 (kgdb) print code $2 = 0 (kgdb) print &decode_stack[0] $3 = (unsigned char *) 0xc194d800 "" (kgdb) print stack_length $4 = 0 (kgdb) print append_character[0] $5 = 0 '\0' (kgdb) print &append_character[0] $6 = (unsigned char *) 0xc194e000 "" (kgdb) print &prefix_code[0] $7 = (u_int16_t *) 0xc18d2000 (kgdb) print decode_stack[0] $8 = 0 '\0' (kgdb) quit append_character[],decode_stack[],prefix_code[], code_value[] are memory spaces of size 1700 which i malloc/free for every packet. in case the get_string() helps i have put the code here: int get_string(u_int16_t code, unsigned char *decode_stack, u_int16_t *code_value, u_int16_t *prefix_code, unsigned char *append_character) { int stack_length; stack_length=1; if(code<=255) //the code is the basic alphabet {decode_stack[1]=code; return 1; } int i; i=code-256; do { decode_stack[stack_length++]=append_character[i]; i=prefix_code[i]-256; }while(i>=0); decode_stack[stack_length]=i+256; return stack_length; } __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 16:12:12 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A939B16A41F for ; Mon, 7 Nov 2005 16:12:12 +0000 (GMT) (envelope-from nobody@sunshine.globehosting.net) Received: from sunshine.globehosting.net (sunshine.globehosting.net [193.25.112.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B7F143D79 for ; Mon, 7 Nov 2005 16:12:01 +0000 (GMT) (envelope-from nobody@sunshine.globehosting.net) Received: from nobody by sunshine.globehosting.net with local (Exim 4.52) id 1EZ9b7-0003XY-Vc for hackers@freebsd.org; Mon, 07 Nov 2005 18:11:53 +0200 To: hackers@freebsd.org From: Office Case De Lux Organization: iDieta.ro Content-Transfer-Encoding: 7bit Message-Id: Date: Mon, 07 Nov 2005 18:11:53 +0200 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sunshine.globehosting.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - sunshine.globehosting.net X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Mon, 07 Nov 2005 19:07:18 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Bine ati venit la Case de Lux. ro X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: office@casedelux.ro List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 16:12:12 -0000 dots [1]PROIECTE dots [2]CASE-VILE dots [3]APARTAMENTE [4]CASE DE LUX [5].[6]ro TRANZACTII, INVESTITII SI ADMINISTRARE IMOBILIARA [7][dreamstime.jpg] Daca ati primit acest email inseamna ca puteti accesa siteul [8]CASEDELUX.ro unde Agentia Imobiliare [9]STENTOR va prezinta oferte dedicate dumneavoastra. * [10]Apartamente de lux in Calea Mosilor * [11]Apartamente de lux in zona ultracentrala * [12]Apartamente de lux in Piata Romana Ofertele si cererile dumneavoastra asteapta sa fie solutionate de catre consulantii nostrii [13]PROFESIONALISM [14]SIGURANTA [15]PROMTITUDINE Calea Mosilor nr. 256-258, bl. 4bis, parter, Sector 2 (+40-21) 211.0657 Bulevardul Iuliu Maniu, nr. 55, parter, Sector 6 (+40-21) 430.37.40 office@stentor.ro In cazul in care acest mesaj a ajuns la dumneavoastra din greseala, ne cerem scuze. Pentru a evita ca pe viitor sa mai primiti mailuri nesolicitate, va rugam sa dati [16]click aici. [17]CasedeLux.[18]Ro si [19]STENT[20]OR.RO iti multumeste [?nlstat=view&nl=1&eid=196] References Visible links 1. http://www.casedelux.ro/nlm/lt.php?id=EDNgXB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 2. http://www.casedelux.ro/nlm/lt.php?id=EDNgXx1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 3. http://www.casedelux.ro/nlm/lt.php?id=EDNgXh1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 4. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 5. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 6. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 7. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 8. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 9. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 10. http://www.casedelux.ro/nlm/lt.php?id=EDNgWx1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 11. http://www.casedelux.ro/nlm/lt.php?id=EDNgWh1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 12. http://www.casedelux.ro/nlm/lt.php?id=EDNgVR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 13. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 14. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 15. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 16. http://www.casedelux.ro/nlm/unsubscribe.php?news_type=1&email=hackers@freebsd.org&id=1242&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 17. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 18. http://www.casedelux.ro/nlm/lt.php?id=EDNgWR1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 19. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org 20. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org Hidden links: 21. http://www.casedelux.ro/nlm/lt.php?id=EDNgWB1C&nl=1&eid=1242&loginkey=72b8fcd8&eaddress=hackers@freebsd.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 21:17:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7D0816A42A for ; Mon, 7 Nov 2005 21:17:27 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from 26th.net (26th.net [217.79.183.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F37F43D82 for ; Mon, 7 Nov 2005 21:17:09 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from [192.168.0.26] (td9091c0a.pool.terralink.de [217.9.28.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by 26th.net (Postfix) with ESMTP id DCAD41D6F6 for ; Mon, 7 Nov 2005 22:17:06 +0100 (CET) Message-ID: <436FC453.1080801@aksoft.net> Date: Mon, 07 Nov 2005 22:17:07 +0100 From: Anatoli Klassen User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary="------------030509020808000204010009" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Run ntpd as non-root user 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, 07 Nov 2005 21:17:28 -0000 This is a multi-part message in MIME format. --------------030509020808000204010009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi All, I have written patches to allow to run ntpd as ordinal user and/or from jail. The idea is to disable build-in kernel security checks by setting some sysctl's and then plug in a MAC module (actually it is the same approach as in mac_portacl to bind to low ports). There are four new sysctl MIBs: kern.usersettime - non-root is allowed to change system time, kern.jailsettime - system time is allowed to be changed from jail, kern.useradjtime - non-root is allowed to adjust system time, kern.jailadjtime - system time is allowed to be adjusted from jail; and a new MAC module mac_settime, where admin can define rules via sysctl MIB: security.mac.settime.rules= "allow uid 2000 nojail; allow gid 123 jail 10" There is also a one-line patch for ntpd itself to disable root-check at startup. I'm waiting for your comments :) Regards, Anatoli --------------030509020808000204010009 Content-Type: text/plain; name="kern_settime.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kern_settime.patch" --- sys/kern/kern_time.c.orig Mon Nov 7 11:56:57 2005 +++ sys/kern/kern_time.c Mon Nov 7 12:14:45 2005 @@ -41,9 +41,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -104,6 +106,12 @@ SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start, NULL); +static int cf_usersettime; +static int cf_jailsettime; +SYSCTL_INT(_kern, OID_AUTO, usersettime, CTLFLAG_RW, &cf_usersettime, 0, + "Non-root is allowed to change system time"); +SYSCTL_INT(_kern, OID_AUTO, jailsettime, CTLFLAG_RW, &cf_jailsettime, 0, + "System time is allowed to be changed from jail"); static void no_lease_updatetime(deltat) @@ -265,8 +273,10 @@ if (error) return (error); #endif - if ((error = suser(td)) != 0) - return (error); + if (!cf_jailsettime && jailed(td->td_ucred)) + return (EPERM); + if (!cf_usersettime && (error = suser_cred(td->td_ucred, SUSER_ALLOWJAIL)) != 0) + return (error); /* jail is already checked */ if (clock_id != CLOCK_REALTIME) return (EINVAL); if (ats->tv_nsec < 0 || ats->tv_nsec >= 1000000000) @@ -472,9 +482,12 @@ if (error) return (error); #endif - error = suser(td); - if (error) - return (error); + if (!cf_jailsettime && jailed(td->td_ucred)) + return (EPERM); + if (!cf_usersettime && (error = suser_cred(td->td_ucred, SUSER_ALLOWJAIL)) != 0) + return (error); /* jail is already checked */ + else + error = 0; /* Verify all parameters before changing time. */ if (tv) { if (tv->tv_usec < 0 || tv->tv_usec >= 1000000) --- sys/kern/kern_ntptime.c.orig Mon Nov 7 11:57:07 2005 +++ sys/kern/kern_ntptime.c Mon Nov 7 12:14:45 2005 @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -198,6 +199,13 @@ static void hardupdate(long offset); static void ntp_gettime1(struct ntptimeval *ntvp); +static int cf_useradjtime; +static int cf_jailadjtime; +SYSCTL_INT(_kern, OID_AUTO, useradjtime, CTLFLAG_RW, &cf_useradjtime, 0, + "Non-root is allowed to adjust system time"); +SYSCTL_INT(_kern, OID_AUTO, jailadjtime, CTLFLAG_RW, &cf_jailadjtime, 0, + "System time is allowed to be adjusted from jail"); + static void ntp_gettime1(struct ntptimeval *ntvp) { @@ -330,12 +338,20 @@ * the STA_PLL bit in the status word is cleared, the state and * status words are reset to the initial values at boot. */ - mtx_lock(&Giant); modes = ntv.modes; - if (modes) - error = suser(td); - if (error) - goto done2; + if (modes) { +#ifdef MAC + error = mac_check_system_settime(td->td_ucred); + if (error) + return (error); +#endif + if (!cf_jailadjtime && jailed(td->td_ucred)) + return (EPERM); + if (!cf_useradjtime && + (error = suser_cred(td->td_ucred, SUSER_ALLOWJAIL)) != 0) + return (error); /* jail is already checked at this point */ + } + mtx_lock(&Giant); s = splclock(); if (modes & MOD_MAXERROR) time_maxerror = ntv.maxerror; @@ -954,8 +970,17 @@ struct timeval atv; int error; - if ((error = suser(td))) +#ifdef MAC + error = mac_check_system_settime(td->td_ucred); + if (error) return (error); +#endif + if (!cf_jailadjtime && jailed(td->td_ucred)) + return (EPERM); + if (!cf_useradjtime && (error = suser_cred(td->td_ucred, SUSER_ALLOWJAIL)) != 0) + return (error); /* jail is already checked */ + else + error = 0; mtx_lock(&Giant); if (olddelta) { --------------030509020808000204010009 Content-Type: text/plain; name="ntp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ntp.patch" --- contrib/ntp/ntpd/ntpd.c.orig Mon Nov 7 11:57:28 2005 +++ contrib/ntp/ntpd/ntpd.c Mon Nov 7 12:14:45 2005 @@ -394,7 +394,7 @@ } #endif -#if defined(HAVE_GETUID) && !defined(MPE) /* MPE lacks the concept of root */ +#if 0 && defined(HAVE_GETUID) && !defined(MPE) /* MPE lacks the concept of root */ { uid_t uid; --------------030509020808000204010009-- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 22:44:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F72216A420 for ; Mon, 7 Nov 2005 22:44:32 +0000 (GMT) (envelope-from full-disclosure@csilva.org) Received: from jupiter.nswebhost.com (jupiter.nswebhost.com [72.9.236.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1124943D4C for ; Mon, 7 Nov 2005 22:43:57 +0000 (GMT) (envelope-from full-disclosure@csilva.org) Received: from 55-246.dial.nortenet.pt ([212.13.55.246]:35016 helo=[192.168.1.10]) by jupiter.nswebhost.com with esmtpa (Exim 4.52) id 1EZFiK-00079P-U0 for freebsd-hackers@freebsd.org; Mon, 07 Nov 2005 17:43:45 -0500 Message-ID: <436FD8B3.8060808@csilva.org> Date: Mon, 07 Nov 2005 22:44:03 +0000 From: Carlos Silva aka |Danger_Man| User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jupiter.nswebhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - csilva.org X-Source: X-Source-Args: X-Source-Dir: Subject: Backup methodes 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, 07 Nov 2005 22:44:32 -0000 Hi, what is the best method to backup network information and local disk information with another disk? regards, carlos silva, http://osiris.csilva.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 22:59:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D9BB16A439 for ; Mon, 7 Nov 2005 22:59:29 +0000 (GMT) (envelope-from lulf@kerneled.org) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACBCD43D98 for ; Mon, 7 Nov 2005 22:59:23 +0000 (GMT) (envelope-from lulf@kerneled.org) Received: from lulf by cassarossa.samfundet.no with local (Exim 4.50) id 1EZFxR-0001rl-Ve for freebsd-hackers@freebsd.org; Mon, 07 Nov 2005 23:59:22 +0100 Date: Mon, 7 Nov 2005 23:59:21 +0100 From: Ulf Lilleengen To: freebsd-hackers@freebsd.org Message-ID: <20051107225921.GA1623@samfundet.no> References: <20051101225848.GB20543@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20051101225848.GB20543@odin.ac.hmc.edu> User-Agent: Mutt/1.5.9i Subject: Re: Contributing to FreeBSD list of things todo 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, 07 Nov 2005 22:59:29 -0000 On Tue, Nov 01, 2005 at 02:58:48PM -0800, Brooks Davis wrote: > On Tue, Nov 01, 2005 at 04:30:00PM -0600, Ben Siemon wrote: > > I have a suggestion for things dev people could do to help out with > > code already done. I noticed the suggestion for compiling with -Wall > > enabled. Would it serve any purpose to compile the sources with -ansi > > and or -pedantic as well? I am fairly new to FreeBSD so forgive me if > > this has alread been addressed. > > I think the todo list is dated in this area. We now compile many files > with large sets of warning flags via the WARNS variable in Makefiles. > It is useful to expand the coverage in this area, but it's not all that > trivial. It's often fairly easy to make the warning go away without > fixing the real problem the warning represented. This means that far > too many patches to raise warning levels are useless and waste developer > time. There's also the fact that such changes need to be tested on > multiple architectures because certain warnings are platform specfic. > At the least testing is needed on i386, alpha, and sparc. > I've seen an effort to remove these warnings by setting WARNS?=6 . Would this be preferable to work on, on freebsd as well? Ofcourse testing on most architectures. -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 23:07:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CF8916A41F for ; Mon, 7 Nov 2005 23:07:28 +0000 (GMT) (envelope-from ray@redshift.com) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA65543D7F for ; Mon, 7 Nov 2005 23:07:27 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 82722977F9; Mon, 7 Nov 2005 15:07:26 -0800 (PST) Message-Id: <3.0.1.32.20051107150725.00b025f8@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Mon, 07 Nov 2005 15:07:25 -0800 To: Carlos Silva aka |Danger_Man| , freebsd-hackers@freebsd.org From: ray@redshift.com In-Reply-To: <436FD8B3.8060808@csilva.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Subject: Re: Backup methodes 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, 07 Nov 2005 23:07:28 -0000 At 10:44 PM 11/7/2005 +0000, Carlos Silva aka |Danger_Man| wrote: | Hi, | | what is the best method to backup network information and local disk | information with another disk? | | regards, | | carlos silva, Depends on how much info and if you can take the machine out of production. For most stuff, I use tar -czf or something along those lines (e.g. to move directories or backup important information on servers). If you have a 120GB hard drive you need to make an exact copy of, I usually pull it from the machine (if it's not in production) and use a diskology IDE cloner to make an exact backup. Another method is to stick a 300GB or 400GB drive into a USB enclosure and then just plug that in and copy data that you need. You can also use tape drives, although I've never been a big fan of them myself. Not with hard drives so cheap. Yet another option is to use a DVD burner and back up 4 or 8GB's a time to something you can store off site. Anyway, hope that helps a bit :) Ray From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 23:10:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C5716A41F for ; Mon, 7 Nov 2005 23:10:39 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1256A43D6E for ; Mon, 7 Nov 2005 23:10:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jA7NAXwG009456; Mon, 7 Nov 2005 15:10:33 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jA7NAWuR009455; Mon, 7 Nov 2005 15:10:32 -0800 Date: Mon, 7 Nov 2005 15:10:32 -0800 From: Brooks Davis To: Ulf Lilleengen Message-ID: <20051107231032.GA5351@odin.ac.hmc.edu> References: <20051101225848.GB20543@odin.ac.hmc.edu> <20051107225921.GA1623@samfundet.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20051107225921.GA1623@samfundet.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-hackers@freebsd.org Subject: Re: Contributing to FreeBSD list of things todo 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, 07 Nov 2005 23:10:39 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 07, 2005 at 11:59:21PM +0100, Ulf Lilleengen wrote: > On Tue, Nov 01, 2005 at 02:58:48PM -0800, Brooks Davis wrote: > > On Tue, Nov 01, 2005 at 04:30:00PM -0600, Ben Siemon wrote: > > > I have a suggestion for things dev people could do to help out with > > > code already done. I noticed the suggestion for compiling with -Wall > > > enabled. Would it serve any purpose to compile the sources with -ansi > > > and or -pedantic as well? I am fairly new to FreeBSD so forgive me if > > > this has alread been addressed. > >=20 > > I think the todo list is dated in this area. We now compile many files > > with large sets of warning flags via the WARNS variable in Makefiles. > > It is useful to expand the coverage in this area, but it's not all that > > trivial. It's often fairly easy to make the warning go away without > > fixing the real problem the warning represented. This means that far > > too many patches to raise warning levels are useless and waste developer > > time. There's also the fact that such changes need to be tested on > > multiple architectures because certain warnings are platform specfic. > > At the least testing is needed on i386, alpha, and sparc. > >=20 > I've seen an effort to remove these warnings by setting WARNS?=3D6 . Would > this be preferable to work on, on freebsd as well? Ofcourse testing on > most architectures. Setting WARNS=3D higher and fixing the warning is useful, but we've see a lot of submissions that took more time to fix than dealing with the problem would have in the first place. The work of someone who submitted high-quality fixes consistantly, would certainly be appreciated. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDb97jXY6L6fI4GtQRAspzAKDi+B74FLjDWAwtWPi+j/jBhU2uxwCgpfFb H6eI5SUiQbUL5jQQEJWSnzY= =whoh -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/-- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 7 23:20:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD69916A41F for ; Mon, 7 Nov 2005 23:20:48 +0000 (GMT) (envelope-from steve@energistic.com) Received: from energistic.com (mail.energistic.com [216.54.148.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2263943D64 for ; Mon, 7 Nov 2005 23:20:44 +0000 (GMT) (envelope-from steve@energistic.com) Received: from energistic.com (steve@localhost.energistic.com [127.0.0.1]) by energistic.com (8.13.4/8.13.3) with ESMTP id jA7NKeFI078733; Mon, 7 Nov 2005 18:20:40 -0500 (EST) (envelope-from steve@energistic.com) Received: (from steve@localhost) by energistic.com (8.13.4/8.13.3/Submit) id jA7NKeZj075839; Mon, 7 Nov 2005 18:20:40 -0500 (EST) (envelope-from steve) Date: Mon, 7 Nov 2005 18:20:40 -0500 From: Steve Ames To: ray@redshift.com Message-ID: <20051107232040.GA31849@energistic.com> References: <436FD8B3.8060808@csilva.org> <3.0.1.32.20051107150725.00b025f8@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.1.32.20051107150725.00b025f8@pop.redshift.com> User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-8.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS,TW_CZ,USER_IN_WHITELIST_TO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on energistic.com Cc: freebsd-hackers@freebsd.org, Carlos Silva aka |Danger_Man| Subject: Re: Backup methodes 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, 07 Nov 2005 23:20:48 -0000 I've used rsync if your goal is to keep a backup reasonably up to date since you don't need to recopy all of the data at every backup. On Mon, Nov 07, 2005 at 03:07:25PM -0800, ray@redshift.com wrote: > At 10:44 PM 11/7/2005 +0000, Carlos Silva aka |Danger_Man| wrote: > | Hi, > | > | what is the best method to backup network information and local disk > | information with another disk? > | > | regards, > | > | carlos silva, > > Depends on how much info and if you can take the machine out of production. For > most stuff, I use tar -czf or something along those lines (e.g. to move > directories or backup important information on servers). If you have a 120GB > hard drive you need to make an exact copy of, I usually pull it from the machine > (if it's not in production) and use a diskology IDE cloner to make an exact backup. > > Another method is to stick a 300GB or 400GB drive into a USB enclosure and then > just plug that in and copy data that you need. > > You can also use tape drives, although I've never been a big fan of them myself. > Not with hard drives so cheap. Yet another option is to use a DVD burner and > back up 4 or 8GB's a time to something you can store off site. > > Anyway, hope that helps a bit :) > > Ray > > _______________________________________________ > 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 Tue Nov 8 08:42:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A846E16A41F; Tue, 8 Nov 2005 08:42:07 +0000 (GMT) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3300843D45; Tue, 8 Nov 2005 08:42:06 +0000 (GMT) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id 2520A8441F; Tue, 8 Nov 2005 09:42:05 +0100 (CET) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58964-02-7; Tue, 8 Nov 2005 09:41:59 +0100 (CET) Received: from [127.0.0.1] (unknown [192.168.2.3]) by people.fsn.hu (Postfix) with ESMTP id 26CAC84426; Tue, 8 Nov 2005 09:41:59 +0100 (CET) Message-ID: <437064D6.6060504@fsn.hu> Date: Tue, 08 Nov 2005 09:41:58 +0100 From: Attila Nagy User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: <436A868F.4010606@fsn.hu> <20051104095129.M9692@fledge.watson.org> <436B8918.9060105@fsn.hu> <436C7998.5040404@fsn.hu> In-Reply-To: <436C7998.5040404@fsn.hu> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu Cc: freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Reproduceable freeze with quotas enabled 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, 08 Nov 2005 08:42:07 -0000 Attila Nagy wrote: > Attila Nagy wrote: >> Robert Watson wrote: >>> On Thu, 3 Nov 2005, Attila Nagy wrote: >>> >>>> I have an "easily" (at least to me) reproduceable freeze with both >>>> 6-STABLE and 7-CURRENT on an amd64 SMP machine. >>>> What I do is simply copy a lot of directories, files and symlinks >>>> with different uids from another machine to this one, using rsync. >>> >>> This is probably a vnode lock leak or deadlock. As it looks like you >>> have both the ability to get into the debugger and also a serial or >>> other remote console, the output of: >>> show allpcpu >>> alltrace >>> show lockedvnods >>> show allocks >>> would be helpful. There are also "options DEBUG_LOCKS" which extends >>> the debugging information available via "show lockedvnods" with >>> information about where the lock was acquired, which can be quite >>> helpful. > http://people.fsn.hu/~bra/freebsd/crash-20051105/crashlog > I've put all together in this file. > Tell me please if I can do anything to make the issue more clear. Just for the record: the machine freezes with UP kernels too. Any chance to investigate it further? It's a really annoying bug, which makes quota support a little bit useless. Thanks, -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Adopt a directory on our free software phone: +3630 306 6758 server! http://www.fsn.hu/?f=brick From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 8 09:36:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A280F16A41F; Tue, 8 Nov 2005 09:36:33 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416B543D46; Tue, 8 Nov 2005 09:36:33 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1EZPu3-0004Td-Rv; Tue, 08 Nov 2005 11:36:31 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: freebsd-net@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 Nov 2005 11:36:31 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: IPMI highjacks packets to ports 623/664 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, 08 Nov 2005 09:36:33 -0000 problem: IPMI will highjack packets to ports 623/664, so packets which get assigned either port, will not get back to the application. Question: Is there a way to blacklist these ports? thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 8 16:11:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01B2316A420 for ; Tue, 8 Nov 2005 16:11:13 +0000 (GMT) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7A8D43D5C for ; Tue, 8 Nov 2005 16:11:04 +0000 (GMT) (envelope-from tom.hurst@clara.net) Received: from [81.104.55.176] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.54 (FreeBSD)) id 1EZW3h-0002Hm-SH; Tue, 08 Nov 2005 16:10:53 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.54 (FreeBSD)) id 1EZW3h-000AIY-8x; Tue, 08 Nov 2005 16:10:53 +0000 Date: Tue, 8 Nov 2005 16:10:53 +0000 From: Thomas Hurst To: Carlos Silva aka |Danger_Man| Message-ID: <20051108161053.GA38553@voi.aagh.net> Mail-Followup-To: Carlos Silva aka |Danger_Man| , freebsd-hackers@freebsd.org References: <436FD8B3.8060808@csilva.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436FD8B3.8060808@csilva.org> Organization: Not much. User-Agent: Mutt/1.5.11 Sender: Thomas Hurst X-RBL-Warning: 81.104.55.176 is in RBL blacklist at dnsbl.sorbs.net Cc: freebsd-hackers@freebsd.org Subject: Re: Backup methodes 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, 08 Nov 2005 16:11:13 -0000 * Carlos Silva aka |Danger_Man| (full-disclosure@csilva.org) wrote: > what is the best method to backup network information and local disk > information with another disk? dump/restore performs snapshotted incremental backups of complete filesystems. -- Thomas 'Freaky' Hurst http://hur.st/ From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 8 18:27:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D26EA16A433 for ; Tue, 8 Nov 2005 18:27:20 +0000 (GMT) (envelope-from SRS0=UQFCEU+g=ZH=metro.cx=fbsd@sonologic.nl) Received: from mx1.sonologic.nl (mx1.sonologic.nl [82.94.245.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D753343D68 for ; Tue, 8 Nov 2005 18:27:16 +0000 (GMT) (envelope-from SRS0=UQFCEU+g=ZH=metro.cx=fbsd@sonologic.nl) Received: from [192.168.4.156] ([212.41.157.237]) (authenticated bits=0) by mx1.sonologic.nl (8.13.3/8.13.3) with ESMTP id jA8IR4aq039624 for ; Tue, 8 Nov 2005 18:27:08 GMT Message-ID: <4370EDFA.9070500@metro.cx> Date: Tue, 08 Nov 2005 19:27:06 +0100 From: Koen Martens Organization: Sonologic User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <436FD8B3.8060808@csilva.org> <20051108161053.GA38553@voi.aagh.net> In-Reply-To: <20051108161053.GA38553@voi.aagh.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Helo-Milter-Authen: gmc@sonologic.nl, fbsd@metro.cx, mx1 Received-SPF: pass (mx1.sonologic.nl: 212.41.157.237 is authenticated by a trusted mechanism) Subject: Re: Backup methodes 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, 08 Nov 2005 18:27:21 -0000 Thomas Hurst wrote: > * Carlos Silva aka |Danger_Man| (full-disclosure@csilva.org) wrote: >>what is the best method to backup network information and local disk >>information with another disk? > > > dump/restore performs snapshotted incremental backups of complete > filesystems. > I've been using dar (http://dar.linux.free.fr/) for a while now and very happy with it. Works on the filesystem level, not on the block device level, and does incremental backups, also of parts of your filesystem and to a remote machine (through ssh for example). Whether it is the best method for you, i can't answer. Koen -- K.F.J. Martens, Sonologic, http://www.sonologic.nl/ Networking, hosting, embedded systems, unix, artificial intelligence. Public PGP key: http://www.metro.cx/pubkey-gmc.asc Wondering about the funny attachment your mail program can't read? Visit http://www.openpgp.org/ From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 8 21:21:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8D5F16A41F for ; Tue, 8 Nov 2005 21:21:33 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443FB43D48 for ; Tue, 8 Nov 2005 21:21:33 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id jA8LLNZu051263; Tue, 8 Nov 2005 13:21:24 -0800 (PST) (envelope-from bakul@bitblocks.com) Message-Id: <200511082121.jA8LLNZu051263@gate.bitblocks.com> To: Thomas Hurst In-reply-to: Your message of "Tue, 08 Nov 2005 16:10:53 GMT." <20051108161053.GA38553@voi.aagh.net> Date: Tue, 08 Nov 2005 13:21:23 -0800 From: Bakul Shah Cc: freebsd-hackers@freebsd.org, Carlos Silva aka |Danger_Man| Subject: Re: Backup methodes 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, 08 Nov 2005 21:21:33 -0000 Thomas Hurst writes: > * Carlos Silva aka |Danger_Man| (full-disclosure@csilva.org) wrote: > > > what is the best method to backup network information and local disk > > information with another disk? > > dump/restore performs snapshotted incremental backups of complete > filesystems. I have been using venti from plan9ports (a set of plan9 programs ported to unix like OSes) for the past few months now. See http://swtch.com/plan9ports Features: - backup ufs1 and ufs2 over the net to a venti server - Initial full backup seems faster than dump's level 0 backup (I get about 3 to 7 MBps to a USB2 disk). - Saves only one copy of every distinct block no matter which file it belongs to or how many times you give it to venti => less filling, more nutricious! - Every backup is a full backup but because of the above feature venti stores only changed or new blocks. This incremental backup works at close to max disk speed. (I can backup a 30GB filesystem in under 25 minutes to a USB2 disk). Speed of the disk being backed up is the bottleneck so you can simulteneously backup multiple disks to utilize a venti server's full disk/net bandwidth. This is fast enough that backing up everything every night actually works! - each backup returns a single `score'. This serves as a handle to grab the same backup later on. - you can nfs mount the backups. *every* snapshot is available. For example, /dump/my-host/2005/1105/usr. - you can ftp browse a specific backup by giving its score. - You can recreate the image of a partition as per a specific backup. For instance 'vcat > /dev/da0s1e' will recreate a specific disk image. You can then mount it just like a normal disk partition. Though I'd much prefer it if md(4) did this as then it can fetch data on demand. mdconfig -a -t venti -v -s It still has some warts (for example its security model doesn't quite work well for a full restore and you have to resort to vcat) but overall it has been a vast improvement over dump/restore for me. venti can also be used back up file trees like tar does. Venti is close to a Ginsu knife of archiving:-) -- bakul From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 9 00:45:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD3A216A41F; Wed, 9 Nov 2005 00:45:48 +0000 (GMT) (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 4580443D5A; Wed, 9 Nov 2005 00:45:46 +0000 (GMT) (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 647E446B0A; Tue, 8 Nov 2005 19:45:45 -0500 (EST) Date: Wed, 9 Nov 2005 00:45:45 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Attila Nagy In-Reply-To: <437064D6.6060504@fsn.hu> Message-ID: <20051109004508.G85371@fledge.watson.org> References: <436A868F.4010606@fsn.hu> <20051104095129.M9692@fledge.watson.org> <436B8918.9060105@fsn.hu> <436C7998.5040404@fsn.hu> <437064D6.6060504@fsn.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Reproduceable freeze with quotas enabled 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, 09 Nov 2005 00:45:49 -0000 On Tue, 8 Nov 2005, Attila Nagy wrote: >> I've put all together in this file. Tell me please if I can do anything >> to make the issue more clear. > Just for the record: the machine freezes with UP kernels too. > > Any chance to investigate it further? It's a really annoying bug, which > makes quota support a little bit useless. Not as yet, hope to have a chance to look at it this week. Thanks, Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 9 21:32:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC29B16A41F; Wed, 9 Nov 2005 21:32:23 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6897E43D48; Wed, 9 Nov 2005 21:32:23 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jA9LWM8Z008983; Wed, 9 Nov 2005 13:32:22 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jA9LWMvx008982; Wed, 9 Nov 2005 13:32:22 -0800 (PST) (envelope-from jmg) Date: Wed, 9 Nov 2005 13:32:22 -0800 From: John-Mark Gurney To: Danny Howard Message-ID: <20051109213221.GA775@funkthat.com> Mail-Followup-To: Danny Howard , freebsd-geom@freebsd.org, freebsd-hackers@freebsd.org References: <20051109212534.GD72876@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051109212534.GD72876@ratchet.nebcorp.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GEOM for multipath? How? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 21:32:23 -0000 Danny Howard wrote this message on Wed, Nov 09, 2005 at 13:25 -0800: > And I says to myself "AHA! Multipath should be easy to implement on > FreeBSD as well, via geom." But I can't find an obvious way given > existing geom utils to do this. And like I said, the box I'd use this > on is inaccesible for now. > > Basically, I'd want a provider, that would see two disks, and if it > could talk to one disk, it would, else it would talk to the other. geom_fox is what you are looking for: http://lists.freebsd.org/pipermail/freebsd-current/2003-June/005288.html but as phk mentions: but since the isp driver has very aggresive retrie policies as it is now, the actual usability is still somewhat below par. i.e. if a request goes to one path, it will never be failed, and not get a change to try the other path... I can't seem to find the recent mailing list messages talking about these issues... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 9 21:55:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D7AA16A420; Wed, 9 Nov 2005 21:55:11 +0000 (GMT) (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 D519F43D53; Wed, 9 Nov 2005 21:55:10 +0000 (GMT) (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 7429E46BB1; Wed, 9 Nov 2005 16:55:10 -0500 (EST) Date: Wed, 9 Nov 2005 21:55:10 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Attila Nagy In-Reply-To: <437064D6.6060504@fsn.hu> Message-ID: <20051109215200.M33260@fledge.watson.org> References: <436A868F.4010606@fsn.hu> <20051104095129.M9692@fledge.watson.org> <436B8918.9060105@fsn.hu> <436C7998.5040404@fsn.hu> <437064D6.6060504@fsn.hu> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1698448597-1131573310=:33260" Cc: freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Reproduceable freeze with quotas enabled 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, 09 Nov 2005 21:55:11 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1698448597-1131573310=:33260 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 8 Nov 2005, Attila Nagy wrote: > Any chance to investigate it further? It's a really annoying bug, which > makes quota support a little bit useless. Attached is a patch that corrects at least one or two deadlock scenarios in UNIX domain socket garbage collecting (unpgc_task.diff). I've also attached a patch for kern_descriptor.c that fixes a bug there in the passing of file descriptors referencing files over UNIX domain sockets (closef_threadnull.diff). I've committed the latter to 7.x, with the intent to merge to 6.x in a week or so. The larger UNIX domain socket garbage collection patch I need to think about some more, but I'm quite interested in whether it fixes the deadlock you're seeing (or for that matter, makes it worse somehow). Thanks, Robert N M Watson --0-1698448597-1131573310=:33260 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=unpgc_task.diff Content-Transfer-Encoding: BASE64 Content-ID: <20051109215510.Y33260@fledge.watson.org> Content-Description: Content-Disposition: attachment; filename=unpgc_task.diff SW5kZXg6IHVpcGNfdXNycmVxLmMNCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N ClJDUyBmaWxlOiAvaG9tZS9uY3ZzL3NyYy9zeXMva2Vybi91aXBjX3VzcnJl cS5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4xNTgNCmRpZmYgLXUgLXIx LjE1OCB1aXBjX3VzcnJlcS5jDQotLS0gdWlwY191c3JyZXEuYwkzMSBPY3Qg MjAwNSAxNTo0MToyNSAtMDAwMAkxLjE1OA0KKysrIHVpcGNfdXNycmVxLmMJ OSBOb3YgMjAwNSAyMTo0OTo1MyAtMDAwMA0KQEAgLTU5LDYgKzU5LDcgQEAN CiAjaW5jbHVkZSA8c3lzL3N4Lmg+DQogI2luY2x1ZGUgPHN5cy9zeXNjdGwu aD4NCiAjaW5jbHVkZSA8c3lzL3N5c3RtLmg+DQorI2luY2x1ZGUgPHN5cy90 YXNrcXVldWUuaD4NCiAjaW5jbHVkZSA8c3lzL3VuLmg+DQogI2luY2x1ZGUg PHN5cy91bnBjYi5oPg0KICNpbmNsdWRlIDxzeXMvdm5vZGUuaD4NCkBAIC0x MTIsNiArMTEzLDEzIEBADQogI2RlZmluZQlVTlBfTE9DS19BU1NFUlQoKQlt dHhfYXNzZXJ0KCZ1bnBfbXR4LCBNQV9PV05FRCkNCiAjZGVmaW5lCVVOUF9V TkxPQ0tfQVNTRVJUKCkJbXR4X2Fzc2VydCgmdW5wX210eCwgTUFfTk9UT1dO RUQpDQogDQorLyoNCisgKiBHYXJiYWdlIGNvbGxlY3Rpb24gb2YgY3ljbGlj IGZpbGUgZGVzY3JpcHRvci9zb2NrZXQgcmVmZXJlbmNlcyBvY2N1cnMNCisg KiBhc3luY2hyb25vdXNseSBpbiBhIHRhc2txdWV1ZSBjb250ZXh0LiAgU2Vl IHVucF9nYygpIGZvciBhIGZ1bGwNCisgKiBkZXNjcmlwdGlvbi4NCisgKi8N CitzdGF0aWMgc3RydWN0IHRhc2sJdW5wX2djX3Rhc2s7DQorDQogc3RhdGlj IGludCAgICAgdW5wX2F0dGFjaChzdHJ1Y3Qgc29ja2V0ICopOw0KIHN0YXRp YyB2b2lkICAgIHVucF9kZXRhY2goc3RydWN0IHVucGNiICopOw0KIHN0YXRp YyBpbnQgICAgIHVucF9iaW5kKHN0cnVjdCB1bnBjYiAqLHN0cnVjdCBzb2Nr YWRkciAqLCBzdHJ1Y3QgdGhyZWFkICopOw0KQEAgLTEyMCw3ICsxMjgsNyBA QA0KIHN0YXRpYyB2b2lkICAgIHVucF9kaXNjb25uZWN0KHN0cnVjdCB1bnBj YiAqKTsNCiBzdGF0aWMgdm9pZCAgICB1bnBfc2h1dGRvd24oc3RydWN0IHVu cGNiICopOw0KIHN0YXRpYyB2b2lkICAgIHVucF9kcm9wKHN0cnVjdCB1bnBj YiAqLCBpbnQpOw0KLXN0YXRpYyB2b2lkICAgIHVucF9nYyh2b2lkKTsNCitz dGF0aWMgdm9pZCAgICB1bnBfZ2MoX191bnVzZWQgdm9pZCAqLCBpbnQpOw0K IHN0YXRpYyB2b2lkICAgIHVucF9zY2FuKHN0cnVjdCBtYnVmICosIHZvaWQg KCopKHN0cnVjdCBmaWxlICopKTsNCiBzdGF0aWMgdm9pZCAgICB1bnBfbWFy ayhzdHJ1Y3QgZmlsZSAqKTsNCiBzdGF0aWMgdm9pZCAgICB1bnBfZGlzY2Fy ZChzdHJ1Y3QgZmlsZSAqKTsNCkBAIC03OTUsMTkgKzgwMyw5IEBADQogCX0N CiAJc29pc2Rpc2Nvbm5lY3RlZCh1bnAtPnVucF9zb2NrZXQpOw0KIAl1bnAt PnVucF9zb2NrZXQtPnNvX3BjYiA9IE5VTEw7DQotCWlmICh1bnBfcmlnaHRz KSB7DQotCQkvKg0KLQkJICogTm9ybWFsbHkgdGhlIHJlY2VpdmUgYnVmZmVy IGlzIGZsdXNoZWQgbGF0ZXIsDQotCQkgKiBpbiBzb2ZyZWUsIGJ1dCBpZiBv dXIgcmVjZWl2ZSBidWZmZXIgaG9sZHMgcmVmZXJlbmNlcw0KLQkJICogdG8g ZGVzY3JpcHRvcnMgdGhhdCBhcmUgbm93IGdhcmJhZ2UsIHdlIHdpbGwgZGlz cG9zZQ0KLQkJICogb2YgdGhvc2UgZGVzY3JpcHRvciByZWZlcmVuY2VzIGFm dGVyIHRoZSBnYXJiYWdlIGNvbGxlY3Rvcg0KLQkJICogZ2V0cyB0aGVtIChy ZXN1bHRpbmcgaW4gYSAicGFuaWM6IGNsb3NlZjogY291bnQgPCAwIikuDQot CQkgKi8NCi0JCXNvcmZsdXNoKHVucC0+dW5wX3NvY2tldCk7DQotCQl1bnBf Z2MoKTsJLyogV2lsbCB1bmxvY2sgVU5QLiAqLw0KLQl9IGVsc2UNCi0JCVVO UF9VTkxPQ0soKTsNCi0JVU5QX1VOTE9DS19BU1NFUlQoKTsNCisJaWYgKHVu cF9yaWdodHMpDQorCQl0YXNrcXVldWVfZW5xdWV1ZSh0YXNrcXVldWVfdGhy ZWFkLCAmdW5wX2djX3Rhc2spOw0KKwlVTlBfVU5MT0NLKCk7DQogCWlmICh1 bnAtPnVucF9hZGRyICE9IE5VTEwpDQogCQlGUkVFKHVucC0+dW5wX2FkZHIs IE1fU09OQU1FKTsNCiAJdW1hX3pmcmVlKHVucF96b25lLCB1bnApOw0KQEAg LTEzOTUsNyArMTM5Myw3IEBADQogCXVtYV96b25lX3NldF9tYXgodW5wX3pv bmUsIG5tYmNsdXN0ZXJzKTsNCiAJTElTVF9JTklUKCZ1bnBfZGhlYWQpOw0K IAlMSVNUX0lOSVQoJnVucF9zaGVhZCk7DQotDQorCVRBU0tfSU5JVCgmdW5w X2djX3Rhc2ssIDAsIHVucF9nYywgTlVMTCk7DQogCVVOUF9MT0NLX0lOSVQo KTsNCiB9DQogDQpAQCAtMTU4MSwxNCArMTU3OSwyMCBAQA0KIH0NCiANCiAv Kg0KLSAqIHVucF9kZWZlciBpcyB0aHJlYWQtbG9jYWwgZHVyaW5nIGdhcmJh Z2UgY29sbGVjdGlvbiwgYW5kIGRvZXMgbm90IHJlcXVpcmUNCi0gKiBleHBs aWNpdCBzeW5jaHJvbml6YXRpb24uICB1bnBfZ2NpbmcgcHJldmVudHMgb3Ro ZXIgdGhyZWFkcyBmcm9tIGVudGVyaW5nDQotICogZ2FyYmFnZSBjb2xsZWN0 aW9uLCBhbmQgcGVyaGFwcyBzaG91bGQgYmUgYW4gc3ggbG9jayBpbnN0ZWFk Lg0KKyAqIHVucF9kZWZlciBpbmRpY2F0ZXMgd2hldGhlciBhZGRpdGlvbmFs IHdvcmsgaGFzIGJlZW4gZGVmZXJlZCBmb3IgYSBmdXR1cmUNCisgKiBwYXNz IHRocm91Z2ggdW5wX2djKCkuICBJdCBpcyB0aHJlYWQgbG9jYWwgYW5kIGRv ZXMgbm90IHJlcXVpcmUgZXhwbGljaXQNCisgKiBzeW5jaHJvbml6YXRpb24u DQogICovDQotc3RhdGljIGludAl1bnBfZGVmZXIsIHVucF9nY2luZzsNCitz dGF0aWMgaW50CXVucF9kZWZlcjsNCisNCitzdGF0aWMgaW50IHVucF90YXNr Y291bnQ7DQorU1lTQ1RMX0lOVChfbmV0X2xvY2FsLCBPSURfQVVUTywgdGFz a2NvdW50LCBDVExGTEFHX1JELCAmdW5wX3Rhc2tjb3VudCwgMCwgIiIpOw0K Kw0KK3N0YXRpYyBpbnQgdW5wX3JlY3ljbGVkOw0KK1NZU0NUTF9JTlQoX25l dF9sb2NhbCwgT0lEX0FVVE8sIHJlY3ljbGVkLCBDVExGTEFHX1JELCAmdW5w X3JlY3ljbGVkLCAwLCAiIik7DQogDQogc3RhdGljIHZvaWQNCi11bnBfZ2Mo dm9pZCkNCit1bnBfZ2MoX191bnVzZWQgdm9pZCAqYXJnLCBpbnQgcGVuZGlu ZykNCiB7DQogCXN0cnVjdCBmaWxlICpmcCwgKm5leHRmcDsNCiAJc3RydWN0 IHNvY2tldCAqc287DQpAQCAtMTU5NywxNSArMTYwMSw4IEBADQogCWludCBu ZmlsZXNfc25hcDsNCiAJaW50IG5maWxlc19zbGFjayA9IDIwOw0KIA0KLQlV TlBfTE9DS19BU1NFUlQoKTsNCi0NCi0JaWYgKHVucF9nY2luZykgew0KLQkJ VU5QX1VOTE9DSygpOw0KLQkJcmV0dXJuOw0KLQl9DQotCXVucF9nY2luZyA9 IDE7DQorCXVucF90YXNrY291bnQrKzsNCiAJdW5wX2RlZmVyID0gMDsNCi0J VU5QX1VOTE9DSygpOw0KIAkvKg0KIAkgKiBiZWZvcmUgZ29pbmcgdGhyb3Vn aCBhbGwgdGhpcywgc2V0IGFsbCBGRHMgdG8NCiAJICogYmUgTk9UIGRlZmVy ZWQgYW5kIE5PVCBleHRlcm5hbGx5IGFjY2Vzc2libGUNCkBAIC0xNzAwLDYg KzE2OTcsOSBAQA0KIAl9IHdoaWxlICh1bnBfZGVmZXIpOw0KIAlzeF9zdW5s b2NrKCZmaWxlbGlzdF9sb2NrKTsNCiAJLyoNCisJICogWFhYUlc6IFRoZSBm b2xsb3dpbmcgY29tbWVudHMgbmVlZCB1cGRhdGluZyBmb3IgYSBwb3N0LVNN UG5nIGFuZA0KKwkgKiBkZWZlcnJlZCB1bnBfZ2MoKSB3b3JsZCwgYnV0IGFy ZSBzdGlsbCBnZW5lcmFsbHkgYWNjdXJhdGUuDQorCSAqDQogCSAqIFdlIGdy YWIgYW4gZXh0cmEgcmVmZXJlbmNlIHRvIGVhY2ggb2YgdGhlIGZpbGUgdGFi bGUgZW50cmllcw0KIAkgKiB0aGF0IGFyZSBub3Qgb3RoZXJ3aXNlIGFjY2Vz c2libGUgYW5kIHRoZW4gZnJlZSB0aGUgcmlnaHRzDQogCSAqIHRoYXQgYXJl IHN0b3JlZCBpbiBtZXNzYWdlcyBvbiB0aGVtLg0KQEAgLTE3ODgsMTIgKzE3 ODgsMTEgQEANCiAJCQlGSUxFX1VOTE9DSyh0ZnApOw0KIAkJfQ0KIAl9DQot CWZvciAoaSA9IG51bnJlZiwgZnBwID0gZXh0cmFfcmVmOyAtLWkgPj0gMDsg KytmcHApDQorCWZvciAoaSA9IG51bnJlZiwgZnBwID0gZXh0cmFfcmVmOyAt LWkgPj0gMDsgKytmcHApIHsNCiAJCWNsb3NlZigqZnBwLCAoc3RydWN0IHRo cmVhZCAqKSBOVUxMKTsNCisJCXVucF9yZWN5Y2xlZCsrOw0KKwl9DQogCWZy ZWUoZXh0cmFfcmVmLCBNX1RFTVApOw0KLQl1bnBfZ2NpbmcgPSAwOw0KLQ0K LQlVTlBfVU5MT0NLX0FTU0VSVCgpOw0KIH0NCiANCiB2b2lkDQo= --0-1698448597-1131573310=:33260 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=closef_threadnull.diff Content-Transfer-Encoding: BASE64 Content-ID: <20051109215510.W33260@fledge.watson.org> Content-Description: Content-Disposition: attachment; filename=closef_threadnull.diff SW5kZXg6IGtlcm5fZGVzY3JpcC5jDQo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 DQpSQ1MgZmlsZTogL2hvbWUvbmN2cy9zcmMvc3lzL2tlcm4va2Vybl9kZXNj cmlwLmMsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjI4Mw0KcmV0cmlldmlu ZyByZXZpc2lvbiAxLjI4NA0KZGlmZiAtdSAtcjEuMjgzIC1yMS4yODQNCi0t LSBrZXJuX2Rlc2NyaXAuYwkxIE5vdiAyMDA1IDE3OjEzOjA1IC0wMDAwCTEu MjgzDQorKysga2Vybl9kZXNjcmlwLmMJOSBOb3YgMjAwNSAyMDo1NDoyNSAt MDAwMAkxLjI4NA0KQEAgLTE4ODAsOSArMTg4MCwxMyBAQA0KIAkgKiBhIGZs YWcgaW4gdGhlIHVubG9jayB0byBmcmVlIE9OTFkgbG9ja3Mgb2JleWluZyBQ T1NJWA0KIAkgKiBzZW1hbnRpY3MsIGFuZCBub3QgdG8gZnJlZSBCU0Qtc3R5 bGUgZmlsZSBsb2Nrcy4NCiAJICogSWYgdGhlIGRlc2NyaXB0b3Igd2FzIGlu IGEgbWVzc2FnZSwgUE9TSVgtc3R5bGUgbG9ja3MNCi0JICogYXJlbid0IHBh c3NlZCB3aXRoIHRoZSBkZXNjcmlwdG9yLg0KKwkgKiBhcmVuJ3QgcGFzc2Vk IHdpdGggdGhlIGRlc2NyaXB0bywgYW5kIHRoZSB0aHJlYWQgcG9pbnRlcg0K KwkgKiB3aWxsIGJlIE5VTEwuICBDYWxsZXJzIHNob3VsZCBiZSBjYXJlZnVs IG9ubHkgdG8gcGFzcyBhDQorCSAqIE5VTEwgdGhyZWFkIHBvaW50ZXIgd2hl biB0aGVyZSByZWFsbHkgaXMgbm8gb3duaW5nDQorCSAqIGNvbnRleHQgdGhh dCBtaWdodCBoYXZlIGxvY2tzLCBvciB0aGUgbG9ja3Mgd2lsbCBiZQ0KKwkg KiBsZWFrZWQuDQogCSAqLw0KLQlpZiAoZnAtPmZfdHlwZSA9PSBEVFlQRV9W Tk9ERSkgew0KKwlpZiAoZnAtPmZfdHlwZSA9PSBEVFlQRV9WTk9ERSAmJiB0 ZCAhPSBOVUxMKSB7DQogCQlpbnQgdmZzbG9ja2VkOw0KIA0KIAkJdnAgPSBm cC0+Zl92bm9kZTsNCg== --0-1698448597-1131573310=:33260-- From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 9 21:25:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33FCD16A41F; Wed, 9 Nov 2005 21:25:35 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0902243D45; Wed, 9 Nov 2005 21:25:35 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id B2AFED9849; Wed, 9 Nov 2005 13:25:34 -0800 (PST) Date: Wed, 9 Nov 2005 13:25:34 -0800 From: Danny Howard To: freebsd-geom@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20051109212534.GD72876@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu X-Mailman-Approved-At: Thu, 10 Nov 2005 05:23:46 +0000 Cc: Subject: GEOM for multipath? How? 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, 09 Nov 2005 21:25:35 -0000 Hello, Alas, my fancy Engenio dual-FC disk array is inaccessible to me for testing. :( But we are working on switching over to RHEL due to availability of FC multi-path redundancy drivers for RHEL but nada for FreeBSD. I was reading Linux' md man page, which sounds awfully similar to geom, and they have a provider called: MUTIPATH MULTIPATH is not really a RAID at all as there is only one real device in a MULTIPATH md array. However there are multiple access points (paths) to this device, and one of these paths might fail, so there are some similarities. A MULTIPATH array is composed of a number of logical different devices, often fibre channel interfaces, that all refer the the same real device. If one of these interfaces fails (e.g. due to cable prob- lems), the multipath driver to attempt to redirect requests to another interface. And I says to myself "AHA! Multipath should be easy to implement on FreeBSD as well, via geom." But I can't find an obvious way given existing geom utils to do this. And like I said, the box I'd use this on is inaccesible for now. Basically, I'd want a provider, that would see two disks, and if it could talk to one disk, it would, else it would talk to the other. Anyone here have a multipath capable hardware infrastructure who could test out some applicable geom config? Like I say a third time ... I have a nice Engenio 2882 FC sitting in a Datacenter, 3,000 miles away, that is connected to a system that is offline. I get to visit after Thanksgiving ... :/ Thanks, -danny -- http://dannyman.toldme.com/ From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 9 21:41:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422AC16A420; Wed, 9 Nov 2005 21:41:30 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE2B43D46; Wed, 9 Nov 2005 21:41:29 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id BEA22D982E; Wed, 9 Nov 2005 13:41:29 -0800 (PST) Date: Wed, 9 Nov 2005 13:41:29 -0800 From: Danny Howard To: freebsd-geom@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20051109214129.GE72876@ratchet.nebcorp.com> References: <20051109212534.GD72876@ratchet.nebcorp.com> <20051109213221.GA775@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051109213221.GA775@funkthat.com> User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu X-Mailman-Approved-At: Thu, 10 Nov 2005 05:24:48 +0000 Cc: Subject: Re: GEOM for multipath? How? 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, 09 Nov 2005 21:41:30 -0000 Gurney, Hey ... yes, I recall there being issues with the QLogic drivers ... I wonder if anyone has given the mpt drivers a shot? I was able to speak with an engineer at Engenio (now owned by LSI) and she said there were some issues with the QLogic dual-port cards that were interesting to her, but the LSI dual-port cards behaved differently ... ... I need to dig up her contact information ... Of course, my system-in-the-datacenter has QLogic cards in it ... :) But it is very nice to see the fox is out and about. -danny From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 06:24:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E51BE16A41F for ; Thu, 10 Nov 2005 06:24:20 +0000 (GMT) (envelope-from abdul.shaik@wipro.com) Received: from wip-ectls-mx3.wipro.com (wip-ectls-mx3.wipro.com [203.91.193.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9237743D55 for ; Thu, 10 Nov 2005 06:23:49 +0000 (GMT) (envelope-from abdul.shaik@wipro.com) Received: from wip-ectls-mx3.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 373DD22408E for ; Thu, 10 Nov 2005 11:53:35 +0530 (IST) Received: from blr-ec-bh01.wipro.com (blr-ec-bh01.wipro.com [10.201.50.91]) by wip-ectls-mx3.wipro.com (Postfix) with ESMTP id 29AF1224039 for ; Thu, 10 Nov 2005 11:53:35 +0530 (IST) Received: from hyd-mdp-msg.wipro.com ([10.150.50.99]) by blr-ec-bh01.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Nov 2005 11:53:34 +0530 Received: from HYD-MKD-MBX01.wipro.com ([10.154.50.182]) by hyd-mdp-msg.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Nov 2005 11:53:23 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Nov 2005 11:53:12 +0530 Message-ID: <4BF93629369C534D9F7850EE49BA44E30D888D@HYD-MKD-MBX01.wipro.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CPU utilization Thread-Index: AcXlvVF4sKW3mZQFTSSiywiNAzwlewAADkxw From: To: X-OriginalArrivalTime: 10 Nov 2005 06:23:24.0615 (UTC) FILETIME=[413FED70:01C5E5BF] Subject: CPU utilization 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, 10 Nov 2005 06:24:21 -0000 Hi Good Morning.. I want to calculate the CPU utilization in my DHCP server implementation. I am using C language on Solaris 9. Could any one please let me know Is there any system call can do this? Thanks in advance. Regards, Abdul Rasheed. Confidentiality Notice=0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and may contain confidential or= privileged information. If you are not the intended recipient, please notify the sender at Wipro or= Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 06:32:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEFE916A41F for ; Thu, 10 Nov 2005 06:32:41 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03CCB43D46 for ; Thu, 10 Nov 2005 06:32:40 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jAA6WeCY099252; Thu, 10 Nov 2005 00:32:40 -0600 (CST) (envelope-from dan) Date: Thu, 10 Nov 2005 00:32:40 -0600 From: Dan Nelson To: abdul.shaik@wipro.com Message-ID: <20051110063239.GC93359@dan.emsphone.com> References: <4BF93629369C534D9F7850EE49BA44E30D888D@HYD-MKD-MBX01.wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BF93629369C534D9F7850EE49BA44E30D888D@HYD-MKD-MBX01.wipro.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: CPU utilization 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, 10 Nov 2005 06:32:41 -0000 In the last episode (Nov 10), abdul.shaik@wipro.com said: > Hi Good Morning.. > > I want to calculate the CPU utilization in my DHCP server > implementation. > I am using C language on Solaris 9. Could any one please let me know > Is there any system call can do this? This is completely the wrong mailing list for this question, but take a look at the getrusage() function. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 08:50:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 832D016A41F for ; Thu, 10 Nov 2005 08:50:13 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from smtp3.jp.viruscheck.net (smtp3.jp.viruscheck.net [154.33.69.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id F02EF43D48 for ; Thu, 10 Nov 2005 08:50:12 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from scan2.jp.viruscheck.net ([154.33.69.37] helo=mail4.jp.viruscheck.net) by smtp3.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1Ea88J-0005al-00 for freebsd-hackers@freebsd.org; Thu, 10 Nov 2005 17:50:11 +0900 Received: from [58.93.54.134] (helo=noc.orchid.orchidtechnology.com) by mail4.jp.viruscheck.net with esmtp (Exim 3.36 #3) id 1Ea88G-00079H-00 for freebsd-hackers@FreeBSD.org; Thu, 10 Nov 2005 17:50:08 +0900 Received: from [89.60.10.11] (horse.orchid.orchidtechnology.com [89.60.10.11]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id jAA8o7Xt049469 for ; Thu, 10 Nov 2005 17:50:07 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <437309BD.7010704@FreeBSD.org> Date: Thu, 10 Nov 2005 17:50:05 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: No interrupts coming to device 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: Thu, 10 Nov 2005 08:50:13 -0000 Hi, I trying to create small lirc (www.lirc.org) compatible CIR driver for it8705 chip (sits on ISA bus). My problem is I can not get interrupts coming to driver. I believe I configured chip (carrier freq. + baudrate divisor) and enabled interrupt mode the same way it windows driver does. It also seems to be correct according to chip specs. But nothing. vmstat -i shows zeros for assigned irq. And my IRS stay cold. I wrote small userland program which polls CIRs IIR (interrupt identefication register) and it shows interrupt pending bit set on right after I press key on remote control. Looks like I missed something fundamental. Does anyone can give me a hint where to look? Thanks, Alexander. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 10:25:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A7C116A41F; Thu, 10 Nov 2005 10:25:27 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DFD843D58; Thu, 10 Nov 2005 10:25:24 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp199-254.lns1.adl4.internode.on.net [203.122.199.254]) by smtp1.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id jAAAPKlD019730; Thu, 10 Nov 2005 20:55:22 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.dons.net.au (inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.13.4/8.13.3) with ESMTP id jAAAPIWc026285 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 10 Nov 2005 20:55:19 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Thu, 10 Nov 2005 20:55:09 +1030 User-Agent: KMail/1.8.2 References: <437309BD.7010704@FreeBSD.org> In-Reply-To: <437309BD.7010704@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1766528.P9J7kFki0K"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200511102055.15637.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.52 on 10.0.2.7 Cc: Alexander Nedotsukov Subject: Re: No interrupts coming to device 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: Thu, 10 Nov 2005 10:25:27 -0000 --nextPart1766528.P9J7kFki0K Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 10 Nov 2005 19:20, Alexander Nedotsukov wrote: > -i shows zeros for assigned irq. And my IRS stay cold. I wrote small > userland program which polls CIRs IIR (interrupt identefication > register) and it shows interrupt pending bit set on right after I press > key on remote control. Looks like I missed something fundamental. Does > anyone can give me a hint where to look? Show us the code otherwise it's impossible to say.. Also, you haven't said what version of FreeBSD you're using. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1766528.P9J7kFki0K Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDcyAL5ZPcIHs/zowRAvO4AKCno/AYhhRiRnOUQAl5evfiJvdlxACfff0F ae+G1vPvVv2DwMJtR9RdP+s= =kjzh -----END PGP SIGNATURE----- --nextPart1766528.P9J7kFki0K-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 11:14:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02F7816A41F for ; Thu, 10 Nov 2005 11:14:56 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B7143D5E for ; Thu, 10 Nov 2005 11:14:54 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so189542wxc for ; Thu, 10 Nov 2005 03:14:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Az+nT2cKzTCmEN3exmfBT99aJ4ySZWwJINi2U635JOFPXQQ+zfWwGFnVbbN/jgyydgePkFCkoSG0y2dVeCeHRytY+fSAB/PoHNyU6C69SwOAnfidAo1pd554qy5BdK31rtk9W1G6DtpoyuQLYHxgAz7KEYRmscKx96dWXBjlbKY= Received: by 10.70.48.7 with SMTP id v7mr623958wxv; Thu, 10 Nov 2005 02:48:53 -0800 (PST) Received: by 10.70.18.16 with HTTP; Thu, 10 Nov 2005 02:48:53 -0800 (PST) Message-ID: <87ab37ab0511100248n474f3ee1wd952ae3f12cbecc3@mail.gmail.com> Date: Thu, 10 Nov 2005 18:48:53 +0800 From: kylin To: John Baldwin In-Reply-To: <200511061007.03634.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> <20051105.140416.69987626.imp@bsdimp.com> <87ab37ab0511060314m2eef7458vefc4f5f657ea6501@mail.gmail.com> <200511061007.03634.jhb@FreeBSD.org> Cc: freebsd-hackers@freebsd.org Subject: Re: misc questions about the device&driver arch 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, 10 Nov 2005 11:14:56 -0000 Sir ,i am still puzzled by the windows and freebsd arch similar. 1 the window TPS say that windwo allocate the resource window in default size of 1M or 2M,so there may be hole ,does that happen in freebsd 5 or 6? 2 in my view i believe that freebsd us the "just enough "tactics,so the nexus level of resource view is =3D=3D=3Dcontinuous=3D=3D=3D=3Dwith NO = hole in a boot up system, IF hot remove do not happen .am i right? 3 IF i do a PCI hotplug under a bridge, and the bridge 's MEM Window is full ,i have to do reballacne (including use the device_pause method:)), and if i can not declaim the resource from other bridge because "nexus level of resource view is =3D=3D=3Dcontinuous=3D=3D=3D=3Dwit= h NO hole ", can i extend the physical address space beyond the boot time locate range to PCI host bridge ? On 11/6/05, John Baldwin wrote: > On Sunday 06 November 2005 06:14 am, kylin wrote: > > On 11/6/05, M. Warner Losh wrote: > > > In message: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.= com> > > > > > > kylin writes: > > > : /////////////// > > > : pci bridge dynamic resize > > > : ///////////// > > > : it seems that the device arch of freebsd is similar to what is reve= aled > > > : in window OS. i have read the pcie hotplug tps of windows longhorn = ,it > > > : is said that with some hardware mechanisms the pci bridge driver ca= n do > > > : global pci resource window reconfiguration.so good to the hotplugin= pci > > > : device for it avoid prelocating resource for the device . > > > : i wonder ,if the mem /io/irq reconfiguration possible under freebsd= .:) > > > : 1 > > > > > > Yes. Cardbus does it all the time. However, there's no pcie hot-plu= g > > > support yet, so the process for kicking off configuration of the new > > > device doesn't happen. > > > > > > Warner > > > > sorry for my poor grammar ,i think i confused the public:) i will make > > myself clear with the words below about the PCI Multi-level Rebalance > > > > PCI Multi-level Rebalance in Windows Longhorn > > Updated: November 25, 2003 > > No, FreeBSD doesn't currently do what this decribes yet. It would be pos= sible > to do it by adding a new device_pause() method that drivers would be requ= ired > to implement while the resources were shuffled around though and possibly= a > device_unpause() method so that they could update their state if their > resources were changed while the device was paused. > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 13:07:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35CD16A41F; Thu, 10 Nov 2005 13:07:41 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB42B43D45; Thu, 10 Nov 2005 13:07:40 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-37-194.daxnet.no ([193.217.37.194] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3.8) with ESMTP id 7393672; Thu, 10 Nov 2005 14:07:37 +0100 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Thu, 10 Nov 2005 14:08:49 +0100 User-Agent: KMail/1.7 References: <437309BD.7010704@FreeBSD.org> In-Reply-To: <437309BD.7010704@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511101408.51423.hselasky@c2i.net> Cc: Alexander Nedotsukov Subject: Re: No interrupts coming to device driver. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 13:07:42 -0000 On Thursday 10 November 2005 09:50, Alexander Nedotsukov wrote: > Hi, > > I trying to create small lirc (www.lirc.org) compatible CIR driver for > it8705 chip (sits on ISA bus). My problem is I can not get interrupts > coming to driver. I believe I configured chip (carrier freq. + baudrate > divisor) and enabled interrupt mode the same way it windows driver does. > It also seems to be correct according to chip specs. But nothing. vmstat > -i shows zeros for assigned irq. And my IRS stay cold. I wrote small > userland program which polls CIRs IIR (interrupt identefication > register) and it shows interrupt pending bit set on right after I press > key on remote control. Looks like I missed something fundamental. Does > anyone can give me a hint where to look? > Sounds like you have an unacknowledged interrupt. Does it help if you call the interrupt handler once after that your chip has been reset and configured? Else sharing some of the source code might help. --HPS From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 13:48:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 331DD16A41F; Thu, 10 Nov 2005 13:48:21 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id C684143D4C; Thu, 10 Nov 2005 13:48:20 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id CA3DCBC84; Thu, 10 Nov 2005 13:48:16 +0000 (UTC) To: babkin@users.sf.net From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 10 Nov 2005 07:06:26 CST." <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net> Date: Thu, 10 Nov 2005 14:48:15 +0100 Message-ID: <5582.1131630495@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Danny Howard , freebsd-hackers@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GEOM for multipath? How? 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, 10 Nov 2005 13:48:21 -0000 In message <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net>, Sergey Babkin writes: >>From: Danny Howard > >>Hey ... yes, I recall there being issues with the QLogic drivers ... I >>wonder if anyone has given the mpt drivers a shot? I was able to speak >>with an engineer at Engenio (now owned by LSI) and she said there were >>some issues with the QLogic dual-port cards that were interesting to >>her, but the LSI dual-port cards behaved differently ... > >QLogic worked fine in multi-path configuration with UnixWare. >I think LSI and Adaptec did too. The only trick is to make sure >that the IRQs of the cards are not shared between the cards or with >any other device. I suspect it is not the card as much as the driver, but I am not sure. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 13:22:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B2BB16A41F; Thu, 10 Nov 2005 13:22:23 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4462743D45; Thu, 10 Nov 2005 13:22:23 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms170.mailsrvcs.net ([192.168.1.3]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IPQ002BWPQQRB10@vms040.mailsrvcs.net>; Thu, 10 Nov 2005 07:06:26 -0600 (CST) Date: Thu, 10 Nov 2005 07:06:26 -0600 (CST) From: Sergey Babkin To: Danny Howard , freebsd-geom@freebsd.org, freebsd-hackers@freebsd.org Message-id: <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Thu, 10 Nov 2005 13:51:31 +0000 Cc: Subject: Re: Re: GEOM for multipath? How? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 13:22:23 -0000 >From: Danny Howard >Hey ... yes, I recall there being issues with the QLogic drivers ... I >wonder if anyone has given the mpt drivers a shot? I was able to speak >with an engineer at Engenio (now owned by LSI) and she said there were >some issues with the QLogic dual-port cards that were interesting to >her, but the LSI dual-port cards behaved differently ... QLogic worked fine in multi-path configuration with UnixWare. I think LSI and Adaptec did too. The only trick is to make sure that the IRQs of the cards are not shared between the cards or with any other device. -SB From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 14:01:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06BC116A43E; Thu, 10 Nov 2005 14:01:36 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E51843D45; Thu, 10 Nov 2005 14:01:32 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4A28551CD1; Thu, 10 Nov 2005 15:01:31 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 4923550F92; Thu, 10 Nov 2005 15:01:25 +0100 (CET) Date: Thu, 10 Nov 2005 15:01:13 +0100 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20051110140113.GC29291@garage.freebsd.pl> References: <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net> <5582.1131630495@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MnLPg7ZWsaic7Fhd" Content-Disposition: inline In-Reply-To: <5582.1131630495@critter.freebsd.dk> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Danny Howard , freebsd-geom@freebsd.org, babkin@users.sf.net, freebsd-hackers@freebsd.org Subject: Re: GEOM for multipath? How? 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, 10 Nov 2005 14:01:36 -0000 --MnLPg7ZWsaic7Fhd Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 10, 2005 at 02:48:15PM +0100, Poul-Henning Kamp wrote: +> In message <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net>, = Sergey=20 +> Babkin writes: +> >>From: Danny Howard +> > +> >>Hey ... yes, I recall there being issues with the QLogic drivers ... I +> >>wonder if anyone has given the mpt drivers a shot? I was able to speak +> >>with an engineer at Engenio (now owned by LSI) and she said there were +> >>some issues with the QLogic dual-port cards that were interesting to +> >>her, but the LSI dual-port cards behaved differently ... +> > +> >QLogic worked fine in multi-path configuration with UnixWare. +> >I think LSI and Adaptec did too. The only trick is to make sure=20 +> >that the IRQs of the cards are not shared between the cards or with +> >any other device. +>=20 +> I suspect it is not the card as much as the driver, but I am not sure. I was able to modify the driver in a way multipathing started to work (no more hanging request when path was disconnected). It was hackish, but worked, so I'm quite sure it's driver's fault. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --MnLPg7ZWsaic7Fhd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDc1KpForvXbEpPzQRAt8ZAKC5L+cJOGO+O/n8roo7b31zDO0mYQCfWebc V8AanVflb0TACzFCwxNBjMM= =wcL/ -----END PGP SIGNATURE----- --MnLPg7ZWsaic7Fhd-- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 01:21:00 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF1A16A41F; Fri, 11 Nov 2005 01:21:00 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 192F843D45; Fri, 11 Nov 2005 01:21:00 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id E3BE52D2D3; Thu, 10 Nov 2005 19:20:59 -0600 (CST) Date: Thu, 10 Nov 2005 19:20:57 -0600 From: Craig Boston To: Pawel Jakub Dawidek Message-ID: <20051111012057.GA16592@nowhere> Mail-Followup-To: Craig Boston , Pawel Jakub Dawidek , freebsd-hackers@freebsd.org References: <20051028040450.GB50419@nowhere> <20051101104136.GA2116@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051101104136.GA2116@garage.freebsd.pl> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] IPv6 support for ggate 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, 11 Nov 2005 01:21:00 -0000 On Tue, Nov 01, 2005 at 11:41:36AM +0100, Pawel Jakub Dawidek wrote: > I'll be grateful if you could file PR and send me its number. Thanks! I just submitted version 2 of the patch as bin/88821. > Thanks a lot! Unfortunately I don't have time to setup test environment > (I don't use ipv6 at all) and it can take a while before I'll be ready > for committing this (if noone else beat me on this). No problem, I can very much identify with not having enough time. I'm no stranger to maintaining local patches, so no hurry. For anyone following along who wants to try this out, grab the patch from the PR rather than the one I posted earlier. Please test even if you don't use IPv6 to make sure everything still works. The new patch has several improvements over the first one: * Much cleaner in a few places (notably mask handling & address binding) * ggated now allows binding to an arbitrary number of local addresses, just specify -a for each one you want to use * Eliminates most cases of conditional code on AF_*. The only ones left deal with network masks for access control that can't really be generalized Craig From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 17:36:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F24E316A41F; Thu, 10 Nov 2005 17:36:01 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E5FD43D58; Thu, 10 Nov 2005 17:36:00 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 4F56BD983B; Thu, 10 Nov 2005 09:36:00 -0800 (PST) Date: Thu, 10 Nov 2005 09:36:00 -0800 From: Danny Howard To: Pawel Jakub Dawidek Message-ID: <20051110173600.GA23887@ratchet.nebcorp.com> References: <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net> <5582.1131630495@critter.freebsd.dk> <20051110140113.GC29291@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051110140113.GC29291@garage.freebsd.pl> User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu X-Mailman-Approved-At: Fri, 11 Nov 2005 03:29:45 +0000 Cc: freebsd-hackers@freebsd.org, Poul-Henning Kamp , babkin@users.sf.net, freebsd-geom@freebsd.org Subject: Re: GEOM for multipath? How? 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, 10 Nov 2005 17:36:02 -0000 On Thu, Nov 10, 2005 at 03:01:13PM +0100, Pawel Jakub Dawidek wrote: > On Thu, Nov 10, 2005 at 02:48:15PM +0100, Poul-Henning Kamp wrote: > +> In message <32275093.1131627986609.JavaMail.root@vms170.mailsrvcs.net>, Sergey > +> Babkin writes: > +> >QLogic worked fine in multi-path configuration with UnixWare. > +> >I think LSI and Adaptec did too. The only trick is to make sure > +> >that the IRQs of the cards are not shared between the cards or with > +> >any other device. > +> > +> I suspect it is not the card as much as the driver, but I am not sure. > > I was able to modify the driver in a way multipathing started to work > (no more hanging request when path was disconnected). It was hackish, > but worked, so I'm quite sure it's driver's fault. Well, it is good to hear that multipathing is working in some cases. But, and I don't mean to troll or flame, just get my job done, it sounds like if I want MP on the production database, I should stick with the Red Hat this time around, eh? Hopefully I can get some infrastructure to test on sometime. It would be neat if MP on FreeBDS was very straightforward. It would be neater still if I could make some small contribution to everyone elses' efforts to make it happen. :) Thanks, -danny -- http://dannyman.toldme.com/ From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 03:55:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B4F316A41F for ; Fri, 11 Nov 2005 03:55:33 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from smtp4.jp.viruscheck.net (smtp4.jp.viruscheck.net [154.33.69.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C99643D46 for ; Fri, 11 Nov 2005 03:55:32 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from scan3.jp.viruscheck.net ([154.33.69.38] helo=mail1.jp.viruscheck.net) by smtp4.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1EaQ0V-0004Pf-00; Fri, 11 Nov 2005 12:55:19 +0900 Received: from [58.93.54.134] (helo=noc.orchid.orchidtechnology.com) by mail1.jp.viruscheck.net with esmtp (Exim 3.36 #3) id 1EaPxH-0005Cq-00; Fri, 11 Nov 2005 12:51:59 +0900 Received: from [89.60.10.11] (horse.orchid.orchidtechnology.com [89.60.10.11]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id jAB3tEdQ053546; Fri, 11 Nov 2005 12:55:18 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <43741622.5010309@FreeBSD.org> Date: Fri, 11 Nov 2005 12:55:14 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: "Daniel O'Connor" References: <437309BD.7010704@FreeBSD.org> <200511102055.15637.doconnor@gsoft.com.au> In-Reply-To: <200511102055.15637.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org Subject: Re: No interrupts coming to device 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: Fri, 11 Nov 2005 03:55:33 -0000 Daniel O'Connor wrote: > On Thu, 10 Nov 2005 19:20, Alexander Nedotsukov wrote: > >> -i shows zeros for assigned irq. And my IRS stay cold. I wrote small >> userland program which polls CIRs IIR (interrupt identefication >> register) and it shows interrupt pending bit set on right after I press >> key on remote control. Looks like I missed something fundamental. Does >> anyone can give me a hint where to look? >> > > Show us the code otherwise it's impossible to say.. > Sure. http://bbnest.net/~bland/it87pub/ > Also, you haven't said what version of FreeBSD you're using FreeBSD hub.bbnest.net 5.4-STABLE FreeBSD 5.4-STABLE #11: Sat Oct 29 13:25:50 JST 2005 bland@hub.bbnest.net:/usr/obj/usr/src/sys/HUB i386 Alexander. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 04:02:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6775516A41F for ; Fri, 11 Nov 2005 04:02:58 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from smtp3.jp.viruscheck.net (smtp3.jp.viruscheck.net [154.33.69.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id B342043D48 for ; Fri, 11 Nov 2005 04:02:55 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from scan2.jp.viruscheck.net ([154.33.69.37] helo=mail4.jp.viruscheck.net) by smtp3.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1EaQ7l-0002HK-00; Fri, 11 Nov 2005 13:02:49 +0900 Received: from [58.93.54.134] (helo=noc.orchid.orchidtechnology.com) by mail4.jp.viruscheck.net with esmtp (Exim 3.36 #3) id 1EaQ7k-0005SI-00; Fri, 11 Nov 2005 13:02:48 +0900 Received: from [89.60.10.11] (horse.orchid.orchidtechnology.com [89.60.10.11]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id jAB42l23053573; Fri, 11 Nov 2005 13:02:47 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <437417E7.4090800@FreeBSD.org> Date: Fri, 11 Nov 2005 13:02:47 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: hselasky@c2i.net References: <437309BD.7010704@FreeBSD.org> <200511101408.51423.hselasky@c2i.net> In-Reply-To: <200511101408.51423.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org Subject: Re: No interrupts coming to device 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: Fri, 11 Nov 2005 04:02:58 -0000 Hans Petter Selasky wrote: > On Thursday 10 November 2005 09:50, Alexander Nedotsukov wrote: > >> Hi, >> >> I trying to create small lirc (www.lirc.org) compatible CIR driver for >> it8705 chip (sits on ISA bus). My problem is I can not get interrupts >> coming to driver. I believe I configured chip (carrier freq. + baudrate >> divisor) and enabled interrupt mode the same way it windows driver does. >> It also seems to be correct according to chip specs. But nothing. vmstat >> -i shows zeros for assigned irq. And my IRS stay cold. I wrote small >> userland program which polls CIRs IIR (interrupt identefication >> register) and it shows interrupt pending bit set on right after I press >> key on remote control. Looks like I missed something fundamental. Does >> anyone can give me a hint where to look? >> >> > > Sounds like you have an unacknowledged interrupt. Does it help if you call the > interrupt handler once after that your chip has been reset and configured? > Did you mean unacknowledged to chip or interrupt controller? Anyway calling interrupt handler right after initialization does not seem to help. > Else sharing some of the source code might help. > Here you are: http://bbnest.net/~bland/it87pub/ Alexander. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 04:48:55 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B879216A41F for ; Fri, 11 Nov 2005 04:48:55 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id C310743D46 for ; Fri, 11 Nov 2005 04:48:54 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: by xproxy.gmail.com with SMTP id t10so917459wxc for ; Thu, 10 Nov 2005 20:48:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=VBlsioWJEEWSE0Nq1nK6EJaSH2tQrLxOk+knyulOVmLnWkYk85Wuo5ZSW+08O1sa51S22S9CyXo1NtvV1vkUMlLau7z4zKFMV+4NoqsEB82mTXTQPDJrLe1cvK6T77OIo95LsZoHgzS5Q3akYW0+ikOo7RNyB0QKkngQgYQEzng= Received: by 10.65.20.6 with SMTP id x6mr196296qbi; Thu, 10 Nov 2005 20:48:54 -0800 (PST) Received: by 10.64.199.12 with HTTP; Thu, 10 Nov 2005 20:48:54 -0800 (PST) Message-ID: <9f9993160511102048l2955ec1fu17087706363cf2d2@mail.gmail.com> Date: Fri, 11 Nov 2005 10:18:54 +0530 From: rashmi ns To: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, bugi@lists.redbrick.dcu.ie MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Need Help In sppp_attach 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, 11 Nov 2005 04:48:55 -0000 Hello List , I'm writing a hdlc driver we want to send traffic to the driver and test. But I have some basic doubts regarding sppp .Kindly Give your suggestions 1.How to run PPP on FreeBSD system. 2.What configuration needs to be done in order to send traffic using HDLC driver. Thanks For your Suggestions In Advance Regards, Rashmi.n.s From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 12:56:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF3CE16A41F for ; Fri, 11 Nov 2005 12:56:29 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62AF743D45 for ; Fri, 11 Nov 2005 12:56:29 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: by xproxy.gmail.com with SMTP id t11so722072wxc for ; Fri, 11 Nov 2005 04:56:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RF0nrfJ9d611yc0UXn+YPCp4D5qIFlEiMEkaOGyxy0sXATMDkpHD3LXfPwzPaANfEMg2OAbBvFh6Vv9uskFVvTrrheYbTPKtgmMZnZCdA6iCfZcoPIB/nz7UcGhGpRnBL+3iKh1CIe6+tl7rq53PsiPcO1Dp8o1ueG/qDCX3CuQ= Received: by 10.64.131.4 with SMTP id e4mr2288084qbd; Fri, 11 Nov 2005 04:56:28 -0800 (PST) Received: by 10.64.199.12 with HTTP; Fri, 11 Nov 2005 04:56:28 -0800 (PST) Message-ID: <9f9993160511110456w149032dcoca634dea6b37ef79@mail.gmail.com> Date: Fri, 11 Nov 2005 18:26:28 +0530 From: rashmi ns To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE:HELP NEEDED IN USING PPP INTERFACE 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, 11 Nov 2005 12:56:29 -0000 Hello All, We Want to send traffic IP Traffic to the HDLC DRIVER(written for DS31256) hdlc driver is using sppp_attatch. To run pppd what device we need to give in the options file. Normally device is set to /dev/cuaa0 for serial com port. But I am not getting what device we need to set in the /etc/ppp/options fil= e for hdlc driver. Or do we have to give the device file created by make_dev() of hdlc driver Does sppp.ko creates any device in the /dev directory after sppp_attach? Thanks In Advance , Rashmi From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 15:00:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE66316A41F for ; Fri, 11 Nov 2005 15:00:18 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5796F43D49 for ; Fri, 11 Nov 2005 15:00:18 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so201922nzo for ; Fri, 11 Nov 2005 06:59:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ehbgn+1UcKd4QLENyW0QZ4Qol7W3x5FPKbRCOybuN70rrj4ZM9K7IyZowHg8++Y+FkC6XIsjPSN80UiKTKq8pdb+wWIWuu8wjcGqyv9ms4851IAvThnzp7jEb9xPiUFHDNa8CX7ZxRUzzx9D7jO+JTI53jYSAawtwfK8n3bue/A= Received: by 10.36.101.20 with SMTP id y20mr1367680nzb; Fri, 11 Nov 2005 06:59:44 -0800 (PST) Received: by 10.36.118.17 with HTTP; Fri, 11 Nov 2005 06:59:44 -0800 (PST) Message-ID: <426b510c0511110659i30b228bco62defd892395ff99@mail.gmail.com> Date: Fri, 11 Nov 2005 17:59:44 +0300 From: Alex Pivovarov To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Mailman-Approved-At: Fri, 11 Nov 2005 15:08:43 +0000 Subject: #cat /dev/ulpt0 - causes fatal trap 12 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, 11 Nov 2005 15:00:18 -0000 running #cat /dev/ulpt0 causes fatal trap 12 and system begins dumping. printer HP LaserJet 1010 USB #uname -a FreeBSD st1.fqdn 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 10 16:04:32 MSK 2005 root@:/usr/obj/usr/src/sys/st1 i386 From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 16:31:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B79AE16A420; Fri, 11 Nov 2005 16:31:29 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0F0C43D6B; Fri, 11 Nov 2005 16:31:22 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jABGV5iD074655; Fri, 11 Nov 2005 09:31:05 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 11 Nov 2005 09:31:41 -0700 (MST) Message-Id: <20051111.093141.122160674.imp@bsdimp.com> To: bland@freebsd.org From: "M. Warner Losh" In-Reply-To: <437309BD.7010704@FreeBSD.org> References: <437309BD.7010704@FreeBSD.org> X-Mailer: Mew version 3.3 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]); Fri, 11 Nov 2005 09:31:05 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: No interrupts coming to device 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: Fri, 11 Nov 2005 16:31:29 -0000 In message: <437309BD.7010704@FreeBSD.org> Alexander Nedotsukov writes: : I trying to create small lirc (www.lirc.org) compatible CIR driver for : it8705 chip (sits on ISA bus). My problem is I can not get interrupts : coming to driver. I believe I configured chip (carrier freq. + baudrate : divisor) and enabled interrupt mode the same way it windows driver does. : It also seems to be correct according to chip specs. But nothing. vmstat : -i shows zeros for assigned irq. And my IRS stay cold. I wrote small : userland program which polls CIRs IIR (interrupt identefication : register) and it shows interrupt pending bit set on right after I press : key on remote control. Looks like I missed something fundamental. Does : anyone can give me a hint where to look? If it is on the ISA bus, then you can look at the IRQ line that you are using for this card on the scope. Set it to trigger on an edge (either falling if the signal is high or rising if the signal is low, usually it is high). Make sure that the IRQ that you are using is not shared with anything else, even hardware you aren't using. That's forbidden in the ISA world (although some hacks exist to do interrupt sharing with two devices on the ISA bus, (a) almost nobody does them and (b) they don't work when sharing with pci). Make sure that the IRQ is set in the BIOS as Legacy/ISA rather than ISAPNP/PCI (or some variants of those phrases). See if there's a way to force an interrupt on the chip by writing to a register of some sort. It doesn't matter if you are going to use this, but it will be good for testing. It almost certainly isn't an unacknowledged interrupt (unless it is left over from before your chip reset). In my experience, those cause vmstat of 1. It might be worth checking the chip initialization sequence to make sure that you clear any possible interrupts AFTER you've done the bus_setup_inter() call to register your interrupt handler. That's all I can think of at the moment, but it should keep you busy for a few hours :-) Warner From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 11 18:08:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E35A16A41F; Fri, 11 Nov 2005 18:08:02 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E897143D45; Fri, 11 Nov 2005 18:08:01 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.117]) ([10.251.23.117]) by a50.ironport.com with ESMTP; 11 Nov 2005 10:08:02 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <4374DE01.50202@elischer.org> Date: Fri, 11 Nov 2005 10:08:01 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rashmi ns References: <9f9993160511102048l2955ec1fu17087706363cf2d2@mail.gmail.com> In-Reply-To: <9f9993160511102048l2955ec1fu17087706363cf2d2@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, bugi@lists.redbrick.dcu.ie Subject: Re: Need Help In sppp_attach 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, 11 Nov 2005 18:08:02 -0000 rashmi ns wrote: >Hello List , >I'm writing a hdlc driver we want to send traffic to the driver and test. >But I have some basic doubts regarding sppp .Kindly Give your suggestions >1.How to run PPP on FreeBSD system. >2.What configuration needs to be done in order to send traffic using HDLC >driver. >Thanks For your Suggestions In Advance > > personally I'd put a netgraph interface on it and then use mpd to control the ppp.. But hey, I'm biased. >Regards, >Rashmi.n.s >_______________________________________________ >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 Fri Nov 11 19:48:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7561016A41F for ; Fri, 11 Nov 2005 19:48:14 +0000 (GMT) (envelope-from frenzy@frenzy.org) Received: from frenzy.org (frenzy.org [69.36.165.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FDD043D45 for ; Fri, 11 Nov 2005 19:48:14 +0000 (GMT) (envelope-from frenzy@frenzy.org) Received: from localhost (root@localhost) by frenzy.org (8.11.6/8.11.6) with ESMTP id jABJmDQ06625 for ; Fri, 11 Nov 2005 12:48:13 -0700 Date: Fri, 11 Nov 2005 12:48:13 -0700 (MST) From: frenzy@frenzy.org To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Patch for using dual serial/internal consoles? 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, 11 Nov 2005 19:48:14 -0000 I remember hearing some time ago about someone who had written a kernel patch so you could use both the serial and internal console. Unfortunately, I can't seem to find the patch anywhere. I have a few servers setup using a console server for remote serial console access, and would also like the capability to have a kvm setup at the same time that the console has been directed to the serial device. Could anyone point me in the right direction for any work done on this issue? I am especially interested in the 5.x kernel. Thanks, Randy From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 07:19:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41F2E16A41F for ; Sat, 12 Nov 2005 07:19:23 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBE8343D45 for ; Sat, 12 Nov 2005 07:19:22 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so777091nzo for ; Fri, 11 Nov 2005 23:19:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:reply-to:mime-version:content-type:content-disposition:user-agent; b=AHPshMDYtewECA/WLf16ckKflI7f7jZ3c55x9gwNOYtPa03SMXjAfOeZhAD+uCWuZ8byTT0kiebyaPltiiqazmDkoGA4zg4OcyKc0FYk6+nac3xH7lLrdGKc051umLsN7EkzZcVskEX004exx8s//91hRPTparsZm1jzFjDqwhM= Received: by 10.36.79.19 with SMTP id c19mr2096046nzb; Fri, 11 Nov 2005 23:19:21 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 7sm145885nzn.2005.11.11.23.19.18; Fri, 11 Nov 2005 23:19:21 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id jAC7IF8c019314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 12 Nov 2005 16:18:15 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id jAC7IFQd019313 for freebsd-hackers@freebsd.org; Sat, 12 Nov 2005 16:18:15 +0900 (KST) (envelope-from yongari@gmail.com) Date: Sat, 12 Nov 2005 16:18:15 +0900 From: Pyun YongHyeon To: freebsd-hackers@freebsd.org Message-ID: <20051112071815.GD18405@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: poor fdc(4) performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 07:19:23 -0000 Hi, I encountered a P3 SMP system that shows poor fdc(4) performance. But when I use larger block size, say 36b, it seems it works as expected. #dd if=boot.flp of=/dev/fd0 2880+0 records in 2880+0 records out 1474560 bytes transferred in 607.483808 secs (2427 bytes/sec) #dd if=boot.flp of=/dev/fd0 bs=36b 80+0 records in 80+0 records out 1474560 bytes transferred in 48.482513 secs (30414 bytes/sec) On other P4 machine I got: #dd if=boot.flp of=/dev/fd0 2880+0 records in 2880+0 records out 1474560 bytes transferred in 51.007538 secs (28909 bytes/sec) #dd if=boot.flp of=/dev/fd0 bs=36b 80+0 records in 80+0 records out 1474560 bytes transferred in 47.972662 secs (30738 bytes/sec) This type of poor dd performance is the same symptom I'd like to solve on sparc64. On ebus based Ultrasparcs it shows almost the same phenomenon. Since I can't see any DMA or retry errors on fdc I have no idea what caused this. In addition, it works well on sbus based ultrasparcs which don't support DMA. Any ideas? -- Regards, Pyun YongHyeon From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 07:37:15 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B3C116A41F for ; Sat, 12 Nov 2005 07:37:15 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id D236043D45 for ; Sat, 12 Nov 2005 07:37:14 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail14.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id jAC7bCEr022451 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 12 Nov 2005 18:37:13 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id jAC7bCHh086981; Sat, 12 Nov 2005 18:37:12 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id jAC7bBiZ086980; Sat, 12 Nov 2005 18:37:11 +1100 (EST) (envelope-from pjeremy) Date: Sat, 12 Nov 2005 18:37:11 +1100 From: Peter Jeremy To: Pyun YongHyeon Message-ID: <20051112073711.GE39882@cirb503493.alcatel.com.au> References: <20051112071815.GD18405@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112071815.GD18405@rndsoft.co.kr> User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc Cc: freebsd-hackers@freebsd.org Subject: Re: poor fdc(4) performance 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, 12 Nov 2005 07:37:15 -0000 On Sat, 2005-Nov-12 16:18:15 +0900, Pyun YongHyeon wrote: >I encountered a P3 SMP system that shows poor fdc(4) performance. >But when I use larger block size, say 36b, it seems it works >as expected. 36b is one track. My suspicion is that the system isn't fast enough to read sequential blocks, one at a time, so you're forced to wait a complete revolution (plus a bit) for each block you read. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 07:45:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 482E816A41F for ; Sat, 12 Nov 2005 07:45:27 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFD7943D45 for ; Sat, 12 Nov 2005 07:45:26 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so342069nzo for ; Fri, 11 Nov 2005 23:45:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HWixwWw1tWm9/zt/GmX6Al0WTFtLkYP4Y1Uy7iGEgsDxXzo7r/p47MrO1izhLliMeXk9KQ63QuXjEd4NO5uPdhhgv6wXcFE+CaR9TSGWyqdtmIkzjaRkOYwU6v618J9bMROBKPLEJFXIV5VxW/PexbGWU/LwMLgSZf/pH5lATF4= Received: by 10.36.247.78 with SMTP id u78mr2055938nzh; Fri, 11 Nov 2005 23:45:26 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 39sm290485nzk.2005.11.11.23.45.22; Fri, 11 Nov 2005 23:45:26 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id jAC7iKKC019415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Nov 2005 16:44:20 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id jAC7iIKn019414; Sat, 12 Nov 2005 16:44:18 +0900 (KST) (envelope-from yongari@gmail.com) Date: Sat, 12 Nov 2005 16:44:18 +0900 From: Pyun YongHyeon To: Peter Jeremy Message-ID: <20051112074418.GE18405@rndsoft.co.kr> References: <20051112071815.GD18405@rndsoft.co.kr> <20051112073711.GE39882@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112073711.GE39882@cirb503493.alcatel.com.au> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: poor fdc(4) performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 07:45:27 -0000 On Sat, Nov 12, 2005 at 06:37:11PM +1100, Peter Jeremy wrote: > On Sat, 2005-Nov-12 16:18:15 +0900, Pyun YongHyeon wrote: > >I encountered a P3 SMP system that shows poor fdc(4) performance. > >But when I use larger block size, say 36b, it seems it works > >as expected. > > 36b is one track. My suspicion is that the system isn't fast enough > to read sequential blocks, one at a time, so you're forced to wait > a complete revolution (plus a bit) for each block you read. > Yes, it could be. But I think the machine is fast enough to read sequential blocks. Part of dmesg shows: CPU: Intel Pentium III (800.03-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x387fbff real memory = 402587648 (383 MB) avail memory = 384385024 (366 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 And I think I got much better result on slow i386 machines except this one. -- Regards, Pyun YongHyeon From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 12:13:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0F5216A41F for ; Sat, 12 Nov 2005 12:13:47 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60322.mail.yahoo.com (web60322.mail.yahoo.com [209.73.178.130]) by mx1.FreeBSD.org (Postfix) with SMTP id BF37C43D5D for ; Sat, 12 Nov 2005 12:13:43 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 94910 invoked by uid 60001); 12 Nov 2005 12:13:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=p3PN2rAPQFCDIT5WXHHFdHY1QtswwQ9Lvt7eP8QTLnNdH1FMzlATdjSKlKKltbrkg6lY507nAfPXCJ8y69lBilYMtxvzwzvP8E8i2SVNPVDWLMtIOsETTOSp9WMe5ZtmgZi3s4hjaTCijhF9cFXuLD0fAP2pyfCY/Iyjjs8ZejE= ; Message-ID: <20051112121343.94908.qmail@web60322.mail.yahoo.com> Received: from [67.139.63.215] by web60322.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 04:13:42 PST Date: Sat, 12 Nov 2005 04:13:42 -0800 (PST) From: d c To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: SSH From within a Jail 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, 12 Nov 2005 12:13:47 -0000 Greetings: I currently am running Freebsd 6.0 Release. I am experimenting with jails and have run into a problem. I need to ssh from within my jail to another server. Actually I need to use scp. WHen I try it I get the error: "Host key verification failed." >From the host machine I can succefully ssh or scp to any available server that I may have. As typical with the jail setups I do have a separate aliased IP address for the jailed environment. I thought possible it had to do with the security mib "raw_sockets". I set this to one. To confirm it was enacted I was able to successfully ping from the jail but still unable to use the ssh protocol. I googled this topic and it seems noone else has run into this. Any Ideas TIA __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 12:41:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7B7416A41F for ; Sat, 12 Nov 2005 12:41:31 +0000 (GMT) (envelope-from delphij@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6854A43D46 for ; Sat, 12 Nov 2005 12:41:31 +0000 (GMT) (envelope-from delphij@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so802059nzo for ; Sat, 12 Nov 2005 04:41:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YqeJjahH5uCZd9OVYhDrM+Pt+0TkHlnDh0PrQnML28BM1mBiT6gCzihM5lVaHBtkhB9RYxEwUa2fozt/RO6Rt+vD1N4F7C7kFo0Od8olj3J9rErITticqUxqp7QxwROojwfQeHwumJXe60Hmg/DhTnO7eJMsAQwJyWGDbrpfOuU= Received: by 10.64.232.14 with SMTP id e14mr3566891qbh; Sat, 12 Nov 2005 04:35:21 -0800 (PST) Received: by 10.64.21.5 with HTTP; Sat, 12 Nov 2005 04:35:21 -0800 (PST) Message-ID: Date: Sat, 12 Nov 2005 20:35:21 +0800 From: Xin LI To: d c In-Reply-To: <20051112121343.94908.qmail@web60322.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20051112121343.94908.qmail@web60322.mail.yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: delphij@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 12:41:31 -0000 T24gMTEvMTIvMDUsIGQgYyA8Y2FzdGVsZDczQHlhaG9vLmNvbT4gd3JvdGU6Cj4gR3JlZXRpbmdz Ogo+Cj4gSSBjdXJyZW50bHkgYW0gcnVubmluZyBGcmVlYnNkIDYuMCBSZWxlYXNlLgo+Cj4gSSBh bSBleHBlcmltZW50aW5nIHdpdGggamFpbHMgYW5kIGhhdmUgcnVuIGludG8gYQo+IHByb2JsZW0u ICBJIG5lZWQgdG8gc3NoIGZyb20gd2l0aGluIG15IGphaWwgdG8gYW5vdGhlcgo+IHNlcnZlci4g IEFjdHVhbGx5IEkgbmVlZCB0byB1c2Ugc2NwLiAgV0hlbiBJIHRyeSBpdCBJCj4gZ2V0IHRoZSBl cnJvcjogICJIb3N0IGtleSB2ZXJpZmljYXRpb24gZmFpbGVkLiIKClRoaXMgbG9va3MgbGlrZSB0 aGF0IHRoZSBjb25uZWN0aW9uIHdhcyByZWplY3RlZCBpbiBpdHMgdmVyeSBlYXJseQpzdGFnZS4g IFdvdWxkIHlvdSBwbGVhc2UgdXNlICJzb2Nrc3RhdCAtNCIgd2l0aGluIHRoZSBqYWlsIChzZWUg amV4ZWMKYW5kIGpscyBtYW51YWwpIGFuZCBzZWUgaWYgc3NoZCBpcyBhY3R1YWxseSB1cD8KCi0t ClhpbiBMSSA8ZGVscGhpakBkZWxwaGlqLm5ldD4gaHR0cDovL3d3dy5kZWxwaGlqLm5ldAo= From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:20:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D538616A41F for ; Sat, 12 Nov 2005 13:20:23 +0000 (GMT) (envelope-from delphij@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76E7B43D45 for ; Sat, 12 Nov 2005 13:20:23 +0000 (GMT) (envelope-from delphij@gmail.com) Received: by zproxy.gmail.com with SMTP id x7so785019nzc for ; Sat, 12 Nov 2005 05:20:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Jk8EavRBYcsnpO+GKTIO9f5UziJGFWoQkl270ikwVygFuMh3T0bG+jen/+p2ZBBpv5Y0m/2+Os1JC0Wsx2ouDl1Y2PqWuAIhCY/8+bGWTU1Hke3XdqOnjw5kyGOHmSdHmELbwcrNc8DY9almdnJ6qtPMDsT21RAnJ/lCb6DNRtE= Received: by 10.65.153.12 with SMTP id f12mr3553461qbo; Sat, 12 Nov 2005 05:13:12 -0800 (PST) Received: by 10.64.21.5 with HTTP; Sat, 12 Nov 2005 05:13:12 -0800 (PST) Message-ID: Date: Sat, 12 Nov 2005 21:13:12 +0800 From: Xin LI To: d c In-Reply-To: <20051112121343.94908.qmail@web60322.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20051112121343.94908.qmail@web60322.mail.yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: delphij@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 13:20:23 -0000 T24gMTEvMTIvMDUsIGQgYyA8Y2FzdGVsZDczQHlhaG9vLmNvbT4gd3JvdGU6Cj4gSSBhbSBub3Qg cnVubmluZyBzc2hkIGluIHRoZSBqYWlsLiAgSSBhbSB0cnlpbmcgdG8KPiBhdHRhY2ggdG8gc3No ZCBvbiBhbm90aGVyIHNlcnZlciBmcm9tIGluc2lkZSB0aGUgamFpbC4KClNlZW1zIHRoYXQgSSBo YXMgbWlzcmVhZC4gIFdvdWxkIHlvdSBwbGVhc2UgdHJ5ICJ0ZWxuZXQgW3RhcmdldCBJUF0KMjIi IHRvIHNlZSB3aGF0IGhhcHBlbnM/CgpCVFcuICBQbGVhc2UgInJlcGx5IGFsbCIgd2hlbiByZXBs eWluZyBlLW1haWwgZnJvbSB0aGUgbGlzdCwgd2hpY2gKZW5zdXJlcyB0aGF0IHRoZSBleHBlcmll bmNlIHdvdWxkIGJlIHNoYXJlZCB3aXRoIG90aGVycyA6LSkKCkNoZWVycywKLS0KWGluIExJIDxk ZWxwaGlqQGRlbHBoaWoubmV0PiBodHRwOi8vd3d3LmRlbHBoaWoubmV0Cg== From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:30:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E30E16A41F for ; Sat, 12 Nov 2005 13:30:59 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60325.mail.yahoo.com (web60325.mail.yahoo.com [209.73.178.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 19A5743D46 for ; Sat, 12 Nov 2005 13:30:58 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 27484 invoked by uid 60001); 12 Nov 2005 13:30:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5gOb5l1pcCznutwiJCsWQy5FRiEMKGFikesE+MtMedFeoh2mFcMnCGoTIdUs6HRbv/sOi01+V5o7yVuocX3pTypmw1ig5EQNAOijjy10LejID3EKXT3FHr8EpLBH0q0M+V21G112KBPijrgehNe14rtXBEf7hP5XYHAdWj745vk= ; Message-ID: <20051112133058.27482.qmail@web60325.mail.yahoo.com> Received: from [67.139.63.215] by web60325.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 05:30:58 PST Date: Sat, 12 Nov 2005 05:30:58 -0800 (PST) From: d c To: delphij@delphij.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:30:59 -0000 telnet 10.0.0.60 22 Connected to 10.0.0.60. Escape character is '^]'. SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 If I ssh into 10.0.0.60 from the host system that the jail is running on I connect right in w/o any problems. Just the jails on the host giving me probs. I also tried recreating the /etc/ssh/ssh_hostkey but that didn;t help --- Xin LI wrote: > On 11/12/05, d c wrote: > > I am not running sshd in the jail. I am trying to > > attach to sshd on another server from inside the > jail. > > Seems that I has misread. Would you please try > "telnet [target IP] > 22" to see what happens? > > BTW. Please "reply all" when replying e-mail from > the list, which > ensures that the experience would be shared with > others :-) > > Cheers, > -- > Xin LI http://www.delphij.net > > _______________________________________________ > 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" __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:37:42 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E83A016A41F for ; Sat, 12 Nov 2005 13:37:42 +0000 (GMT) (envelope-from andrea@acampi.hq.inet.it) Received: from acampi.hq.inet.it (out-11.hq.inet.it [194.185.62.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id BED1B43D69 for ; Sat, 12 Nov 2005 13:37:40 +0000 (GMT) (envelope-from andrea@acampi.hq.inet.it) Received: by acampi.hq.inet.it (Postfix, from userid 1000) id B716028; Sat, 12 Nov 2005 14:37:38 +0100 (CET) Date: Sat, 12 Nov 2005 14:37:38 +0100 From: Andrea Campi To: d c Message-ID: <20051112133738.GB1857@webcom.it> References: <20051112133058.27482.qmail@web60325.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112133058.27482.qmail@web60325.mail.yahoo.com> User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org, delphij@delphij.net Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:37:43 -0000 On Sat, Nov 12, 2005 at 05:30:58AM -0800, d c wrote: > Just the jails on the host giving me probs. > > I also tried recreating the /etc/ssh/ssh_hostkey but > that didn;t help As a quick test, try moving aside (renaming) the .ssh directory in the home directory of the jail user you're trying this from. If it fixes your issue, then it's a simple matter of wrong host keys and/or client configuration. If not, you may be seeing corruption somewhere. Either way, you definitely want to use the -v option with ssh and look carefully for hints. Bye, Andrea -- Press every key to continue. From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:38:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B157116A41F for ; Sat, 12 Nov 2005 13:38:43 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60325.mail.yahoo.com (web60325.mail.yahoo.com [209.73.178.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 23CB043D4C for ; Sat, 12 Nov 2005 13:38:42 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 28197 invoked by uid 60001); 12 Nov 2005 13:38:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LaWk/tvqNZSKOiS1b7bv7fiVPnU/EJoueYifd11YVHSX2GSOp5CmXVNJvf424FKK5bcNES8IGnRWf80iBNTic6++mHYJckKuDT0S42XlYEfPd+KjcEpiUP8uLL52hY3UK1U9YTb6FA9RA/UCk6gC8eeidgO77bVc1b9pz+C5IlY= ; Message-ID: <20051112133842.28195.qmail@web60325.mail.yahoo.com> Received: from [67.139.63.215] by web60325.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 05:38:42 PST Date: Sat, 12 Nov 2005 05:38:42 -0800 (PST) From: d c To: delphij@delphij.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:38:43 -0000 --- Xin LI wrote: > On 11/12/05, d c wrote: > > telnet 10.0.0.60 22 > > > > Connected to 10.0.0.60. > > Escape character is '^]'. > > SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 > > > > If I ssh into 10.0.0.60 from the host system that > the > > jail is running on I connect right in w/o any > > problems. > > > > Just the jails on the host giving me probs. > > > > I also tried recreating the /etc/ssh/ssh_hostkey > but > > that didn;t help > > Do you have /dev/*random available in the jail? > Typically there > should be /dev/random and a /dev/urandom which is a > symbolic link to > /dev/random. IIRC there is problem if you don't > have these in the > jail if you do some ssh related operations... > > Cheers, > -- > Xin LI http://www.delphij.net > Yes there is /dev/random and /dev/urandom Has anyone successfully used ssh (client) from within a jail to connect to other servers? I have recreate numerous jails but all suffer the same problem. regards __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:43:52 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3669816A420 for ; Sat, 12 Nov 2005 13:43:52 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60325.mail.yahoo.com (web60325.mail.yahoo.com [209.73.178.133]) by mx1.FreeBSD.org (Postfix) with SMTP id C1ABB43D45 for ; Sat, 12 Nov 2005 13:43:51 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 28758 invoked by uid 60001); 12 Nov 2005 13:43:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WP7hHHUQ5ufAtv/ARbaLIlEzgfH6CMyRSCn2IxJlFGXYiZBcPfTGHDINO6BTepYJb7bAia7EVsRqDrskEieUIp2V9h2wgcDii82x8xLYnSUWwdxpc1rEBIkY5dhIO2QIlde7fc+70xLfcln6L7cn853MiyTBj/inSzIaezCnU7g= ; Message-ID: <20051112134351.28756.qmail@web60325.mail.yahoo.com> Received: from [67.139.63.215] by web60325.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 05:43:51 PST Date: Sat, 12 Nov 2005 05:43:51 -0800 (PST) From: d c To: d c , delphij@delphij.net In-Reply-To: <20051112133842.28195.qmail@web60325.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:43:52 -0000 here is the rsult from using -v. THis should help. ns1# ssh -v 10.0.0.60 OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 25 Oct 2004 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to 10.0.0.60 [10.0.0.60] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type -1 debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 FreeBSD-20040419 debug1: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat OpenSSH_3.* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.2p1 FreeBSD-20050903 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: read_passphrase: can't open /dev/tty: Device busy Host key verification failed. I just don't understand how to fix "can't open /dev/tty" regards --- d c wrote: > > > --- Xin LI wrote: > > > On 11/12/05, d c wrote: > > > telnet 10.0.0.60 22 > > > > > > Connected to 10.0.0.60. > > > Escape character is '^]'. > > > SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 > > > > > > If I ssh into 10.0.0.60 from the host system > that > > the > > > jail is running on I connect right in w/o any > > > problems. > > > > > > Just the jails on the host giving me probs. > > > > > > I also tried recreating the /etc/ssh/ssh_hostkey > > but > > > that didn;t help > > > > Do you have /dev/*random available in the jail? > > Typically there > > should be /dev/random and a /dev/urandom which is > a > > symbolic link to > > /dev/random. IIRC there is problem if you don't > > have these in the > > jail if you do some ssh related operations... > > > > Cheers, > > -- > > Xin LI > http://www.delphij.net > > > > Yes there is /dev/random and /dev/urandom > > Has anyone successfully used ssh (client) from > within > a jail to connect to other servers? > > I have recreate numerous jails but all suffer the > same > problem. > > regards > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in > one click. > http://farechase.yahoo.com > _______________________________________________ > 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" > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:34:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2930F16A420 for ; Sat, 12 Nov 2005 13:34:06 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7071843D4C for ; Sat, 12 Nov 2005 13:34:04 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so370837nzo for ; Sat, 12 Nov 2005 05:34:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Qq4hIdNx4wPOS18659IW1WtnLFDsDketRmXosdle0k6wJlvNMf1RgdfOF6Xo1rLBTgR1uGiXlx7JgvTIxCr8tjWf6pu01Kde9+Z5ZqGRzWWk8A7o10ML8h3CAmzOW3Nl1V5Ge/TJUxK+XAP61QdmlyL/Q56HkULM7xhfeaZ/6wM= Received: by 10.36.101.20 with SMTP id y20mr2233262nzb; Sat, 12 Nov 2005 05:34:03 -0800 (PST) Received: by 10.36.118.17 with HTTP; Sat, 12 Nov 2005 05:34:03 -0800 (PST) Message-ID: <426b510c0511120534v65d07591j28e51290bf6aa0f8@mail.gmail.com> Date: Sat, 12 Nov 2005 16:34:03 +0300 From: Alex Pivovarov To: freebsd-usb@freebsd.org, freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org, freebsd-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Mailman-Approved-At: Sat, 12 Nov 2005 13:50:45 +0000 Cc: Subject: (backtrace) cat /dev/ulpt0 -- causes fatal trap 12 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, 12 Nov 2005 13:34:06 -0000 running #cat /dev/ulpt0 causes fatal trap 12 and system begins dumping. printer HP LaserJet 1010 USB ----------------------------------------------------------- Script started on Sat Nov 12 16:10:02 2005 alex@st1$ dmesg Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =09The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #0: Sat Nov 12 15:02:22 MSK 2005 root@st1.fqdn:/usr/src/sys/i386/compile/st1deb Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 1800+ (1531.02-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x681 Stepping =3D 1 Features=3D0x383fbff AMD Features=3D0xc0400800 real memory =3D 536805376 (511 MB) avail memory =3D 520167424 (496 MB) mptable_probe: MP Config Table has bad signature: ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: on acpi0 pci_link1: irq 11 on acpi0 pci_link2: on acpi0 pci_link3: irq 12 on acpi0 pci_link4: on acpi0 pci_link5: irq 11 on acpi0 pci_link6: irq 9 on acpi0 pci_link7: on acpi0 pci_link8: on acpi0 pci_link9: on acpi0 pci_link10: on acpi0 pci_link11: irq 12 on acpi0 pci_link12: irq 5 on acpi0 pci_link13: on acpi0 pci_link14: on acpi0 pci_link15: on acpi0 pci_link16: irq 16 on acpi0 pci_link17: irq 17 on acpi0 pci_link18: irq 18 on acpi0 pci_link19: irq 19 on acpi0 pci_link20: irq 16 on acpi0 pci_link21: irq 0 on acpi0 pci_link22: irq 0 on acpi0 pci_link23: irq 0 on acpi0 pci_link24: irq 0 on acpi0 pci_link25: irq 0 on acpi0 pci_link26: irq 0 on acpi0 pci_link27: irq 23 on acpi0 pci_link28: irq 0 on acpi0 pci_link29: irq 0 on acpi0 pci_link30: irq 0 on acpi0 pci_link31: irq 0 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0 pci0: on pcib0 agp0: mem 0xd8000000-0xdbffffff at device 0.0 on pci0 pci0: at device 0.1 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.3 (no driver attached) pci0: at device 0.4 (no driver attached) pci0: at device 0.5 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xe0001000-0xe0001fff irq 20 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xe0002000-0xe0002fff irq 21 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered ehci0: mem 0xe0003000-0xe00030ff irq 22 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 6 ports with 6 removable, self powered pcib1: at device 8.0 on pci0 pci1: on pcib1 emu10kx0: port 0xd000-0xd01f irq 19 at device 9.0 on pci1 pcm0: on emu10kx0 pcm0: pci1: at device 9.1 (no driver attached) rl0: port 0xd800-0xd8ff mem 0xdf000000-0xdf0000ff irq 17 at device 11.0 on pci1 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:50:70:25:19:13 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 9.0 on pci0 ata0: on atapci0 ata1: on atapci0 pcib2: at device 30.0 on pci0 pci2: on pcib2 pci2: at device 0.0 (no driver attached) fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: Logitech USB Receiver, rev 1.10/9.10, addr 2, iclass 3/1 ums0: 5 buttons and Z dir. ulpt0: Hewlett-Packard hp LaserJet 1010, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode Timecounter "TSC" frequency 1531023026 Hz quality 800 Timecounters tick every 1.000 msec ad0: 190782MB at ata0-master UDMA100 ad1: 58644MB at ata0-slave UDMA100 acd0: DVDR at ata1-master UDMA33 acd1: DVDROM at ata1-slave UDMA33 WARNING: Expected rawoffset 78332940, found 88582410 Trying to mount root from ufs:/dev/ad1s3a rl0: link state changed to UP alex@st1$ exit exit Script done on Sat Nov 12 16:10:09 2005 ---------------------------------------------------------------- alex@st1$ uname -a FreeBSD st1.fqdn 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Nov 12 15:02:22 MSK 2005 root@st1.fqdn:/usr/src/sys/i386/compile/st1deb=20 i386 ---------------------------------------------------------------- Script started on Sat Nov 12 15:32:53 2005 You have mail. st1# kgdb kernel.debug /usr/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you ar= e welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode fault virtual address=09=3D 0x24 fault code=09=09=3D supervisor read, page not present instruction pointer=09=3D 0x20:0xc04c133f stack pointer=09 =3D 0x28:0xda74eb00 frame pointer=09 =3D 0x28:0xda74eb30 code segment=09=09=3D base 0x0, limit 0xfffff, type 0x1b =09=09=09=3D DPL 0, pres 1, def32 1, gran 1 processor eflags=09=3D interrupt enabled, resume, IOPL =3D 0 current process=09=09=3D 559 (cat) trap number=09=09=3D 12 panic: page fault Uptime: 35s Dumping 511 MB (2 chunks) chunk 0: 1MB (160 pages) ... ok chunk 1: 511MB (130800 pages) 495 479 (CTRL-C to abort) 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165=09=09__asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); (kgdb) list *0xc04c133f 0xc04c133f is in ohci_abort_xfer (../../../dev/usb/ohci.c:2351). 2346=09=09=09ohci_dump_tds(p); 2347=09=09} 2348=09#endif 2349=09=09headp =3D le32toh(sed->ed.ed_headp) & OHCI_HEADMASK; 2350=09=09hit =3D 0; 2351=09=09for (; p->xfer =3D=3D xfer; p =3D n) { 2352=09=09=09hit |=3D headp =3D=3D p->physaddr; 2353=09=09=09n =3D p->nexttd; 2354=09=09=09ohci_free_std(sc, p); 2355=09=09} (kgdb) list *0xc=08=1B[Kda74eb00 No source file for address 0xda74eb00. (kgdb) list *0xda74eb30 No source file for address 0xda74eb30. (kgdb) backtrace #0 doadump () at pcpu.h:165 #1 0xc052fe88 in boot (howto=3D260) at ../../../kern/kern_shutdown.c:399 #2 0xc05301b6 in panic (fmt=3D0xc0697870 "%s") at ../../../kern/kern_shutdown.c:555 #3 0xc0673c3c in trap_fatal (frame=3D0xda74eac0, eva=3D0) at ../../../i386/i386/trap.c:831 #4 0xc0673952 in trap_pfault (frame=3D0xda74eac0, usermode=3D0, eva=3D36) at ../../../i386/i386/trap.c:742 #5 0xc067351d in trap (frame=3D {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -1046371584, tf_= esi =3D -1046371584, tf_ebp =3D -629871824, tf_isp =3D -629871892, tf_ebx =3D -1045769856, tf_edx =3D 0, tf_ecx =3D -1050048672, tf_eax =3D 2469776, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068756161, tf_cs =3D 32, tf_eflags =3D 590342, tf_esp =3D -1050042368, tf_ss =3D 20}) at ../../../i386/i386/trap.c:432 #6 0xc0660dea in calltrap () at ../../../i386/i386/exception.s:139 #7 0xc04c133f in ohci_abort_xfer (xfer=3D0xc1a1a300, status=3DUSBD_CANCELL= ED) at ../../../dev/usb/ohci.c:2350 #8 0xc04c2259 in ohci_device_bulk_abort (xfer=3D0x25af90) at ../../../dev/usb/ohci.c:3049 #9 0xc04d06e9 in usbd_ar_pipe (pipe=3D0xc1aad180) at ../../../dev/usb/usbdi.c:762 #10 0xc04d0391 in usbd_abort_pipe (pipe=3D0x25af90) at ../../../dev/usb/usbdi.c:556 #11 0xc04d18a3 in usbd_bulk_transfer (xfer=3D0xc1a1a300, pipe=3D0xc1aad180, ---Type to continue, or q to quit--- flags=3D5, timeout=3D2469776, buf=3D0x25af90, size=3D0xda74ebbc, lbl=3D0x25af90
) at ../../../dev/usb/usbdi_util.c:458 #12 0xc04c8378 in ulpt_do_read (sc=3D0xc16c9880, uio=3D0xda74ecb0, flags=3D= 0) at ../../../dev/usb/ulpt.c:765 #13 0xc04c841d in ulptread (dev=3D0x25af90, uio=3D0x25af90, flags=3D2469776= ) at ../../../dev/usb/ulpt.c:795 #14 0xc04fe23a in giant_read (dev=3D0xc16d9600, uio=3D0x25af90, ioflag=3D24= 69776) at ../../../kern/kern_conf.c:301 #15 0xc04d5899 in devfs_read_f (fp=3D0xc17c2b88, uio=3D0xda74ecb0, cred=3D0xc1aacb80, flags=3D0, td=3D0xc1a154b0) at ../../../fs/devfs/devfs_vnops.c:779 #16 0xc05581ec in dofileread (td=3D0xc1a154b0, fd=3D2469776, fp=3D0xc17c2b8= 8, auio=3D0xda74ecb0, offset=3DUnhandled dwarf expression opcode 0x93 ) at file.h:234 #17 0xc0558000 in kern_readv (td=3D0xc1a154b0, fd=3D3, auio=3D0x25af90) at ../../../kern/sys_generic.c:192 #18 0xc0557ebf in read (td=3D0x25af90, uap=3D0xc1698760) at ../../../kern/sys_generic.c:116 #19 0xc0674012 in syscall (frame=3D {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 1, tf_esi =3D -1077940763, tf_ebp =3D -1077941144, tf_isp =3D -629871260, tf_ebx =3D 3, tf_edx =3D 134529024, tf_ecx =3D 1, tf_eax =3D 3, tf_trapno =3D 12, tf_err = =3D 2, tf_eip =3D 671913855, tf_cs =3D 51, tf_eflags =3D 518, tf_esp =3D -1077941284, tf_ss =3D 59}) at ../../../i386/i386/trap.c:976 ---Type to continue, or q to quit--- #20 0xc0660e3f in Xint0x80_syscall () at ../../../i386/i386/exception.s:200 #21 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) where #0 doadump () at pcpu.h:165 #1 0xc052fe88 in boot (howto=3D260) at ../../../kern/kern_shutdown.c:399 #2 0xc05301b6 in panic (fmt=3D0xc0697870 "%s") at ../../../kern/kern_shutdown.c:555 #3 0xc0673c3c in trap_fatal (frame=3D0xda74eac0, eva=3D0) at ../../../i386/i386/trap.c:831 #4 0xc0673952 in trap_pfault (frame=3D0xda74eac0, usermode=3D0, eva=3D36) at ../../../i386/i386/trap.c:742 #5 0xc067351d in trap (frame=3D {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -1046371584, tf_= esi =3D -1046371584, tf_ebp =3D -629871824, tf_isp =3D -629871892, tf_ebx =3D -1045769856, tf_edx =3D 0, tf_ecx =3D -1050048672, tf_eax =3D 2469776, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068756161, tf_cs =3D 32, tf_eflags =3D 590342, tf_esp =3D -1050042368, tf_ss =3D 20}) at ../../../i386/i386/trap.c:432 #6 0xc0660dea in calltrap () at ../../../i386/i386/exception.s:139 #7 0xc04c133f in ohci_abort_xfer (xfer=3D0xc1a1a300, status=3DUSBD_CANCELL= ED) at ../../../dev/usb/ohci.c:2350 #8 0xc04c2259 in ohci_device_bulk_abort (xfer=3D0x25af90) at ../../../dev/usb/ohci.c:3049 #9 0xc04d06e9 in usbd_ar_pipe (pipe=3D0xc1aad180) at ../../../dev/usb/usbdi.c:762 #10 0xc04d0391 in usbd_abort_pipe (pipe=3D0x25af90) at ../../../dev/usb/usbdi.c:556 #11 0xc04d18a3 in usbd_bulk_transfer (xfer=3D0xc1a1a300, pipe=3D0xc1aad180, ---Type to continue, or q to quit--- flags=3D5, timeout=3D2469776, buf=3D0x25af90, size=3D0xda74ebbc, lbl=3D0x25af90
) at ../../../dev/usb/usbdi_util.c:458 #12 0xc04c8378 in ulpt_do_read (sc=3D0xc16c9880, uio=3D0xda74ecb0, flags=3D= 0) at ../../../dev/usb/ulpt.c:765 #13 0xc04c841d in ulptread (dev=3D0x25af90, uio=3D0x25af90, flags=3D2469776= ) at ../../../dev/usb/ulpt.c:795 #14 0xc04fe23a in giant_read (dev=3D0xc16d9600, uio=3D0x25af90, ioflag=3D24= 69776) at ../../../kern/kern_conf.c:301 #15 0xc04d5899 in devfs_read_f (fp=3D0xc17c2b88, uio=3D0xda74ecb0, cred=3D0xc1aacb80, flags=3D0, td=3D0xc1a154b0) at ../../../fs/devfs/devfs_vnops.c:779 #16 0xc05581ec in dofileread (td=3D0xc1a154b0, fd=3D2469776, fp=3D0xc17c2b8= 8, auio=3D0xda74ecb0, offset=3DUnhandled dwarf expression opcode 0x93 ) at file.h:234 #17 0xc0558000 in kern_readv (td=3D0xc1a154b0, fd=3D3, auio=3D0x25af90) at ../../../kern/sys_generic.c:192 #18 0xc0557ebf in read (td=3D0x25af90, uap=3D0xc1698760) at ../../../kern/sys_generic.c:116 #19 0xc0674012 in syscall (frame=3D {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 1, tf_esi =3D -1077940763, tf_ebp =3D -1077941144, tf_isp =3D -629871260, tf_ebx =3D 3, tf_edx =3D 134529024, tf_ecx =3D 1, tf_eax =3D 3, tf_trapno =3D 12, tf_err = =3D 2, tf_eip =3D 671913855, tf_cs =3D 51, tf_eflags =3D 518, tf_esp =3D -1077941284, tf_ss =3D 59}) at ../../../i386/i386/trap.c:976 ---Type to continue, or q to quit--- #20 0xc0660e3f in Xint0x80_syscall () at ../../../i386/i386/exception.s:200 #21 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) quit st1# exit exit Script done on Sat Nov 12 15:42:19 2005 From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:53:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AF5416A41F for ; Sat, 12 Nov 2005 13:53:21 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07EEA43D49 for ; Sat, 12 Nov 2005 13:53:20 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:9985 helo=mail.aseed.antenna.nl) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1Eavog-000L8H-MA for freebsd-hackers@freebsd.org; Sat, 12 Nov 2005 13:53:14 +0000 Received: from http.aseed.antenna.nl (http.aseed.antenna.nl [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 35283154FCC for ; Sat, 12 Nov 2005 14:56:06 +0100 (CET) Received: from localhost.localdomain (217-19-30-147.dsl.cambrium.nl [217.19.30.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by http.aseed.antenna.nl (Postfix) with ESMTP id 4A1065B4E32 for ; Sat, 12 Nov 2005 14:57:24 +0100 (CET) Date: Sat, 12 Nov 2005 14:52:56 +0100 From: albi To: freebsd-hackers@freebsd.org Message-Id: <20051112145256.32764aa4.albi@scii.nl> In-Reply-To: <20051112134351.28756.qmail@web60325.mail.yahoo.com> References: <20051112133842.28195.qmail@web60325.mail.yahoo.com> <20051112134351.28756.qmail@web60325.mail.yahoo.com> X-Mailer: Sylpheed version 2.1.1 (GTK+ 2.8.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:53:21 -0000 On Sat, 12 Nov 2005 05:43:51 -0800 (PST) d c wrote: > here is the rsult from using -v. THis should help. > > ns1# ssh -v 10.0.0.60 > OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 25 > Oct 2004 > debug1: Reading configuration data /etc/ssh/ssh_config > debug1: Connecting to 10.0.0.60 [10.0.0.60] port 22. -- cut -- > debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY > debug1: read_passphrase: can't open /dev/tty: Device > busy > Host key verification failed. > > I just don't understand how to fix "can't open > /dev/tty" how do you start the jail(s) and how do you deal with /dev in the jail (s) ? here's my relevant part in /etc/rc.conf of my host-system on a 5.4-REL machine as a working example : jail_enable="YES" jail_socket_unixiproute_only="YES" jail_sysvipc_allow="NO" jail_list="ssh build mail http https" jail_set_hostname_allow="NO" # jail_build_rootdir="/usr/jails/build" jail_build_hostname="build.mydomain.org" jail_build_ip="192.168.100.100" jail_build_exec="/bin/sh /etc/rc" jail_build_devfs_enable="YES" jail_build_devfs_ruleset="devfsrules_jail" -- grtjs, albi gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 13:57:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36FD616A41F for ; Sat, 12 Nov 2005 13:57:34 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60320.mail.yahoo.com (web60320.mail.yahoo.com [209.73.178.128]) by mx1.FreeBSD.org (Postfix) with SMTP id BCAF443D45 for ; Sat, 12 Nov 2005 13:57:33 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 4892 invoked by uid 60001); 12 Nov 2005 13:57:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1dVw0N+gb6Ty8lHj/3k06Qa1YR+R9vSenwohBLbzLxkuMSkTCEUXtGpoXMnxdzcjzThPeA+BznbpS3NdQa+g6fXcb+JwjynlSDbib97CqrTbQFoN1wr4TRQtwRN3+TkS1RIPrzUmkzvovRFAQmA+MkgZnMbYEPnmyJ47odwLkRo= ; Message-ID: <20051112135733.4889.qmail@web60320.mail.yahoo.com> Received: from [67.139.63.215] by web60320.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 05:57:33 PST Date: Sat, 12 Nov 2005 05:57:33 -0800 (PST) From: d c To: albi , freebsd-hackers@freebsd.org In-Reply-To: <20051112145256.32764aa4.albi@scii.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: SSH From within a Jail 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, 12 Nov 2005 13:57:34 -0000 --- albi wrote: > On Sat, 12 Nov 2005 05:43:51 -0800 (PST) > d c wrote: > > > here is the rsult from using -v. THis should > help. > > > > ns1# ssh -v 10.0.0.60 > > OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 > 25 > > Oct 2004 > > debug1: Reading configuration data > /etc/ssh/ssh_config > > debug1: Connecting to 10.0.0.60 [10.0.0.60] port > 22. > -- cut -- > > debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY > > debug1: read_passphrase: can't open /dev/tty: > Device > > busy > > Host key verification failed. > > > > I just don't understand how to fix "can't open > > /dev/tty" > > how do you start the jail(s) and how do you deal > with /dev in the jail > (s) ? > > here's my relevant part in /etc/rc.conf of my > host-system on a 5.4-REL > machine as a working example : > > jail_enable="YES" > jail_socket_unixiproute_only="YES" > jail_sysvipc_allow="NO" > jail_list="ssh build mail http https" > jail_set_hostname_allow="NO" > > # > jail_build_rootdir="/usr/jails/build" > jail_build_hostname="build.mydomain.org" > jail_build_ip="192.168.100.100" > jail_build_exec="/bin/sh /etc/rc" > jail_build_devfs_enable="YES" > jail_build_devfs_ruleset="devfsrules_jail" > > > -- > grtjs, albi > gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | > gpg --import > _______________________________________________ > 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" > I mounted my devs like this: mount_devfs devfs $JAILDIR/dev I did not set: jail_socket_unixiproute_only="YES" I also did not use any rules. What would a typical ruleset be? __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 14:53:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF8E216A41F for ; Sat, 12 Nov 2005 14:53:28 +0000 (GMT) (envelope-from reichert@numachi.com) Received: from meisai.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 2370B43D4C for ; Sat, 12 Nov 2005 14:53:27 +0000 (GMT) (envelope-from reichert@numachi.com) Received: (qmail 85566 invoked from network); 12 Nov 2005 14:53:24 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 12 Nov 2005 14:53:24 -0000 Received: (qmail 19432 invoked by uid 1001); 12 Nov 2005 14:53:24 -0000 Date: Sat, 12 Nov 2005 09:53:24 -0500 From: Brian Reichert To: d c Message-ID: <20051112145324.GE13291@numachi.com> References: <20051112133842.28195.qmail@web60325.mail.yahoo.com> <20051112134351.28756.qmail@web60325.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112134351.28756.qmail@web60325.mail.yahoo.com> User-Agent: Mutt/1.5.10i Cc: freebsd-hackers@freebsd.org, delphij@delphij.net Subject: Re: SSH From within a Jail 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, 12 Nov 2005 14:53:29 -0000 On Sat, Nov 12, 2005 at 05:43:51AM -0800, d c wrote: > debug1: read_passphrase: can't open /dev/tty: Device > busy > Host key verification failed. > > I just don't understand how to fix "can't open > /dev/tty" Consider the -T option to ssh. ('Disable pseudo-tty allocation.) I don't know the ramifications of that, though... > regards > > --- d c wrote: -- Brian Reichert 55 Crystal Ave. #286 Daytime number: (603) 434-6842 Derry NH 03038-1725 USA BSD admin/developer at large From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 15:45:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BED416A41F for ; Sat, 12 Nov 2005 15:45:08 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id A412843D45 for ; Sat, 12 Nov 2005 15:45:07 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45] (may be forged)) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id jACFj79H022322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 12 Nov 2005 07:45:07 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost) by skutsje.san.webweaving.org (8.12.9/8.12.9/Submit) with ESMTP id jACFj7G7022319 for ; Sat, 12 Nov 2005 07:45:07 -0800 (PST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Sat, 12 Nov 2005 07:45:07 -0800 (PST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: freebsd-hackers@freebsd.org Message-ID: <20051112072658.Q14448@skutsje.san.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Sierra Wireless / AC775 / Loading an external cisfile as a 'quirck' 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, 12 Nov 2005 15:45:08 -0000 I've got the (correct) CIS files below for a Sierra Wireeless Airnet 775 (AC775) card. The actual data on the card (see second cut-and-paste) is wrong (i.e. multi function instead of a modem). So I am looking for a way to either import a CIS file dynamically; at run time - or to translate a CIS file in what I assume should be a quirk entry in the file /sys/dev/pccard/pccard_cis_quirks.c (is that corect) ? I.e. something akin to: #cat SW_775_SER.dat > /dev/pccard0.cis Looking for a solution on either 5, 6 or CURRENT. Any hints - or guidance how to best map this into the quirk section - as the fields are not quite clear to me. Dw -- part 1 - supposedly correct CIS file as supplied for other OS-es. dirkx@test $ pccardc dumpcisfile SW_775_SER.dat Configuration data for file SW_775_SER.dat Tuple #1, code = 0x1 (Common memory descriptor), length = 1 000: ff Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3 000: 41 00 ff Attribute memory device information: Device number 1, type EEPROM, WPS = OFF Speed = 250nS, Memory block size = 512b, 1 units Tuple #3, code = 0x20 (Manufacturer ID), length = 4 000: 92 01 10 07 PCMCIA ID = 0x192, OEM ID = 0x710 Tuple #4, code = 0x21 (Functional ID), length = 2 000: 02 00 Serial port/modem Tuple #5, code = 0x15 (Version 1 info), length = 49 000: 07 00 53 69 65 72 72 61 20 57 69 72 65 6c 65 73 010: 73 00 41 43 37 37 35 00 45 44 47 45 20 4e 65 74 020: 77 6f 72 6b 20 41 64 61 70 74 65 72 00 52 31 00 030: ff Version = 7.0, Manuf = [Sierra Wireless], card vers = [AC775] Addit. info = [EDGE Network Adapter],[R1] Tuple #6, code = 0x1a (Configuration map), length = 5 000: 01 03 00 07 73 Reg len = 2, config register addr = 0x700, last config = 0x3 Registers: XX--XXX- Tuple #7, code = 0x1b (Configuration entry), length = 16 000: e0 01 19 78 4d 55 5d 25 a3 60 f8 03 07 30 bc 86 Config index = 0x20(default) Interface byte = 0x1 (I/O) Vcc pwr: Continuous supply current: 4.5 x 10mA Max current average over 1 second: 5 x 10mA Max current average over 10 ms: 5.5 x 10mA Power down supply current: 2 x 10mA Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3f8 block length = 0x8 IRQ modes: Level IRQs: 2 3 4 5 7 9 10 15 Tuple #8, code = 0x1b (Configuration entry), length = 8 000: a1 01 08 a3 60 f8 02 07 Config index = 0x21 Interface byte = 0x1 (I/O) Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 Tuple #9, code = 0x1b (Configuration entry), length = 8 000: a2 01 08 a3 60 e8 03 07 Config index = 0x22 Interface byte = 0x1 (I/O) Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 Tuple #10, code = 0x1b (Configuration entry), length = 8 000: a3 01 08 a3 60 e8 02 07 Config index = 0x23 Interface byte = 0x1 (I/O) Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 Tuple #11, code = 0x1b (Configuration entry), length = 4 000: a4 01 08 23 Config index = 0x24 Interface byte = 0x1 (I/O) Card decodes 3 address lines, 8 Bit I/O only Tuple #12, code = 0x14 (No link), length = 0 Tuple #13, code = 0xff (Terminator), length = 0 ACtual stuff on the card root@builld-jv# pccardc dumpcisfile /dev/pccard0.cis Configuration data for file /dev/pccard0.cis Tuple #1, code = 0x1 (Common memory descriptor), length = 2 000: 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = reserved, 32 units Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3 000: 41 00 ff Attribute memory device information: Device number 1, type EEPROM, WPS = OFF Speed = 250nS, Memory block size = 512b, 1 units Tuple #3, code = 0x20 (Manufacturer ID), length = 4 000: 92 01 10 07 PCMCIA ID = 0x192, OEM ID = 0x710 Tuple #4, code = 0x21 (Functional ID), length = 2 000: 06 00 Network/LAN adapter Tuple #5, code = 0x15 (Version 1 info), length = 49 000: 07 00 53 69 65 72 72 61 20 57 69 72 65 6c 65 73 010: 73 00 41 43 37 37 35 00 45 44 47 45 20 4e 65 74 020: 77 6f 72 6b 20 41 64 61 70 74 65 72 00 52 31 00 030: ff Version = 7.0, Manuf = [Sierra Wireless], card vers = [AC775] Addit. info = [EDGE Network Adapter],[R1] Tuple #6, code = 0x1a (Configuration map), length = 5 000: 01 03 00 07 73 Reg len = 2, config register addr = 0x700, last config = 0x3 Registers: XX--XXX- Tuple #7, code = 0x1b (Configuration entry), length = 9 000: c1 41 19 01 55 66 30 f8 ff Config index = 0x1(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Nominal operating supply voltage: 5 x 1V Card decodes 6 address lines, full 8/16 Bit I/O IRQ modes: Level IRQs: 3 4 5 6 7 8 9 10 11 12 13 14 15 Tuple #8, code = 0xff (Terminator), length = 0 From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 16:14:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADDB16A41F for ; Sat, 12 Nov 2005 16:14:28 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [65.170.254.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7FF343D45 for ; Sat, 12 Nov 2005 16:14:27 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-144-205-108.jan.bellsouth.net [70.144.205.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id AD0D02A for ; Sat, 12 Nov 2005 10:14:24 -0600 (CST) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 3765120FC9; Sat, 12 Nov 2005 10:14:23 -0600 (CST) Date: Sat, 12 Nov 2005 10:14:22 -0600 From: "Matthew D. Fuller" To: Pyun YongHyeon Message-ID: <20051112161422.GB1485@over-yonder.net> References: <20051112071815.GD18405@rndsoft.co.kr> <20051112073711.GE39882@cirb503493.alcatel.com.au> <20051112074418.GE18405@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112074418.GE18405@rndsoft.co.kr> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.9i-fullermd.2 Cc: Peter Jeremy , freebsd-hackers@freebsd.org Subject: Re: poor fdc(4) performance 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, 12 Nov 2005 16:14:28 -0000 On Sat, Nov 12, 2005 at 04:44:18PM +0900 I heard the voice of Pyun YongHyeon, and lo! it spake thus: > > Yes, it could be. But I think the machine is fast enough to read > sequential blocks. Try running it without SMP. There may be enough happening in the MP locking bit that you end up falling behind. I remember noticing crap fdc performance (without larger block sizes) on my dual PPro a little while back. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 16:59:03 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DA9116A41F for ; Sat, 12 Nov 2005 16:59:03 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60316.mail.yahoo.com (web60316.mail.yahoo.com [209.73.178.124]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D46143D49 for ; Sat, 12 Nov 2005 16:59:02 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 79319 invoked by uid 60001); 12 Nov 2005 16:59:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GeSTC50lLXG6avUVB5Q3dleegFz2J52SCgZpOXdc+q7tgzn4+FexeZ1hTSMq1OkC7Ak0UuxE0jdvoP3mGikP7v+nI4fEHMGN3tMlyEUup+5r3lZDHTnAe91rYJVNy4KbEBPvmGwH+cuE4SKywo48G2ynFDbtacxILFKhodGBy1s= ; Message-ID: <20051112165902.79317.qmail@web60316.mail.yahoo.com> Received: from [67.139.63.215] by web60316.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 08:59:02 PST Date: Sat, 12 Nov 2005 08:59:02 -0800 (PST) From: d c To: Brian Reichert In-Reply-To: <20051112145324.GE13291@numachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, delphij@delphij.net Subject: Re: SSH From within a Jail 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, 12 Nov 2005 16:59:03 -0000 --- Brian Reichert wrote: > On Sat, Nov 12, 2005 at 05:43:51AM -0800, d c wrote: > > debug1: read_passphrase: can't open /dev/tty: > Device > > busy > > Host key verification failed. > > > > I just don't understand how to fix "can't open > > /dev/tty" > > Consider the -T option to ssh. ('Disable pseudo-tty > allocation.) > I don't know the ramifications of that, though... > > > regards > > > > --- d c wrote: > > -- > Brian Reichert > 55 Crystal Ave. #286 Daytime number: (603) > 434-6842 > Derry NH 03038-1725 USA BSD admin/developer at > large > I had the same error even with the -T option. Here is the ls from /dev in the jail. Maybe this helps? crw------- 1 root wheel 0, 21 Nov 11 22:04 sysmouse crw------- 1 root wheel 0, 42 Nov 11 22:04 ttyd0 crw------- 1 root wheel 0, 43 Nov 11 22:04 ttyd0.init crw------- 1 root wheel 0, 44 Nov 11 22:04 ttyd0.lock crw------- 1 root wheel 0, 48 Nov 11 22:04 ttyd1 crw------- 1 root wheel 0, 49 Nov 11 22:04 ttyd1.init crw------- 1 root wheel 0, 50 Nov 11 22:04 ttyd1.lock crw-rw-rw- 1 root wheel 0, 111 Nov 12 18:19 ttyp0 crw-rw-rw- 1 root wheel 0, 113 Nov 12 17:36 ttyp1 crw------- 1 root wheel 0, 54 Nov 11 23:44 ttyv0 crw------- 1 root wheel 0, 55 Nov 11 23:25 ttyv1 crw------- 1 root wheel 0, 56 Nov 11 22:06 ttyv2 crw------- 1 root wheel 0, 57 Nov 11 22:06 ttyv3 crw------- 1 root wheel 0, 58 Nov 11 22:06 ttyv4 crw------- 1 root wheel 0, 59 Nov 11 22:06 ttyv5 crw------- 1 root wheel 0, 60 Nov 11 22:06 ttyv6 crw------- 1 root wheel 0, 61 Nov 11 22:06 ttyv7 crw------- 1 root wheel 0, 62 Nov 11 22:04 ttyv8 crw------- 1 root wheel 0, 63 Nov 11 22:04 ttyv9 crw------- 1 root wheel 0, 64 Nov 11 22:04 ttyva crw------- 1 root wheel 0, 65 Nov 11 22:04 ttyvb crw------- 1 root wheel 0, 66 Nov 11 22:04 ttyvc crw------- 1 root wheel 0, 67 Nov 11 22:04 ttyvd crw------- 1 root wheel 0, 68 Nov 11 22:04 ttyve crw------- 1 root wheel 0, 69 Nov 11 22:04 ttyvf __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 17:18:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22CC716A41F for ; Sat, 12 Nov 2005 17:18:50 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7F2843D60 for ; Sat, 12 Nov 2005 17:18:47 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:10007 helo=mail.aseed.antenna.nl) by post-22.mail.nl.demon.net with esmtp (Exim 4.51) id 1Eaz1a-000G7G-HO; Sat, 12 Nov 2005 17:18:46 +0000 Received: from http.aseed.antenna.nl (http.aseed.antenna.nl [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 81A2B154FAF; Sat, 12 Nov 2005 18:21:49 +0100 (CET) Received: from localhost.localdomain (217-19-30-147.dsl.cambrium.nl [217.19.30.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by http.aseed.antenna.nl (Postfix) with ESMTP id D65A05B4E80; Sat, 12 Nov 2005 18:23:08 +0100 (CET) Date: Sat, 12 Nov 2005 18:18:43 +0100 From: albi To: d c Message-Id: <20051112181843.fecaa40b.albi@scii.nl> In-Reply-To: <20051112165902.79317.qmail@web60316.mail.yahoo.com> References: <20051112145324.GE13291@numachi.com> <20051112165902.79317.qmail@web60316.mail.yahoo.com> X-Mailer: Sylpheed version 2.1.1 (GTK+ 2.8.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 17:18:50 -0000 On Sat, 12 Nov 2005 08:59:02 -0800 (PST) d c wrote: > I had the same error even with the -T option. > > Here is the ls from /dev in the jail. Maybe this > helps? -- cut -- > crw------- 1 root wheel 0, 67 Nov 11 22:04 > ttyvd > crw------- 1 root wheel 0, 68 Nov 11 22:04 > ttyve > crw------- 1 root wheel 0, 69 Nov 11 22:04 > ttyvf as a comparison here's (partly) mine : $ ls -la /dev/tty* crw------- 1 root wheel 240, 0 Nov 10 00:11 /dev/ttyd0 crw------- 1 root wheel 240, 1 Nov 10 00:11 /dev/ttyd1 crw------- 1 root wheel 239, 32 Nov 10 00:11 /dev/ttyid0 crw------- 1 root wheel 239, 33 Nov 10 00:11 /dev/ttyid1 crw------- 1 root wheel 239, 64 Nov 10 00:11 /dev/ttyld0 crw------- 1 root wheel 239, 65 Nov 10 00:11 /dev/ttyld1 crw--w---- 1 albi tty 5, 0 Nov 12 18:13 /dev/ttyp0 crw-rw-rw- 1 root wheel 5, 1 Nov 12 14:53 /dev/ttyp1 crw-rw-rw- 1 root wheel 5, 2 Nov 11 23:49 /dev/ttyp2 crw------- 1 root wheel 237, 0 Nov 10 00:14 /dev/ttyv0 crw------- 1 root wheel 237, 1 Nov 10 00:14 /dev/ttyv1 which FreeBSD-release do you use again ? did you follow the manualpage for "jail" to set up your jails or did you use some other Howto ? -- grtjs, albi gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 17:49:30 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB45C16A420 for ; Sat, 12 Nov 2005 17:49:30 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5790E43D53 for ; Sat, 12 Nov 2005 17:49:30 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jACHktKX090626; Sat, 12 Nov 2005 10:46:57 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 12 Nov 2005 10:47:33 -0700 (MST) Message-Id: <20051112.104733.13599970.imp@bsdimp.com> To: dirkx@webweaving.org From: "M. Warner Losh" In-Reply-To: <20051112072658.Q14448@skutsje.san.webweaving.org> References: <20051112072658.Q14448@skutsje.san.webweaving.org> X-Mailer: Mew version 3.3 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]); Sat, 12 Nov 2005 10:46:58 -0700 (MST) Cc: freebsd-hackers@FreeBSD.org Subject: Re: Sierra Wireless / AC775 / Loading an external cisfile as a 'quirck' 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, 12 Nov 2005 17:49:31 -0000 In message: <20051112072658.Q14448@skutsje.san.webweaving.org> Dirk-Willem van Gulik writes: : : I've got the (correct) CIS files below for a Sierra Wireeless Airnet 775 : (AC775) card. The actual data on the card (see second cut-and-paste) is : wrong (i.e. multi function instead of a modem). : : So I am looking for a way to either import a CIS file dynamically; at run : time - or to translate a CIS file in what I assume should be a quirk entry : in the file /sys/dev/pccard/pccard_cis_quirks.c (is that corect) ? OpenBSD solved this problem by listing this card in pcmica_cis_quirk.c. Maybe you can try that as an iterrum solution? That's the short term solution. I really hate the quirks in the present system and plan on doing something about it. : I.e. something akin to: : : #cat SW_775_SER.dat > /dev/pccard0.cis : : Looking for a solution on either 5, 6 or CURRENT. : : Any hints - or guidance how to best map this into the quirk section - as : the fields are not quite clear to me. We just got the ability to dump the CIS out of a card. It is unclear how we should go about replacing the CIS in the kernel. Do we do this by loading the CIS in before the card is inserted? Do we keep a database of bad cards and automatically subsitute the right one? Do we detach an reprobe the card when a new CIS is loaded in (like your example above)? Being able to load CIS in would fix a bunch of multi-function cards that aren't listed as such (and vice versa). Warner From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 18:46:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BD7B16A41F for ; Sat, 12 Nov 2005 18:46:56 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: from web60324.mail.yahoo.com (web60324.mail.yahoo.com [209.73.178.132]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D9F543D49 for ; Sat, 12 Nov 2005 18:46:55 +0000 (GMT) (envelope-from casteld73@yahoo.com) Received: (qmail 67500 invoked by uid 60001); 12 Nov 2005 18:46:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eTjQXrPpqFiTKMaz5m70oM2W76uDTK/5iTNFMJbkoST6GLGOCXcOyH2Nu1b8qUMJ374xT1e2gCjmfoiL8QZAn4E6qZDDkrAP6VTyu8gT6t9zQsT4h+proMxNj4MJm3w2HZVAyeYuFUkPgLKH+D9sIa0vBhYpxj+RD6oijxReq60= ; Message-ID: <20051112184655.67498.qmail@web60324.mail.yahoo.com> Received: from [67.139.63.215] by web60324.mail.yahoo.com via HTTP; Sat, 12 Nov 2005 10:46:55 PST Date: Sat, 12 Nov 2005 10:46:55 -0800 (PST) From: d c To: albi In-Reply-To: <20051112181843.fecaa40b.albi@scii.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 18:46:56 -0000 I used the man page. I am using freebsd 6.0 Can you ssh from your jails? albi wrote: On Sat, 12 Nov 2005 08:59:02 -0800 (PST) d c wrote: > I had the same error even with the -T option. > > Here is the ls from /dev in the jail. Maybe this > helps? -- cut -- > crw------- 1 root wheel 0, 67 Nov 11 22:04 > ttyvd > crw------- 1 root wheel 0, 68 Nov 11 22:04 > ttyve > crw------- 1 root wheel 0, 69 Nov 11 22:04 > ttyvf as a comparison here's (partly) mine : $ ls -la /dev/tty* crw------- 1 root wheel 240, 0 Nov 10 00:11 /dev/ttyd0 crw------- 1 root wheel 240, 1 Nov 10 00:11 /dev/ttyd1 crw------- 1 root wheel 239, 32 Nov 10 00:11 /dev/ttyid0 crw------- 1 root wheel 239, 33 Nov 10 00:11 /dev/ttyid1 crw------- 1 root wheel 239, 64 Nov 10 00:11 /dev/ttyld0 crw------- 1 root wheel 239, 65 Nov 10 00:11 /dev/ttyld1 crw--w---- 1 albi tty 5, 0 Nov 12 18:13 /dev/ttyp0 crw-rw-rw- 1 root wheel 5, 1 Nov 12 14:53 /dev/ttyp1 crw-rw-rw- 1 root wheel 5, 2 Nov 11 23:49 /dev/ttyp2 crw------- 1 root wheel 237, 0 Nov 10 00:14 /dev/ttyv0 crw------- 1 root wheel 237, 1 Nov 10 00:14 /dev/ttyv1 which FreeBSD-release do you use again ? did you follow the manualpage for "jail" to set up your jails or did you use some other Howto ? -- grtjs, albi gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import _______________________________________________ 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" --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 19:00:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC2E616A41F for ; Sat, 12 Nov 2005 19:00:22 +0000 (GMT) (envelope-from sebastien.bourdeauducq@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49E7F43D49 for ; Sat, 12 Nov 2005 19:00:22 +0000 (GMT) (envelope-from sebastien.bourdeauducq@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so407540nzo for ; Sat, 12 Nov 2005 11:00:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=PqpAE+D+vPX4mw1bEbv+qs64II52+jSe4/qNCFJUSDMMLvL5+mXkVA9LVBSUn5d0ka+A5AOsDg2YTbkegHahdPOu6hidRAPlkZBvWeLGhEhVqZ8lx/KZqt6TGQ00P/hEnNZO9yG58vnWW7+a7GLqLiuUsaR5Dp9D//nP03ORF2Y= Received: by 10.65.155.17 with SMTP id h17mr3899260qbo; Sat, 12 Nov 2005 10:53:42 -0800 (PST) Received: from 192.168.1.12 ( [83.198.45.72]) by mx.gmail.com with ESMTP id d5sm718490qbd.2005.11.12.10.53.41; Sat, 12 Nov 2005 10:53:42 -0800 (PST) From: Sebastien To: freebsd-hackers@freebsd.org Date: Sat, 12 Nov 2005 14:00:01 +0100 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511121400.02075.sebastien.bourdeauducq@gmail.com> Subject: Trigerring a taskqueue from the if_start routine crashes FreeBSD6 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, 12 Nov 2005 19:00:22 -0000 Hello, My 802.11 driver queues frames to send to the device in a tailq and then triggers a taskqueue to actually send them. The taskqueue is required because I need to do two USB transfers, and wait for the first one to complete before I start the second : doing this asynchronously would be a pain. This used to work fine under FreeBSD 5, but with 6, the system randomly freezes without any error message, and doesn't respond to anything else than the big red button. The crash seems more likely to happen when there are 3 or more frames in the tailq when the taskqueue runs. My code is online at http://svnweb.tuxfamily.org/listing.php?repname=p54u+%28prism54%29&path=%2F&sc=0 The taskqueue-related code is all in output_layer.c, and the interface with the 802.11 and network stack, from which the taskqueue is triggered, is in netif.c. The taskqueue is also trigerred from the thread created to bring the device up when it's detected, but it doesn't crash there (but the frames are queued one by one there). Any ideas ? Thanks, Sebastien From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 20:43:41 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A7F516A41F for ; Sat, 12 Nov 2005 20:43:41 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4046043D46 for ; Sat, 12 Nov 2005 20:43:39 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45] (may be forged)) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id jACKhS9H030246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Nov 2005 12:43:28 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost) by skutsje.san.webweaving.org (8.12.9/8.12.9/Submit) with ESMTP id jACKhRIA030243; Sat, 12 Nov 2005 12:43:28 -0800 (PST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Sat, 12 Nov 2005 12:43:27 -0800 (PST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: "M. Warner Losh" In-Reply-To: <20051112.104733.13599970.imp@bsdimp.com> Message-ID: <20051112122204.F29404@skutsje.san.webweaving.org> References: <20051112072658.Q14448@skutsje.san.webweaving.org> <20051112.104733.13599970.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-hackers@FreeBSD.org Subject: Re: Sierra Wireless / AC775 / Loading an external cisfile as a 'quirck' 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, 12 Nov 2005 20:43:41 -0000 On Sat, 12 Nov 2005, M. Warner Losh wrote: > OpenBSD solved this problem by listing this card in > pcmica_cis_quirk.c. Maybe you can try that as an iterrum solution? Ack - thanks a lot for that pointer - trying that now. (Still gives me the error below; but I'll fiddle with it). > database of bad cards and automatically subsitute the right one? Do > we detach an reprobe the card when a new CIS is loaded in (like your > example above)? That would be very nice; or possibly with a pccardc power up/down (which we seem to have lost) or some similar 'reprobe' command. Having the kernel filled with all sort of quicks seems less ideal - such a live, after detect, method allows you to load a a CIS on detecting a certain card. > Being able to load CIS in would fix a bunch of multi-function cards > that aren't listed as such (and vice versa). And if the CIS would literally be a 'CIS' - then countless Linux and MacOSX 'drivers' start to work; as these often just consist of a CIS and a bind to something generic. Dw cbb0: [MPSAFE] cbb0: PCI Configuration space: 0x00: 0xac50104c 0x02100007 0x06070001 0x00022000 0x10: 0xf0222000 0x020000a0 0x20060504 0xfffff000 0x20: 0x00000000 0xfffff000 0x00000000 0xfffffffc 0x30: 0x00000000 0xfffffffc 0x00000000 0x07400112 0x40: 0x00000000 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x0044b060 0x00000000 0x00000000 0x00000022 0x90: 0x616600c0 0x00000000 0x00000000 0x00000000 0xa0: 0xfe110001 0x00c00000 0x00000015 0x0000001b 0xb0: 0x00000000 0x00000000 0x00000000 0x00000000 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000000 pci5: driver added cbb0: PC Card card activation failed pccard0: <16-bit PCCard bus> on cbb0 pccard0: chip_socket_enable pccard0: read_cis pcib4: pccard0 requested memory range 0xf0200000-0xf03fffff: good cis mem map 0xeb672000 (resource: 0xf0230000) pccard0: CIS tuple chain: CISTPL_DEVICE type=null speed=null 01 02 00 ff CISTPL_DEVICE_A type=eeprom speed=250ns 17 03 41 00 ff CISTPL_MANFID 20 04 92 01 10 07 CISTPL_FUNCID 21 02 06 00 CISTPL_VERS_1 15 31 07 00 53 69 65 72 72 61 20 57 69 72 65 6c 65 73 73 00 41 43 37 37 35 00 45 44 47 45 20 4e 65 74 77 6f 72 6b 20 41 64 61 70 74 65 72 00 52 31 00 ff CISTPL_CONFIG 1a 05 01 03 00 07 73 CISTPL_CFTABLE_ENTRY 1b 09 c1 41 19 01 55 66 30 f8 ff CISTPL_END ff cis mem map eb672000 CISTPL_LINKTARGET expected, code ff observed pccard0: check_cis_quirks pccard0: using CIS quirks for Sierra Wireless, AC775, EDGE Network Adapter, R1 pccard0: CIS version PC Card Standard 7.0 pccard0: CIS info: Sierra Wireless, AC775, EDGE Network Adapter, R1 pccard0: Manufacturer code 0x192, product 0x710 pccard0: function 1: serial port, ccr addr 700 mask 73 pccard0: function 1, config table entry 32: I/O card; irq mask 3fbc; iomask 0, iospace 3f8-3ff; io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: I/O rid 0 start 3f8 end 3ff pcib4: pccard0 requested I/O range 0x3f8-0x3ff: in range pccard0: Allocation failed for cfe 32 pccard0: No config entry could be allocated. --- *************** *** 180,186 **** --- 180,228 ---- 0, /* maxtwins */ }; + static struct pccard_function pcmcia_sierra_a555_func1 = { + 1, /* function number */ + PCCARD_FUNCTION_SERIAL, + 0x24, /* last cfe number */ + 0x700, /* ccr_base */ + 0x73, /* ccr_mask */ + }; + + static struct pccard_config_entry pcmcia_sierra_a555_func1_cfe0 = { + 0x20, /* cfe number */ + PCCARD_CFE_IO8 | PCCARD_CFE_IRQLEVEL, PCCARD_IFTYPE_IO, + 1, /* num_iospace */ + 0, /* iomask */ + { { 0x0008, 0x3f8 } }, /* iospace */ + 0x3fbc, /* irqmask */ + 0, /* num_memspace */ + { }, /* memspace */ + 0, /* maxtwins */ + }; + /* Sierra */ + #define PCMCIA_VENDOR_SIERRA 0x0192 + #define PCMCIA_CIS_SIERRA_AC710 { NULL, NULL, NULL, NULL } + #define PCMCIA_PRODUCT_SIERRA_AC710 0x0710 + #define PCMCIA_CIS_SIERRA_A550 { NULL, NULL, NULL, NULL } + #define PCMCIA_PRODUCT_SIERRA_A550 0xa550 + #define PCMCIA_CIS_SIERRA_A555 { NULL, NULL, NULL, NULL } + #define PCMCIA_PRODUCT_SIERRA_A555 0xa555 + #define PCMCIA_CIS_SIERRA_A710 { NULL, NULL, NULL, NULL } + #define PCMCIA_PRODUCT_SIERRA_A710 0xa710 + static struct pccard_cis_quirk pccard_cis_quirks[] = { + { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A550, + PCMCIA_CIS_INVALID, + &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, + { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A555, + PCMCIA_CIS_INVALID, + &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, + { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A710, + PCMCIA_CIS_INVALID, + &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, + { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC710, + PCMCIA_CIS_INVALID, + &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, { PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556, PCMCIA_CIS_INVALID, &pccard_3cxem556_func0, &pccard_3cxem556_func0_cfe0 }, { PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556, PCMCIA_CIS_INVALID, From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 21:51:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9987116A41F for ; Sat, 12 Nov 2005 21:51:11 +0000 (GMT) (envelope-from delphij@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F69943D46 for ; Sat, 12 Nov 2005 21:51:11 +0000 (GMT) (envelope-from delphij@gmail.com) Received: by xproxy.gmail.com with SMTP id t10so1337430wxc for ; Sat, 12 Nov 2005 13:51:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GdizUtlQlOyZIOhec+ypDS2sVQ3azLy9iYlm3YmljG5HurlIAFCXuZ2h/21DBUiOCzkPLzsis7tRXoTthZ075vsFMonqMxGb/MrbBFWy7FejU2eRqox0Q9vqD1WR5LbOXOS/D4AUdyTUtQNFdJhntsQ2hUb3V3lZjT/BNiDTY4A= Received: by 10.64.193.9 with SMTP id q9mr701873qbf; Sat, 12 Nov 2005 05:34:54 -0800 (PST) Received: by 10.64.21.5 with HTTP; Sat, 12 Nov 2005 05:34:54 -0800 (PST) Message-ID: Date: Sat, 12 Nov 2005 21:34:54 +0800 From: Xin LI To: d c In-Reply-To: <20051112133058.27482.qmail@web60325.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20051112133058.27482.qmail@web60325.mail.yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: delphij@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 21:51:11 -0000 T24gMTEvMTIvMDUsIGQgYyA8Y2FzdGVsZDczQHlhaG9vLmNvbT4gd3JvdGU6Cj4gdGVsbmV0IDEw LjAuMC42MCAyMgo+Cj4gQ29ubmVjdGVkIHRvIDEwLjAuMC42MC4KPiBFc2NhcGUgY2hhcmFjdGVy IGlzICdeXScuCj4gU1NILTIuMC1PcGVuU1NIXzMuOC4xcDEgRnJlZUJTRC0yMDA0MDQxOQo+Cj4g SWYgSSBzc2ggaW50byAxMC4wLjAuNjAgZnJvbSB0aGUgaG9zdCBzeXN0ZW0gdGhhdCB0aGUKPiBq YWlsIGlzIHJ1bm5pbmcgb24gSSBjb25uZWN0IHJpZ2h0IGluIHcvbyBhbnkKPiBwcm9ibGVtcy4K Pgo+IEp1c3QgdGhlIGphaWxzIG9uIHRoZSBob3N0IGdpdmluZyBtZSBwcm9icy4KPgo+IEkgYWxz byB0cmllZCByZWNyZWF0aW5nIHRoZSAvZXRjL3NzaC9zc2hfaG9zdGtleSBidXQKPiB0aGF0IGRp ZG47dCBoZWxwCgpEbyB5b3UgaGF2ZSAvZGV2LypyYW5kb20gYXZhaWxhYmxlIGluIHRoZSBqYWls PyAgVHlwaWNhbGx5IHRoZXJlCnNob3VsZCBiZSAvZGV2L3JhbmRvbSBhbmQgYSAvZGV2L3VyYW5k b20gd2hpY2ggaXMgYSBzeW1ib2xpYyBsaW5rIHRvCi9kZXYvcmFuZG9tLiAgSUlSQyB0aGVyZSBp cyBwcm9ibGVtIGlmIHlvdSBkb24ndCBoYXZlIHRoZXNlIGluIHRoZQpqYWlsIGlmIHlvdSBkbyBz b21lIHNzaCByZWxhdGVkIG9wZXJhdGlvbnMuLi4KCkNoZWVycywKLS0KWGluIExJIDxkZWxwaGlq QGRlbHBoaWoubmV0PiBodHRwOi8vd3d3LmRlbHBoaWoubmV0Cg== From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 22:17:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB46D16A41F for ; Sat, 12 Nov 2005 22:17:33 +0000 (GMT) (envelope-from SRS0=DtCULS6+=ZL=metro.cx=fbsd@sonologic.nl) Received: from mx1.sonologic.nl (mx1.sonologic.nl [82.94.245.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F176943D46 for ; Sat, 12 Nov 2005 22:17:32 +0000 (GMT) (envelope-from SRS0=DtCULS6+=ZL=metro.cx=fbsd@sonologic.nl) Received: from [10.1.4.2] (sonolo.xs4all.nl [80.126.206.91]) (authenticated bits=0) by mx1.sonologic.nl (8.13.3/8.13.3) with ESMTP id jACMHVDn080438; Sat, 12 Nov 2005 22:17:31 GMT Message-ID: <43766A0A.9060105@metro.cx> Date: Sat, 12 Nov 2005 23:17:46 +0100 From: Koen Martens Organization: Sonologic User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: d c References: <20051112121343.94908.qmail@web60322.mail.yahoo.com> In-Reply-To: <20051112121343.94908.qmail@web60322.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Helo-Milter-Authen: gmc@sonologic.nl, fbsd@metro.cx, mx1 Received-SPF: pass (mx1.sonologic.nl: 80.126.206.91 is authenticated by a trusted mechanism) Cc: freebsd-hackers@freebsd.org Subject: Re: SSH From within a Jail 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, 12 Nov 2005 22:17:34 -0000 d c wrote: > Greetings: > > I currently am running Freebsd 6.0 Release. > > I am experimenting with jails and have run into a > problem. I need to ssh from within my jail to another > server. Actually I need to use scp. WHen I try it I > get the error: "Host key verification failed." This could also be something related to permissions on the .ssh directory, but you cleared that out of the way if i understand the rest of this thread correctly. I remember having this problem once, but can't remember right now what i did to solve it.. I usually compile openssh from source anyway, so you might try that. If that works, it would probably be interesting to see what is the difference between your own hand-rolled openssh and the one that came with your world. Koen -- K.F.J. Martens, Sonologic, http://www.sonologic.nl/ Networking, hosting, embedded systems, unix, artificial intelligence. Public PGP key: http://www.metro.cx/pubkey-gmc.asc Wondering about the funny attachment your mail program can't read? Visit http://www.openpgp.org/