QAT: Invalid ioctl INFO: rcu_sched self-detected stall on CPU 0-....: (124999 ticks this GP) idle=072/1/4611686018427387906 softirq=55811/55811 fqs=31226 (t=125000 jiffies g=30394 c=30393 q=270) NMI backtrace for cpu 0 CPU: 0 PID: 22165 Comm: syz-executor1 Not tainted 4.15.0-rc4-next-20171221+ #78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 nmi_cpu_backtrace+0x1d2/0x210 lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x122/0x180 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_single_cpu_backtrace include/linux/nmi.h:156 [inline] rcu_dump_cpu_stacks+0x186/0x1de kernel/rcu/tree.c:1375 print_cpu_stall kernel/rcu/tree.c:1524 [inline] check_cpu_stall.isra.62+0xbb8/0x15b0 kernel/rcu/tree.c:1592 __rcu_pending kernel/rcu/tree.c:3362 [inline] rcu_pending kernel/rcu/tree.c:3424 [inline] rcu_check_callbacks+0x238/0xd20 kernel/rcu/tree.c:2764 update_process_times+0x30/0x60 kernel/time/timer.c:1630 tick_sched_handle+0x85/0x160 kernel/time/tick-sched.c:162 tick_sched_timer+0x42/0x120 kernel/time/tick-sched.c:1148 __run_hrtimer kernel/time/hrtimer.c:1210 [inline] __hrtimer_run_queues+0x358/0xe20 kernel/time/hrtimer.c:1274 hrtimer_interrupt+0x1c2/0x5e0 kernel/time/hrtimer.c:1308 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1025 [inline] smp_apic_timer_interrupt+0x14a/0x700 arch/x86/kernel/apic/apic.c:1050 apic_timer_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:920 RIP: 0010:inq_canon drivers/tty/n_tty.c:2409 [inline] RIP: 0010:n_tty_ioctl+0x20c/0x2d0 drivers/tty/n_tty.c:2429 RSP: 0018:ffff8801cda27b48 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11 RAX: 0000000000010000 RBX: ffffc900012a0060 RCX: ffffffff8293ac4c RDX: 0000000000010000 RSI: ffffc9000331b000 RDI: ffffc900012a1260 RBP: ffff8801cda27b88 R08: 1ffff10039b44e99 R09: 0000000000000004 R10: ffff8801cda27988 R11: 0000000000000003 R12: ffffc9000129f000 R13: 0000000419bed249 R14: 0000000020fe8000 R15: ffff8801c084b0f8 tty_ioctl+0x336/0x1610 drivers/tty/tty_io.c:2640 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452ac9 RSP: 002b:00007f5b2ab8ec58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5b2ab8e9a0 RCX: 0000000000452ac9 RDX: 0000000020fe8000 RSI: 000000000000541b RDI: 0000000000000014 RBP: 00007f5b2ab8e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b72ef R13: 00007f5b2ab8eac8 R14: 00000000004b72f8 R15: 0000000000000000 INFO: task kworker/1:6:16810 blocked for more than 120 seconds. Not tainted 4.15.0-rc4-next-20171221+ #78 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/1:6 D22544 16810 2 0x80000000 Workqueue: events linkwatch_event Call Trace: context_switch kernel/sched/core.c:2800 [inline] __schedule+0x8eb/0x2060 kernel/sched/core.c:3376 schedule+0xf5/0x430 kernel/sched/core.c:3435 schedule_preempt_disabled+0x10/0x20 kernel/sched/core.c:3493 __mutex_lock_common kernel/locking/mutex.c:833 [inline] __mutex_lock+0xaad/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 linkwatch_event+0x57/0xc0 net/core/link_watch.c:236 process_one_work+0xbbf/0x1af0 kernel/workqueue.c:2112 worker_thread+0x223/0x1990 kernel/workqueue.c:2246 kthread+0x33c/0x400 kernel/kthread.c:238 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:524 Showing all locks held in the system: 2 locks held by khungtaskd/675: #0: (rcu_read_lock){....}, at: [<000000005156123d>] check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: (rcu_read_lock){....}, at: [<000000005156123d>] watchdog+0x1c5/0xd60 kernel/hung_task.c:249 #1: (tasklist_lock){.+.+}, at: [<000000000c274e14>] debug_show_all_locks+0xd3/0x400 kernel/locking/lockdep.c:4464 2 locks held by getty/3118: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3119: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3120: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3121: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3122: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3123: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 2 locks held by getty/3124: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 3 locks held by kworker/1:3/4892: #0: ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: [<000000009a1f4a8d>] process_one_work+0xaaf/0x1af0 kernel/workqueue.c:2083 #1: ((addr_chk_work).work){+.+.}, at: [<0000000076ca5f0e>] process_one_work+0xb01/0x1af0 kernel/workqueue.c:2087 #2: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 3 locks held by kworker/1:6/16810: #0: ((wq_completion)"events"){+.+.}, at: [<000000009a1f4a8d>] process_one_work+0xaaf/0x1af0 kernel/workqueue.c:2083 #1: ((linkwatch_work).work){+.+.}, at: [<0000000076ca5f0e>] process_one_work+0xb01/0x1af0 kernel/workqueue.c:2087 #2: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor5/22168: #0: (rcu_sched_state.exp_mutex){+.+.}, at: [<00000000e85f7c8b>] exp_funnel_lock kernel/rcu/tree_exp.h:272 [inline] #0: (rcu_sched_state.exp_mutex){+.+.}, at: [<00000000e85f7c8b>] _synchronize_rcu_expedited.constprop.73+0x9fa/0xac0 kernel/rcu/tree_exp.h:596 2 locks held by syz-executor3/22156: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 #1: (rcu_sched_state.exp_mutex){+.+.}, at: [<00000000b0bdbffb>] exp_funnel_lock kernel/rcu/tree_exp.h:305 [inline] #1: (rcu_sched_state.exp_mutex){+.+.}, at: [<00000000b0bdbffb>] _synchronize_rcu_expedited.constprop.73+0x9aa/0xac0 kernel/rcu/tree_exp.h:596 3 locks held by syz-executor1/22176: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<00000000d333a49d>] n_tty_read+0x2ef/0x1a00 drivers/tty/n_tty.c:2131 #2: (&o_tty->termios_rwsem/1){++++}, at: [<00000000559d2f90>] n_tty_read+0x312/0x1a00 drivers/tty/n_tty.c:2135 2 locks held by syz-executor1/22190: #0: (&tty->ldisc_sem){++++}, at: [<000000002fd4a733>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&o_tty->termios_rwsem/1){++++}, at: [<000000008104ce50>] set_termios+0xf5/0x6d0 drivers/tty/tty_ioctl.c:371 1 lock held by syz-executor4/22172: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor0/22183: #0: (event_mutex){+.+.}, at: [<000000001e725514>] perf_trace_destroy+0x28/0x100 kernel/trace/trace_event_perf.c:234 1 lock held by syz-executor6/22184: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor6/22187: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor6/22188: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor6/22192: #0: (rtnl_mutex){+.+.}, at: [<000000008bba2afe>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 675 Comm: khungtaskd Not tainted 4.15.0-rc4-next-20171221+ #78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 nmi_cpu_backtrace+0x1d2/0x210 lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x122/0x180 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:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0x90c/0xd60 kernel/hung_task.c:249 kthread+0x33c/0x400 kernel/kthread.c:238 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:524 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 22165 Comm: syz-executor1 Not tainted 4.15.0-rc4-next-20171221+ #78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3b/0x50 kernel/kcov.c:106 RSP: 0018:ffff8801cda27b38 EFLAGS: 00000246 RAX: 0000000000010000 RBX: ffffc900012a0060 RCX: ffffffff8293ac4c RDX: 000000000000ffff RSI: ffffc9000331b000 RDI: ffffc900012a1260 RBP: ffff8801cda27b38 R08: 1ffff10039b44e99 R09: 0000000000000004 R10: ffff8801cda27988 R11: 0000000000000003 R12: ffffc9000129f000 R13: 000000042b3dad07 R14: 0000000020fe8000 R15: ffff8801c084b0f8 FS: 00007f5b2ab8f700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdee2013c50 CR3: 00000001c2291006 CR4: 00000000001626f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inq_canon drivers/tty/n_tty.c:2409 [inline] n_tty_ioctl+0x20c/0x2d0 drivers/tty/n_tty.c:2429 tty_ioctl+0x336/0x1610 drivers/tty/tty_io.c:2640 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452ac9 RSP: 002b:00007f5b2ab8ec58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5b2ab8e9a0 RCX: 0000000000452ac9 RDX: 0000000020fe8000 RSI: 000000000000541b RDI: 0000000000000014 RBP: 00007f5b2ab8e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b72ef R13: 00007f5b2ab8eac8 R14: 00000000004b72f8 R15: 0000000000000000 Code: 5c 8a 91 7e 81 e2 00 01 1f 00 48 8b 4d 08 75 2b 8b 90 b8 12 00 00 83 fa 02 75 20 48 8b b0 c0 12 00 00 8b 80 bc 12 00 00 48 8b 16 <48> 83 c2 01 48 39 d0 76 07 48 89 0c d6 48 89 16 5d c3 0f 1f 00