INFO: task khugepaged:1087 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 1087 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: 2 locks held by kworker/u4:1/21: #0: ffff8880ae834d58 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1215 [inline] #0: ffff8880ae834d58 (&rq->lock){-.-.}, at: __schedule+0x266/0x1e70 kernel/sched/core.c:4018 #1: ffffffff88faba40 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:435 [inline] #1: ffffffff88faba40 (rcu_read_lock){....}, at: update_curr+0x2ea/0x8d0 kernel/sched/fair.c:860 2 locks held by kworker/1:1/50: #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: ffff8880a9b2fdc0 (key_gc_work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 4 locks held by kworker/u4:4/321: #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880a827d528 ((wq_completion)writeback){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2234 #1: ffff8880a96efdc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 #2: ffff88809b7f40d8 (&type->s_umount_key#32){++++}, at: trylock_super+0x22/0x110 fs/super.c:418 #3: ffff88809b7f6990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by khungtaskd/1080: #0: ffffffff88faba40 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by khugepaged/1087: #0: ffff88809b7f6990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 6 locks held by udevd/4001: 1 lock held by rsyslogd/8693: #0: ffff88809e7d2e20 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/8783: #0: ffff8880a8763090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f412e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8784: #0: ffff8880a0b43090 (&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+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8785: #0: ffff8880a738c090 (&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/8786: #0: ffff88809531a090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f3d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8787: #0: ffff8880a77fa090 (&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/8788: #0: ffff8880a15a1090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f492e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8789: #0: ffff88809750e090 (&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 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1080 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: 8831 Comm: syz-executor.2 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:unwind_next_frame.part.0+0x14/0xa20 arch/x86/kernel/unwind_frame.c:260 Code: e0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 72 cf 11 00 66 90 55 4c 8d 4f 58 48 b8 00 00 00 00 00 fc ff df 48 89 e5 41 57 <41> 56 41 55 41 54 4c 8d a5 78 ff ff ff 49 c1 ec 03 53 48 89 fb 49 RSP: 0018:ffff88806ec07598 EFLAGS: 00000202 RAX: dffffc0000000000 RBX: ffffffff81626a20 RCX: ffffffff81626b42 RDX: 0000000000000001 RSI: ffffffff81626b4e RDI: ffff88806ec075c8 RBP: ffff88806ec075a0 R08: ffff88806f3fa640 R09: ffff88806ec07620 R10: ffff88806ec075f0 R11: ffff88806ec07600 R12: ffff88806ec07680 R13: 0000000000000000 R14: ffff88806f3fa640 R15: ffff8880aa400540 FS: 00000000011d4940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000011dd978 CR3: 000000006f3ed000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0x3b/0x50 arch/x86/kernel/unwind_frame.c:265 arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0xac/0xe0 kernel/stacktrace.c:123 save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:510 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:483 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:524 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x163/0x770 mm/slab.c:3665 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:670 [inline] tomoyo_encode2.part.0+0xf5/0x400 security/tomoyo/realpath.c:44 tomoyo_encode2 security/tomoyo/realpath.c:30 [inline] tomoyo_encode+0x2b/0x50 security/tomoyo/realpath.c:79 tomoyo_realpath_from_path+0x1d3/0x7b0 security/tomoyo/realpath.c:316 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x230/0x430 security/tomoyo/file.c:822 tomoyo_path_unlink+0x9b/0xe0 security/tomoyo/tomoyo.c:159 security_path_unlink+0xfa/0x160 security/security.c:1044 do_unlinkat+0x3b7/0x6d0 fs/namei.c:4056 __do_sys_unlink fs/namei.c:4106 [inline] __se_sys_unlink fs/namei.c:4104 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4104 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459f67 Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 2d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffed69b0bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459f67 RDX: 00007ffed69b0bd0 RSI: 00007ffed69b0bd0 RDI: 00007ffed69b0c60 RBP: 00000000000000b9 R08: 0000000000000000 R09: 000000000000000b R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffed69b1cf0 R13: 00000000011d5940 R14: 0000000000000000 R15: 00007ffed69b1cf0