On Thu, Jul 16, 2015 at 11:45 AM, Andy Lutomirski <[email protected]> wrote: > On Thu, Jul 16, 2015 at 4:46 AM, Brian Gerst <[email protected]> wrote: >> There is no need to save FS and non-lazy GS outside the 32-bit regs. Lazy GS >> still needs to be saved because it wasn't saved on syscall entry. > > I think I'm missing something. Why can't you just lazy_save_gs into > regs32->gs? > > --Andy
That is probably a better idea. The gs field exists in pt_regs but is unused in lazy mode. Could also change switch_to() to store GS in pt_regs instead of thread.gs, which would simplify ptrace a bit. -- Brian Gerst -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

