Arnd Bergmann
6a1c70de40
lib/test_lockup: fix kernel pointer check for separate address spaces
...
[ Upstream commit 5a06fcb15b43d1f7bf740c672950122331cb5655 ]
test_kernel_ptr() uses access_ok() to figure out if a given address
points to user space instead of kernel space. However on architectures
that set CONFIG_ALTERNATE_USER_ADDRESS_SPACE, a pointer can be valid
for both, and the check always fails because access_ok() returns true.
Make the check for user space pointers conditional on the type of
address space layout.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-04-08 14:24:01 +02:00
..
2021-11-18 19:16:23 +01:00
2021-07-08 11:48:20 -07:00
2022-04-08 14:23:12 +02:00
2021-09-08 11:50:26 -07:00
2022-01-27 11:03:58 +01:00
2021-07-08 11:48:20 -07:00
2022-04-08 14:23:56 +02:00
2021-07-08 11:48:20 -07:00
2021-11-18 19:16:17 +01:00
2021-09-24 16:13:35 -07:00
2021-07-08 11:48:20 -07:00
2021-08-13 10:27:50 +02:00
2021-09-14 13:23:22 -07:00
2021-07-08 11:48:22 -07:00
2021-08-19 09:02:55 +09:00
2021-08-13 10:07:44 +02:00
2021-11-18 19:16:17 +01:00
2021-08-13 14:09:32 -10:00
2021-07-08 11:48:20 -07:00
2021-09-08 11:50:26 -07:00
2021-11-18 19:16:52 +01:00
2022-02-23 12:03:20 +01:00
2021-08-19 09:02:55 +09:00
2022-03-19 13:47:48 +01:00
2021-09-24 16:13:34 -07:00
2021-09-24 16:13:34 -07:00
2021-07-20 13:49:44 -07:00
2021-11-12 15:05:49 +01:00
2021-07-08 11:48:20 -07:00
2021-08-13 18:37:38 +02:00
2021-07-08 11:48:20 -07:00
2022-01-27 11:03:44 +01:00
2021-10-06 17:53:54 -06:00
2021-07-08 11:48:20 -07:00
2021-11-25 09:48:45 +01:00
2021-07-08 11:48:20 -07:00
2021-08-08 13:00:20 +01:00
2021-09-17 13:52:17 +01:00
2021-09-19 17:13:35 -07:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:20 -07:00
2021-09-03 10:08:28 -07:00
2021-07-08 11:48:20 -07:00
2021-08-24 19:52:40 -03:00
2021-12-08 09:04:47 +01:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:20 -07:00
2021-11-21 13:44:12 +01:00
2021-08-30 07:50:56 -07:00
2021-08-13 10:27:49 +02:00
2021-07-08 11:48:20 -07:00
2021-11-18 19:16:26 +01:00
2022-01-27 11:05:43 +01:00
2021-09-03 09:58:15 -07:00
2021-09-03 10:08:28 -07:00
2022-04-08 14:23:54 +02:00
2022-04-08 14:24:01 +02:00
2022-01-27 11:05:44 +01:00
2021-09-08 12:55:35 -07:00
2021-09-06 11:04:03 -07:00
2021-09-08 11:50:26 -07:00
2021-08-22 00:21:36 -07:00
2021-09-03 09:58:14 -07:00
2021-07-19 11:39:28 +02:00
2021-08-13 13:19:06 -06:00
2022-04-08 14:23:18 +02:00