> On Nov 11, 2018, at 3:31 AM, Pavel Machek <pa...@ucw.cz> wrote: > > Hi! > >>> +/* >>> + * State component 12 is Control flow Enforcement kernel states >>> + */ >>> +struct cet_kernel_state { >>> + u64 kernel_ssp; /* kernel shadow stack */ >>> + u64 pl1_ssp; /* ring-1 shadow stack */ >>> + u64 pl2_ssp; /* ring-2 shadow stack */ >> >> Just write "privilege level" everywhere - not "ring". > > Please just use word "ring". It is well estabilished terminology. > > Which ring is priviledge level 1, given that we have SMM and > virtualization support? To the contrary: CPL, DPL, and RPL are very well defined terms in the architecture manuals. “PL” is privilege level. PL 1 is very well defined. SMM is SMM, full stop (unless dual mode or whatever it’s called is on, but AFAIK no one uses it). VMX non-root CPL 1 is *still* privilege level 1. In contrast, the security community likes to call SMM “ring -1”, which is cute, but wrong from a systems programmer view. For example, SMM’s CPL can still range from 0-3. > > Pavel > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) > http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
- Re: [PATCH v5 03/27] x86/fpu/xst... Borislav Petkov
- Re: [PATCH v5 03/27] x86/fpu/xst... Randy Dunlap
- Re: [PATCH v5 03/27] x86/fpu/xstate: Intr... Pavel Machek
- [PATCH v5 10/27] mm/mmap: Prevent Shadow Stack VMA merges Yu-cheng Yu
- [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES system states ... Yu-cheng Yu
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES syste... Borislav Petkov
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES s... Yu-cheng Yu
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAV... Borislav Petkov
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAV... Pavel Machek
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES s... Pavel Machek
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAV... Andy Lutomirski
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add ... Pavel Machek
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES syste... Andy Lutomirski
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAVES s... Yu-cheng Yu
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add XSAV... Andy Lutomirski
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add ... Cyrill Gorcunov
- Re: [PATCH v5 04/27] x86/fpu/xstate:... Andy Lutomirski
- Re: [PATCH v5 04/27] x86/fpu/xst... Cyrill Gorcunov
- Re: [PATCH v5 04/27] x86/fpu/xstate: Add ... Dave Hansen
- Re: [PATCH v5 04/27] x86/fpu/xstate:... Matthew Wilcox
- Re: [PATCH v5 04/27] x86/fpu/xst... Dave Hansen