Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp786377ybx; Fri, 1 Nov 2019 11:12:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTeEvpTXocQP5CaQKGMVbc19Z+V7NZqbxnWPhpRhuuS6htsGe5cg/Bt6hWtNkorutzQSHm X-Received: by 2002:a50:f096:: with SMTP id v22mr14442552edl.149.1572631943268; Fri, 01 Nov 2019 11:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572631943; cv=none; d=google.com; s=arc-20160816; b=D86w+pTA5xYLjFjqvXEkqvL4fPoi98WmUIlH/xQBQDjmcafqbCX8r1pTMDBAGPK7no KKv7s2ZUAubdHL1b0+TAOsgsej3cLGruTq5YnNBGAllxwYqV8saYw7hWwtjhohD0ZD7j KCWL9RZzcvGqhxkQMWp8JTIDydKhK8qLKwl2nl9NAHYlqOKqur8kOfHpb5N8KEYq3iBe OSaFk4it5HbXnSmKIkCkjA3mtJvEOtdpV2rcjB++tDywiIBJEcqtUiwwsjZHaOOgkxB2 aIIab9y/yolGxtLo1uto/GoWgZDl5YewmjPJMnO0BUxEa4at+RlNJEjSDzrcmDQTWf3/ bBYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N/HIlvTupFMQoaRKWu7IMXMsRW7xNinsS93O5DkPvF4=; b=p1rSvaxA72AA5EZMorbXENhwMuk8mpCbdY8FBI5DMzQiXaK2mTX+CLCAlNXQDc/0Xm 76+bEXLVdOSjjsJhO8+02iyvTSWMv+YJdMeOEp68Swv1mIPYC9eqWha+Q8VA9zOcYjSx OJ0Ys12ehAloOdUBspSFZno4jB7TPScrKpOzBiHmVbJ/EijPk2Dj7aXeyJxiyZmiIyeP ARlDmH2cKbT2oT80WhKhqrtVtpv5qvCTj8+UadlLips5hiwR2wHUYNvt2c0M2NShpr8r RnEfNvlqZGmygdqjNNbrAf29QvmmGO2BzSzwonTgYhBh1V15V3Vb0JkQwV28zsZ8pQpM w8JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Jx9U/l+A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hb23si6320451ejb.377.2019.11.01.11.11.58; Fri, 01 Nov 2019 11:12:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Jx9U/l+A"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbfKARuS (ORCPT + 99 others); Fri, 1 Nov 2019 13:50:18 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38459 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfKARuS (ORCPT ); Fri, 1 Nov 2019 13:50:18 -0400 Received: by mail-qt1-f194.google.com with SMTP id t26so13939486qtr.5 for ; Fri, 01 Nov 2019 10:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N/HIlvTupFMQoaRKWu7IMXMsRW7xNinsS93O5DkPvF4=; b=Jx9U/l+A7Vbfll2pRMnzIa5vrkwv+VQlkzE907HDssInUY6UQK3NMfc4TLKfAJ3FGO WiVHTVuYKdZmgLiivyXL7y5LxeV1+yFflkgY1bywhlBv3u70rayWxDmZ/+oq1OH2MXHz MYkE+j/F0yqWWdDhOy8X+GIQXqtTZWsZxO04/J7VS4W8l5fxC6AERlOlYzvrOGgSIeIC zlEgF2I5RdIESCm5gcTFyVRKC13Siay55avawNuE6dAZwcnZxmcuGqqtCpGLhyPtJtTm VuYNIXsXNFvTw5NORMo5xB4KtGTPXCJAsrGAiabEQ5bGV9PvOhv8VcIxNWcQrJBWQr2B 8+zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N/HIlvTupFMQoaRKWu7IMXMsRW7xNinsS93O5DkPvF4=; b=mBJPKauEsERW87dCYHjyNcXhAWfhB3ex+ouzljSTDmEutHh9/thvENBwRwGuALAXsu iRw9E9NVppfGPOFzKW7OX5ok+8wm0SdRa2QkgDR8hoHgmFyDWfoSkMf5FbwMqC6OXQTo Zn+eoJIDfdVHcSwkRwCAhckaj/tp4P7YPmZsZQyMOkVGnCuk/PqEy6q/VrxMWAkG+k9t 5S/hRalfXSqJ+/dx2SAgQR8z8ePr0Ttc8Ic8qKvKlfxkKoziEwUCepKOsyyZtKoWQX6K RfHZAbNWFBlyMXMcZIX3wYZSXqMsAxPTFY1Lz0mPFGVPZRBP2jW8q96vfGgkAXr3hFpO //uw== X-Gm-Message-State: APjAAAXsDZLmVNmQi8roeqcPpgwAASuxMgqyYzYOlWdbKpkPB+YCurjO A+PQSWpSB3auTeDt7TsMMnoreHzG8vXZsLQp5+TfCA== X-Received: by 2002:ac8:4157:: with SMTP id e23mr577642qtm.158.1572630617052; Fri, 01 Nov 2019 10:50:17 -0700 (PDT) MIME-Version: 1.0 References: <00000000000069801e05961be5fb@google.com> <0e2bc2bf-2a7a-73c5-03e2-9d08f89f0ffa@kernel.dk> In-Reply-To: <0e2bc2bf-2a7a-73c5-03e2-9d08f89f0ffa@kernel.dk> From: Dmitry Vyukov Date: Fri, 1 Nov 2019 18:50:05 +0100 Message-ID: Subject: Re: BUG: unable to handle kernel paging request in io_wq_cancel_all To: Jens Axboe Cc: syzbot , Andrew Morton , Dan Williams , David Howells , Greg Kroah-Hartman , Johannes Weiner , Joel Fernandes , linux-block , linux-fsdevel , LKML , mchehab+samsung@kernel.org, Ingo Molnar , patrick.bellasi@arm.com, Richard Guy Briggs , Steven Rostedt , syzkaller-bugs , Al Viro , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 3:41 PM Jens Axboe wrote: > > On 10/30/19 1:44 AM, syzbot wrote: > > syzbot has bisected this bug to: > > > > commit ef0524d3654628ead811f328af0a4a2953a8310f > > Author: Jens Axboe > > Date: Thu Oct 24 13:25:42 2019 +0000 > > > > io_uring: replace workqueue usage with io-wq > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16acf5d0e00000 > > start commit: c57cf383 Add linux-next specific files for 20191029 > > git tree: linux-next > > final crash: https://syzkaller.appspot.com/x/report.txt?x=15acf5d0e00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=11acf5d0e00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=cb86688f30db053d > > dashboard link: https://syzkaller.appspot.com/bug?extid=221cc24572a2fed23b6b > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=168671d4e00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=140f4898e00000 > > > > Reported-by: syzbot+221cc24572a2fed23b6b@syzkaller.appspotmail.com > > Fixes: ef0524d36546 ("io_uring: replace workqueue usage with io-wq") > > Good catch, it's a case of NULL vs ERR_PTR() confusion. I'll fold in > the below fix. Hi Jens, Please either add the syzbot tag to commit, or close manually with "#syz fix" (though requires waiting until the fixed commit is in linux-next). See https://goo.gl/tpsmEJ#rebuilt-treesamended-patches for details. Otherwise, the bug will be considered open and will waste time of humans looking at open bugs and prevent syzbot from reporting new bugs in io_uring. > diff --git a/fs/io_uring.c b/fs/io_uring.c > index af1937d66aee..76d653085987 100644 > --- a/fs/io_uring.c > +++ b/fs/io_uring.c > @@ -3534,8 +3534,9 @@ static int io_sq_offload_start(struct io_ring_ctx *ctx, > /* Do QD, or 4 * CPUS, whatever is smallest */ > concurrency = min(ctx->sq_entries, 4 * num_online_cpus()); > ctx->io_wq = io_wq_create(concurrency, ctx->sqo_mm); > - if (!ctx->io_wq) { > - ret = -ENOMEM; > + if (IS_ERR(ctx->io_wq)) { > + ret = PTR_ERR(ctx->io_wq); > + ctx->io_wq = NULL; > goto err; > } > > > -- > Jens Axboe > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0e2bc2bf-2a7a-73c5-03e2-9d08f89f0ffa%40kernel.dk.