Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4448100rwb; Mon, 8 Aug 2022 00:37:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4bbEwN/ByZr7ZzwkUn/MamWdHOAjDscfbZm+A643r3kp8NsQac4BPqaqEdBTaXgREj9e9S X-Received: by 2002:a05:6a00:1d9c:b0:52e:e0cd:231a with SMTP id z28-20020a056a001d9c00b0052ee0cd231amr10584125pfw.19.1659944248992; Mon, 08 Aug 2022 00:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659944248; cv=none; d=google.com; s=arc-20160816; b=F6glctUDbPz3bNHCslIce4mBodchMeyO+sHs99N5eVH0kcZ0yGBTMtmuElViXGxLv5 FJ+h+y50CHN/s2DH/n7bxZmnLGpdXJVkgVWIp4puy86MqqdlIL3CvGbWGQol1MwuQPjq c/EfRHSelMKTrHVbY9exnN5aFpVY5lQu8uLyHF7F6eTKVORwcAYzS+NyUxWTxfqzDw0R mq4St9qovmT3LiF2IO3UWP7Z+NkW35NoN7LTT6afBW36To7ZI8XJNypVKvaUNq2hblFv 4upgfLiCJE/650Qc1R+Bwn6p59CT1c7hZNAR+z4a19zt6TR+0j2YCDoT7L6FLcafkIEY ne/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=/xpnSNBx6YcejWp6D7piTFVv5HNYrOIvM8dSmc0S6BA=; b=VccYPCoucIK0PmKcgOKsVAWIQ0gMqTVf3X1LEMlmIluGQ7cWmmH7FWuC3FTNUPIJ2S H1cYx+lH2tNVo1C2ZiTCc29x56RTah6PNnswM7WHXMR51U+9i6RkkHlIpnD+OaDWVyNz gbREQ7Nd0gLrW8Nx29kpFy69DsfKh1d2OKVGOe55rt1SbDWUKR+slCZlGnUM3EqKITfi noCuBHMHaZIGnecSBrhhyJyj6V4fqoZcqHkPBdq7RifL2MP1tiLYUQMadwwVuRiobEGa GLw6DHspt45ugCsdr2eFUEOfgY8NLMgeuPNzJbo2tnb82tmQqtCVOzSFjPAuhC5iMjEZ fxnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a654501000000b004157aa8707csi10205369pgq.110.2022.08.08.00.37.14; Mon, 08 Aug 2022 00:37:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236926AbiHHHfi (ORCPT + 99 others); Mon, 8 Aug 2022 03:35:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236369AbiHHHfZ (ORCPT ); Mon, 8 Aug 2022 03:35:25 -0400 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AC3B26C for ; Mon, 8 Aug 2022 00:35:23 -0700 (PDT) Received: by mail-io1-f70.google.com with SMTP id l18-20020a6bd112000000b0067cb64ad9b2so4203979iob.20 for ; Mon, 08 Aug 2022 00:35:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc; bh=/xpnSNBx6YcejWp6D7piTFVv5HNYrOIvM8dSmc0S6BA=; b=s2CDj9N9zt5If+JuugfUO/59mOKos/MObXZU+5FrnhF/XX1+XqPTZKYrPx3nbeX/ib 0Ee12txvnycIF0cLc6zMHj0p86EP1w7XfUd5e4t2EejUkWQQLhHamL79a5/T6lmmkz6I yStY858ED2vlKWx9SC1QM4tI1a4lP3dAToGD0IpwHWmccZBla5KmtdzUlm5JwdAz2zYZ ERqo6xUe5bVR39Bh6WamEAFPN1+TgN9uli3+I43Mu8RMfveHFxU6OdS+o/qnTSIJJj+a XHl6eCHUFnG74k/ZS1lFW5eN+CkaRYfwGH2v4go8q3/Xy8XEvgkMI7IOAondK5gnaskq q/Cw== X-Gm-Message-State: ACgBeo1vBe+p3i8JqOEVyvfjJvUFNDCFJa4M9jrgKZ8WkIhAX5VbQkaW IugGhRnryksjJh5thxYzTQTl+Z85Bqk8NxdCIeOWuEHEbfAa MIME-Version: 1.0 X-Received: by 2002:a02:664a:0:b0:33f:5310:35e1 with SMTP id l10-20020a02664a000000b0033f531035e1mr7630284jaf.214.1659944122896; Mon, 08 Aug 2022 00:35:22 -0700 (PDT) Date: Mon, 08 Aug 2022 00:35:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cad57405e5b5dbb7@google.com> Subject: [syzbot] possible deadlock in p9_req_put From: syzbot To: asmadeus@codewreck.org, davem@davemloft.net, edumazet@google.com, ericvh@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux_oss@crudebyte.com, lucho@ionkov.net, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, v9fs-developer@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: ca688bff68bc Add linux-next specific files for 20220808 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=104c8666080000 kernel config: https://syzkaller.appspot.com/x/.config?x=4c20e006003cdecb dashboard link: https://syzkaller.appspot.com/bug?extid=50f7e8d06c3768dd97f3 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+50f7e8d06c3768dd97f3@syzkaller.appspotmail.com ============================================ WARNING: possible recursive locking detected 5.19.0-next-20220808-syzkaller #0 Not tainted -------------------------------------------- kworker/0:5/3683 is trying to acquire lock: ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: p9_tag_remove net/9p/client.c:367 [inline] ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: p9_req_put net/9p/client.c:375 [inline] ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: p9_req_put+0xc6/0x250 net/9p/client.c:372 but task is already holding lock: ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: p9_conn_cancel+0xaa/0x970 net/9p/trans_fd.c:192 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&clnt->lock); lock(&clnt->lock); *** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by kworker/0:5/3683: #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90005167da8 ((work_completion)(&m->rq)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] #2: ffff888026be2c18 (&clnt->lock){+.+.}-{2:2}, at: p9_conn_cancel+0xaa/0x970 net/9p/trans_fd.c:192 stack backtrace: CPU: 0 PID: 3683 Comm: kworker/0:5 Not tainted 5.19.0-next-20220808-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events p9_read_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2988 [inline] check_deadlock kernel/locking/lockdep.c:3031 [inline] validate_chain kernel/locking/lockdep.c:3816 [inline] __lock_acquire.cold+0x116/0x3a7 kernel/locking/lockdep.c:5053 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 p9_tag_remove net/9p/client.c:367 [inline] p9_req_put net/9p/client.c:375 [inline] p9_req_put+0xc6/0x250 net/9p/client.c:372 p9_conn_cancel+0x640/0x970 net/9p/trans_fd.c:213 p9_read_work+0x514/0x10c0 net/9p/trans_fd.c:403 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 --- 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.