Skip to content

Commit

Permalink
x86,traps: #DF IST stack has to be mapped in user page tables
Browse files Browse the repository at this point in the history
In order to handle #DF triggered by usermode, the IST stack needs
to be present in the user pagetables.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Aug 24, 2023
1 parent c351a82 commit 0fbcdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void init_tss(percpu_t *percpu) {
percpu->tss.cr3 = _ul(cr3.reg);
#elif defined(__x86_64__)
percpu->tss.rsp0 = _ul(get_free_page_top(GFP_KERNEL | GFP_USER));
percpu->tss.ist[0] = _ul(get_free_page_top(GFP_KERNEL));
percpu->tss.ist[0] = _ul(get_free_page_top(GFP_KERNEL | GFP_USER));
#endif
percpu->tss.iopb = sizeof(percpu->tss);

Expand Down

0 comments on commit 0fbcdca

Please sign in to comment.