Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cet/shstk_alloc.c: unable to show content of switched ssp content due… #107

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

xupengfe
Copy link
Contributor

… to kernel protection

Since the v6.5 cycle latest cet userspace shstk patch improvements, switched ssp content will be protected and it makes sense, if code wants to show the switched ssp content, it will get fake segfault like this: "
ssp0 & (-8): 7f5d4efffff8
Segmentation fault (core dumped)
"
Dmesg shows the segfault as following:
"
shstk_alloc[3080]: segfault at 7f5d4e7ff000 ip 0000000000401258 sp 00007ffcd214f180 error 4 in shstk_alloc[401000+1000] likely on CPU 15 (core 3, socket 0) "
So code should not show worked and switched ssp content to avoid fake failure.

…l improvement

Since the v6.5 cycle latest cet userspace shstk patch improvements, switched
ssp content will be protected and it makes sense, if code wants to show the
switched ssp content, it will get fake segfault like this:
"
ssp0 & (-8): 7f5d4efffff8
Segmentation fault (core dumped)
"
Dmesg shows the segfault as following:
"
shstk_alloc[3080]: segfault at 7f5d4e7ff000 ip 0000000000401258 sp 00007ffcd214f180 error 4 in shstk_alloc[401000+1000] likely on CPU 15 (core 3, socket 0)
"
So code should not show worked and switched ssp content to avoid fake failure.

Signed-off-by: Pengfei Xu <[email protected]>
@ysun ysun merged commit 9d381e0 into intel:main Aug 25, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants