From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3CF2C05027 for ; Mon, 23 Jan 2023 15:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232637AbjAWPYr (ORCPT ); Mon, 23 Jan 2023 10:24:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232719AbjAWPYX (ORCPT ); Mon, 23 Jan 2023 10:24:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 242272105 for ; Mon, 23 Jan 2023 07:23:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 27389B80DD6 for ; Mon, 23 Jan 2023 15:23:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69628C433D2; Mon, 23 Jan 2023 15:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674487431; bh=A2MlfnFASTT7ChsXUSVP76J1Yaru39aVmgt5BNED2CM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ojLuIiUVhEP/sgEiYdgLYjnKsSeaMTVA6ctJ8PyoM/0dnlVJHNHDLiKcQOXvN2pcH 7+l82xg0Br3WHwAft1j64T/J4ZstBqevoiHqa4tUASSL96Pvtd73Up8EVWiLYo17YF R8X/Spf+hoTSiqFGPk1SX1MPihR1lfC5eSnrCBeQ= Date: Mon, 23 Jan 2023 16:23:49 +0100 From: Greg KH To: Pavel Begunkov Cc: stable@vger.kernel.org, Jens Axboe Subject: Re: [PATCH stable-6.1 1/1] io_uring/msg_ring: fix remote queue to disabled ring Message-ID: References: <7912d2195155239ddcc77fa9ec22cf0f503ddf68.1674486170.git.asml.silence@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7912d2195155239ddcc77fa9ec22cf0f503ddf68.1674486170.git.asml.silence@gmail.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Jan 23, 2023 at 03:03:24PM +0000, Pavel Begunkov wrote: > [ upstream commit 8579538c89e33ce78be2feb41e07489c8cbf8f31 ] > > IORING_SETUP_R_DISABLED rings don't have the submitter task set, so > it's not always safe to use ->submitter_task. Disallow posting msg_ring > messaged to disabled rings. Also add task NULL check for loosy sync > around testing for IORING_SETUP_R_DISABLED. > > Cc: stable@vger.kernel.org > Fixes: 6d043ee1164ca ("io_uring: do msg_ring in target task via tw") This commit is only in 6.2-rc1, so is it really relevant for this commit to go to 6.1? thanks, greg k-h