Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp672046pxb; Tue, 2 Feb 2021 15:05:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJznyfhaXaAVDcIeqn2EfOjcBbGiRYAEP2pkhDxoiUKzHQjFJBwZuYK8MjI6NztnJtkQsiVA X-Received: by 2002:a17:907:c1f:: with SMTP id ga31mr325171ejc.192.1612307131807; Tue, 02 Feb 2021 15:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612307131; cv=none; d=google.com; s=arc-20160816; b=YtYVr4gvgteAcA0HquLBBKwWMX0dm9Y4JoqJuO0wK9F/ZKuyEXXJJ3S0Fgldu0qVLA wEgvjDeU5zp0klB4+0Sn4ALH76Jfdcq3dHlIX3gEHx2XE+EG2NQ9sX5CitFkeNk6C5bu /q1pPtbBN3mTSk2VIqezEbyox5T6EaQBRJxU7dCCgTXDIYlm/K5BEdezsK8KLY+6zuY7 zNBTzX1jkOn6uFy3snik6yp7tgeBguGpnH5Zk7QsX30u6aLkA0FvgHTKMd/WJAt+M1ug gNJ1g0JW6EGcSyxbtwCriaIWbLQyUfy3oDMpfELzn9zHVveV5l6G11YQ52F9GHxjFg0q zPzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0Tl/pMxs9MIy87xsuWIVEOhHXa7tZ9dZIJ0KCeGa4jI=; b=I7racyxEHcmYSXXtc0IBYkW+s6WlaEU9DNl/kyJtRG3P3tN3n3/5tHpOUh2+NMzPcs T+mn1j3p6UBLvvE14tlwpiIHTGAnANDf5Q2T+cQHXegsTgmJisbpVgj0LYf0ojhklLeG VmXEpEnWkO33RPM+Kn5YvukrRwuAJIboZNM3yJVYxp7qiojFQj3JRW/5yPDXwIB+7FFL Txb1dZfT6QOh2NMMV03czShpQYMY5GKsBpsEU+pCw+aItm6uqEKg+jc1nFzJZ+JMUQKx Ujs19pJMdg3ooPBvKxFh/Akqq6jL2QmQyccnnUhPPyVCtpWI/F4adr9XBZOw3/WVHBIy mw/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si113768edb.93.2021.02.02.15.04.53; Tue, 02 Feb 2021 15:05:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236376AbhBBQZf (ORCPT + 99 others); Tue, 2 Feb 2021 11:25:35 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:38524 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236320AbhBBQXZ (ORCPT ); Tue, 2 Feb 2021 11:23:25 -0500 Received: by mail-wr1-f53.google.com with SMTP id b3so2979933wrj.5; Tue, 02 Feb 2021 08:23:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0Tl/pMxs9MIy87xsuWIVEOhHXa7tZ9dZIJ0KCeGa4jI=; b=fMy85NFgtbjalzT7DedynCqERL/6JDmbAIsO27jM4cpJn6X5QrTtuAMwcbYoexAoT6 GxVpama5x1SrodeLurAKRCGrmd7+KAdb0pfnuychTpyiFphLSHaWZRhVcfpreCfJRrl8 Z9UkuogsKzsxlrbq6wqf3XtrudfnL4Hq3cAWGdNcytkCRwQrU0Uq/Q9zU2QBONnAyvns c45TQWzOfTVGh39E2FgyKe9iIh+HJaUE03FjCVg/QcsMJDn0nf4t53LgFAoB6Qg+jL+C giWpcsNUsen3mX8q2JH5LLIKtVv4EUIxbatJRS6T4TFuBRQZVEk5XYe5b1NF7lr9OuyI P++A== X-Gm-Message-State: AOAM5328KMKzBjudSuWtiUtUzwjJY1SGzK4FvEjPoxORM5ybhAbuTunt 4a14K7SXdN2FXimpyblDlZ4= X-Received: by 2002:adf:dd43:: with SMTP id u3mr25063060wrm.396.1612282956206; Tue, 02 Feb 2021 08:22:36 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id e11sm32813367wrt.35.2021.02.02.08.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 08:22:35 -0800 (PST) Date: Tue, 2 Feb 2021 16:22:34 +0000 From: Wei Liu To: Juergen Gross Cc: xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Liu , Paul Durrant , "David S. Miller" , Jakub Kicinski , Igor Druzhinin , stable@vger.kernel.org Subject: Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available() Message-ID: <20210202162234.sf575hwoj4bngvpt@liuwe-devbox-debian-v2> References: <20210202070938.7863-1-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202070938.7863-1-jgross@suse.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 08:09:38AM +0100, Juergen Gross wrote: > Since commit 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding") > xenvif_rx_ring_slots_available() is no longer called only from the rx > queue kernel thread, so it needs to access the rx queue with the > associated queue held. > > Reported-by: Igor Druzhinin > Fixes: 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding") > Cc: stable@vger.kernel.org > Signed-off-by: Juergen Gross Acked-by: Wei Liu