Date: Tue, 8 Dec 2009 16:21:57 GMT From: Petr Lampa <lampa@fit.vutbr.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/141289: newnfs panic "nfs sent cache" with IPv6 Message-ID: <200912081621.nB8GLvsW097255@www.freebsd.org> Resent-Message-ID: <200912081630.nB8GU6tq037295@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 141289
>Category: kern
>Synopsis: newnfs panic "nfs sent cache" with IPv6
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 08 16:30:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Petr Lampa
>Release: 8.0-STABLE
>Organization:
FIT BUT
>Environment:
FreeBSD 8.0-STABLE FreeBSD 8.0-STABLE #4: Tue Dec 8 15:49:48 CET 2009 root@:/usr/src/sys/i386/compile/XXX i386
>Description:
If newnfs server is accessed using IPv6, it immediately panics with "nfs sent cache". The reason is missing AF_INET6 check at line 526 in fs/nfsserver/nfs_nfsdcache.c:
if (so->so_proto->pr_domain->dom_family != AF_INET ||
so->so_proto->pr_protocol != IPPROTO_TCP)
panic("nfs sent cache");
>How-To-Repeat:
Mount NFSv4 using IPv6 and newnfs server.
>Fix:
Change the line 526-527 sys/fs/nfsserver/nfs_nfsdcache.c to:
if ((so->so_proto->pr_domain->dom_family != AF_INET &&
so->so_proto->pr_domain->dom_family != AF_INET6) ||
so->so_proto->pr_protocol != IPPROTO_TCP)
panic("nfs sent cache");
It works after that.
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912081621.nB8GLvsW097255>
