INFO: task khugepaged:981 blocked for more than 143 seconds. Not tainted 5.4.0-rc4-next-20191023 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. khugepaged D27840 981 2 0x80004000 Call Trace: context_switch kernel/sched/core.c:3384 [inline] __schedule+0x94a/0x1e70 kernel/sched/core.c:4069 schedule+0xd9/0x260 kernel/sched/core.c:4136 io_schedule+0x1c/0x70 kernel/sched/core.c:5780 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:0/7: #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: set_work_data kernel/workqueue.c:620 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline] #0: ffff88821b6bd928 ((wq_completion)netns){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2240 #1: ffff8880a988fdc0 (net_cleanup_work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2244 #2: ffffffff899aad88 (pernet_ops_rwsem){++++}, at: cleanup_net+0xae/0xae0 net/core/net_namespace.c:557 #3: ffffffff899b8060 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 4 locks held by kworker/u4:3/248: #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: set_work_data kernel/workqueue.c:620 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline] #0: ffff8880a822fd28 ((wq_completion)writeback){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2240 #1: ffff8880a939fdc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2244 #2: ffff88821638e0d8 (&type->s_umount_key#32){++++}, at: trylock_super+0x22/0x110 fs/super.c:418 #3: ffff888216390990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by khungtaskd/783: #0: ffffffff88fabac0 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by khugepaged/981: #0: ffff888216390990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by rsyslogd/8476: #0: ffff8880a9a69660 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/8566: #0: ffff88809795a090 (&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 2 locks held by getty/8567: #0: ffff8880994c5090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f112e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8568: #0: ffff8880a8b04090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8569: #0: ffff888096587090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f0d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8570: #0: ffff8880a3fad090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8571: #0: ffff8880a7c1e090 (&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/8572: #0: ffff88809efd7090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005ef92e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 3 locks held by kworker/1:9/9187: #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:620 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2240 #1: ffff88809401fdc0 ((work_completion)(&fqdir->destroy_work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2244 #2: ffffffff88faf798 (rcu_state.barrier_mutex){+.+.}, at: rcu_barrier+0x47/0x350 kernel/rcu/tree.c:2894 2 locks held by syz-executor.1/9725: 2 locks held by syz-executor.0/9727: #0: ffffffff899aad88 (pernet_ops_rwsem){++++}, at: copy_net_ns+0x273/0x430 net/core/net_namespace.c:472 #1: ffffffff899b8060 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 2 locks held by syz-executor.2/9729: 1 lock held by syz-executor.3/9733: 1 lock held by syz-executor.4/9741: #0: ffffffff899b8060 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 783 Comm: khungtaskd Not tainted 5.4.0-rc4-next-20191023 #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: 9729 Comm: syz-executor.2 Not tainted 5.4.0-rc4-next-20191023 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_memory_region+0x1f/0x1a0 mm/kasan/generic.c:191 Code: 00 66 2e 0f 1f 84 00 00 00 00 00 48 85 f6 0f 84 34 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 0f b6 d2 48 39 c7 48 89 e5 41 55 <41> 54 53 0f 86 07 01 00 00 4c 8d 5c 37 ff 49 89 f8 48 b8 00 00 00 RSP: 0018:ffff88805e92f3e8 EFLAGS: 00000016 RAX: ffff7fffffffffff RBX: 0000000000000074 RCX: ffffffff815921f2 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a79b9a8 RBP: ffff88805e92f3f0 R08: 1ffffffff14f3737 R09: fffffbfff14f3738 R10: fffffbfff14f3737 R11: ffffffff8a79b9bf R12: 0000000000000007 R13: ffff888095c24b20 R14: dffffc0000000000 R15: ffff888095c24b20 FS: 00007f25d6234700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000a44fd0 CR3: 0000000098756000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __kasan_check_read+0x11/0x20 mm/kasan/common.c:92 test_bit include/asm-generic/bitops-instrumented.h:237 [inline] hlock_class kernel/locking/lockdep.c:163 [inline] mark_lock+0xc2/0x1220 kernel/locking/lockdep.c:3643 mark_held_locks+0xa4/0xf0 kernel/locking/lockdep.c:3360 __trace_hardirqs_on_caller kernel/locking/lockdep.c:3389 [inline] lockdep_hardirqs_on+0x421/0x5e0 kernel/locking/lockdep.c:3434 trace_hardirqs_on_caller+0x6a/0x240 kernel/trace/trace_preemptirq.c:59 trace_hardirqs_on_thunk+0x1a/0x1c arch/x86/entry/thunk_64.S:41 retint_kernel+0x2b/0x2b RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:756 [inline] RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1751 [inline] RIP: 0010:vprintk_emit+0x5da/0x700 kernel/printk/printk.c:1995 Code: 00 48 b8 00 00 00 00 00 fc ff df 41 80 3c 06 00 0f 85 f8 00 00 00 48 83 3d d2 37 96 07 00 74 6a e8 5b 85 16 00 48 89 df 57 9d <0f> 1f 44 00 00 e9 06 ff ff ff e8 47 85 16 00 49 c1 ee 03 e8 8e 05 RSP: 0018:ffff88805e92f610 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: 0000000000000246 RCX: ffffc9000a377000 RDX: 0000000000040000 RSI: ffffffff815cea15 RDI: 0000000000000246 RBP: ffff88805e92f658 R08: 1ffffffff14f3737 R09: fffffbfff14f3738 R10: fffffbfff14f3737 R11: ffffffff8a79b9bf R12: 0000000000000059 R13: 0000000000000200 R14: 1ffffffff11e643c R15: ffff8880a8bde0c0 vprintk_default+0x28/0x30 kernel/printk/printk.c:2023 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:386 printk+0xba/0xed kernel/printk/printk.c:2056 kobject_add_internal lib/kobject.c:250 [inline] kobject_add_internal.cold+0xd2/0x662 lib/kobject.c:225 kobject_add_varg lib/kobject.c:390 [inline] kobject_init_and_add+0x101/0x160 lib/kobject.c:473 rx_queue_add_kobject net/core/net-sysfs.c:923 [inline] net_rx_queue_update_kobjects+0x1d3/0x470 net/core/net-sysfs.c:956 register_queue_kobjects net/core/net-sysfs.c:1527 [inline] netdev_register_kobject+0x278/0x3b0 net/core/net-sysfs.c:1750 register_netdevice+0xabd/0x1150 net/core/dev.c:9011 __ip_tunnel_create+0x36b/0x530 net/ipv4/ip_tunnel.c:269 ip_tunnel_init_net+0x370/0x9e0 net/ipv4/ip_tunnel.c:1060 ipgre_tap_init_net+0x2a/0x30 net/ipv4/ip_gre.c:1573 ops_init+0xb3/0x420 net/core/net_namespace.c:137 setup_net+0x2d5/0x8b0 net/core/net_namespace.c:335 copy_net_ns+0x296/0x430 net/core/net_namespace.c:476 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:103 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:202 ksys_unshare+0x444/0x980 kernel/fork.c:2889 __do_sys_unshare kernel/fork.c:2957 [inline] __se_sys_unshare kernel/fork.c:2955 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2955 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459ef9 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f25d6233c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000459ef9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000060000000 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f25d62346d4 R13: 00000000004c9b15 R14: 00000000004e14c0 R15: 00000000ffffffff