syzbot


INFO: task hung in rxrpc_destroy_all_calls

Status: auto-closed as invalid on 2020/01/11 01:03
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1251d, last: 1211d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in rxrpc_destroy_all_calls (2) 1 388d 388d 0/24 auto-closed as invalid on 2022/04/12 22:15
upstream INFO: task hung in rxrpc_destroy_all_calls (3) 352 46d 58d 0/24 upstream: reported on 2022/12/09 07:19
linux-4.19 INFO: task hung in rxrpc_destroy_all_calls 1 392d 392d 0/1 auto-closed as invalid on 2022/05/08 23:28

Sample crash report:
INFO: task kworker/u4:0:7 blocked for more than 143 seconds.
      Not tainted 5.4.0-rc2+ #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/u4:0    D23672     7      2 0x80004000
Workqueue: netns cleanup_net
Call Trace:
 context_switch kernel/sched/core.c:3384 [inline]
 __schedule+0x94f/0x1e70 kernel/sched/core.c:4069
 schedule+0xd9/0x260 kernel/sched/core.c:4136
 rxrpc_destroy_all_calls+0x1fa/0x60e net/rxrpc/call_object.c:631
 rxrpc_exit_net+0x1ba/0x310 net/rxrpc/net_ns.c:121
 ops_exit_list.isra.0+0xaa/0x150 net/core/net_namespace.c:172
 cleanup_net+0x4e2/0xa60 net/core/net_namespace.c:594
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269
 worker_thread+0x98/0xe40 kernel/workqueue.c:2415
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352

Showing all locks held in the system:
3 locks held by kworker/u4:0/7:
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: set_work_data kernel/workqueue.c:620 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline]
 #0: ffff8880a993f528 ((wq_completion)netns){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2240
 #1: ffff8880a98a7dc0 (net_cleanup_work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2244
 #2: ffffffff8998ae88 (pernet_ops_rwsem){++++}, at: cleanup_net+0xae/0xa60 net/core/net_namespace.c:556
1 lock held by khungtaskd/1056:
 #0: ffffffff88faae00 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:5337
3 locks held by kworker/u5:0/1523:
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: set_work_data kernel/workqueue.c:620 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline]
 #0: ffff88807050f528 ((wq_completion)hci0){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2240
 #1: ffff8880a5c0fdc0 ((work_completion)(&hdev->power_on)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2244
 #2: ffff888073350e38 (&hdev->req_lock){+.+.}, at: hci_dev_do_open+0xa7/0x1940 net/bluetooth/hci_core.c:1391
1 lock held by rsyslogd/8590:
 #0: ffff88809ccf5e20 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801
2 locks held by getty/8680:
 #0: ffff8880a889a090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f192e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8681:
 #0: ffff8880a060d090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f352e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8682:
 #0: ffff8880900af090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f312e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8683:
 #0: ffff8880981e8090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f2d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8684:
 #0: ffff888093e27090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f392e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8685:
 #0: ffff8880a75e8090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f292e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
2 locks held by getty/8686:
 #0: ffff8880a9631090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc90005f012e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1c10 drivers/tty/n_tty.c:2156
1 lock held by kworker/u4:1/2528:
 #0: ffff8880ae834d18 (&rq->lock){-.-.}, at: newidle_balance+0xa32/0xe90 kernel/sched/fair.c:9817
2 locks held by syz-executor.5/24630:
 #0: ffff888082310090 (&tty->ldisc_sem){++++}, at: ldsem_down_write+0x33/0x40 drivers/tty/tty_ldsem.c:366
 #1: ffff888092dad090 (&tty->ldisc_sem/1){+.+.}, at: ldsem_down_write_nested+0x39/0x50 drivers/tty/tty_ldsem.c:427

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 1056 Comm: khungtaskd Not tainted 5.4.0-rc2+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 nmi_cpu_backtrace.cold+0x70/0xb2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x23b/0x28b lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0x9d0/0xef0 kernel/hung_task.c:289
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2528 Comm: kworker/u4:1 Not tainted 5.4.0-rc2+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:mark_lock+0x1/0x1220 kernel/locking/lockdep.c:3631
Code: c7 98 1e f3 88 e8 8f 97 55 00 eb 8c 48 c7 c7 30 eb c5 89 e8 61 97 55 00 eb c5 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 28 83 fa 08 48 89 7d
RSP: 0018:ffff8880a1957b70 EFLAGS: 00000002
RAX: 0000000000000004 RBX: 0000000000000000 RCX: 0000000000000002
RDX: 0000000000000006 RSI: ffff888093286ed8 RDI: ffff888093286640
RBP: ffff8880a1957bb0 R08: 1ffffffff14ee141 R09: fffffbfff14ee142
R10: fffffbfff14ee141 R11: ffffffff8a770a0f R12: 0000000000000006
R13: ffff888093286640 R14: dffffc0000000000 R15: ffff888093286ed8
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42003d000 CR3: 0000000095bd6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:3389 [inline]
 lockdep_hardirqs_on+0x421/0x5e0 kernel/locking/lockdep.c:3434
 trace_hardirqs_on+0x67/0x240 kernel/trace/trace_preemptirq.c:31
 __local_bh_enable_ip+0x15a/0x270 kernel/softirq.c:194
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
 _raw_spin_unlock_bh+0x31/0x40 kernel/locking/spinlock.c:207
 spin_unlock_bh include/linux/spinlock.h:383 [inline]
 batadv_nc_purge_paths+0x265/0x370 net/batman-adv/network-coding.c:470
 batadv_nc_worker+0x29c/0x760 net/batman-adv/network-coding.c:719
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269
 worker_thread+0x98/0xe40 kernel/workqueue.c:2415
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352

Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2019/10/10 22:54 upstream fb20da6af705 1a3bad90 .config console log report
ci-upstream-kasan-gce-smack-root 2019/10/10 11:17 upstream 8a8c600de5dc a4efa8c0 .config console log report
ci-upstream-kasan-gce-smack-root 2019/10/10 01:01 upstream 8a8c600de5dc c4b9981b .config console log report
ci-upstream-kasan-gce-smack-root 2019/10/08 17:11 upstream eda57a0e4299 b1ebbfef .config console log report
ci-upstream-kasan-gce-smack-root 2019/10/06 08:46 upstream 43b815c6a8e7 f3f7d9c8 .config console log report
ci-upstream-kasan-gce-selinux-root 2019/09/28 03:58 upstream 8f744bdee4fe d8074e0b .config console log report
ci-upstream-kasan-gce-selinux-root 2019/09/22 13:12 upstream f7c3bf8fa7e5 d96e88f3 .config console log report
ci-upstream-kasan-gce 2019/09/05 06:30 upstream 3b47fd5ca9ea 040fda58 .config console log report
ci-upstream-net-this-kasan-gce 2019/09/03 07:31 net e33b4325e60e 14544a56 .config console log report
ci-upstream-net-kasan-gce 2019/10/13 00:59 net-next 524900a212f4 426631dd .config console log report
ci-upstream-net-kasan-gce 2019/10/05 03:46 net-next 97bfe0e05ceb f3f7d9c8 .config console log report
ci-upstream-linux-next-kasan-gce-root 2019/10/04 12:55 linux-next 311ef88adfa3 b2f369e5 .config console log report
ci-upstream-linux-next-kasan-gce-root 2019/09/21 04:49 linux-next b5b3bd898ba9 d96e88f3 .config console log report
* Struck through repros no longer work on HEAD.