Re: 8.0-RC1: kernel page fault in NLM master thread (VIMAGE or ZFS related?)

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Sun, 27 Sep 2009 21:06:27 +0200
Jamie Gritton <jamie_at_FreeBSD.org> writes:
> Index: kern/vfs_export.c
> ===================================================================
> --- kern/vfs_export.c	(revision 197506)
> +++ kern/vfs_export.c	(working copy)
> _at__at_ -122,6 +122,8 _at__at_
>  		np->netc_anon->cr_uid = argp->ex_anon.cr_uid;
>  		crsetgroups(np->netc_anon, argp->ex_anon.cr_ngroups,
>  		    argp->ex_anon.cr_groups);
> +		np->netc_anon->cr_prison = &prison0;
> +		prison_hold(np->netc_anon->cr_prison);
>  		np->netc_numsecflavors = argp->ex_numsecflavors;
>  		bcopy(argp->ex_secflavors, np->netc_secflavors,
>  		    sizeof(np->netc_secflavors));

You need to #include <sys/jail.h> for prison0...  See attached patch.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no


Received on Sun Sep 27 2009 - 17:06:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC