From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 22 00:11:44 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2760D1065692 for ; Sat, 22 Aug 2009 00:11:44 +0000 (UTC) (envelope-from prvs=1477fe8467=brian@FreeBSD.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id E550E8FC0A for ; Sat, 22 Aug 2009 00:11:43 +0000 (UTC) Received: from pd4ml1so-ssvc.prod.shaw.ca ([10.0.141.141]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 21 Aug 2009 17:43:14 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=jXIcuBD92DkA:10 a=MJPcHhXccCG8eBs0us8XwA==:17 a=MMwg4So0AAAA:8 a=6I5d2MoRAAAA:8 a=5YGrx33GWETTkirStJ4A:9 a=g4j8IMfFdvu3XwZY5bcA:7 a=PyhIxysxrHXm1dhOcRgkKtL00x0A:4 a=WJ3hkfHDukgA:10 a=SV7veod9ZcQA:10 a=eD_158NIy2d-rMiV:21 a=T4PnxdgngV8PoDVD:21 Received: from unknown (HELO store.lan.Awfulhak.org) ([70.79.162.198]) by pd4ml1so-dmz.prod.shaw.ca with ESMTP; 21 Aug 2009 17:43:14 -0600 Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 8BBEEC433AA_A8F310EB for ; Fri, 21 Aug 2009 23:43:10 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Sophos Email Appliance) with ESMTP id 54CBDC460F3_A8F310EF for ; Fri, 21 Aug 2009 23:43:10 +0000 (GMT) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.14.3/8.14.3) with ESMTP id n7LNhDeB078138; Fri, 21 Aug 2009 16:43:13 -0700 (PDT) (envelope-from brian@FreeBSD.org) Date: Fri, 21 Aug 2009 16:43:12 -0700 From: Brian Somers To: freebsd-hackers@FreeBSD.org Message-ID: <20090821164312.641fe2bd@dev.lan.Awfulhak.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: kernel panics in in_lltable_lookup (with INVARIANTS) 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, 22 Aug 2009 00:11:44 -0000 Hi, I've been working on a fix to address an issue that came up with our update of openssh-5. The issue is that openssh-5 now uses pipe() to create stdin/stdout channels between sshd and the server side program where it used to use socketpair(). Because it uses pipe(), stdin is no longer bi-directional and cannot be used for both input and output by a child process. This breaks the use of ssh as a tunnel with ppp on either end (set device "!ssh -e none host ppp -direct label") I talked with des@ for a while and then with the openssh folks and have not been able to resolve the issues in openssh that made them choose to enforce the use of pipe() over socketpair(). I now have a patch to ppp that makes ppp detect that it's connected via pipe() and causes it to use stdin for input and stdout for output (usually it expects just one descriptor). Although I'm happy with the patch and planned on requesting permission to commit, I've bumped into a show-stopper that seems unrelated, so I thought I'd ask here if anyone has seen this or has any suggestions as to what the problem might be. The issue.... I'm seeing a panic when I send traffic through a ppp link: panic string is: sin_family 18 Stack trace starts: in_lltable_lookup() llentry_update() flowtable_lookup() ip_output() .... The panic is due to a KASSERT in in_lltable_lookup() that expects the sockaddr to be AF_INET. Number 18 is AF_LINK. AFAICT this is happening while setting up a temporary route for the first outbound packet. I haven't been able to do much investigation yet due to other patches in my tree that seem to have broken all my kernel symbols, but once I get a clean rebuild I should be back in business. If anyone has any suggestions, I'm all ears! Cheers. -- Brian Somers Don't _EVER_ lose your sense of humour !