INFO: task syz-executor1:5364 blocked for more than 140 seconds. Not tainted 5.0.0-rc1-next-20190110 #9 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor1 D20440 5364 1 0x00000004 Call Trace: context_switch kernel/sched/core.c:2834 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3475 schedule+0xfe/0x350 kernel/sched/core.c:3519 __rwsem_down_write_failed_common+0xa4d/0x1620 kernel/locking/rwsem-xadd.c:577 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0xa5/0x130 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:766 [inline] vfs_unlink+0xd1/0x500 fs/namei.c:3990 do_unlinkat+0x52a/0x9e0 fs/namei.c:4062 __do_sys_unlink fs/namei.c:4109 [inline] __se_sys_unlink fs/namei.c:4107 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4107 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457c17 Code: 67 35 20 01 48 89 4c 24 10 e8 15 b2 fc ff 48 8b 44 24 20 48 8d 50 01 48 8b 44 24 28 0f b6 4c 24 1f 48 83 fa 40 7d 1b 84 c9 74 <0b> 0f b6 98 c0 00 00 00 84 db 75 0c 48 8b 1d 8e 28 1e 01 48 85 db RSP: 002b:00007ffecf4d8888 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000457c17 RDX: 00007ffecf4d88a0 RSI: 00007ffecf4d88a0 RDI: 00007ffecf4d8930 RBP: 0000000000000164 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffecf4d99c0 R13: 0000000001167940 R14: 0000000000000000 R15: 0000000000000001 Showing all locks held in the system: 1 lock held by khungtaskd/1039: #0: 00000000bf8534a4 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4408 1 lock held by rsyslogd/7780: 2 locks held by getty/7870: #0: 000000004f9a095e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000000e2f3737 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7871: #0: 000000007ea643a3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000626b6021 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7872: #0: 00000000f1dec470 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000208b6c9c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7873: #0: 00000000a0605623 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000061d5eb34 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7874: #0: 0000000047157514 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000d9b93cee (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7875: #0: 00000000fddec68f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000a9baa286 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7876: #0: 00000000dba3936f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000fb00b7be (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 1 lock held by syz-executor3/9896: #0: 000000007ad9481d (&sig->cred_guard_mutex){+.+.}, at: prepare_bprm_creds fs/exec.c:1407 [inline] #0: 000000007ad9481d (&sig->cred_guard_mutex){+.+.}, at: __do_execve_file.isra.0+0x45d/0x2700 fs/exec.c:1750 3 locks held by syz-executor1/5364: #0: 00000000c0c9eee9 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1615 [inline] #0: 00000000c0c9eee9 (sb_writers#3){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:358 #1: 00000000b6953e67 (&type->i_mutex_dir_key#3/1){+.+.}, at: inode_lock_nested include/linux/fs.h:801 [inline] #1: 00000000b6953e67 (&type->i_mutex_dir_key#3/1){+.+.}, at: do_unlinkat+0x394/0x9e0 fs/namei.c:4048 #2: 000000009cfeffb5 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:766 [inline] #2: 000000009cfeffb5 (&sb->s_type->i_mutex_key#10){+.+.}, at: vfs_unlink+0xd1/0x500 fs/namei.c:3990 2 locks held by syz-executor1/7062: #0: 00000000c0c9eee9 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2819 [inline] #0: 00000000c0c9eee9 (sb_writers#3){.+.+}, at: vfs_write+0x429/0x580 fs/read_write.c:548 #1: 000000009cfeffb5 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_trylock include/linux/fs.h:786 [inline] #1: 000000009cfeffb5 (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x292/0x1400 fs/ext4/file.c:232 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1039 Comm: khungtaskd Not tainted 5.0.0-rc1-next-20190110 #9 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+0x1db/0x2d0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1be/0x236 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:203 [inline] watchdog+0xbbb/0x1170 kernel/hung_task.c:287 kthread+0x357/0x430 kernel/kthread.c:247 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: