lkml.org 
[lkml]   [2020]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v38 20/24] x86/traps: Attempt to fixup exceptions in vDSO before signaling
On Thu, Sep 24, 2020 at 06:31:28PM +0200, Borislav Petkov wrote:
> On Tue, Sep 15, 2020 at 02:28:38PM +0300, Jarkko Sakkinen wrote:
> > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
> > index 9e5ec861aba0..ebe290a68c36 100644
> > --- a/arch/x86/mm/fault.c
> > +++ b/arch/x86/mm/fault.c
> > @@ -30,6 +30,7 @@
> > #include <asm/cpu_entry_area.h> /* exception stack */
> > #include <asm/pgtable_areas.h> /* VMALLOC_START, ... */
> > #include <asm/kvm_para.h> /* kvm_handle_async_pf */
> > +#include <asm/vdso.h> /* fixup_vdso_exception() */
> >
> > #define CREATE_TRACE_POINTS
> > #include <asm/trace/exceptions.h>
> > @@ -775,6 +776,10 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
> >
> > sanitize_error_code(address, &error_code);
> >
> > + if (fixup_vdso_exception(regs, X86_TRAP_PF, error_code,
> > + address))
>
> No need to break that line.

Thanks, fixed.

> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette

/Jarkko

\
 
 \ /
  Last update: 2020-09-25 01:12    [W:0.140 / U:7.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site