Re: [PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-27 Thread Ricardo Neri
On Thu, Oct 26, 2017 at 12:59:55AM -0700, Andy Lutomirski wrote: > On Tue, Oct 3, 2017 at 8:54 PM, Ricardo Neri > wrote: > > fixup_umip_exception() will be called from do_general_protection(). If the > > former returns false, the latter will issue a SIGSEGV

Re: [PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-27 Thread Ricardo Neri
On Thu, Oct 26, 2017 at 12:59:55AM -0700, Andy Lutomirski wrote: > On Tue, Oct 3, 2017 at 8:54 PM, Ricardo Neri > wrote: > > fixup_umip_exception() will be called from do_general_protection(). If the > > former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. > > However, when

Re: [PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-26 Thread Andy Lutomirski
On Tue, Oct 3, 2017 at 8:54 PM, Ricardo Neri wrote: > fixup_umip_exception() will be called from do_general_protection(). If the > former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. > However, when emulation is successful but the

Re: [PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-26 Thread Andy Lutomirski
On Tue, Oct 3, 2017 at 8:54 PM, Ricardo Neri wrote: > fixup_umip_exception() will be called from do_general_protection(). If the > former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. > However, when emulation is successful but the emulated result cannot be > copied to user

[PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-03 Thread Ricardo Neri
fixup_umip_exception() will be called from do_general_protection(). If the former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. However, when emulation is successful but the emulated result cannot be copied to user space memory, it is more accurate to issue a SIGSEGV with

[PATCH v9 25/29] x86/umip: Force a page fault when unable to copy emulated result to user

2017-10-03 Thread Ricardo Neri
fixup_umip_exception() will be called from do_general_protection(). If the former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. However, when emulation is successful but the emulated result cannot be copied to user space memory, it is more accurate to issue a SIGSEGV with