Commits
zhang sanshan committed 77a5a3077e1
MA-16695-1 fix binder transaction error when we run monkey or cts The thread2 should not send trasaction to thread1 when thread2 have todo list. Otherwise it will caused below warning. this issue should been bring by refactor binder_proc_transaction in aefd2d632. 710da3c8 also need to been revert, otherwise it will have cpuset_read_lock panic. binder error log: [ 4282.542583] WARNING: CPU: 1 PID: 8975 at /opt/ssd/build/autobuild/workspace/android_imx_android-10.0_2.0.0_userdebug/vendor/nxp-opensource/kernel_imx/drivers/android/binder.c:862 binder_proc_transaction+0x5bc/0x5ec [ 4282.561632] Modules linked in: brcmfmac brcmutil [ 4282.566266] CPU: 1 PID: 8975 Comm: Thread-9 Not tainted 5.4.3-04657-gf05e2e3 #2 [ 4282.573584] Hardware name: Freescale i.MX8QXP MEK (DT) [ 4282.578729] pstate: 80400005 (Nzcv daif +PAN -UAO) [ 4282.583524] pc : binder_proc_transaction+0x5bc/0x5ec [ 4282.588492] lr : binder_proc_transaction+0x2ac/0x5ec [ 4282.593459] sp : ffff80002be4b930 [ 4282.596775] x29: ffff80002be4b990 x28: 0000000000000000 [ 4282.602094] x27: ffff800011eb2000 x26: 0000000000000010 [ 4282.607411] x25: ffff00082a9cc380 x24: ffff0000784d8000 [ 4282.612727] x23: ffff0000788cec30 x22: ffff0000788cec00 [ 4282.618044] x21: 0000000000000000 x20: ffff0000788cee00 [ 4282.623361] x19: ffff00082a9cc384 x18: 0000000000000000 [ 4282.628677] x17: 0000000000000000 x16: 0000000000000000 [ 4282.633994] x15: 0000000000000000 x14: 0061006900640065 [ 4282.639311] x13: 0000000000000006 x12: 00000003e171f241 [ 4282.644628] x11: 0000000000000089 x10: 0000000000000000 [ 4282.649945] x9 : ffff00082c83e820 x8 : ffff00001be67a08 [ 4282.655261] x7 : ffffffffffffffff x6 : ffff0000789a00e4 [ 4282.660578] x5 : ffff0000789a00e4 x4 : 0000000000000000 [ 4282.665895] x3 : 0000000000022400 x2 : 0000000000022400 [ 4282.671210] x1 : 0000000000000000 x0 : ffff0000788cee00 [ 4282.676529] Call trace: [ 4282.678983] binder_proc_transaction+0x5bc/0x5ec [ 4282.683603] binder_transaction+0x321c/0x3e80 [ 4282.687961] binder_thread_write+0xeac/0x2788 [ 4282.692325] binder_ioctl+0x694/0x17e4 [ 4282.696080] do_vfs_ioctl+0x648/0x14b8 [ 4282.699830] __arm64_sys_ioctl+0x70/0x98 [ 4282.703759] el0_svc_common+0x98/0x150 This reverts commit 710da3c8ea7dfbd327920afd3831d8c82c42789d. Change-Id: I033294a495a368b88d9eea01394901078272a71a