INFO: task khugepaged:1085 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 1085 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: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880a7e17928 ((wq_completion)writeback){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880a7e17928 ((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: ffff88809ac3a0d8 (&type->s_umount_key#32){++++}, at: trylock_super+0x22/0x110 fs/super.c:418 #3: ffff88809ac3c990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by khungtaskd/1078: #0: ffffffff88faba40 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by khugepaged/1085: #0: ffff88809ac3c990 (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0xfa/0x2a0 mm/page-writeback.c:2344 1 lock held by rsyslogd/8891: #0: ffff8880a0cd2de0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/8981: #0: ffff8880a444d090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f152e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/8982: #0: ffff8880a1175090 (&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/8983: #0: ffff8880929d7090 (&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/8984: #0: ffff888090d0b090 (&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/8985: #0: ffff8880a8539090 (&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/8986: #0: ffff88809bf9d090 (&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/8987: #0: ffff8880a789c090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f092e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by kworker/0:3/9032: #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: set_work_data kernel/workqueue.c:614 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:641 [inline] #0: ffff8880aa436928 ((wq_completion)rcu_gp){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2234 #1: ffff88806e3e7dc0 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2238 2 locks held by syz-executor.2/9608: #0: ffff888060e11c90 (&sig->cred_guard_mutex){+.+.}, at: __do_sys_perf_event_open+0xe7e/0x2b90 kernel/events/core.c:11060 #1: ffffffff89016c40 (perf_sched_mutex){+.+.}, at: account_event kernel/events/core.c:10445 [inline] #1: ffffffff89016c40 (perf_sched_mutex){+.+.}, at: perf_event_alloc.part.0+0x2c07/0x3560 kernel/events/core.c:10662 1 lock held by syz-executor.4/9607: #0: ffff8880a9408420 (&runtime->oss.params_lock){+.+.}, at: snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1489 [inline] #0: ffff8880a9408420 (&runtime->oss.params_lock){+.+.}, at: snd_pcm_oss_read+0x33c/0x6f0 sound/core/oss/pcm_oss.c:2741 2 locks held by syz-executor.5/9617: #0: ffff8880605ee110 (sk_lock-AF_PACKET){+.+.}, at: lock_sock include/net/sock.h:1526 [inline] #0: ffff8880605ee110 (sk_lock-AF_PACKET){+.+.}, at: packet_setsockopt+0x447/0x2df0 net/packet/af_packet.c:3672 #1: ffffffff88faf7f8 (rcu_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:285 [inline] #1: ffffffff88faf7f8 (rcu_state.exp_mutex){+.+.}, at: synchronize_rcu_expedited+0x4d6/0x5f0 kernel/rcu/tree_exp.h:817 1 lock held by syz-executor.1/9619: #0: ffff8880975d7780 (&sb->s_type->i_mutex_key#12){+.+.}, at: inode_lock include/linux/fs.h:791 [inline] #0: ffff8880975d7780 (&sb->s_type->i_mutex_key#12){+.+.}, at: __sock_release+0x89/0x280 net/socket.c:590 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1078 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9636 Comm: modprobe 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:__read_once_size include/linux/compiler.h:199 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:70 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x20/0x50 kernel/kcov.c:102 Code: ff 90 90 90 90 90 90 90 90 90 55 48 89 e5 65 48 8b 04 25 80 fe 01 00 65 8b 15 a4 98 8e 7e 81 e2 00 01 1f 00 48 8b 75 08 75 2b <8b> 90 00 13 00 00 83 fa 02 75 20 48 8b 88 08 13 00 00 8b 80 04 13 RSP: 0000:ffff88805f14fe90 EFLAGS: 00000246 RAX: ffff8880606e0540 RBX: 0000000000000000 RCX: ffffffff81336d63 RDX: 0000000000000000 RSI: ffffffff81336d75 RDI: 0000000000000007 RBP: ffff88805f14fe90 R08: ffff8880606e0540 R09: fffffbfff14f3d45 R10: ffff8880606e0de0 R11: ffff8880606e0540 R12: 00007f6f953ac7d0 R13: 0000000000000014 R14: ffff88805f14ff58 R15: ffff8880a8d6f460 FS: 00007f6f95ae3700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6f953ac7d0 CR3: 0000000095993000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: access_error arch/x86/mm/fault.c:1202 [inline] do_user_addr_fault arch/x86/mm/fault.c:1423 [inline] __do_page_fault+0x4e5/0xdd0 arch/x86/mm/fault.c:1506 do_page_fault+0x38/0x590 arch/x86/mm/fault.c:1530 page_fault+0x39/0x40 arch/x86/entry/entry_64.S:1203 RIP: 0033:0x7f6f953ac7d0 Code: Bad RIP value. RSP: 002b:00007ffe95e7ec18 EFLAGS: 00010202 RAX: 00007f6f953ac7d0 RBX: 00007f6f95aea9a8 RCX: 0000000000000001 RDX: 00000000000000c0 RSI: 0000000000000025 RDI: 0000000000000002 RBP: 00007ffe95e7ed00 R08: 0000000000000001 R09: 000000000000002f R10: 00007f6f95347af0 R11: 00007ffe95e7ea50 R12: 00007f6f95329000 R13: 00007f6f956b0038 R14: 00007f6f95347ac0 R15: 00007f6f956b0d98