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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C3A8C433E1 for ; Sun, 16 Aug 2020 02:39:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 762012068E for ; Sun, 16 Aug 2020 02:39:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=cmpwn.com header.i=@cmpwn.com header.b="Y0MDx67F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbgHPCjc (ORCPT ); Sat, 15 Aug 2020 22:39:32 -0400 Received: from mail.cmpwn.com ([45.56.77.53]:57588 "EHLO mail.cmpwn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgHPCjc (ORCPT ); Sat, 15 Aug 2020 22:39:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1597545571; bh=VS+cpXcug8bv/YxDZQZQkiS0W6liB9vfOXJ0WqjAo/8=; h=Subject:From:To:Date:In-Reply-To; b=Y0MDx67FC09bQ6IN62dYGqMoW6g/YUBIS6oWZpmC4g8gNDLu6ivB5iLa85TDLngTh 6vCM9Wt3PPEt854JArhXTvypoLKVCJigvPmDed4JjNpWvEvHB9FHW/BFWOJkvcc1F5 A9//Z5DvTGYZdw9dZCEWM1R88wzHijYJj77E+UlU= Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Subject: Re: Consistently reproducible deadlock with simple io_uring program From: "Drew DeVault" To: "Jens Axboe" , Date: Sat, 15 Aug 2020 22:38:00 -0400 Message-Id: In-Reply-To: <839f2d17-0486-b12d-3540-4a8408902492@kernel.dk> Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Sat Aug 15, 2020 at 10:37 PM EDT, Jens Axboe wrote: > This should be fixed by this one: > > https://git.kernel.dk/cgit/linux-block/commit/?h=3Dio_uring-5.9&id=3Dd4e7= cd36a90e38e0276d6ce0c20f5ccef17ec38c > > which will go into 5.7/5.8 stable shortly. Affected files are the ones > that use double waitqueues at the same time for polling, which are > mostly just tty... Thanks, I'll give this patch a try. I can trivially verify that it works correctly if stdin is not a TTY, I should have tried that myself. Do you know of any userspace workarounds for the problem that I could try on older kernels?