kern/141289: newnfs panic "nfs sent cache" with IPv6
Petr Lampa
lampa at fit.vutbr.cz
Tue Dec 8 16:30:07 UTC 2009
>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:
More information about the freebsd-bugs
mailing list