From owner-freebsd-current@freebsd.org Sat Aug 8 05:49:54 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62BAB9B6E91 for ; Sat, 8 Aug 2015 05:49:54 +0000 (UTC) (envelope-from julien@jch.io) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01618FB4 for ; Sat, 8 Aug 2015 05:49:53 +0000 (UTC) (envelope-from julien@jch.io) Received: by wibxm9 with SMTP id xm9so88901917wib.1 for ; Fri, 07 Aug 2015 22:49:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=xWT7/ttse9XSM+9aA/oPyH7Tc45l+WkEkr3kgpkvoxI=; b=nGC8854Qfi5OC743xmW0tANujjWLYGGC0nKtH6uwV/jCHYPXPfOwEnGqfXwhvlQBel ovHERK/0V1/na3S5JH41GRROHKvu7Y9J8BO6VV4ux8fzLWoWwuc1gLG89HlwaBp3rUCf 8TD2U05kPxem1u+Xo3fhBpbD9L3U1mW/mb/NZsRHXBD4jHSctgjqEgFnauJ109/L4Kkx s690iPndkilRDFtGRT6R2lBNS5vKwshz5aqwDtyAIQ9rqIxe6mZWGQi5wzFVX/cM+IZV eKOUVSYQx0Y8HI4BudsORfaFprJwc6M8koj2owhh0QmkxFKYSTmGONfsgKxLrMV7GBV9 qMlQ== X-Gm-Message-State: ALoCoQmkpUwMYnX76EYjs26+JEr1ezhwRl22d+bmAgqXgxeTr0k7NGBsYqaYxbN9LBR1M5Ep5JLd X-Received: by 10.180.21.200 with SMTP id x8mr2330075wie.59.1439012986083; Fri, 07 Aug 2015 22:49:46 -0700 (PDT) Received: from fri2vrusso-l1.vcorp.ad.vrsn.com ([217.30.88.7]) by smtp.googlemail.com with ESMTPSA id lu5sm17977296wjb.9.2015.08.07.22.49.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Aug 2015 22:49:45 -0700 (PDT) Message-ID: <55C59872.8070701@freebsd.org> Date: Sat, 08 Aug 2015 07:49:38 +0200 From: Julien Charbon User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Mark Johnston , Larry Rosenman CC: freebsd-current@FreeBSD.org Subject: Re: traceroute6: panic: pcb not read locked References: <20150808010324.GA1392@borg.lerctr.org> <20150808032521.GA66493@raichu> In-Reply-To: <20150808032521.GA66493@raichu> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9hEdEQ0g6OC6vbiD19qg1KKOA4phNc7We" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2015 05:49:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9hEdEQ0g6OC6vbiD19qg1KKOA4phNc7We Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 08/08/15 05:25, Mark Johnston wrote: > On Fri, Aug 07, 2015 at 08:04:01PM -0500, Larry Rosenman wrote: >> Trying to debug TimeWarner IPV6 to my HE.NET tunnel, and running trace= route6,=20 >> got the following panic: >> >> borg.lerctr.org dumped core - see /var/crash/vmcore.0 >> >> Fri Aug 7 19:58:40 CDT 2015 >> >> FreeBSD borg.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #32 r286338:= Wed Aug 5 15:57:55 CDT 2015 root@borg.lerctr.org:/usr/obj/usr/src/s= ys/VT-LER amd64 >> >> panic: Lock tcp not read locked @ /usr/src/sys/netinet/tcp_subr.c:1189= >> >> GNU gdb 6.1.1 [FreeBSD] >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and y= ou are >> welcome to change it and/or distribute copies of it under certain cond= itions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for det= ails. >> This GDB was configured as "amd64-marcel-freebsd"... >> >> Unread portion of the kernel message buffer: >> panic: Lock tcp not read locked @ /usr/src/sys/netinet/tcp_subr.c:1189= >=20 > This appears to be fallout from r286227: the tcpinfo lock assertion in > tcp_notify() is too strong, since tcp_notify() can still be called from= > c with the tcpinfo write lock held. Nice catch, I agree these tcpinfo lock assertion are too strong. I am fixing and testing that as in top of tcp_notify() and tcp_drop(), you also need to update also tcp_close() and tcp_detach(). By the way I am working on make INP_INFO_WLOCK a INP_INFO_RLOCK in in6_pcbnotify() but this is not for today. Thanks. -- Julien --9hEdEQ0g6OC6vbiD19qg1KKOA4phNc7We Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJVxZh3AAoJEKVlQ5Je6dhxtBQH/i5Kls2bWf2ARkVMY/pPBBY0 Z4sJYcmEgdPsXwRdWqiPy5kXJXKNIaGw2M/vXxZ3V9gsenKc+OaL31gxSmqFwhPO q07M+Bg4JQuLnzN5tgtWkU7GIDGM1Rn/Qpe7M2HpDaq535y/gUkxVaAkeUwK0sAx L2en89SmJUQBAG0pTWoWkzsuyqDg1FsgmkmGA5+RM25+LXhMWwy42a9U9Hdyzenr ag9jz3nDDvYHR+BX8CRazavcXj5MlZZqzHHCU+mTRejw60Dk3iCTtrjm33myHPYp o/UTCqK9Y9FoG678Rm2LD4WE2OGyylFNjLx2mw8lR/+1Lr00J+ZFvmmoYcx1DtY= =FBA2 -----END PGP SIGNATURE----- --9hEdEQ0g6OC6vbiD19qg1KKOA4phNc7We--