From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D1AC364A4 for ; Sat, 6 Apr 2024 12:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712408242; cv=none; b=R7RkXfKaQS0wtYzAvQUcBdgeOhFPqBYrMVwSsGMafiYAu+QTjnZnpjkdgQtRRIwvLiNNw2cuH1Cpa4ryFlh3U/mGPa1PIAd/hChlbddTzDg1tSj9aALToOmBrLTrLBcLE6YpGw7sBcXqscgd6/X2xgTegIseJ0NM5xnxPMVu2Zc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712408242; c=relaxed/simple; bh=Kv4q7f/X4AQLJAhG0RPMQbSIJm8Yb9+EzmA98ZucV78=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kVP4YTlrdpUTtEmo7W8UI6QvOaQxNVoGuqQ9i7CEBD8TKpl+NTIes93JwUgCRKGo/xpxChW3pbrc8xHUM6YRr/35ZU9CK6KcvSPOuuKu62oAsQ4a/YKJ8mr+NyUrvmW6lNAWFDBKwWI3eQeZD64p9PsfQztsd4F4gERnsbBRsL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=VjutCexH; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="VjutCexH" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2a2cced7482so707719a91.0 for ; Sat, 06 Apr 2024 05:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712408239; x=1713013039; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=537qvItoY3UGYqOS3jCUDS+kO++g3qfbuMvkGGvCbBM=; b=VjutCexHTVZp8VOeJ0dH3JmQ6VCoLmNSXyJXAAZEVCI8xfh1uTXFLi7t5t3WqTv8tB ZRThFAAZbyocC3SWqoZ/3LnK2N5jy7Kr1823Ow6A+HbCl2J8uQ4TMQtQsZwPdftqXZBc txhDntE+a1BVwKxU1HHQ4JMbfAMxWRVrfz3drMYl7MU1j4BYTajOdp5Tpd4mNNfA3dp3 Aguda6BwR3/DhC+SUhnkPTuvqNS36T95AczoA3O8dUAcQO7h0K8lRwT5y1KgU1fpYH1Y +E2GLOLgSHcVdmqBVgy+zTDf630K6Z2lz1+C3ymFb0Sbs8q3vYgQ6ZBUxPE5ULroqzOZ 0aAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712408239; x=1713013039; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=537qvItoY3UGYqOS3jCUDS+kO++g3qfbuMvkGGvCbBM=; b=mJBXACf6Lxtw8Cdzg+saHatfSCuN4yETFb/Kq3F+eU813euwQEVazMlM3VrFnJjRjt OzixZHW5si9nZPWUUeAVVwkY+I1qeLXAE5EzPlvX1Xh0C5ol1ZaN8AJm1qtEtGM7JU6A 1cDxcB14dBw5c0vRDw11Xq1RVENN1VDp32o0AG03NOcRdlC18jNZJwV1u5xZwFWqLLyr ZiLJVs5mK/lTs210IALQPNRp2y8lXAfhYPXyWo0MPSv5aQujsClu0u6t3F053T0oUawz r/vr6NatwB2P1YoLGYuh+or4BCxDeuO32+PG0G+ouJrYep1+Wd73bkYKSe4eMCb7zQre 3h4Q== X-Forwarded-Encrypted: i=1; AJvYcCXSKc5XvWAANwoj/F+EB8UEq+6yoFPlE1XAfHWs7Sl3c2Gy85cVzw26AAx7DA8JUcWaEDOCGO2wo3Ee9To1d1vxB6ECWh4Tj6R5Ov+s X-Gm-Message-State: AOJu0YwIDm+j9NLZxjLseYTzKYgX13Vqx4xDDVrmsehA2WM/HHwBPAqx fuz3a7Ou9T++41i7wPU2sO+uC0r5vvzfMK1yVuNE/romEUk0MPVn5UOj6T5YdQG5tBYOtcoF6ru D X-Google-Smtp-Source: AGHT+IEqT7Tkjacniw0+XTRNTqhcnsdo8xhVwZArYWkR+Sgi1CgfWmt2tN85SfC5H58AlGu2EV9RBA== X-Received: by 2002:a05:6a20:7f96:b0:1a3:c621:da8d with SMTP id d22-20020a056a207f9600b001a3c621da8dmr5040588pzj.1.1712408239480; Sat, 06 Apr 2024 05:57:19 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id 63-20020a630242000000b005eb4d24e809sm3158037pgc.34.2024.04.06.05.57.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Apr 2024 05:57:18 -0700 (PDT) Message-ID: Date: Sat, 6 Apr 2024 06:57:18 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] io_uring: Fix io_cqring_wait() not restoring sigmask on get_timespec64() failure Content-Language: en-US To: Alexey Izbyshev Cc: Pavel Begunkov , Olivier Langlois , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240405125551.237142-1-izbyshev@ispras.ru> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/6/24 5:12 AM, Alexey Izbyshev wrote: > On 2024-04-06 05:06, Jens Axboe wrote: >> On 4/5/24 6:55 AM, Alexey Izbyshev wrote: >>> This bug was introduced in commit 950e79dd7313 ("io_uring: minor >>> io_cqring_wait() optimization"), which was made in preparation for >>> adc8682ec690 ("io_uring: Add support for napi_busy_poll"). The latter >>> got reverted in cb3182167325 ("Revert "io_uring: Add support for >>> napi_busy_poll""), so simply undo the former as well. >> >> Thanks - ironically I had to hand apply this one, as some of the >> commits you mention above are not in the base you used for the >> patch... > > I used v6.8 as the base, and all three commits mentioned above are > there. However, the patch indeed doesn't apply to the current tip > because of post-v6.8 changes, sorry for that! Not a problem, but it does highlight that this will certainly throw a reject once stable tries to pick it up. Just something to keep an eye on. -- Jens Axboe