lkml.org 
[lkml]   [2018]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subjectx86/clearregs: Register sanitizing at kernel entry for speculation hygiene
    Date
    This patch kit implements clearing of all unused registers on kernel entries,
    including system calls and all exceptions and interrupt.

    This doesn't fix any known issue, but will make it harder in general
    to exploit the kernel with speculation because it will be harder
    to get user controlled values into kernel code.

    The patchkit is a bit more complicated because it attempts to clear
    unused argument registers, which requires on 64bit to know how
    many arguments each system call has. I used some scripting
    to derive the number of system calls from the SYSCALL_DEFINE*s
    and add it to the x86 system call tables.

    Everything else is relatively simple and straight forward,
    and could be used independently.

    I assume this mostly isn't 4.15 material, but should be considered for 4.16
    Possibly some of the simpler patches could be considered for 4.15

    Original patches were from Tim Chen, but changed significantly
    by AK.

    git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git spec/clearregs-1

    v1: Initial post

    \
     
     \ /
      Last update: 2018-01-14 23:20    [W:4.039 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site