Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1233995iog; Tue, 14 Jun 2022 01:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhHkFl++BLDsi2tAkG4DAfayHQR11xZuFlZ1gynKe/zDgqjwrWqstzWQE8QD3zY8tteP99 X-Received: by 2002:a05:6402:90d:b0:428:bda9:3e6b with SMTP id g13-20020a056402090d00b00428bda93e6bmr4570127edz.132.1655196868950; Tue, 14 Jun 2022 01:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655196868; cv=none; d=google.com; s=arc-20160816; b=GHUJvPKD0adtbs8U288octM4VXMi2GCO2BCmM1xmZwWmvaXTqcBh7457KtG6lBhzsF 3Y1SARhbN8o8QvuSAYKlWKaYsGueIxnWb4efk7rKWV9Tpvu2MC1cw+IqfoNcWceCdPDK Uhak57QmRFfO9nlNKeQQlUF/k0oEG5kE9BFr+KrDL4x7ccxM9rqXkZ1IFrkMVJag+CRZ UZR3BBstlUI2sCCqX/71Amafp3SBEVu0XXw/CRvIKJ3hpjJ9KqFU2032PRnACxz7JzDi 1LhtEyWmuHZpl/dTWYFm5C0k7DqxSmeVSWCkjWaV/z4BqOyfB5su3jQh5/c6GmBXh2/n XWAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vkrp4CO/9UvJmo5cc1dfyzRQg7YqDey+RKfYJG/5u98=; b=wDLbSi0WsvAHZUm/2qGhPM9nO4ldKsS7i+g91JnRFY9psjPue7UUQNUNNzClWa8uoQ /o2eomSzdeY6xkJVN/lOPmR9tDpts9i7XAWc+lfsl4sPGus4tdn9z/EbFI2yOhmYEnH5 n4md68ePZRVM3xHyFHyqgftgXATfbvnZwyA8JhbQ+XLRT4IsAClGctGXmViBh153H4/+ 6Azsa7p9YSs5SYsOuq6cHdZ/2LZlHQrOZsRo4ZDtLGw0F2l9jPuELpzCp+Wgck5KapFE CtZA21AucB1vCWyPS1dOyRzxZxeIZHkULtzU+67a71Djs3Ewq2yVkYxVZjp939L1G/qI uWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hCA1H4J1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf25-20020a1709077f1900b006feb72b4371si12917833ejc.936.2022.06.14.01.54.03; Tue, 14 Jun 2022 01:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hCA1H4J1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242407AbiFNIxt (ORCPT + 99 others); Tue, 14 Jun 2022 04:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355973AbiFNIxI (ORCPT ); Tue, 14 Jun 2022 04:53:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2139D14D36 for ; Tue, 14 Jun 2022 01:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655196786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vkrp4CO/9UvJmo5cc1dfyzRQg7YqDey+RKfYJG/5u98=; b=hCA1H4J1s2PRIO6VVPDP+i3H1U1YrD+b7GOkc4pjgNsMFf8VAxyuCe7NjpDI6y/IrFjKFj kIxVnEQg/lTg5OQJtCXN7dFhxzZS93F3BNoJ+ol1DIOcKi1ybm5Ksf4e1GCuotO87XjwIf e3uYXKYlYKpw0st3NrNmyw8Au050p2I= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-451-7-SVUyi2MX2rrMf81G7u_g-1; Tue, 14 Jun 2022 04:53:04 -0400 X-MC-Unique: 7-SVUyi2MX2rrMf81G7u_g-1 Received: by mail-lf1-f69.google.com with SMTP id f32-20020a0565123b2000b004791bf1af10so4228207lfv.1 for ; Tue, 14 Jun 2022 01:53:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vkrp4CO/9UvJmo5cc1dfyzRQg7YqDey+RKfYJG/5u98=; b=BbRmsmUTBmWp9y0LYJVxQFcDnBkrzIw+nq/8Uh5loVL2TOJAWcasJ+KBPLpGhcxzUA 507J1AXOIg2QkdchpXggCqc98y6z2dw7XlX9yLhkRxpNs1H/7Fp//mg8PNBmu0ytiW4a ouN8qnxKn9bD37hbV1XG0HUa430V2EhOYRHT22Hvwv10Oa9HM90/DxFSRVDu02h78XuW PHyCaustWE6cO2edJY8U7IHYRqvI4at0aZTtHnxRpwx2PUlH3n1mDFXD55lpJ/2yMxcK nL/K7bi2ffVUgaeR+oiKYpvkTQWRBb5/gLAEXM3PeAwxr5md9beYQP8Vrn6sAvgGwdIU m+BQ== X-Gm-Message-State: AJIora+xZ61d0qX5Ocxvonn3D9QJ3kaVH3vr5pNQjUgu/WKSBTRhq5PU dRZ9jRmG7o0869EwjmLctU9I01QBO0Koi6O+cHiZjvqU2cTPBsMpYZybjgnm3RjsNQd/mKz5PcY or/LUpKdIEYgVr/mUsrEpwJh2QIKh9jw4QSN3NFQA X-Received: by 2002:a05:6512:3130:b0:479:385f:e2ac with SMTP id p16-20020a056512313000b00479385fe2acmr2413167lfd.575.1655196782570; Tue, 14 Jun 2022 01:53:02 -0700 (PDT) X-Received: by 2002:a05:6512:3130:b0:479:385f:e2ac with SMTP id p16-20020a056512313000b00479385fe2acmr2413138lfd.575.1655196781990; Tue, 14 Jun 2022 01:53:01 -0700 (PDT) MIME-Version: 1.0 References: <0000000000008ea7ac05e09b46a6@google.com> In-Reply-To: From: Jason Wang Date: Tue, 14 Jun 2022 16:52:50 +0800 Message-ID: Subject: Re: [syzbot] upstream boot error: INFO: task hung in hwrng_register To: Dmitry Vyukov Cc: syzbot , Herbert Xu , linux-crypto@vger.kernel.org, linux-kernel , linux@dominikbrodowski.net, llvm@lists.linux.dev, mpm@selenic.com, syzkaller-bugs@googlegroups.com, Laurent Vivier Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 14, 2022 at 4:50 PM Dmitry Vyukov wrote: > > On Tue, 14 Jun 2022 at 10:07, Jason Wang wrote: > > > On Sat, 4 Jun 2022 at 10:46, syzbot > > > wrote: > > > > > > > > Hello, > > > > > > > > syzbot found the following issue on: > > > > > > > > HEAD commit: 032dcf09e2bf Merge tag 'gpio-fixes-for-v5.19-rc1' of git:/.. > > > > git tree: upstream > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=14409a93f00000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=99f457384a4fea79 > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=6da75abeed821109137b > > > > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > > > > > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > > > Reported-by: syzbot+6da75abeed821109137b@syzkaller.appspotmail.com > > > > > > +Jason, Laurent > > > > > > This started appearing at the same time as 'task hung in > > > add_early_randomness" bug reports: > > > https://syzkaller.appspot.com/bug?id=256d08cc261a3c38832064a33df4c928b3cd0ef0 > > > https://syzkaller.appspot.com/bug?id=be1d99e09e499aed3939dc678718371984104e5c > > > https://syzkaller.appspot.com/bug?id=1cd11df5d984c694e3e7fc9fe271389b2340bed0 > > > https://syzkaller.appspot.com/bug?id=35496bafab4c3f81f0b0d6d72c69787300629740 > > > > > > Is this also fixed by "virtio-rng: make device ready before making > > > request" patch? > > > > Yes, I think so. > > > > Thanks > > Let's tell the bot so that it reports such bugs in future: > > #syz fix: virtio-rng: make device ready before making request Ok. Thanks > > > > > > INFO: task swapper/0:1 blocked for more than 143 seconds. > > > > Not tainted 5.18.0-syzkaller-13760-g032dcf09e2bf #0 > > > > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > > > > task:swapper/0 state:D stack:21080 pid: 1 ppid: 0 flags:0x00004000 > > > > Call Trace: > > > > > > > > context_switch kernel/sched/core.c:5116 [inline] > > > > __schedule+0x957/0xec0 kernel/sched/core.c:6428 > > > > schedule+0xeb/0x1b0 kernel/sched/core.c:6500 > > > > schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6559 > > > > __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679 > > > > __mutex_lock kernel/locking/mutex.c:747 [inline] > > > > mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 > > > > add_early_randomness drivers/char/hw_random/core.c:69 [inline] > > > > hwrng_register+0x3bf/0x680 drivers/char/hw_random/core.c:599 > > > > virtrng_scan+0x3e/0x90 drivers/char/hw_random/virtio-rng.c:205 > > > > virtio_dev_probe+0xa03/0xba0 drivers/virtio/virtio.c:313 > > > > call_driver_probe+0x96/0x250 > > > > really_probe+0x220/0x940 drivers/base/dd.c:634 > > > > __driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:764 > > > > driver_probe_device+0x50/0x240 drivers/base/dd.c:794 > > > > __driver_attach+0x35f/0x5a0 drivers/base/dd.c:1163 > > > > bus_for_each_dev+0x188/0x1f0 drivers/base/bus.c:301 > > > > bus_add_driver+0x32f/0x600 drivers/base/bus.c:618 > > > > bus_add_driver+0x32f/0x600 drivers/base/bus.c:618 > > > > driver_register+0x2e9/0x3e0 drivers/base/driver.c:240 > > > > do_one_initcall+0xbd/0x2b0 init/main.c:1295 > > > > do_initcall_level+0x168/0x218 init/main.c:1368 > > > > do_initcalls+0x4b/0x8c init/main.c:1384 > > > > kernel_init_freeable+0x43a/0x5c3 init/main.c:1610 > > > > kernel_init+0x19/0x2b0 init/main.c:1499 > > > > ret_from_fork+0x1f/0x30 > > > > > > > > > > > > Showing all locks held in the system: > > > > 2 locks held by swapper/0/1: > > > > #0: ffff8881468d4170 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline] > > > > #0: ffff8881468d4170 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1054 [inline] > > > > #0: ffff8881468d4170 (&dev->mutex){....}-{3:3}, at: __driver_attach+0x353/0x5a0 drivers/base/dd.c:1162 > > > > #1: ffffffff8d24ccc8 (reading_mutex){+.+.}-{3:3}, at: add_early_randomness drivers/char/hw_random/core.c:69 [inline] > > > > #1: ffffffff8d24ccc8 (reading_mutex){+.+.}-{3:3}, at: hwrng_register+0x3bf/0x680 drivers/char/hw_random/core.c:599 > > > > 2 locks held by pr/ttyS0/16: > > > > 1 lock held by khungtaskd/29: > > > > #0: ffffffff8cb1eee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 > > > > 2 locks held by kworker/u4:4/56: > > > > #0: ffff888011c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 > > > > #1: ffffc900013e7d00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 > > > > 1 lock held by hwrng/755: > > > > #0: ffffffff8d24ccc8 (reading_mutex){+.+.}-{3:3}, at: hwrng_fillfn+0xec/0x470 drivers/char/hw_random/core.c:503 > > > > > > > > ============================================= > > > > > > > > > > > > > > > > --- > > > > This report is generated by a bot. It may contain errors. > > > > See https://goo.gl/tpsmEJ for more information about syzbot. > > > > syzbot engineers can be reached at syzkaller@googlegroups.com. > > > > > > > > syzbot will keep track of this issue. See: > > > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > > > > > > > -- > > > > 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/0000000000008ea7ac05e09b46a6%40google.com. > > > > > >