diff options
| author | Michael Kelley <[email protected]> | 2025-04-21 16:31:34 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2025-04-25 21:13:53 +0000 |
| commit | 14ae3003e73e777c9b36385a7c86f754b50a1821 (patch) | |
| tree | 35fd7656680c2aeb45f7a314af0cea3854b8cb36 /rust/helpers/io.c | |
| parent | tools/hv: update route parsing in kvp daemon (diff) | |
| download | kernel-14ae3003e73e777c9b36385a7c86f754b50a1821.tar.gz kernel-14ae3003e73e777c9b36385a7c86f754b50a1821.zip | |
Drivers: hv: Fix bad ref to hv_synic_eventring_tail when CPU goes offline
When a CPU goes offline, hv_common_cpu_die() frees the
hv_synic_eventring_tail memory for the CPU. But in a normal VM (i.e., not
running in the root partition) the per-CPU memory has not been allocated,
resulting in a bad memory reference and oops when computing the argument
to kfree().
Fix this by freeing the memory only when running in the root partition.
Fixes: 04df7ac39943 ("Drivers: hv: Introduce per-cpu event ring tail")
Signed-off-by: Michael Kelley <[email protected]>
Reviewed-by: Nuno Das Neves <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'rust/helpers/io.c')
0 files changed, 0 insertions, 0 deletions
