INFO: task syz-executor.3:15819 blocked for more than 140 seconds. Not tainted 4.14.108+ #36 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D25256 15819 1861 0x80000002 Call Trace: schedule+0x92/0x1c0 kernel/sched/core.c:3498 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:572 [inline] rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:601 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105 __down_write arch/x86/include/asm/rwsem.h:126 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:56 i_mmap_lock_write include/linux/fs.h:470 [inline] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 free_pgtables+0xb3/0x1c0 mm/memory.c:644 exit_mmap+0x222/0x440 mm/mmap.c:3068 __mmput kernel/fork.c:929 [inline] mmput kernel/fork.c:950 [inline] mmput+0xc8/0x350 kernel/fork.c:945 exit_mm kernel/exit.c:544 [inline] do_exit+0x84e/0x2960 kernel/exit.c:860 INFO: task syz-executor.4:15808 blocked for more than 140 seconds. Not tainted 4.14.108+ #36 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D25848 15808 1855 0x80000002 Call Trace: schedule+0x92/0x1c0 kernel/sched/core.c:3498 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:572 [inline] rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:601 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105 __down_write arch/x86/include/asm/rwsem.h:126 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:56 i_mmap_lock_write include/linux/fs.h:470 [inline] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 free_pgtables+0xb3/0x1c0 mm/memory.c:644 exit_mmap+0x222/0x440 mm/mmap.c:3068 __mmput kernel/fork.c:929 [inline] mmput kernel/fork.c:950 [inline] mmput+0xc8/0x350 kernel/fork.c:945 exit_mm kernel/exit.c:544 [inline] do_exit+0x84e/0x2960 kernel/exit.c:860 INFO: task syz-executor.5:15837 blocked for more than 140 seconds. Not tainted 4.14.108+ #36 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D26648 15837 1853 0x80000002 Call Trace: schedule+0x92/0x1c0 kernel/sched/core.c:3498 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:572 [inline] rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:601 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105 __down_write arch/x86/include/asm/rwsem.h:126 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:56 i_mmap_lock_write include/linux/fs.h:470 [inline] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 free_pgtables+0xb3/0x1c0 mm/memory.c:644 exit_mmap+0x222/0x440 mm/mmap.c:3068 __mmput kernel/fork.c:929 [inline] mmput kernel/fork.c:950 [inline] mmput+0xc8/0x350 kernel/fork.c:945 exit_mm kernel/exit.c:544 [inline] do_exit+0x84e/0x2960 kernel/exit.c:860 INFO: task syz-executor.2:15835 blocked for more than 140 seconds. Not tainted 4.14.108+ #36 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D29136 15835 29618 0x80000000 Call Trace: schedule+0x92/0x1c0 kernel/sched/core.c:3498 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:572 [inline] rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:601 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105 __down_write arch/x86/include/asm/rwsem.h:126 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:56 i_mmap_lock_write include/linux/fs.h:470 [inline] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 free_pgtables+0xb3/0x1c0 mm/memory.c:644 exit_mmap+0x222/0x440 mm/mmap.c:3068 __mmput kernel/fork.c:929 [inline] mmput kernel/fork.c:950 [inline] mmput+0xc8/0x350 kernel/fork.c:945 exit_mm kernel/exit.c:544 [inline] do_exit+0x84e/0x2960 kernel/exit.c:860 Showing all locks held in the system: 1 lock held by khungtaskd/23: #0: (tasklist_lock){.+.+}, at: [] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4541 2 locks held by getty/1756: #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:275 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1f7/0x1700 drivers/tty/n_tty.c:2156 1 lock held by syz-executor.0/1837: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.1/1838: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.4/1839: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.5/1840: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.3/1842: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.2/29617: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.3/15819: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.4/15808: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.5/15837: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.2/15835: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 1 lock held by syz-executor.0/15805: #0: (&mapping->i_mmap_rwsem){++++}, at: [] i_mmap_lock_write include/linux/fs.h:470 [inline] #0: (&mapping->i_mmap_rwsem){++++}, at: [] unlink_file_vma+0x6e/0xa0 mm/mmap.c:157 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 23 Comm: khungtaskd Not tainted 4.14.108+ #36 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x10e lib/dump_stack.c:53 nmi_cpu_backtrace.cold+0x47/0x86 lib/nmi_backtrace.c:101 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15828 Comm: syz-executor.1 Not tainted 4.14.108+ #36 task: ffff8881cefbaf00 task.stack: ffff8881a1ae0000 RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:100 RSP: 0018:ffff8881dba07ef0 EFLAGS: 00000046 RAX: ffffffff9f69ae00 RBX: ffffffffa18c2880 RCX: 0000000000000020 RDX: 1ffffffff431852d RSI: 0000000000000156 RDI: 0000000000000380 RBP: ffff8881dba1df40 R08: ffff88821fffd01c R09: ffff88821fffd008 R10: ffff88821fffd010 R11: 0000014e700376d9 R12: 0000000000000156 R13: 0000000000000003 R14: 0000014d9165a938 R15: ffff8881dba24b28 FS: 00007f2fac5dc700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001049308 CR3: 00000001abdee003 CR4: 00000000001606b0 DR0: ffffffffffffffff DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: apic_write arch/x86/include/asm/apic.h:395 [inline] lapic_next_event+0x59/0x90 arch/x86/kernel/apic/apic.c:469 clockevents_program_event+0x1fd/0x2e0 kernel/time/clockevents.c:339 tick_program_event+0x78/0xd0 kernel/time/tick-oneshot.c:47 hrtimer_interrupt+0x20b/0x490 kernel/time/hrtimer.c:1370 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline] smp_apic_timer_interrupt+0x136/0x620 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0x84/0x90 arch/x86/entry/entry_64.S:787 RIP: 0010:compound_head include/linux/page-flags.h:150 [inline] RIP: 0010:PageAnon include/linux/page-flags.h:409 [inline] RIP: 0010:zap_pte_range mm/memory.c:1332 [inline] RIP: 0010:zap_pmd_range mm/memory.c:1444 [inline] RIP: 0010:zap_pud_range mm/memory.c:1473 [inline] RIP: 0010:zap_p4d_range mm/memory.c:1494 [inline] RIP: 0010:unmap_page_range+0x8af/0x12f0 mm/memory.c:1515 RSP: 0018:ffff8881a1ae7948 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 RAX: dead000000000100 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffffff814c6cc3 RSI: ffffc90001549000 RDI: ffff8881a1ae7b50 RBP: 00007ff93c75c000 R08: 0000000000000001 R09: 0000000000000004 R10: ffff8881a1ae7708 R11: ffffe8ffffc3d02b R12: 00007ff93c75d000 R13: ffffea00069a3640 R14: dffffc0000000000 R15: ffff8881a0087ae0 unmap_single_vma+0x118/0x170 mm/memory.c:1560 zap_page_range_single+0x1c2/0x270 mm/memory.c:1651 unmap_mapping_range_vma mm/memory.c:2785 [inline] unmap_mapping_range_tree mm/memory.c:2806 [inline] unmap_mapping_range+0x212/0x290 mm/memory.c:2853 truncate_pagecache+0x51/0x90 mm/truncate.c:760 simple_setattr+0xc6/0xf0 fs/libfs.c:409 notify_change2+0xbdd/0xd70 fs/attr.c:317 do_truncate2+0x11e/0x1e0 fs/open.c:63 do_sys_ftruncate.constprop.0+0x34f/0x4a0 fs/open.c:214 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 Code: 83 3d 5c b7 da 02 01 77 02 5d c3 89 ef 5d e9 71 e7 fe ff 48 c7 c7 40 65 44 a2 e8 74 fe 48 00 eb df 66 90 89 ff 89 b7 00 d0 5f ff 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb