Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp167436pxj; Wed, 9 Jun 2021 20:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4JZnQjE2X7K5S5xXaY6LuvDmKb0Lx9pxKUr8g+ZJAucg32k+v4YpOMLqb/3BQku5rmYHU X-Received: by 2002:a17:906:1952:: with SMTP id b18mr2442608eje.262.1623294325503; Wed, 09 Jun 2021 20:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623294325; cv=none; d=google.com; s=arc-20160816; b=LnXDcFyAKLRthghMpvW7ByMZsvBIGMYBalTm1ARLFUyykXhxzOOcDBwWWZunhMNrkH 1XMXwtk5zSPqWFgY45DLLD2EvsQPMIuHjeHW4AzVgURIETTgjGF0mW0IvPHyuXgDJwej xcdW5a/N050ZpkhCTI4hXI7b5lh7uPmxJN6CYi6yliEhecG976Q7Xt8lRAixobXFuzEq nXA3h22Xo9Uo3HiLq3Okj9qN8FP4JYZEBKhpMl8q30QV9ecnGo7z0d6onKlyytTYKjPL NgHrgOJEGFqnWlc+ZQDMC99+iYCaq3ossy7avN1HpS9+uUbbkqPeabOuhRrU5FZLYoHU cJ0A== 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:cc:to :subject; bh=r0MMs4vC4P3/AbRWUBCQi7Eo9SU2GvTecctJ26381l4=; b=XnfHgKOkZaUYos79wZ7UP/X/w7J/8xsgXPpkjW+E1TcY7TB3mTM9npDimxwZEIX+oJ ZBm5z/rdpKKqsfoQzGxw3Ase4j5HMx43TWeJ+O9Qb96gRjrzuCC46ge4cxYmJZHC9AOW dPV0h5YywT1Ppm724c3hCsMTpjX1bvPaki2SC+lMLRWoEU67FfeHTahurRazsdOOneNR OJPZpr3VRMCvaxU1qWmV5eqpAY3DY/FmPpFYW72TUFBbE4kzKZ4/JTsR/JLIsRJKnIgb Wd2oyQnrKaXIR3A6N2k9WANfR4XeJ4K1sflpyVDb5QqX9zfOyYYv1HnBHlehfHthvNnq dFrw== 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 se21si1538732ejb.114.2021.06.09.20.05.02; Wed, 09 Jun 2021 20:05:25 -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 S229937AbhFJDF6 (ORCPT + 99 others); Wed, 9 Jun 2021 23:05:58 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:13927 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhFJDFy (ORCPT ); Wed, 9 Jun 2021 23:05:54 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=haoxu@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UbvWAhs_1623294226; Received: from B-25KNML85-0107.local(mailfrom:haoxu@linux.alibaba.com fp:SMTPD_---0UbvWAhs_1623294226) by smtp.aliyun-inc.com(127.0.0.1); Thu, 10 Jun 2021 11:03:47 +0800 Subject: Re: [syzbot] WARNING in io_wqe_enqueue To: Dmitry Vyukov Cc: syzbot , Pavel Begunkov , Jens Axboe , io-uring@vger.kernel.org, linux-fsdevel , LKML , syzkaller-bugs , Al Viro References: <0000000000000bdfa905c3f6720f@google.com> From: Hao Xu Message-ID: Date: Thu, 10 Jun 2021 11:03:46 +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: 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/8 下午8:01, Dmitry Vyukov 写道: > On Tue, Jun 8, 2021 at 11:47 AM Hao Xu wrote: >> >> 在 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. > > Hi Hao, > > Then this is a mis-use of WARN_ON. If this check is intended for end > users, it needs to use pr_err (also print understandable message and > no stack trace which is most likely not useful for end users): > https://elixir.bootlin.com/linux/v5.13-rc5/source/include/asm-generic/bug.h#L71 > Agree, pr_err/pr_warn is better here.