Heiko Carstens
41e1992665
s390: workaround invalid gcc-11 out of bounds read warning
...
GCC 11.1.0 and 11.2.0 generate a wrong warning when compiling the
kernel e.g. with allmodconfig:
arch/s390/kernel/setup.c: In function ‘setup_lowcore_dat_on’:
./include/linux/fortify-string.h:57:33: error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 0 [-Werror=stringop-overread]
...
arch/s390/kernel/setup.c:526:9: note: in expansion of macro ‘memcpy’
526 | memcpy(abs_lc->cregs_save_area, S390_lowcore.cregs_save_area,
| ^~~~~~
This could be addressed by using absolute_pointer() with the
S390_lowcore macro, but this is not a good idea since this generates
worse code for performance critical paths.
Therefore simply use a for loop to copy the array in question and get
rid of the warning.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org >
Signed-off-by: Heiko Carstens <hca@linux.ibm.com >
2023-01-17 19:00:59 +01:00
..
2022-03-31 12:03:46 +09:00
2021-11-16 12:29:19 +01:00
2021-11-16 12:29:19 +01:00
2020-03-25 11:50:48 +01:00
2022-09-14 16:46:00 +02:00
2022-05-17 15:16:28 +02:00
2022-10-26 14:27:41 +02:00
2021-10-01 16:52:48 -04:00
2017-11-02 11:10:55 +01:00
2022-03-10 15:58:17 +01:00
2021-10-01 16:52:48 -04:00
2019-01-18 09:33:18 +01:00
2022-05-06 20:45:16 +02:00
2017-11-02 11:10:55 +01:00
2022-03-08 00:33:01 +01:00
2021-10-26 15:21:28 +02:00
2022-07-19 16:18:49 +02:00
2022-12-12 18:29:54 -08:00
2022-11-23 16:24:07 +01:00
2022-03-08 00:33:00 +01:00
2021-12-16 19:58:07 +01:00
2021-12-13 12:04:45 -06:00
2020-09-21 08:08:44 +02:00
2022-08-30 22:00:33 +02:00
2022-05-25 11:46:02 +02:00
2018-08-23 18:48:43 -07:00
2022-05-25 11:46:02 +02:00
2022-12-15 11:12:21 -08:00
2022-12-06 16:18:23 +01:00
2022-05-26 21:13:00 -04:00
2022-03-10 15:58:17 +01:00
2017-11-13 11:47:01 -08:00
2022-02-06 23:31:29 +01:00
2021-03-08 10:46:27 +01:00
2019-04-29 10:44:03 +02:00
2021-07-27 09:39:13 +02:00
2022-12-06 16:18:22 +01:00
2022-04-27 12:53:34 +02:00
2022-06-24 09:48:55 +02:00
2019-01-28 15:58:55 +01:00
2019-09-10 13:27:51 +01:00
2019-08-19 21:54:15 -07:00
2020-10-09 23:45:30 +02:00
2022-11-23 16:24:07 +01:00
2022-11-23 16:24:07 +01:00
2022-02-06 23:31:29 +01:00
2023-01-10 14:37:02 +01:00
2020-05-20 10:13:27 +02:00
2022-09-14 16:46:00 +02:00
2022-10-10 12:00:45 -07:00
2022-03-10 15:58:17 +01:00
2022-06-24 09:48:55 +02:00
2022-12-06 16:18:26 +01:00
2022-03-10 15:58:17 +01:00
2021-10-26 15:21:29 +02:00
2022-03-22 15:57:10 -07:00
2022-09-14 16:46:01 +02:00
2022-01-17 14:13:08 +01:00
2022-05-16 10:58:33 +02:00
2022-09-27 22:50:24 +02:00
2023-01-11 15:28:34 +01:00
2022-06-01 12:03:17 +02:00
2022-12-12 15:19:38 -08:00
2022-12-12 15:19:38 -08:00
2020-11-09 18:12:34 +01:00
2022-11-18 02:15:15 +01:00
2022-07-19 16:18:49 +02:00
2022-03-28 17:29:53 -07:00
2019-05-02 13:54:11 +02:00
2022-04-25 13:54:12 +02:00
2020-08-17 13:17:10 +02:00
2023-01-17 19:00:59 +01:00
2022-03-28 17:29:53 -07:00
2022-09-14 16:46:01 +02:00
2022-02-06 23:31:29 +01:00
2021-06-18 16:41:22 +02:00
2021-10-26 15:21:29 +02:00
2022-03-08 00:33:00 +01:00
2022-03-08 00:33:00 +01:00
2022-05-11 14:40:57 +02:00
2022-02-06 23:31:29 +01:00
2020-04-22 16:20:55 +02:00
2022-03-27 22:18:38 +02:00
2022-03-27 22:18:39 +02:00
2022-03-10 15:58:17 +01:00
2022-11-23 09:06:50 +00:00
2022-12-12 16:22:22 -08:00
2023-01-06 16:38:21 +01:00
2022-03-10 15:58:17 +01:00