Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3951417pxj; Tue, 8 Jun 2021 02:49:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrbeHcvkJFEGztcEOt6ZIaVQE8TY4IYQtOF7JTt/+N3dAy5gZYAejw+drDlXbw2bWQYIYD X-Received: by 2002:a17:907:10cc:: with SMTP id rv12mr22326049ejb.533.1623145778781; Tue, 08 Jun 2021 02:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623145778; cv=none; d=google.com; s=arc-20160816; b=U8cC0wKW+OCu0zi4Bg3Ii/eUu1xDxI5m5oxVZZUdzmvgejfPCIjRN9f524nv0DMmqa BAI0xMCsHHPLGeHFoAvAjU2QqRknflns0VnA5zbKE/bt2caPioiBBn1kKNONDUbkvDDY txA3oYemAarCxbNUYoMjPQkXJkXDR8N6HME1gJsEunkjGbK+c1llD6FlxJqXcLQE4fXi QPnuWy8LgaxXa69bF5hTezfqZIrMVWo1j8WKcNn+DUV+EIRGwb2C3f9TSR3JskPYzOw0 n66ztiR9XhrhRzg5nVzrFw4f8K8ewrTjEqbiu8GP7/Y9Yta/wBkXjA/+7iL9sU4GJ4dK koJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=MeI/aIZKRGg9U4ApM8j52RCW9WuWMNcHvitPieOIS1E=; b=cA92CqAr6G1z4BFSF1hwZtufA6Ri+8AbMM49NKMLQ5QmKovMe/lDRdYzlZomf6arEs iJfmVGX491Ojwfj41uDps+Y8zb6axacWsoSNe1uZ59mx5kZv/65e3fmVeCLVXhEvZLaK PShXd7lX88Xg1pVGrkw8L4EkFnuRq2CDJSZ8YoscLpGPJcGFD39XmWctZRAIzvRuhRzx 3M71j1ZrwtqtWTN0S8P8QbnXqftchIseHA0+Ggx/x/1fiaWhCCPhq0Pozwdxo0xw4lHz BueoJetZMowW07qDz5yfGmeuuLi+Hdh/apDNxyQAgnED577vnoLUYCk3rqZNAi/hbrwP d7ww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c30si5146367ejj.574.2021.06.08.02.49.07; Tue, 08 Jun 2021 02:49:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230473AbhFHJtY (ORCPT + 99 others); Tue, 8 Jun 2021 05:49:24 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:57977 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhFHJtX (ORCPT ); Tue, 8 Jun 2021 05:49:23 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R611e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=haoxu@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Ubkgp-5_1623145644; Received: from B-25KNML85-0107.local(mailfrom:haoxu@linux.alibaba.com fp:SMTPD_---0Ubkgp-5_1623145644) by smtp.aliyun-inc.com(127.0.0.1); Tue, 08 Jun 2021 17:47:25 +0800 Subject: Re: [syzbot] WARNING in io_wqe_enqueue To: syzbot , asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk References: <0000000000000bdfa905c3f6720f@google.com> From: Hao Xu Message-ID: Date: Tue, 8 Jun 2021 17:47:24 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <0000000000000bdfa905c3f6720f@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/6/5 上午4:22, syzbot 写道: > syzbot has bisected this issue to: > > commit 24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c > Author: Pavel Begunkov > Date: Tue Jan 28 00:15:48 2020 +0000 > > io_uring: add io-wq workqueue sharing > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17934777d00000 > start commit: f88cd3fb Merge tag 'vfio-v5.13-rc5' of git://github.com/aw.. > git tree: upstream > final oops: https://syzkaller.appspot.com/x/report.txt?x=14534777d00000 > console output: https://syzkaller.appspot.com/x/log.txt?x=10534777d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=82d85e75046e5e64 > dashboard link: https://syzkaller.appspot.com/bug?extid=ea2f1484cffe5109dc10 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16d5772fd00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10525947d00000 > > Reported-by: syzbot+ea2f1484cffe5109dc10@syzkaller.appspotmail.com > Fixes: 24369c2e3bb0 ("io_uring: add io-wq workqueue sharing") > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > This is not a bug, the repro program first set RLIMIT_NPROC to 0, then submits an unbound work whcih raises a warning of WARN_ON_ONCE(!acct->max_workers). Since unbound->max_workers is task_rlimit(current, RLIMIT_NPROC), so it is expected.