Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1374495
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Xen-devel] Does __KERNEL_DS serve a purpose? |
| Date | 2016-04-09 00:10 +0200 |
| Message-ID | <rlMLg-2qG-11@gated-at.bofh.it> (permalink) |
| References | <rlste-3DX-47@gated-at.bofh.it> <rlzO2-Ty-27@gated-at.bofh.it> <rlH8S-6t5-35@gated-at.bofh.it> <rlIeC-7gb-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Apr 8, 2016 at 10:12 AM, Paolo Bonzini <pbonzini@redhat.com> wrote: > > > On 08/04/2016 18:00, Andy Lutomirski wrote: >> But %ss can be loaded with 0 on 64-bit kernels. (I assume that >> loading 0 into %ss sets SS.DPL to 0 if done at CPL0, but I'm vague on >> this, since it only really matters to hypervisor code AFAIK.) > > It's even simpler, unless CPL=0 SS cannot be loaded with 0 while in a > 64-bit code segment (SS can never be loaded with 0 if you're not in a > 64-bit code segment). > > Thus indeed SS=0 implies SS.DPL=0 on 64-bit kernels. I think we are stuck with __KERNEL_DS: SYSCALL uses it. Unless we start fiddling with conforming code segments (ugh), I don't think there's a valid GDT layout that doesn't have two flat data segments. Oh well, chalk it up to historical accident.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Does __KERNEL_DS serve a purpose? Andy Lutomirski <luto@kernel.org> - 2016-04-08 02:30 +0200
Re: [Xen-devel] Does __KERNEL_DS serve a purpose? Andrew Cooper <andrew.cooper3@citrix.com> - 2016-04-08 10:20 +0200
Re: [Xen-devel] Does __KERNEL_DS serve a purpose? Andy Lutomirski <luto@amacapital.net> - 2016-04-08 18:10 +0200
Re: [Xen-devel] Does __KERNEL_DS serve a purpose? Paolo Bonzini <pbonzini@redhat.com> - 2016-04-08 19:20 +0200
Re: [Xen-devel] Does __KERNEL_DS serve a purpose? Andy Lutomirski <luto@amacapital.net> - 2016-04-09 00:10 +0200
Re: [Xen-devel] Does __KERNEL_DS serve a purpose? Andrew Cooper <andrew.cooper3@citrix.com> - 2016-04-09 00:40 +0200
csiph-web