From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753959Ab1I0M3e (ORCPT ); Tue, 27 Sep 2011 08:29:34 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:44729 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770Ab1I0M3c (ORCPT ); Tue, 27 Sep 2011 08:29:32 -0400 Subject: Re: [PATCH 1/2] virtio-net: Verify page list size before fitting into skb From: Sasha Levin To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, kvm@vger.kernel.org In-Reply-To: <20110927070034.GB4690@redhat.com> References: <1317058869-19276-1-git-send-email-levinsasha928@gmail.com> <20110926184445.GA22278@redhat.com> <1317065842.20885.3.camel@lappy> <20110926195541.GA23086@redhat.com> <1317105842.3467.3.camel@lappy> <20110927070034.GB4690@redhat.com> Content-Type: text/plain; charset="us-ascii" Date: Tue, 27 Sep 2011 14:20:29 +0300 Message-ID: <1317122429.3467.5.camel@lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-09-27 at 10:00 +0300, Michael S. Tsirkin wrote: > > skb = page_to_skb(vi, page, len); > > ... > > Sorry I don't get it yet. Where is mergeable ignored here? The NULL deref happens in page_to_skb(), before merge buffers are handled. I'll test it and see if it's really the case. -- Sasha.