From: Steven Smith Subject: Re: [PATCH ixgbe] Don't depend of skb->data for VMDq Date: Wed, 18 Feb 2009 14:10:38 +0000 Message-ID: <20090218141038.GB4936@weybridge.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1141337988==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mitch Williams Cc: Steven Smith , "xen-devel@lists.xensource.com" , "joserenato.santos@hp.com" List-Id: xen-devel@lists.xenproject.org --===============1141337988== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZoaI/ZTpAVc4A5k6" Content-Disposition: inline --ZoaI/ZTpAVc4A5k6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Occasionally, vmq_alloc_skb() will give us an skb with a nonzero but > bogus data pointer. Dereferencing this pointer will then cause a > panic. That's disturbing. The SKB needs to have a data area (because otherwise there's nowhere to put the skb_shinfo, and hence no frags list), so the data pointer really ought to be valid (i.e. NULL is also bad here). Is it possible that the entire SKB is bad? If we're doing a VMQ receive, we don't actually use very much of the skbuff structure apart =66rom the shinfo bit. If the packet were getting kfree_skb()ed somewhere then it might look like this. I've applied the patch, but I think there's something fairly fundamentally wrong here. Steven. --ZoaI/ZTpAVc4A5k6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJnBbevAgSWYI3DVMRAl+3AJ9aUqwO2VAMAWyNOF3oIsAe/F66OwCfe2ab xhLvu8p1MvxX9Tgvxju5lUM= =gATm -----END PGP SIGNATURE----- --ZoaI/ZTpAVc4A5k6-- --===============1141337988== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1141337988==--