|
|
52efa0 |
From c477b04aee34d4f4784c326ed715e91b2c43eb3e Mon Sep 17 00:00:00 2001
|
|
|
52efa0 |
From: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
|
|
|
52efa0 |
Date: Thu, 9 Dec 2021 01:05:07 +0000
|
|
|
52efa0 |
Subject: [PATCH 2/3] defs.h: fix breakage of compatibility of struct
|
|
|
52efa0 |
machdep_table for extension modules
|
|
|
52efa0 |
|
|
|
52efa0 |
Commit <2f967fb5ebd7> ("crash_taget: fetch_registers support") added new
|
|
|
52efa0 |
member get_cpu_reg in the middle of struct machdep_table, which breaks
|
|
|
52efa0 |
compatibility of struct machdep_table for extension modules. As the result,
|
|
|
52efa0 |
crash gcore command results in unexpected behavior, furthermore may cause
|
|
|
52efa0 |
segmentation fault.
|
|
|
52efa0 |
|
|
|
52efa0 |
Fixes: 2f967fb5ebd7 ("crash_taget: fetch_registers support")
|
|
|
52efa0 |
Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
|
|
|
52efa0 |
---
|
|
|
52efa0 |
defs.h | 2 +-
|
|
|
52efa0 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
52efa0 |
|
|
|
52efa0 |
diff --git a/defs.h b/defs.h
|
|
|
52efa0 |
index 7e2a16e34a59..7d3ed78fcd23 100644
|
|
|
52efa0 |
--- a/defs.h
|
|
|
52efa0 |
+++ b/defs.h
|
|
|
52efa0 |
@@ -1013,7 +1013,6 @@ struct machdep_table {
|
|
|
52efa0 |
ulong (*processor_speed)(void);
|
|
|
52efa0 |
int (*uvtop)(struct task_context *, ulong, physaddr_t *, int);
|
|
|
52efa0 |
int (*kvtop)(struct task_context *, ulong, physaddr_t *, int);
|
|
|
52efa0 |
- int (*get_cpu_reg)(int, int, const char *, int, void *);
|
|
|
52efa0 |
ulong (*get_task_pgd)(ulong);
|
|
|
52efa0 |
void (*dump_irq)(int);
|
|
|
52efa0 |
void (*get_stack_frame)(struct bt_info *, ulong *, ulong *);
|
|
|
52efa0 |
@@ -1063,6 +1062,7 @@ struct machdep_table {
|
|
|
52efa0 |
void (*get_irq_affinity)(int);
|
|
|
52efa0 |
void (*show_interrupts)(int, ulong *);
|
|
|
52efa0 |
int (*is_page_ptr)(ulong, physaddr_t *);
|
|
|
52efa0 |
+ int (*get_cpu_reg)(int, int, const char *, int, void *);
|
|
|
52efa0 |
};
|
|
|
52efa0 |
|
|
|
52efa0 |
/*
|
|
|
52efa0 |
--
|
|
|
52efa0 |
2.30.2
|
|
|
52efa0 |
|