File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -159,15 +159,12 @@ void __init kasan_init(void)
159
159
* vmemmap_populate() has populated the shadow region that covers the
160
160
* kernel image with SWAPPER_BLOCK_SIZE mappings, so we have to round
161
161
* the start and end addresses to SWAPPER_BLOCK_SIZE as well, to prevent
162
- * kasan_populate_zero_shadow() from replacing the PMD block mappings
163
- * with PMD table mappings at the edges of the shadow region for the
164
- * kernel image.
162
+ * kasan_populate_zero_shadow() from replacing the page table entries
163
+ * ( PMD or PTE) at the edges of the shadow region for the kernel
164
+ * image.
165
165
*/
166
- if (ARM64_SWAPPER_USES_SECTION_MAPS ) {
167
- kimg_shadow_start = round_down (kimg_shadow_start ,
168
- SWAPPER_BLOCK_SIZE );
169
- kimg_shadow_end = round_up (kimg_shadow_end , SWAPPER_BLOCK_SIZE );
170
- }
166
+ kimg_shadow_start = round_down (kimg_shadow_start , SWAPPER_BLOCK_SIZE );
167
+ kimg_shadow_end = round_up (kimg_shadow_end , SWAPPER_BLOCK_SIZE );
171
168
172
169
kasan_populate_zero_shadow ((void * )KASAN_SHADOW_START ,
173
170
(void * )mod_shadow_start );
You can’t perform that action at this time.
0 commit comments