Baoquan He
63e2f34abc
s390/kexec: fix memory leak of ipl report buffer
...
commit 4aa9340584e37debef06fa99b56d064beb723891 upstream.
unreferenced object 0x38000195000 (size 4096):
comm "kexec", pid 8548, jiffies 4294953647 (age 32443.270s)
hex dump (first 32 bytes):
00 00 00 c8 20 00 00 00 00 00 00 c0 02 80 00 00 .... ...........
40 40 40 40 40 40 40 40 00 00 00 00 00 00 00 00 @@@@@@@@........
backtrace:
[<0000000011a2f199>] __vmalloc_node_range+0xc0/0x140
[<0000000081fa2752>] vzalloc+0x5a/0x70
[<0000000063a4c92d>] ipl_report_finish+0x2c/0x180
[<00000000553304da>] kexec_file_add_ipl_report+0xf4/0x150
[<00000000862d033f>] kexec_file_add_components+0x124/0x160
[<000000000d2717bb>] arch_kexec_kernel_image_load+0x62/0x90
[<000000002e0373b6>] kimage_file_alloc_init+0x1aa/0x2e0
[<0000000060f2d14f>] __do_sys_kexec_file_load+0x17c/0x2c0
[<000000008c86fe5a>] __s390x_sys_kexec_file_load+0x40/0x50
[<000000001fdb9dac>] __do_syscall+0x1bc/0x1f0
[<000000003ee4258d>] system_call+0x78/0xa0
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Philipp Rudo <prudo@redhat.com>
Fixes: 99feaa717e55 ("s390/kexec_file: Create ipl report and pass to next kernel")
Cc: <stable@vger.kernel.org> # v5.2: 20c76e242e70: s390/kexec: fix return code handling
Cc: <stable@vger.kernel.org> # v5.2
Link: https://lore.kernel.org/r/20211116033101.GD21646@MiWiFi-R3L-srv
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-26 10:39:19 +01:00
..
2020-10-18 09:27:10 -07:00
2020-10-22 13:13:57 -07:00
2020-03-25 11:50:48 +01:00
2020-11-23 11:52:13 +01:00
2019-09-03 13:53:56 +02:00
2019-01-18 09:33:18 +01:00
2019-05-27 09:36:28 -05:00
2021-04-14 08:42:10 +02:00
2020-10-02 14:40:48 +02:00
2021-09-15 09:50:27 +02:00
2020-09-17 14:11:03 +02:00
2021-05-11 14:47:11 +02:00
2020-06-09 09:39:13 -07:00
2020-09-21 08:08:44 +02:00
2021-09-18 13:40:22 +02:00
2018-08-23 18:48:43 -07:00
2020-10-16 12:36:38 -07:00
2021-06-23 14:42:51 +02:00
2019-04-17 10:40:57 +02:00
2021-07-28 14:35:42 +02:00
2019-11-30 10:52:45 +01:00
2020-11-24 16:47:35 +01:00
2019-04-29 10:44:03 +02:00
2019-04-26 12:34:05 +02:00
2021-11-26 10:39:18 +01:00
2020-03-11 14:18:44 +01:00
2021-09-18 13:40:22 +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
2020-10-16 12:36:38 -07:00
2020-06-29 16:31:46 +02:00
2021-11-26 10:39:19 +01:00
2020-05-20 10:13:27 +02:00
2020-08-07 11:33:26 -07:00
2020-10-09 23:45:30 +02:00
2021-07-28 14:35:42 +02:00
2020-05-08 00:12:43 +02:00
2020-05-28 12:21:54 +02:00
2019-05-06 16:42:54 -07:00
2019-04-11 13:36:53 +02:00
2020-08-11 18:16:55 +02:00
2019-02-22 09:19:55 +01:00
2019-11-20 17:16:01 +01:00
2020-07-21 13:53:56 +02:00
2019-11-20 17:16:01 +01:00
2020-11-17 11:22:03 -08:00
2019-10-31 17:20:54 +01:00
2020-11-09 18:12:34 +01:00
2020-09-14 10:08:07 +02:00
2020-08-09 13:33:54 -07:00
2020-03-23 13:41:55 +01:00
2020-08-17 13:17:14 +02:00
2019-05-02 13:54:11 +02:00
2019-05-02 13:54:11 +02:00
2020-08-17 13:17:10 +02:00
2021-07-20 16:05:42 +02:00
2020-10-17 15:04:36 -06:00
2021-07-14 16:56:54 +02:00
2020-09-18 14:24:16 +01:00
2018-10-15 12:17:00 +02:00
2019-01-18 09:33:19 +01:00
2019-01-28 15:58:55 +01:00
2021-04-07 15:00:10 +02:00
2020-06-29 16:31:46 +02:00
2020-04-22 16:20:55 +02:00
2021-07-25 14:36:17 +02:00
2019-12-18 23:29:26 +01:00
2018-04-23 07:57:16 +02:00
2021-07-14 16:55:43 +02:00
2020-08-26 18:47:21 +02:00
2020-09-01 09:50:35 +02:00
2021-03-25 09:04:05 +01:00