Baoquan He
4aa9340584
s390/kexec: fix memory leak of ipl report buffer
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: 99feaa717e ("s390/kexec_file: Create ipl report and pass to next kernel")
Cc: <stable@vger.kernel.org> # v5.2: 20c76e242e: 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>
2021-11-18 17:50:07 +01:00
..
2021-01-19 12:29:26 +01:00
2021-07-27 09:39:15 +02:00
2019-06-15 12:25:05 +02:00
2021-02-09 15:57:06 +01:00
2021-07-08 22:12:17 +02:00
2018-10-09 11:20:50 +02:00
2020-12-10 21:02:08 +01:00
2020-07-20 10:55:45 +02:00
2021-04-15 17:47:42 +02:00
2021-05-26 13:20:49 +02:00
2021-10-11 20:55:58 +02:00
2021-10-26 15:21:29 +02:00
2019-04-26 12:34:05 +02:00
2020-07-27 17:46:24 +09:00
2020-10-25 14:51:49 -07:00
2021-04-05 11:30:57 +02:00
2021-09-21 20:02:24 -07:00
2021-06-18 16:41:21 +02:00
2020-09-15 13:21:46 -07:00
2021-07-27 09:39:13 +02:00
2020-08-26 18:47:21 +02:00
2020-09-14 10:30:07 +02:00
2021-06-28 11:18:28 +02:00
2021-09-08 15:32:35 -07:00
2021-07-27 09:39:15 +02:00
2021-09-07 13:38:41 +02:00
2019-02-22 09:19:52 +01:00
2019-11-30 10:52:46 +01:00
2021-10-26 15:21:29 +02:00
2021-07-27 09:39:20 +02:00
2021-01-19 12:29:26 +01:00
2020-09-15 13:21:46 -07:00
2021-07-27 09:39:17 +02:00
2021-10-11 20:55:58 +02:00
2020-12-16 14:55:49 +01:00
2021-08-05 14:10:53 +02:00
2021-07-21 11:53:42 +02:00
2019-05-03 17:17:58 +02:00
2021-07-27 09:39:21 +02:00
2021-07-08 22:12:17 +02:00
2021-08-05 14:10:53 +02:00
2021-11-09 10:02:49 -08:00
2021-10-19 15:39:53 +02:00
2021-08-03 14:31:40 +02:00
2020-11-23 12:01:12 +01:00
2020-09-30 12:09:54 +02:00
2021-02-10 23:34:16 +01:00
2020-06-09 09:39:13 -07:00
2020-03-11 14:18:44 +01:00
2019-06-04 15:03:18 +02:00
2021-03-08 10:46:27 +01:00
2021-05-07 00:26:34 -07:00
2021-07-27 09:39:13 +02:00
2021-02-24 00:31:22 +01:00
2019-04-29 10:47:01 +02:00
2021-06-18 16:41:19 +02:00
2019-02-05 14:29:23 +01:00
2021-10-11 20:55:58 +02:00
2021-06-18 16:41:19 +02:00
2020-12-29 15:36:49 -08:00
2021-10-20 13:09:47 -05:00
2021-11-18 17:50:07 +01:00
2021-07-30 17:09:02 +02:00
2021-09-30 21:24:06 -04:00
2021-09-07 13:40:51 -07:00
2021-08-25 11:03:35 +02:00
2021-08-05 14:10:53 +02:00
2021-10-11 20:55:58 +02:00
2021-10-26 15:21:29 +02:00
2019-08-26 12:51:18 +02:00
2021-10-04 11:47:24 +02:00
2021-06-07 17:06:59 +02:00
2020-04-04 09:45:50 -07:00
2021-08-03 14:31:40 +02:00
2021-07-05 12:44:23 +02:00
2021-10-26 15:21:29 +02:00
2019-05-02 13:54:11 +02:00
2020-02-27 16:02:21 +01:00
2021-08-18 10:01:28 +02:00
2020-09-14 10:30:07 +02:00
2021-08-25 11:03:34 +02:00
2019-07-11 20:40:02 +02:00
2020-05-14 23:21:37 +02:00
2021-11-08 14:17:49 +01:00
2021-06-28 11:18:28 +02:00
2019-11-30 10:52:44 +01:00
2021-07-01 11:06:03 -07:00
2021-11-06 14:48:06 -07:00
2019-08-21 12:58:53 +02:00
2019-02-07 18:06:18 -08:00
2021-07-08 22:12:18 +02:00
2021-10-15 11:25:14 +02:00
2020-09-14 11:38:35 +02:00
2021-10-26 15:21:28 +02:00
2018-07-06 08:47:51 +02:00
2021-10-25 13:58:19 +01:00
2021-10-26 15:21:28 +02:00
2021-02-09 15:57:04 +01:00
2020-11-20 11:16:35 -08:00
2021-11-06 13:30:38 -07:00
2021-07-30 17:09:01 +02:00
2021-10-26 15:21:31 +02:00
2021-06-18 16:41:22 +02:00
2021-09-07 13:38:41 +02:00
2021-07-08 22:12:18 +02:00
2021-03-28 20:23:54 +02:00
2021-10-30 16:37:28 +02:00
2021-09-07 13:38:27 +02:00
2020-09-26 15:51:21 +02:00
2021-10-26 15:21:30 +02:00
2021-01-19 12:29:27 +01:00
2021-09-14 16:06:20 +02:00
2021-10-11 20:55:58 +02:00
2021-09-30 16:12:51 +02:00
2021-06-28 11:18:28 +02:00
2021-01-19 12:29:25 +01:00
2020-09-30 12:09:54 +02:00
2020-08-11 18:16:35 +02:00
2021-06-07 17:07:01 +02:00
2021-06-18 16:41:21 +02:00
2021-09-08 15:32:35 -07:00
2019-07-23 10:45:53 +02:00
2021-09-07 13:38:27 +02:00
2021-10-27 07:55:53 +02:00
2021-07-08 15:37:28 +02:00
2019-12-10 10:12:55 +01:00
2019-04-10 17:47:09 +02:00
2021-01-19 12:29:26 +01:00
2020-09-30 12:09:54 +02:00
2019-02-07 11:57:10 +01:00