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 D27840 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:0/7: #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880a8545928 ((wq_completion)writeback){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2234 #1: ffff8880a988fdc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 #2: ffff8882159560d8 (&type->s_umount_key#32){++++}, at: trylock_super+0x22/0x110 fs/super.c:418 #3: ffff888215958990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by khungtaskd/1026: #0: ffffffff88faba40 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by khugepaged/1084: #0: ffff888215958990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by rsyslogd/8843: #0: ffff8880944a75e0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/8933: #0: ffff8880a1112090 (&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/8934: #0: ffff888096636090 (&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/8935: #0: ffff88809a5b3090 (&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/8936: #0: ffff8880a7cef090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f252e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8937: #0: ffff8880972ba090 (&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/8938: #0: ffff888098a8a090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8939: #0: ffff8880a9959090 (&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/8969: #0: ffff8880a6640138 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 2 locks held by syz-executor.1/8971: #0: ffff888090cd22f8 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 #1: ffffffff89520dc0 (loop_ctl_mutex){+.+.}, at: lo_open+0x1d/0xd0 drivers/block/loop.c:1784 2 locks held by syz-executor.3/8978: #0: ffff8880a6640738 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 #1: ffffffff89520dc0 (loop_ctl_mutex){+.+.}, at: lo_open+0x1d/0xd0 drivers/block/loop.c:1784 2 locks held by syz-executor.4/8979: #0: ffff888090ca8878 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 #1: ffffffff89520dc0 (loop_ctl_mutex){+.+.}, at: lo_open+0x1d/0xd0 drivers/block/loop.c:1784 2 locks held by kworker/1:3/8982: #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: ffff8880654cfdc0 (xfrm_state_gc_work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 2 locks held by syz-executor.2/11511: #0: ffff8880a6640138 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xbb/0x810 fs/block_dev.c:1854 #1: ffffffff89520dc0 (loop_ctl_mutex){+.+.}, at: lo_release+0x1f/0x200 drivers/block/loop.c:1803 2 locks held by syz-executor.5/11520: #0: ffff88808d49ec40 (&sb->s_type->i_mutex_key#12){+.+.}, at: inode_lock include/linux/fs.h:791 [inline] #0: ffff88808d49ec40 (&sb->s_type->i_mutex_key#12){+.+.}, at: __sock_release+0x89/0x280 net/socket.c:590 #1: ffff888095ae8110 (sk_lock-AF_PACKET){+.+.}, at: lock_sock include/net/sock.h:1526 [inline] #1: ffff888095ae8110 (sk_lock-AF_PACKET){+.+.}, at: packet_release+0x524/0xcb0 net/packet/af_packet.c:3026 1 lock held by blkid/11533: #0: ffff8880a6640138 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 1 lock held by blkid/11534: #0: ffff8880a6640738 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1600 fs/block_dev.c:1553 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1026 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: 11520 Comm: syz-executor.5 Not tainted 5.4.0-rc5-next-20191031 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:match_held_lock+0x71/0x510 kernel/locking/lockdep.c:4017 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 8e 03 00 00 66 f7 43 22 f0 ff <0f> 84 ae 01 00 00 48 8d 7e 08 48 b8 00 00 00 00 00 fc ff df 48 89 RSP: 0018:ffff8880ae809af8 EFLAGS: 00000046 RAX: 0000000000000003 RBX: ffff88805e430da0 RCX: ffff88805e430da0 RDX: 0000000000000000 RSI: ffff8880ae834d58 RDI: ffff88805e430dc2 RBP: ffff8880ae809b28 R08: ffff88806d114390 R09: ffff88806d114398 R10: ffffed1012661118 R11: ffff8880933088c7 R12: ffffed100bc861b3 R13: ffff88805e430da0 R14: ffff8880ae834d58 R15: 0000000000000000 FS: 000000000123f940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208c0000 CR3: 0000000056835000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:4308 [inline] lock_is_held_type+0x1b8/0x320 kernel/locking/lockdep.c:4524 lock_is_held include/linux/lockdep.h:361 [inline] rq_clock_task kernel/sched/sched.h:1104 [inline] update_curr+0x296/0x8d0 kernel/sched/fair.c:836 enqueue_entity+0x31b/0x17b0 kernel/sched/fair.c:3990 enqueue_task_fair+0x1a7/0x1260 kernel/sched/fair.c:5231 enqueue_task kernel/sched/core.c:1301 [inline] activate_task+0x110/0x490 kernel/sched/core.c:1323 ttwu_do_activate+0xd0/0x130 kernel/sched/core.c:2265 ttwu_queue kernel/sched/core.c:2410 [inline] try_to_wake_up+0xb23/0x1ab0 kernel/sched/core.c:2644 wake_up_process+0x10/0x20 kernel/sched/core.c:2668 hrtimer_wakeup+0x48/0x60 kernel/time/hrtimer.c:1766 __run_hrtimer kernel/time/hrtimer.c:1514 [inline] __hrtimer_run_queues+0x364/0xe40 kernel/time/hrtimer.c:1576 hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1638 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline] smp_apic_timer_interrupt+0x160/0x610 arch/x86/kernel/apic/apic.c:1135 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:756 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x90/0xe0 kernel/locking/spinlock.c:191 Code: 48 c7 c0 e0 21 f3 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 39 48 83 3d c7 3e 9b 01 00 74 24 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 e1 6f f7 f9 65 8b 05 12 1b aa 78 RSP: 0018:ffff8880556e7990 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11e643c RBX: 0000000000000286 RCX: 0000000000000006 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000286 RBP: ffff8880556e79a0 R08: 1ffffffff14f3d48 R09: fffffbfff14f3d49 R10: fffffbfff14f3d48 R11: ffffffff8a79ea47 R12: ffffffff8ad5b508 R13: ffffffff8ad5b508 R14: ffffc90018a7c000 R15: 0000000000000003 __debug_check_no_obj_freed lib/debugobjects.c:973 [inline] debug_check_no_obj_freed+0x20a/0x43f lib/debugobjects.c:994 __vunmap+0x1ac/0x8f0 mm/vmalloc.c:2268 __vfree+0x41/0xd0 mm/vmalloc.c:2327 vfree+0x5f/0x90 mm/vmalloc.c:2357 free_pg_vec+0x4e/0x140 net/packet/af_packet.c:4206 packet_set_ring+0x73c/0x1b60 net/packet/af_packet.c:4417 packet_release+0x57d/0xcb0 net/packet/af_packet.c:3029 __sock_release+0xce/0x280 net/socket.c:591 sock_close+0x1e/0x30 net/socket.c:1269 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x316/0x380 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x65f/0x760 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x413db1 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffd5804b840 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000413db1 RDX: 0000001b2d320000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000001 R08: 000000003d5cc30e R09: 000000003d5cc312 R10: 00007ffd5804b920 R11: 0000000000000293 R12: 000000000075c9a0 R13: 000000000075c9a0 R14: 0000000000760408 R15: 000000000075c124