From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 8 19:10:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F7CF1065673 for ; Fri, 8 Apr 2011 19:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E1A068FC0C for ; Fri, 8 Apr 2011 19:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p38JA91J030406 for ; Fri, 8 Apr 2011 19:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p38JA9MZ030405; Fri, 8 Apr 2011 19:10:09 GMT (envelope-from gnats) Resent-Date: Fri, 8 Apr 2011 19:10:09 GMT Resent-Message-Id: <201104081910.p38JA9MZ030405@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ingo Flaschberger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A35BA1065672 for ; Fri, 8 Apr 2011 19:08:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 926138FC1D for ; Fri, 8 Apr 2011 19:08:22 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p38J8MBS034227 for ; Fri, 8 Apr 2011 19:08:22 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p38J8MBT034226; Fri, 8 Apr 2011 19:08:22 GMT (envelope-from nobody) Message-Id: <201104081908.p38J8MBT034226@red.freebsd.org> Date: Fri, 8 Apr 2011 19:08:22 GMT From: Ingo Flaschberger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/156283: nd6_ns_input - rtalloc_mpath does not return a locked rtentry X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 19:10:12 -0000 >Number: 156283 >Category: kern >Synopsis: nd6_ns_input - rtalloc_mpath does not return a locked rtentry >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 08 19:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ingo Flaschberger >Release: FreeBSD 8.2-RELEASE >Organization: crossip communications gmbh >Environment: >Description: Problem occurs when RADIX_MPATH is defined. In nd6_ns_input rtalloc_mpath does not return a locked root. Panic occurs when RTFREE_LOCKED(rt); is called at this route. >How-To-Repeat: >Fix: Patch attached with submission follows: --- nd6_nbr.c_org 2011-03-21 09:40:01.000000000 +0000 +++ nd6_nbr.c 2011-04-08 18:57:18.000000000 +0000 @@ -257,7 +257,11 @@ */ if (need_proxy) proxydl = *SDL(rt->rt_gateway); +#ifdef RADIX_MPATH + RTFREE(rt); /* rtalloc_mpath does not return a locked route */ +#else RTFREE_LOCKED(rt); +#endif } if (need_proxy) { /* >Release-Note: >Audit-Trail: >Unformatted: