lkml.org 
[lkml]   [2019]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 07/20] x86/uaccess: Always inline force_valid_ss()
    arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabled

    XXX: move the callsite out of te AC=1 region instead?

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    ---
    arch/x86/kernel/signal.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/x86/kernel/signal.c
    +++ b/arch/x86/kernel/signal.c
    @@ -71,7 +71,7 @@
    * alone. Using this generally makes no sense unless
    * user_64bit_mode(regs) would return true.
    */
    -static void force_valid_ss(struct pt_regs *regs)
    +static __always_inline void force_valid_ss(struct pt_regs *regs)
    {
    u32 ar;
    asm volatile ("lar %[old_ss], %[ar]\n\t"

    \
     
     \ /
      Last update: 2019-03-07 12:55    [W:4.049 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site