Skip to content

Commit

Permalink
x86/cet: Use symbolic name for #CP
Browse files Browse the repository at this point in the history
Make use of the symbolic name for the #CP vector number instead of
hard-coding its value.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20230413184219.36404-5-minipli@grsecurity.net
Signed-off-by: Sean Christopherson <seanjc@google.com>
  • Loading branch information
minipli-oss authored and sean-jc committed Jun 12, 2023
1 parent f224dba commit 00d585d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x86/cet.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int main(int ac, char **av)
}

setup_vm();
handle_exception(21, handle_cp);
handle_exception(CP_VECTOR, handle_cp);

/* Allocate one page for shadow-stack. */
shstk_virt = alloc_vpage();
Expand Down

0 comments on commit 00d585d

Please sign in to comment.