Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp700094pxb; Wed, 3 Feb 2021 15:52:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxd2vVu8ZlqEYyKQNLL79EqJLItcRhI0mAKcOWm7ZON30oFdF+gtMDoPDdbEpeCYUGXaSN9 X-Received: by 2002:a50:acc1:: with SMTP id x59mr5565384edc.43.1612396342986; Wed, 03 Feb 2021 15:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612396342; cv=none; d=google.com; s=arc-20160816; b=XMIb8QT6xSJ9yJdOu11U1eFqQDiFWkOrHhnE5/TKq8onAqy4SFalBA/GrLTx/bb8KD TV6UO1yIz1e8CAMaZHW6MxbZFDvPAIdas8Lc79phAgqdXpZleMcHSvyPcDW9FgthTqWF u248s2JFgVZBCaGhh87E65S4Y3IURaax0gqdnLmZcmqJIau/SSF4AL9rlf1HN7PbADV5 ybcSgMNUCq4qbHck6U+r7MqhcB5y2PX82BMiNSUyaHcyiyyLyqcgSQ9ydMRSOuenE8Em Bel2kplixsAsLObQ9M4grkz50FQ+q2bW9EulzXMjSECjJaYcwXlSnW+wfQOo4YCLeTEY ZyKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vmpcoqfS8Bxuh09VipT1kpF4CJOTK723tAlWsRDmlEk=; b=qIGhmaW3VutmUn6etIhGj1A+8LD4rax954Doe9r4O5MYde4LFn3X6nT0WGv0MU5+Ij SN0yKfwC/ySvtXC9HMLmihzOMNIBuFfyjsBkLEzmeQECbUB+qY6XjEqtqpcz4kVx3Nmw JpfPF7fSaey4c/Qx0Blv3EGisNdnSaHrPEw9bnMIxAxOQP+zUh3cufCnoIngXbEgov5a bQ0w2QW2tRtTmERrjBWjebVGLTAV8n3s/KCZ8TLnjPIXqAdBZm6GAFXj1q6cD+sQ2ZFl yiYdyOaKrQiQIGnK1k02oSv2uE6+ipb7/oDD/u6B/B0Nddwd0wq8DJd3ICtRAX7AuVR7 8zZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UIpgYcku; 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 40si2490349edr.233.2021.02.03.15.51.58; Wed, 03 Feb 2021 15:52:22 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UIpgYcku; 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 S233392AbhBCXso (ORCPT + 99 others); Wed, 3 Feb 2021 18:48:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:53536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbhBCXsm (ORCPT ); Wed, 3 Feb 2021 18:48:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 52C8464F60; Wed, 3 Feb 2021 23:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612396081; bh=+6Wgzo0UAUksPUWapSep533wADw9r5wsvfB8fRBzU/8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UIpgYckud7N2g2qsN2quewUJHN1CUfhAF2xZ2mhebPxmAgTlZ1pFi2i1CsFDlmmtt FV5l4wXK+VlOFUX90qIWpCk/8kGxGxOFbh6e6aTEsMvpxeb5KHUCf3IfB6QWsRf3s3 Z4fdA6Q+ICKsQwqSTsnIK7vM3TofwoJjvDpC4SIolrap2mJPZo204ZtyPnB0BblQJv ni/AeyRm9iqFminn9qBX3VTMmeWnuus99o8CnpBVWde/lCR7gwnJ3kSJLcueqXCA2r xeleXlmjwqoauwANKqm8SuyqbtTQPU6bqIPnCupc8Wlz/i2dl3h6diFgdDF6SgymXf DC9/FjRrODCtg== Date: Wed, 3 Feb 2021 15:48:00 -0800 From: Jakub Kicinski 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" , Igor Druzhinin , stable@vger.kernel.org Subject: Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available() Message-ID: <20210203154800.4c6959d6@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210202070938.7863-1-jgross@suse.com> References: <20210202070938.7863-1-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Feb 2021 08:09:38 +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 Should we route this change via networking trees? I see the bug did not go through networking :)