TAKANO Mitsuhiro
fadeabfa77
linux-user: report EFAULT for a NULL sysinfo/getitimer buffer
...
Both handlers skip the copy-out when the guest pointer is zero and return
success, so a caller that forgets the buffer gets an uninitialised result
instead of the EFAULT the kernel reports for a NULL address.
Copy unconditionally: a NULL pointer then fails in lock_user_struct() and
in copy_to_user_timeval() like any other unusable address.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com >
Signed-off-by: Helge Deller <deller@gmx.de >
2026-11-05 23:43:50 +01:00
..
2026-09-18 14:02:24 +01:00
2026-08-07 18:14:13 +02:00
2026-11-02 17:07:14 +00:00
2026-04-25 00:38:32 +02:00
2026-10-27 07:23:27 -07:00
2026-09-18 14:02:24 +01:00
2026-09-18 14:02:24 +01:00
2026-09-18 22:20:21 +02:00
2026-10-22 22:16:19 +02:00
2026-06-18 23:43:35 +02:00
2026-03-05 10:54:09 -08:00
2026-10-04 13:32:14 +02:00
2026-10-04 13:31:41 +02:00
2026-03-05 10:54:09 -08:00
2026-09-18 14:02:24 +01:00
2026-10-16 10:40:38 +10:00
2026-09-18 14:02:24 +01:00
2026-09-24 22:52:44 +02:00
2026-11-01 14:01:53 +00:00
2026-09-18 14:02:24 +01:00
2026-06-18 23:43:35 +02:00
2026-10-04 13:31:41 +02:00
2021-07-12 21:53:35 +02:00
2024-01-29 21:04:10 +10:00
2026-04-25 00:38:32 +02:00
2026-03-16 13:50:17 +03:00
2024-04-25 10:21:06 +01:00
2026-07-10 14:40:42 -07:00
2025-09-23 16:17:59 -07:00
2025-09-23 16:17:59 -07:00
2026-04-28 22:16:51 +02:00
2021-11-29 14:54:17 +01:00
2025-08-28 06:39:25 +10:00
2026-08-07 18:14:13 +02:00
2026-11-03 14:31:24 +01:00
2026-02-09 20:51:52 +01:00
2026-09-10 21:16:34 +02:00
2025-07-14 11:42:49 +01:00
2026-06-19 14:58:38 -04:00
2022-06-28 04:41:20 +05:30
2025-09-23 16:17:59 -07:00
2026-10-14 21:14:06 +02:00
2026-07-28 11:06:15 +02:00
2022-05-23 22:47:19 +02:00
2026-08-07 15:56:21 +02:00
2026-09-18 22:19:23 +02:00
2026-01-23 20:40:15 +01:00
2026-11-05 23:43:50 +01:00
2026-09-18 07:36:52 -04:00
2022-01-18 12:41:42 +01:00
2020-08-21 06:18:24 -04:00
2026-06-18 14:27:21 +02:00
2022-05-23 22:47:20 +02:00
2022-05-23 22:47:19 +02:00
2026-07-10 14:40:42 -07:00
2025-03-09 14:54:32 +01:00
2026-01-22 10:41:18 +01:00