Files
s390-tools/zdump
Marc Hartmayer f4ed0b0ec6 zdump: check size before mmap'ing
Verify that the size is large enough before doing the mmap. Otherwise
this can result in a SIGBUS signal if there is an attempt to access a
page that lies beyond the end of the mapped file (see `man 2 mmap`).

Fixes: 8fa1b5a00b ("zdump: dfi: add support to read Protected Virtualization dumps")
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2022-11-29 17:03:57 +01:00
..
2019-12-12 18:04:32 +01:00
2021-11-10 15:12:10 +01:00
2022-10-22 20:27:16 +02:00
2022-10-22 20:27:16 +02:00
2022-10-22 20:27:16 +02:00
2022-11-29 17:03:57 +01:00
2021-11-10 15:12:10 +01:00
2019-12-12 18:04:32 +01:00
2022-06-20 13:14:05 +02:00
2022-06-20 13:14:05 +02:00
2022-11-29 17:03:57 +01:00
2022-06-20 13:14:05 +02:00
2021-12-09 16:19:25 +01:00
2021-12-09 16:19:25 +01:00
2022-11-29 17:03:57 +01:00
2022-11-29 17:03:57 +01:00
2021-11-10 15:12:10 +01:00