Tony Lindgren
8cf8df8967
ARM: OMAP2+: Fix regression for smc calls for vmap stack
...
Commit 9c46929e7989 ("ARM: implement THREAD_INFO_IN_TASK for uniprocessor
systems") started triggering an issue with smc calls hanging on boot as
VMAP_STACK is now enabled by default.
Based on discussions on the #armlinux irc channel, Arnd noticed that omaps
are using __pa() for stack for smc calls. This does not work with vmap
stack.
Let's fix the issue by changing the param arrays to use static param[5] for
each function for __pa() to work. This consumes a bit more memory compared
to adding a single static buffer, but avoids potential races with the smc
calls initializing the shared buffer. For omap_secure_dispatcher(), we need
to use a cpu specific buffer as there's nothing currently ensuring it only
gets called from cpu0.
Fixes: 9c46929e7989 ("ARM: implement THREAD_INFO_IN_TASK for uniprocessor systems")
Link: https://lore.kernel.org/r/20220331171737.48211-1-tony@atomide.com
Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-03-31 22:41:27 +02:00
..
2015-07-25 15:28:16 +01:00
2020-03-25 11:50:48 +01:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2021-03-24 12:23:58 +02:00
2021-05-18 09:44:42 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-11-19 11:44:46 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-01-26 13:43:17 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-01-23 09:12:54 -08:00
2020-08-19 10:05:39 +03:00
2019-12-12 09:42:34 -08:00
2020-05-05 11:16:06 -07:00
2020-05-05 11:16:06 -07:00
2020-08-19 10:05:39 +03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03:00
2021-10-06 12:36:22 +03: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
2020-08-19 10:19:13 +03:00
2021-10-06 12:36:23 +03:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2021-05-21 12:27:59 +03:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2021-10-06 12:36:22 +03:00
2020-08-19 10:19:13 +03:00
2021-05-21 12:27:59 +03:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2021-06-11 10:41:35 +03:00
2021-05-21 12:28:47 +03:00
2021-05-21 12:28:47 +03:00
2020-03-09 10:24:01 +01:00
2021-01-15 12:48:07 +02:00
2019-06-19 17:09:55 +02:00
2019-08-12 13:17:39 -03:00
2021-12-17 14:08:59 +02:00
2019-06-19 17:09:07 +02:00
2020-08-19 10:19:13 +03:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2020-08-23 17:36:59 -05:00
2019-06-19 17:09:55 +02:00
2021-03-12 10:11:24 +02:00
2015-07-16 00:06:05 -07:00
2021-10-05 17:47:22 +02:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2019-05-30 11:26:32 -07:00
2021-03-12 10:11:24 +02:00
2019-06-19 17:09:55 +02:00
2020-07-13 12:18:26 +02:00
2019-06-05 17:37:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-08-13 03:40:10 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02: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
2021-01-15 12:48:43 +02:00
2019-12-30 09:47:21 -08:00
2019-06-19 17:09:55 +02:00
2020-05-19 09:38:04 -07:00
2020-05-19 09:38:04 -07:00
2020-06-29 10:22:47 -07:00
2020-08-19 10:05:43 +03:00
2020-05-19 09:38:04 -07:00
2020-05-19 09:38:04 -07:00
2019-06-19 17:09:55 +02:00
2020-05-19 09:38:04 -07:00
2019-06-19 17:09:55 +02:00
2019-12-17 08:17:47 -08:00
2021-12-17 14:08:10 +02:00
2021-03-12 10:11:24 +02:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2021-03-31 09:04:22 +03:00
2019-07-19 17:05:08 -07:00
2019-06-19 17:09:55 +02:00
2020-10-24 10:33:08 -07:00
2020-08-07 11:33:26 -07:00
2022-03-31 22:41:27 +02:00
2021-03-17 15:15:52 +02:00
2020-04-10 15:36:22 -07:00
2020-05-12 08:35:56 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-08-19 10:19:13 +03:00
2020-08-19 10:19:13 +03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-09-22 12:30:27 +03:00
2019-12-30 09:46:34 -08:00
2021-06-11 10:43:08 +03:00
2021-07-29 09:02:27 +02:00
2019-10-16 07:51:16 -07:00
2018-07-09 23:01:34 -07:00
2021-03-24 13:27:36 +02:00
2020-09-24 14:26:20 +03:00
2020-09-24 14:26:20 +03:00
2021-03-17 15:15:45 +02:00
2019-06-19 17:09:55 +02:00
2021-10-06 10:24:44 +03: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-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03: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
2021-10-06 12:34:55 +03:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:19:13 +03: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-06-19 17:09:55 +02:00
2019-06-28 08:37:04 +08:00
2019-06-19 17:09:55 +02:00
2021-10-06 12:17:17 +03:00
2020-08-19 10:05:33 +03:00
2021-10-06 12:36:21 +03:00
2019-06-19 17:09:55 +02:00
2019-10-21 10:36:27 -07:00
2021-10-06 12:23:28 +03:00
2021-10-06 12:20:34 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-08-19 10:05:33 +03: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
2021-10-06 12:36:22 +03: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-05-30 11:26:35 -07:00
2020-08-19 10:19:13 +03:00
2020-04-21 09:41:53 -07:00
2020-08-19 10:19:13 +03:00
2019-07-19 17:05:08 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2021-04-26 11:48:26 -07: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
2020-08-19 10:19:13 +03:00
2020-06-02 19:14:21 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-18 15:09:54 -07:00
2019-10-18 07:56:51 -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
2020-08-19 10:19:13 +03:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00