INFO: task syz-executor1:28369 blocked for more than 140 seconds. Not tainted 5.0.0-rc3+ #43 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor1 D21448 28369 1 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 __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:757 [inline] process_measurement+0x190f/0x1be0 security/integrity/ima/ima_main.c:207 ima_file_check+0xe3/0x130 security/integrity/ima/ima_main.c:393 do_last fs/namei.c:3422 [inline] path_openat+0x14d7/0x5650 fs/namei.c:3534 do_filp_open+0x26f/0x370 fs/namei.c:3564 do_sys_open+0x59a/0x7c0 fs/open.c:1063 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x412020 Code: 48 83 c4 08 48 3d 01 f0 ff ff 0f 83 da 17 00 00 c3 66 0f 1f 84 00 00 00 00 00 83 3d 6d 42 64 00 00 75 14 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 b4 17 00 00 c3 48 83 ec 08 e8 2a fa ff ff RSP: 002b:00007ffc258d4818 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000412020 RDX: 00007ffc258d4830 RSI: 0000000000000000 RDI: 00007ffc258d48c0 RBP: 0000000000e66914 R08: 0000000000000000 R09: 000000000000001a R10: 0000000000000015 R11: 0000000000000246 R12: 00007ffc258d5950 R13: 0000000000e67940 R14: 0000000000000000 R15: 0000000000000001 Showing all locks held in the system: 1 lock held by khungtaskd/1039: #0: 0000000094d3d855 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389 3 locks held by rs:main Q:Reg/7987: #0: 00000000ece659ae (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795 #1: 0000000036b9a957 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2815 [inline] #1: 0000000036b9a957 (sb_writers#3){.+.+}, at: vfs_write+0x429/0x580 fs/read_write.c:548 #2: 00000000743fb1a3 (&sb->s_type->i_mutex_key#10){++++}, at: inode_trylock include/linux/fs.h:777 [inline] #2: 00000000743fb1a3 (&sb->s_type->i_mutex_key#10){++++}, at: ext4_file_write_iter+0x28b/0x1410 fs/ext4/file.c:232 2 locks held by getty/8079: #0: 00000000155a9b69 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000046ffdfd3 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8080: #0: 00000000086f4bae (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000ff5b89a1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8081: #0: 000000005220d79b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000008eb4bdf9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8082: #0: 00000000477aed31 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000788eb9af (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8083: #0: 00000000824a93e5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000ce28f9f9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8084: #0: 000000009e779be6 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000ef970e5e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/8085: #0: 00000000c3c84b53 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000006b163d85 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 1 lock held by syz-executor1/28369: #0: 00000000b9b0550f (&sb->s_type->i_mutex_key#10){++++}, at: inode_lock include/linux/fs.h:757 [inline] #0: 00000000b9b0550f (&sb->s_type->i_mutex_key#10){++++}, at: process_measurement+0x190f/0x1be0 security/integrity/ima/ima_main.c:207 3 locks held by syz-executor1/30737: #0: 000000002907b3f7 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795 #1: 0000000036b9a957 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2815 [inline] #1: 0000000036b9a957 (sb_writers#3){.+.+}, at: vfs_write+0x429/0x580 fs/read_write.c:548 #2: 00000000b9b0550f (&sb->s_type->i_mutex_key#10){++++}, at: inode_trylock include/linux/fs.h:777 [inline] #2: 00000000b9b0550f (&sb->s_type->i_mutex_key#10){++++}, at: ext4_file_write_iter+0x28b/0x1410 fs/ext4/file.c:232 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1039 Comm: khungtaskd Not tainted 5.0.0-rc3+ #43 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:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0x2/0x10 arch/x86/include/asm/irqflags.h:57