Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644Ab3GIDy5 (ORCPT ); Mon, 8 Jul 2013 23:54:57 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:48796 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672Ab3GIDyz (ORCPT ); Mon, 8 Jul 2013 23:54:55 -0400 Date: Mon, 08 Jul 2013 20:54:52 -0700 (PDT) Message-Id: <20130708.205452.1798118018128812181.davem@davemloft.net> To: mst@redhat.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, rusty@rustcorp.com.au, jasowang@redhat.com Subject: Re: [PATCH 0/2] virtio_net: fix race in RX VQ processing From: David Miller In-Reply-To: <1373274069-4301-1-git-send-email-mst@redhat.com> References: <1373274069-4301-1-git-send-email-mst@redhat.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 898 Lines: 23 From: "Michael S. Tsirkin" Date: Mon, 8 Jul 2013 12:05:26 +0300 > Jason Wang reported a race in RX VQ processing: > virtqueue_enable_cb is called outside napi lock, > violating virtio serialization rules. > The race has been there from day 1, but it got especially nasty in 3.0 > when commit a5c262c5fd83ece01bd649fb08416c501d4c59d7 > "virtio_ring: support event idx feature" > added more dependency on vq state. > > Please review, and consider for 3.11 and for stable. > > Jason, could you please report whether this fixes the issues for you? Please resubmit with the minor coding style fix and Jason's Acked-by/Tested-by Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/