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