INFO: task khugepaged:1084 blocked for more than 143 seconds. Not tainted 5.4.0-rc5-next-20191031 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. khugepaged D26296 1084 2 0x80004000 Call Trace: context_switch kernel/sched/core.c:3385 [inline] __schedule+0x94a/0x1e70 kernel/sched/core.c:4070 schedule+0xdc/0x2b0 kernel/sched/core.c:4144 io_schedule+0x1c/0x70 kernel/sched/core.c:5788 wait_on_page_bit_common mm/filemap.c:1175 [inline] __lock_page+0x422/0xab0 mm/filemap.c:1383 lock_page include/linux/pagemap.h:480 [inline] mpage_prepare_extent_to_map+0xb3f/0xf90 fs/ext4/inode.c:2668 ext4_writepages+0x954/0x2e70 fs/ext4/inode.c:2822 ? 0xffffffff81000000 do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x2bc/0x3b0 mm/filemap.c:421 __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_flush+0x24/0x30 mm/filemap.c:456 collapse_file+0x36b1/0x41a0 mm/khugepaged.c:1652 khugepaged_scan_file mm/khugepaged.c:1890 [inline] khugepaged_scan_mm_slot mm/khugepaged.c:1988 [inline] khugepaged_do_scan mm/khugepaged.c:2072 [inline] khugepaged+0x2da9/0x4360 mm/khugepaged.c:2117 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: 4 locks held by kworker/u4:1/21: 4 locks held by kworker/u4:4/765: #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880a7d47528 ((wq_completion)writeback){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2234 #1: ffff8880a8187dc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 #2: ffff88809acee0d8 (&type->s_umount_key#32){++++}, at: trylock_super+0x22/0x110 fs/super.c:418 #3: ffff88809acf0990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by khungtaskd/1077: #0: ffffffff88faba40 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by khugepaged/1084: #0: ffff88809acf0990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 3 locks held by kworker/1:2/3664: #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2234 #1: ffff88809c007dc0 ((linkwatch_work).work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 #2: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 2 locks held by getty/8802: #0: ffff8880a0d2c090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f472e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8803: #0: ffff88808e8b5090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f4b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8804: #0: ffff88809bc53090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8805: #0: ffff8880a8c53090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f3f2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8806: #0: ffff88809c970090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f212e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8807: #0: ffff8880a4130090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f432e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8808: #0: ffff88809ad1e090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 1 lock held by syz-executor.0/9085: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.0/9089: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.1/9094: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.1/9096: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.4/9110: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.4/9111: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 1 lock held by syz-executor.3/9113: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x405/0xaf0 net/core/rtnetlink.c:5384 1 lock held by syz-executor.2/9118: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x405/0xaf0 net/core/rtnetlink.c:5384 1 lock held by syz-executor.5/9119: #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff899b90e0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x405/0xaf0 net/core/rtnetlink.c:5384 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1077 Comm: khungtaskd Not tainted 5.4.0-rc5-next-20191031 #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:269 [inline] watchdog+0xc8f/0x1350 kernel/hung_task.c:353 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: 2922 Comm: kworker/u4:5 Not tainted 5.4.0-rc5-next-20191031 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:in_lock_functions+0xb/0x20 kernel/locking/spinlock.c:397 Code: c7 40 86 12 8a e8 55 3e 55 00 eb 88 0f 1f 00 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 31 c0 48 81 ff 28 d8 57 87 72 0c <31> c0 48 81 ff cd e6 57 87 0f 92 c0 c3 90 90 90 90 90 90 90 90 55 RSP: 0018:ffff8880a0047bd0 EFLAGS: 00000016 RAX: 0000000000000000 RBX: ffffffff8757d843 RCX: 1ffffffff1561834 RDX: 0000000000000000 RSI: 1ffffffff1186c28 RDI: ffffffff8757d843 RBP: ffff8880a0047be8 R08: ffff8880a00322c0 R09: ffffed1015d06b7d R10: ffffed1015d06b7c R11: ffff8880ae835be3 R12: ffffffff88fae340 R13: ffff8880a0032650 R14: ffff8880ae835b15 R15: ffffffff88fae340 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000244f978 CR3: 000000006f0d6000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_lock+0x13/0x40 kernel/locking/spinlock.c:151 rcu_preempt_deferred_qs_irqrestore+0x1fc/0xd60 kernel/rcu/tree_plugin.h:482 rcu_read_unlock_special kernel/rcu/tree_plugin.h:644 [inline] __rcu_read_unlock+0x220/0x6b0 kernel/rcu/tree_plugin.h:383 rcu_read_unlock include/linux/rcupdate.h:670 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:411 [inline] batadv_nc_worker+0x208/0x760 net/batman-adv/network-coding.c:718 process_one_work+0x9af/0x1740 kernel/workqueue.c:2263 worker_thread+0x98/0xe40 kernel/workqueue.c:2409 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352