Anson Huang
dffe969aa7
Input: imx_sc_key - correct SCU message structure to avoid stack corruption
The SCU message's data field used for receiving response data from SCU
should be 32-bit width, as SCU will send back 32-bit width data.
This solves kernel panic when CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG is
enabled.
[ 1.950768] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
[ 1.980607] Workqueue: events imx_sc_check_for_events
[ 1.985657] Call trace:
[ 1.988104] dump_backtrace+0x0/0x140
[ 1.991768] show_stack+0x14/0x20
[ 1.995090] dump_stack+0xb4/0xf8
[ 1.998407] panic+0x158/0x324
[ 2.001463] print_tainted+0x0/0xa8
[ 2.004950] imx_sc_check_for_events+0x18c/0x190
[ 2.009569] process_one_work+0x198/0x320
[ 2.013579] worker_thread+0x48/0x420
[ 2.017252] kthread+0xf0/0x120
[ 2.020394] ret_from_fork+0x10/0x18
[ 2.023977] SMP: stopping secondary CPUs
[ 2.027901] Kernel Offset: disabled
[ 2.031391] CPU features: 0x0002,2100600c
[ 2.035401] Memory Limit: none
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Fixes: 688f1dfb69 ("Input: keyboard - imx_sc: Add i.MX system controller key support")
Link: https://lore.kernel.org/r/1573730499-2224-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2019-11-15 11:49:29 -08:00
..
2019-06-19 17:09:55 +02:00
2019-10-29 17:13:36 -07:00
2019-11-15 11:49:29 -08:00
2019-10-29 17:15:53 -07:00
2019-10-27 11:00:19 -07:00
2019-11-04 16:12:52 -08:00
2019-09-19 14:10:54 -07:00
2019-08-01 10:55:21 -07:00
2019-11-12 15:53:33 -08:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-07-25 11:12:20 +03:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-04 12:31:46 -07:00
2019-08-20 12:04:07 -07:00
2019-09-05 17:56:32 -07:00
2019-07-15 09:42:32 -07:00
2019-05-21 10:50:46 +02:00
2019-08-20 12:04:07 -07:00
2019-08-12 00:03:13 -07:00
2019-07-14 16:09:19 +03:00
2019-06-19 17:09:55 +02:00