Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1138721pxb; Thu, 23 Sep 2021 19:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg5KUS0VO4YNloIs0yjTuGczg+rgkhU1VANM6JTzCeF9FFHfg5mqAqA8OmINkkTcK3XrXW X-Received: by 2002:a50:becb:: with SMTP id e11mr2448151edk.161.1632451707259; Thu, 23 Sep 2021 19:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632451707; cv=none; d=google.com; s=arc-20160816; b=F0YCrBnMpunAJ61c9CdtIYVlfuVUeL+wVq9jf/xRFeYXnHdFccF0TpirYhxW4XAF9H 8QciDREqC+g13fp8rz6UBrgI++ZjfAdXwspN3e1Z9r0mH3vli5gcNE4nh/inilJrAXRK VYxUZahdCzQtv1+tTVyM+/yha8JgJajyklvdSduN88Wqx3gtnNEtgH5FRqSRVS2G08Gu hS5fP4YigOXMIv9VK2/QPZpZeTcQkhFULtbGh9IrjrEZ0Qy3wfau9xxr9mXOSyZrbLtw jzsQkZPbI53d+el9EJfC3ne9Sv17HHiqfe8RAqPoHthWsJmLplOZGpbck8msUo0AIOzy 6Hqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=jNFV9KO3ralVqp4Wd7niMG35JvXLR+iQVqVzf0CGirI=; b=h3VNp0YEqQX1D7sNDB6CN3OCNjYmlZfCWeOvreIY/usKFQQIMRKJk3WbYSqRVFcI1a +sumYiorD6kulB7yR0R2hx0zWiaTSiMR1hpFHp5XfBsEh5+V+R5a70SxDCnqjZPVCcTJ 2k6QzLZIux900S/+d0khRwCIU+38SWNoqtILnnPFaLqt3A0u+HV7JVNFZXM7ZvcXVejH JkpihPjt0Ju7HBaBW9JpXR5/vsi3X22NwCsuVvTKnY8c1JAcc84V30mcSpOUOUfeUWHg pFpzxmVMJBLdpB0Sg2pRxXeDnC5B53GBKD6ZATVCBLRaO/hYd1b82A3c2k3L/kAPpDTa c6Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=EGG4MHj7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si8553255ejl.560.2021.09.23.19.48.03; Thu, 23 Sep 2021 19:48:27 -0700 (PDT) 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-dk.20210112.gappssmtp.com header.s=20210112 header.b=EGG4MHj7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233314AbhIXCpX (ORCPT + 99 others); Thu, 23 Sep 2021 22:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243948AbhIXCpV (ORCPT ); Thu, 23 Sep 2021 22:45:21 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B8FC061574 for ; Thu, 23 Sep 2021 19:43:48 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id m11so10752828ioo.6 for ; Thu, 23 Sep 2021 19:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=jNFV9KO3ralVqp4Wd7niMG35JvXLR+iQVqVzf0CGirI=; b=EGG4MHj7Tiz5rEQ1HlKdAihTpb0A5zbW1OrHw3V7x/bkzVTOOMHwWjiuHCegqIaEWs jPO+9PrqiDaGXDtQdYRA4B3INAh3MCXa4x+bkxNGebhcAPgOu3aeSy2vORxq9J5DWvd7 bL14awuetbiijQqKQxiA2zk2C7eHsC0w4Rvh8Y2fcg/XqqbrweBIvsSfnotfOKtZqJax G1AsMniQi+y2ni1hSbDOeNQ0gwIWaPCrHmA9Wcb3cDxEafDeQV0whahVvP/zp1ABVVwR iUDrBejLtbM24OWeW/XkTYNbTfEOzV0x6pkpGE3wPr7Fmi2Z+d7BT7WoFNAkzrtsDyK5 FXtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jNFV9KO3ralVqp4Wd7niMG35JvXLR+iQVqVzf0CGirI=; b=y4Sgt4WvqX3dEK+AzNYa3eUKelMJMZcviPmLyurVcr5POkjw7lPK2EWaSBxcTLUyqH T5+ZN6pQe0kXIQCVNhp1VoOqPz32Lgw1rBQZaQHfxLWN4SoJYC+jF4/igr9mvbzerw8S lXpN2hrusPMQVFOVfojh92eKzCoP7bkbHUO53/2/Fky5+hAEwTVKVPZEM99z1BFixaAO quTYxnzk0E9mREbg6YSki8GeMsWIkHPaSnr+dwK/284p11Mpb97GBn9xmHKJW2iaaVI9 78jQVFU5h8D/gjFPSAX9zcou6YzPX6EQhxHy8HhgnCOjiWMuw5gbO2I673Ny4sHRYAU4 1LLA== X-Gm-Message-State: AOAM531tepeXcnbEbzMPQ2IUL1XkJyLQhMxVUYFgNZ/+zGT35lGbWNV3 +J68cRXbvLMctLoKF36as9mAgA== X-Received: by 2002:a5d:9c0a:: with SMTP id 10mr768337ioe.76.1632451427745; Thu, 23 Sep 2021 19:43:47 -0700 (PDT) Received: from [192.168.1.116] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id v17sm3437970ilh.67.2021.09.23.19.43.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 19:43:46 -0700 (PDT) Subject: Re: [syzbot] INFO: task hung in io_uring_del_tctx_node To: syzbot , asml.silence@gmail.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <00000000000064b6b405ccb41113@google.com> From: Jens Axboe Message-ID: <5b3f8081-fbdd-ea2c-eddb-292d02be98a8@kernel.dk> Date: Thu, 23 Sep 2021 20:43:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <00000000000064b6b405ccb41113@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/23/21 7:57 PM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 92477dd1faa6 Merge tag 's390-5.15-ebpf-jit-fixes' of git:/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1471785b300000 > kernel config: https://syzkaller.appspot.com/x/.config?x=e917f3dfc452c977 > dashboard link: https://syzkaller.appspot.com/bug?extid=111d2a03f51f5ae73775 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1511c4f7300000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=132d1d1d300000 diff --git a/fs/io_uring.c b/fs/io_uring.c index fe5e613b960f..efb244deb081 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -9636,8 +9641,10 @@ static void io_uring_clean_tctx(struct io_uring_task *tctx) struct io_tctx_node *node; unsigned long index; - xa_for_each(&tctx->xa, index, node) + xa_for_each(&tctx->xa, index, node) { io_uring_del_tctx_node(index); + cond_resched(); + } if (wq) { /* * Must be after io_uring_del_task_file() (removes nodes under -- Jens Axboe