lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 10/26] x86, pkeys: notify userspace about protection key faults
    From
    Date
    On 09/22/2015 01:27 PM, Thomas Gleixner wrote:
    >> >
    >> > So I defined all the kernel-internal types as u16 since I *know* the
    >> > size of the hardware.
    >> >
    >> > The user-exposed ones should probably be a bit more generic. I did just
    >> > realize that this is an int and my proposed syscall is a long. That I
    >> > definitely need to make consistent.
    >> >
    >> > Does anybody care whether it's an int or a long?
    > long is frowned upon due to 32/64bit. Even if that key stuff is only
    > available on 64bit for now ....

    Well, it can be used by 32-bit apps on 64-bit kernels.

    Ahh, that's why we don't see any longs in the siginfo. So does that
    mean 'int' is still our best bet in siginfo?




    \
     
     \ /
      Last update: 2015-09-22 22:41    [W:3.471 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site