Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp903214pxb; Tue, 1 Feb 2022 12:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHMnidl/00pwYldBR8Ze/ptvpRcpGitY1LiuwN9F+nTn/ctE+XLtj9GAWfl+yQJd5zLAGA X-Received: by 2002:a17:903:1d1:: with SMTP id e17mr26902123plh.162.1643748585039; Tue, 01 Feb 2022 12:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748585; cv=none; d=google.com; s=arc-20160816; b=kTnkB8QAWs+FKFoztTulXLGqJU9uM2fVt7ocr+mDsnvt/ha0gVd++AKizAATkQxxx9 mbAfO4tn5wN+YpFd4A+EOMsispThXVPVbHxPhbXtjCSsATVBqKwkfvMlq3QgWHPm0YUE yfwMq51sxTdg7zNeWzcsXzSYkjGnA9eoDrPqs7xpQ3h1J23uScluoIp3b4pAC4l4h6Dh TVF7Cp/tlwfvKED3ULZSJndmZWZHi4ITp3tni1hsyYO6j0S8yeVY8uSSdnFgBSkZY6do 7Lt4TJk+KtdMdFn2Tn1U9hsZ0EVhzyzyf+ulzLn+flij8HkZMuM+VGr7thGCU30yHmd8 e6AQ== 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=T9rjZ+M8Y1i2lpTl6W7/0kER7Ge+gG5iNvXt/wJcle8=; b=w9LSxB3AKFk/2o7y3vc57FiE606zoy1mgXfZU3bvwtUO+LDTMIUtv/HblzJ/KxFADv JqY/Rdl60+ZLgkQgw2CNYAwkAitIjwM9kAjGKEGAdM608/zVtOg4PFW7b9aq8D+8nExZ YDBTctzWPThWcxPNkDewUm6difOY/jlKILZM7x1pjh+lGpctB+FpJ4opuHUbrf31HEnm Y1vhnK7yebMyvNjIxYHI/uBeznmQz7SkrUGrgZ6RcgpoMBbN04yhWkW8sPqEbw/L2hv6 ag4m/5+HMzk6v2cPMuQpjeQw4Ro/cKL+SPvuJO7hbQ13H3I2u47FQDR3ZHuUAIASbjD8 Thzg== 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=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si18264331pfj.338.2022.02.01.12.49.33; Tue, 01 Feb 2022 12:49:45 -0800 (PST) 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=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348150AbiAaUsb (ORCPT + 99 others); Mon, 31 Jan 2022 15:48:31 -0500 Received: from mail-il1-f197.google.com ([209.85.166.197]:57089 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236753AbiAaUs3 (ORCPT ); Mon, 31 Jan 2022 15:48:29 -0500 Received: by mail-il1-f197.google.com with SMTP id t15-20020a92c90f000000b002ba55086cc6so10270792ilp.23 for ; Mon, 31 Jan 2022 12:48:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=T9rjZ+M8Y1i2lpTl6W7/0kER7Ge+gG5iNvXt/wJcle8=; b=i3N0wHt1+VUTpBRisjrmXgChbGjMkN8D1F3Zb7vL3/mglJyxi84XYgN15oSHBqX+mX OW2b38kXOowLw9J5aKOS+5rOAKMDDrsbqnau3gVIgR+F4Qi/FCKm9DkOEN7tqk5kF7j5 YE9RS83DyeWOUSvDR7E9BZN4TKetg/htYkgc6/5TOfd3hMV+2TQpBSJhPn388mRwBQ0B TLgO4MXvJchm8le3tRWEA73/uxLlD4WqU1CNXWQ5XWJ/BhOgiIQILu4GzNSGtSMByYTN cYU3fFMYddPxBWmBoVjN8ZSh6h81Zd9tstfc0skCY0TU4IXHzlB3Lh0uF1Qm8Ce554uG DGGA== X-Gm-Message-State: AOAM531PteGUrbitkWjDDk/n3vJ0RmJpZ9tJzDD+2ogtpkPiCvc4u40i p3o9VGgpLrxactC/xtj53OPf8SdOws1a955rj/0voz7wsPC6 MIME-Version: 1.0 X-Received: by 2002:a05:6638:24d5:: with SMTP id y21mr5149211jat.115.1643662109299; Mon, 31 Jan 2022 12:48:29 -0800 (PST) Date: Mon, 31 Jan 2022 12:48:29 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000027db6705d6e6e88a@google.com> Subject: [syzbot] possible deadlock in ___neigh_create From: syzbot To: daniel@iogearbox.net, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, roopa@nvidia.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 6449520391df net: stmmac: properly handle with runtime pm .. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=111187e0700000 kernel config: https://syzkaller.appspot.com/x/.config?x=a6620d0aab7dd315 dashboard link: https://syzkaller.appspot.com/bug?extid=5239d0e1778a500d477a 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+5239d0e1778a500d477a@syzkaller.appspotmail.com ============================================ WARNING: possible recursive locking detected 5.17.0-rc1-syzkaller-00210-g6449520391df #0 Not tainted -------------------------------------------- kworker/0:16/14617 is trying to acquire lock: ffffffff8d4dd370 (&tbl->lock){++-.}-{2:2}, at: ___neigh_create+0x9e1/0x2990 net/core/neighbour.c:652 but task is already holding lock: ffffffff8d4dd370 (&tbl->lock){++-.}-{2:2}, at: neigh_managed_work+0x35/0x250 net/core/neighbour.c:1572 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tbl->lock); lock(&tbl->lock); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by kworker/0:16/14617: #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] #0: ffff888010c65d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc9000293fdb8 ((work_completion)(&(&tbl->managed_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffffffff8d4dd370 (&tbl->lock){++-.}-{2:2}, at: neigh_managed_work+0x35/0x250 net/core/neighbour.c:1572 #3: ffffffff8bb83ae0 (rcu_read_lock){....}-{1:2}, at: ip6_nd_hdr net/ipv6/ndisc.c:466 [inline] #3: ffffffff8bb83ae0 (rcu_read_lock){....}-{1:2}, at: ndisc_send_skb+0x84b/0x17f0 net/ipv6/ndisc.c:502 #4: ffffffff8bb83a80 (rcu_read_lock_bh){....}-{1:2}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:95 [inline] #4: ffffffff8bb83a80 (rcu_read_lock_bh){....}-{1:2}, at: ip6_finish_output2+0x2ad/0x14f0 net/ipv6/ip6_output.c:112 stack backtrace: CPU: 0 PID: 14617 Comm: kworker/0:16 Not tainted 5.17.0-rc1-syzkaller-00210-g6449520391df #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient neigh_managed_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:2956 [inline] check_deadlock kernel/locking/lockdep.c:2999 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire.cold+0x149/0x3ab kernel/locking/lockdep.c:5027 lock_acquire kernel/locking/lockdep.c:5639 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5604 __raw_write_lock_bh include/linux/rwlock_api_smp.h:202 [inline] _raw_write_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:334 ___neigh_create+0x9e1/0x2990 net/core/neighbour.c:652 ip6_finish_output2+0x1070/0x14f0 net/ipv6/ip6_output.c:123 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline] __ip6_finish_output+0x61e/0xe90 net/ipv6/ip6_output.c:170 ip6_finish_output+0x32/0x200 net/ipv6/ip6_output.c:201 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:224 dst_output include/net/dst.h:451 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ndisc_send_skb+0xa99/0x17f0 net/ipv6/ndisc.c:508 ndisc_send_ns+0x3a9/0x840 net/ipv6/ndisc.c:650 ndisc_solicit+0x2cd/0x4f0 net/ipv6/ndisc.c:742 neigh_probe+0xc2/0x110 net/core/neighbour.c:1040 __neigh_event_send+0x37d/0x1570 net/core/neighbour.c:1201 neigh_event_send include/net/neighbour.h:470 [inline] neigh_managed_work+0x162/0x250 net/core/neighbour.c:1574 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 --- 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.