INFO: task syz-executor.5:25244 blocked for more than 140 seconds. Not tainted 5.0.0-rc5+ #57 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D28224 25244 7416 0x00000004 Call Trace: context_switch kernel/sched/core.c:2844 [inline] __schedule+0x817/0x1cc0 kernel/sched/core.c:3485 schedule+0x92/0x180 kernel/sched/core.c:3529 schedule_timeout+0x8ca/0xfd0 kernel/time/timer.c:1779 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x29c/0x440 kernel/sched/completion.c:136 crypto_wait_req include/linux/crypto.h:688 [inline] crypto_wait_req include/linux/crypto.h:683 [inline] tls_sw_free_resources_tx+0x3c2/0xa30 net/tls/tls_sw.c:1967 tls_sk_proto_close+0x67b/0x750 net/tls/tls_main.c:284 inet_release+0x105/0x1f0 net/ipv4/af_inet.c:428 inet6_release+0x53/0x80 net/ipv6/af_inet6.c:473 __sock_release+0xd3/0x250 net/socket.c:579 sock_close+0x1b/0x30 net/socket.c:1161 __fput+0x2df/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411d41 Code: 00 00 8b b3 30 01 00 00 31 c0 bf d0 36 44 00 e8 05 f3 00 00 8b b3 08 01 00 00 31 c0 bf e4 36 44 00 e8 f3 f2 00 00 8b 83 e0 00 <00> 00 48 89 ee bf f9 36 44 00 85 c0 49 0f 44 f4 31 c0 e8 d8 f2 00 RSP: 002b:00007ffd2dc0cfd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000411d41 RDX: 0000000000000001 RSI: 0000000000741a00 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000001294bb R09: 00000000001294bb R10: 00007ffd2dc0cf00 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000b7b R15: 0000000000000005 Showing all locks held in the system: 1 lock held by khungtaskd/1039: #0: 000000002de933c1 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4389 1 lock held by rsyslogd/7251: 2 locks held by getty/7363: #0: 00000000cc88f761 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000000fd44c57 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7364: #0: 00000000c9e2b417 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000c7f38b98 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7365: #0: 0000000062a96d6e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000002c2b5c80 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7366: #0: 00000000a1488e4d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000039b6b478 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7367: #0: 000000000329fceb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000006e79d42c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7368: #0: 00000000cf69c393 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000e52cac51 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7369: #0: 000000009372025c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000008624d7b7 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by syz-executor.5/25244: #0: 00000000bc66f509 (&sb->s_type->i_mutex_key#11){+.+.}, at: inode_lock include/linux/fs.h:757 [inline] #0: 00000000bc66f509 (&sb->s_type->i_mutex_key#11){+.+.}, at: __sock_release+0x89/0x250 net/socket.c:578 #1: 00000000a4c9ef0e (sk_lock-AF_INET6){+.+.}, at: lock_sock include/net/sock.h:1507 [inline] #1: 00000000a4c9ef0e (sk_lock-AF_INET6){+.+.}, at: tls_sk_proto_close+0xd6/0x750 net/tls/tls_main.c:266 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1039 Comm: khungtaskd Not tainted 5.0.0-rc5+ #57 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+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+0x9df/0xee0 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 CPU: 0 PID: 27254 Comm: cat Not tainted 5.0.0-rc5+ #57 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:933 [inline] RIP: 0010:__mutex_lock+0x3d4/0x1310 kernel/locking/mutex.c:1072 Code: c7 48 c7 c2 a0 7a 55 8a e9 87 fd ff ff 48 8b bd e0 fe ff ff e8 dd 23 54 fa bf 01 00 00 00 e8 d3 1b 4a fa 65 8b 05 4c 59 fe 78 <85> c0 0f 84 e3 0a 00 00 31 c0 48 ba 00 00 00 00 00 fc ff df 48 03 RSP: 0018:ffff8880a8dc7620 EFLAGS: 00000297 RAX: 0000000080000000 RBX: ffff88805b0e2440 RCX: 0000000000000000 RDX: 0000000000000004 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffff8880a8dc7790 R08: 1ffff1101347b535 R09: ffffed101347b536 R10: ffffed101347b535 R11: ffff88809a3da9af R12: fffffbfff14aaf54 R13: ffff88809a3da9a8 R14: ffff88805b0e2440 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fae24db5000 CR3: 0000000098186000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 process_measurement+0x354/0x1570 security/integrity/ima/ima_main.c:226 ima_file_check+0xc5/0x110 security/integrity/ima/ima_main.c:393 do_last fs/namei.c:3422 [inline] path_openat+0x1130/0x4690 fs/namei.c:3534 do_filp_open+0x1a1/0x280 fs/namei.c:3564 do_sys_open+0x3fe/0x5d0 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+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fae24bb21a7 Code: c3 66 90 c7 05 fa af 20 00 16 00 00 00 b8 ff ff ff ff c3 f7 d8 89 05 ec af 20 00 83 c8 ff c3 90 90 90 90 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d cd af 20 00 31 d2 48 29 c2 89 RSP: 002b:00007ffd8392b438 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fae24dbd1c8 RCX: 00007fae24bb21a7 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fae24db801d RBP: 00007ffd8392b4b0 R08: 00007ffd8392b8af R09: 0000000000000000 R10: 00007fae24db801d R11: 0000000000000246 R12: 0000000000000008 R13: 00007fae24dbc040 R14: 0000000000000000 R15: 00007ffd8392b8af