Could we do something for KSPP?
Hi
Quoted 17 lines · Kees Cook
Quoted 3 lines · Li Kun
Hi Kees,
My name is Li Kun, from a new formed Huawei kernel security team.
Hi! Thanks for the email. Feel free to email the [email protected] list to make a similar introduction.
Quoted 9 lines
My companion and me have been working on kernel and arm64 for sevral years,but don't have much experiences in kernel security yet.
We have studied Pax&Grsecurity for few months , and have seen that there is much progress in KSPP recently.
I'm wondering that if there is something we can do for KSPP? Maybe we can implement the "vmalloc kernel stack for arm64" or
Quoted 7 lines
Quoted 2 lines
"fast refcount overflow protection for arm64" or if you have some suggestions ,please let me know.
I think either of these would be great. Mark Rutland mentioned in private to me that AKASHI Takahiro had been working a bit on
VMAP_STACKfor arm64, but that they had issues with catching over/under-flows. Perhaps send an email to the public list with them CCed asking on the status and how you can help?
Thank you for the information :)
I will send another email to discuss this and see what can i do.
Quoted 8 lines
Quoted 3 lines
The vmapping itself is simple, and we don't need to do anything special there. IIRC Takahiro-san had done some tests with
HAVE_ARCH_VMAP_STACK, and there weren't any obvious problems.As for refcount overflow protection, the starting point is likely the arm protection in the last public grsecurity patch, which is discussed here:
https://forums.grsecurity.net/viewtopic.php?f=7&t=4173#ARM
Quoted 5 lines
For the refcount implementation, though, it'll likely need tweaking to be a _refcount_ protection rather than a generalized
atomic_tprotection, which is what grsecurity uses. Since upstream is splitting outrefcount_tfromatomic_t, we can actually be a little bit tighter in how the checks are performed.
I noticed that you have send a patch set of fast refcount overflow protection as below.
I think it is nearing accomplishment if i haven't get it wrong. Maybe i can do the job on arm64 based on your latest patch set?
Thank you very much!
Quoted 8 lines
Please follow up on the public mailing list; the more people involved the better. :)
Thanks for reaching out!
-Kees
Signature · 2 lines
Best Regards Li Kun
Quoted 7 lines · Li Kun
I noticed that you have send a patch set of fast refcount overflow protection as below.
I think it is nearing accomplishment if i haven't get it wrong. Maybe i can do the job on arm64 based on your latest patch set?
It's certainly getting close. I'll post a v6 version for x86 soon here, but if you want to start from v5, I think it should be relatively easy to update it to match what gets accepted for x86.
Thanks!
-Kees
Signature · 2 lines
Kees Cook Pixel Security