binder: 11874:11874 ioctl 4018620d 200000c0 returned -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 11879:11879 ioctl 4018620d 200000c0 returned -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 11889:11889 ioctl 4018620d 200000c0 returned -16 INFO: task kworker/0:2:2247 blocked for more than 140 seconds. Not tainted 4.9.180+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/0:2 D29720 2247 2 0x80000000 Workqueue: events binder_deferred_func 0000000000000087 ffff8801cab317c0 0000000000000000 ffff8801db621000 ffff8801da6817c0 ffff8801db621018 ffff8801c4e87a08 ffffffff8280932e ffff8801cab32070 1ffff100389d0f2a 0000000000000046 ffff8801db6218f0 Call Trace: [<00000000610a5db7>] schedule+0x92/0x1c0 kernel/sched/core.c:3546 [<000000001f9d86a2>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3579 [<00000000109c4943>] __mutex_lock_common kernel/locking/mutex.c:582 [inline] [<00000000109c4943>] mutex_lock_nested+0x38d/0x920 kernel/locking/mutex.c:621 [<00000000c5d228e5>] binder_deferred_release drivers/android/binder.c:5361 [inline] [<00000000c5d228e5>] binder_deferred_func+0x3a1/0xde0 drivers/android/binder.c:5469 [<000000006ce548ed>] process_one_work+0x88b/0x1600 kernel/workqueue.c:2114 [<000000001a1c82ab>] worker_thread+0x5df/0x11d0 kernel/workqueue.c:2251 [<000000008fee0519>] kthread+0x278/0x310 kernel/kthread.c:211 [<000000004cd908c0>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 Showing all locks held in the system: binder: BINDER_SET_CONTEXT_MGR already set 2 locks held by khungtaskd/24: binder: 11891:11891 ioctl 4018620d 200000c0 returned -16 #0: (rcu_read_lock){......}, at: [<000000004913946e>] check_hung_uninterruptible_tasks kernel/hung_task.c:169 [inline] #0: (rcu_read_lock){......}, at: [<000000004913946e>] watchdog+0x14b/0xaf0 kernel/hung_task.c:263 #1: (tasklist_lock){.+.+..}, at: [<000000000950aca2>] debug_show_all_locks+0x7f/0x21f kernel/locking/lockdep.c:4336 1 lock held by rsyslogd/1901: #0: (&f->f_pos_lock){+.+.+.}, at: [<00000000cf5d7fc7>] __fdget_pos+0xa8/0xd0 fs/file.c:782 2 locks held by getty/2029: #0: (&tty->ldisc_sem){++++++}, at: [<00000000dc5f4d34>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:377 #1: (&ldata->atomic_read_lock){+.+...}, at: [<00000000855ff7a1>] n_tty_read+0x1fe/0x1820 drivers/tty/n_tty.c:2156 3 locks held by kworker/0:2/2247: #0: ("events"){.+.+.+}, at: [<000000002920fb56>] process_one_work+0x790/0x1600 kernel/workqueue.c:2107 #1: (binder_deferred_work){+.+...}, at: [<000000006037d27c>] process_one_work+0x7ce/0x1600 kernel/workqueue.c:2111 #2: (&binder_device->context.context_mgr_node_lock){+.+.+.}, at: [<00000000c5d228e5>] binder_deferred_release drivers/android/binder.c:5361 [inline] #2: (&binder_device->context.context_mgr_node_lock){+.+.+.}, at: [<00000000c5d228e5>] binder_deferred_func+0x3a1/0xde0 drivers/android/binder.c:5469 1 lock held by init/15433: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 1 lock held by init/15434: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 1 lock held by init/15436: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 1 lock held by init/15437: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 1 lock held by init/15438: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 1 lock held by init/15440: #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open_by_driver drivers/tty/tty_io.c:2062 [inline] #0: (tty_mutex){+.+.+.}, at: [<000000006d228a0b>] tty_open+0x3f9/0xe10 drivers/tty/tty_io.c:2140 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 24 Comm: khungtaskd Not tainted 4.9.180+ #3 ffff8801d98d7cc8 ffffffff81b577f1 0000000000000001 0000000000000000 0000000000000001 ffffffff81099901 dffffc0000000000 ffff8801d98d7d00 ffffffff81b62a8c 0000000000000001 0000000000000000 0000000000000001 Call Trace: [<00000000f6e52ceb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000f6e52ceb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000015781bc6>] nmi_cpu_backtrace.cold+0x47/0x87 lib/nmi_backtrace.c:99 [<0000000085936a76>] nmi_trigger_cpumask_backtrace+0x124/0x155 lib/nmi_backtrace.c:60 [<00000000f8329e9e>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37 [<00000000ed67e226>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline] [<00000000ed67e226>] check_hung_task kernel/hung_task.c:126 [inline] [<00000000ed67e226>] check_hung_uninterruptible_tasks kernel/hung_task.c:183 [inline] [<00000000ed67e226>] watchdog+0x670/0xaf0 kernel/hung_task.c:263 [<000000008fee0519>] kthread+0x278/0x310 kernel/kthread.c:211 [<000000004cd908c0>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2269 Comm: syz-executor387 Not tainted 4.9.180+ #3 task: 00000000e0f5fa16 task.stack: 00000000f917b17f RIP: 0010:[] c [<00000000de86aef5>] __debug_check_no_obj_freed lib/debugobjects.c:712 [inline] RIP: 0010:[] c [<00000000de86aef5>] debug_check_no_obj_freed+0x191/0x6d0 lib/debugobjects.c:749 RSP: 0000:ffff8801cab97540 EFLAGS: 00000046 RAX: 0000000000000005 RBX: ffff88013ff055b0 RCX: 0000000000000000 RDX: 1ffff10027fe0ab6 RSI: ffff8801cab975b8 RDI: ffff8801392a5cc8 RBP: ffff8801cab97620 R08: 0000000000000296 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: ffff880138bcf0c8 R14: ffffffff842b1d48 R15: ffff88013ff055b0 FS: 0000000002533880(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001cb1a3000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801db621000c ffff8801db6210a0c ffff88010b750000c ffff88010b750000c ffff8801cab97570c ffffffff81247d91c fffffbfff08563a8c 1ffff10039572eb3c ffffffff842b1d40c ffff88010b748000c ffff88010b74f000c 0000000041b58ab3c Call Trace: [<00000000dab1c27c>] free_pages_prepare mm/page_alloc.c:1074 [inline] [<00000000dab1c27c>] __free_pages_ok+0x1f4/0x18e0 mm/page_alloc.c:1276 [<00000000859ceeed>] __free_pages+0x61/0x90 mm/page_alloc.c:3911 [<00000000810309d3>] free_thread_stack kernel/fork.c:243 [inline] [<00000000810309d3>] release_task_stack kernel/fork.c:329 [inline] [<00000000810309d3>] put_task_stack+0x125/0x2c0 kernel/fork.c:340 [<000000000298af1d>] finish_task_switch+0x42a/0x660 kernel/sched/core.c:2830 [<00000000195b0e58>] context_switch kernel/sched/core.c:2946 [inline] [<00000000195b0e58>] __schedule+0x6d6/0x1f10 kernel/sched/core.c:3491 [<0000000033a5b6b5>] preempt_schedule_irq+0x5e/0xa0 kernel/sched/core.c:3704 [<00000000a4f06084>] retint_kernel+0x1b/0x2d [<00000000931d3990>] vprintk_emit+0x43f/0x6f0 kernel/printk/printk.c:1908 [<00000000194ac441>] vprintk+0x28/0x30 kernel/printk/printk.c:1918 [<00000000993ee2cd>] vprintk_func kernel/printk/internal.h:36 [inline] [<00000000993ee2cd>] printk+0xc2/0xf5 kernel/printk/printk.c:1980 [<00000000e1a97179>] binder_ioctl_set_ctx_mgr.isra.0.cold+0x17/0x1c drivers/android/binder.c:4874 [<000000006e539710>] binder_ioctl+0xd0e/0x1720 drivers/android/binder.c:5022 [<00000000a9036e6a>] vfs_ioctl fs/ioctl.c:43 [inline] [<00000000a9036e6a>] file_ioctl fs/ioctl.c:493 [inline] [<00000000a9036e6a>] do_vfs_ioctl+0xb87/0x11d0 fs/ioctl.c:677 [<00000000c256ed1e>] SYSC_ioctl fs/ioctl.c:694 [inline] [<00000000c256ed1e>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [<000000009cfc2f3a>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000021b5dfb>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: c0f c85 cf2 c04 c00 c00 c48 c8b c85 c60 cff cff cff c4c c8b c38 c4d c85 cff c0f c84 cd9 c02 c00 c00 c48 c8d c75 c98 c31 cc0 c4c c89 cfa c48 cc1 cea c03 c42 c80 c3c c22 c00 c<0f> c85 cc9 c02 c00 c00 c49 c8d c7f c18 c83 cc0 c01 c49 c8b c1f c48 c89 cfa c48 cc1 c