Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 17:16:13 +1300
From:      Matt Magoffin <matt@msqr.us>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Eric van Gyzen <eric@vangyzen.net>, freebsd-stable@freebsd.org
Subject:   Re: 9.2-RELEASE amd64 panic: vn_open_cred
Message-ID:  <FE60BFFA-366F-4033-B033-E1D950CCCA3E@msqr.us>
In-Reply-To: <20131107230834.GS59496@kib.kiev.ua>
References:  <DF88429C-058E-4756-AFC4-F97249FF54AA@msqr.us> <20131106022932.GY59496@kib.kiev.ua> <57A9579D-7BA6-4ED8-9EE0-D2B5949F8D26@msqr.us> <20131106035350.GC59496@kib.kiev.ua> <D0BA9FE0-8CF2-4221-85A0-27EED6A48048@msqr.us> <527A6012.2050500@vangyzen.net> <60595DA5-A339-4FA5-99FD-FC25591A6BDA@msqr.us> <20131107230834.GS59496@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_CA9D62C7-C724-4082-A950-F7195042EBFE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On Nov 8, 2013, at 12:08 PM, Konstantin Belousov <kostikbel@gmail.com> =
wrote:

>> =46rom a 9.2 amd64 virtual machine, this is what I get:
>>=20
>> (kgdb) list *VOP_ADD_WRITECOUNT_APV+0x78
>> 0xffffffff80d96898 is in VOP_ADD_WRITECOUNT_APV (vnode_if.c:4236).
>> 4231	in vnode_if.c
>>=20
>> Does this help?
>>=20
> I need the code around this line; corresponding file is generated, I
> do not have it.

I generated vnode_if.c using this command:

/usr/bin/awk -f /usr/src/sys/tools/vnode_if.awk =
/usr/src/sys/kern/vnode_if.src -c

I just inferred that command, I do not know if that is correct. Here are =
lines 4219-4264 from the file:

int
VOP_ADD_WRITECOUNT_APV(struct vop_vector *vop, struct =
vop_add_writecount_args *a)
{
	int rc;

	VNASSERT(a->a_gen.a_desc =3D=3D &vop_add_writecount_desc, =
a->a_vp,
	    ("Wrong a_desc in vop_add_writecount(%p, %p)", a->a_vp, a));
	while(vop !=3D NULL && \
	    vop->vop_add_writecount =3D=3D NULL && vop->vop_bypass =3D=3D =
NULL)
		vop =3D vop->vop_default;
	VNASSERT(vop !=3D NULL, a->a_vp, ("No vop_add_writecount(%p, =
%p)", a->a_vp, a));
	SDT_PROBE(vfs, vop, vop_add_writecount, entry, a->a_vp, a, 0, 0, =
0);

	ASSERT_VI_UNLOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
	ASSERT_VOP_ELOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
	VFS_PROLOGUE(a->a_vp->v_mount);
	if (vop->vop_add_writecount !=3D NULL)
		rc =3D vop->vop_add_writecount(a);
	else
		rc =3D vop->vop_bypass(&a->a_gen);
	VFS_EPILOGUE(a->a_vp->v_mount);
	CTR2(KTR_VOP,
	    "VOP_ADD_WRITECOUNT(vp 0x%lX, inc %ld)",
	    a->a_vp, a->a_inc);
	SDT_PROBE(vfs, vop, vop_add_writecount, return, a->a_vp, a, rc, =
0, 0);

	if (rc =3D=3D 0) {
		ASSERT_VI_UNLOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
		ASSERT_VOP_ELOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
	} else {
		ASSERT_VI_UNLOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
		ASSERT_VOP_ELOCKED(a->a_vp, "VOP_ADD_WRITECOUNT");
	}
	return (rc);
}

struct vnodeop_desc vop_add_writecount_desc =3D {
	"vop_add_writecount",
	0,
	(vop_bypass_t *)VOP_ADD_WRITECOUNT_AP,
	vop_add_writecount_vp_offsets,
	VDESC_NO_OFFSET,
	VDESC_NO_OFFSET,
	VDESC_NO_OFFSET,
	VDESC_NO_OFFSET,
};

Cheers,
Matt=

--Apple-Mail=_CA9D62C7-C724-4082-A950-F7195042EBFE
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64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SrRKTEpFvSin8Z9hJDh/t6ibVyItj7Lp
hj/DFQZ/cy1iXOwTBDcbJnl6XphBVr8o74ogyluCK5ozCkOOI/QCwmEcE+sBpg0MlhG0B7sx6iyj
W1agWj8dy8x3xS3oTNhc7boi6Ear7+PougPJ59mDuJDQ//0Der21qViXIADo5gw/fFrYapwrUiUe
e84gx3uNLjUAAAAAAAA=

--Apple-Mail=_CA9D62C7-C724-4082-A950-F7195042EBFE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE60BFFA-366F-4033-B033-E1D950CCCA3E>