File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,16 @@ extern bool __vmalloc_start_set; /* set once high_memory is set */
50
50
((FIXADDR_TOT_START - PAGE_SIZE * (CPU_ENTRY_AREA_PAGES + 1)) \
51
51
& PMD_MASK)
52
52
53
- #define PKMAP_BASE \
53
+ #define LDT_BASE_ADDR \
54
54
((CPU_ENTRY_AREA_BASE - PAGE_SIZE) & PMD_MASK)
55
55
56
+ #define PKMAP_BASE \
57
+ ((LDT_BASE_ADDR - PAGE_SIZE) & PMD_MASK)
58
+
56
59
#ifdef CONFIG_HIGHMEM
57
60
# define VMALLOC_END (PKMAP_BASE - 2 * PAGE_SIZE)
58
61
#else
59
- # define VMALLOC_END (CPU_ENTRY_AREA_BASE - 2 * PAGE_SIZE)
62
+ # define VMALLOC_END (LDT_BASE_ADDR - 2 * PAGE_SIZE)
60
63
#endif
61
64
62
65
#define MODULES_VADDR VMALLOC_START
Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ enum address_markers_idx {
122
122
VMALLOC_END_NR ,
123
123
#ifdef CONFIG_HIGHMEM
124
124
PKMAP_BASE_NR ,
125
+ #endif
126
+ #ifdef CONFIG_MODIFY_LDT_SYSCALL
127
+ LDT_NR ,
125
128
#endif
126
129
CPU_ENTRY_AREA_NR ,
127
130
FIXADDR_START_NR ,
@@ -135,6 +138,9 @@ static struct addr_marker address_markers[] = {
135
138
[VMALLOC_END_NR ] = { 0UL , "vmalloc() End" },
136
139
#ifdef CONFIG_HIGHMEM
137
140
[PKMAP_BASE_NR ] = { 0UL , "Persistent kmap() Area" },
141
+ #endif
142
+ #ifdef CONFIG_MODIFY_LDT_SYSCALL
143
+ [LDT_NR ] = { 0UL , "LDT remap" },
138
144
#endif
139
145
[CPU_ENTRY_AREA_NR ] = { 0UL , "CPU entry area" },
140
146
[FIXADDR_START_NR ] = { 0UL , "Fixmap area" },
@@ -609,6 +615,9 @@ static int __init pt_dump_init(void)
609
615
# endif
610
616
address_markers [FIXADDR_START_NR ].start_address = FIXADDR_START ;
611
617
address_markers [CPU_ENTRY_AREA_NR ].start_address = CPU_ENTRY_AREA_BASE ;
618
+ # ifdef CONFIG_MODIFY_LDT_SYSCALL
619
+ address_markers [LDT_NR ].start_address = LDT_BASE_ADDR ;
620
+ # endif
612
621
#endif
613
622
return 0 ;
614
623
}
You can’t perform that action at this time.
0 commit comments