[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1909231040270.2003@nanos.tec.linutronix.de>
Date: Mon, 23 Sep 2019 10:40:40 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Peter Zijlstra <peterz@...radead.org>
cc: Andy Lutomirski <luto@...nel.org>,
LKML <linux-kernel@...r.kernel.org>, X86 ML <x86@...nel.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Marc Zyngier <maz@...nel.org>,
Paolo Bonzini <pbonzini@...hat.com>,
kvm list <kvm@...r.kernel.org>,
linux-arch <linux-arch@...r.kernel.org>
Subject: Re: [RFC patch 03/15] x86/entry: Use generic syscall entry
function
On Mon, 23 Sep 2019, Peter Zijlstra wrote:
> On Fri, Sep 20, 2019 at 04:41:03PM -0700, Andy Lutomirski wrote:
> > On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner <tglx@...utronix.de> wrote:
> > >
> > > Replace the syscall entry work handling with the generic version, Provide
> > > the necessary helper inlines to handle the real architecture specific
> > > parts, e.g. audit and seccomp invocations.
> >
> > > - if (work & (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU)) {
> > > - ret = tracehook_report_syscall_entry(regs);
> > > - if (ret || (work & _TIF_SYSCALL_EMU))
> > > - return -1L;
> > > - }
> >
> > Unless I missed something, you lost the _TIF_SYSCALL_EMU abomination.
>
> IIUC that's actually in patch #1.
Correct:
+ if (ti_work & (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU)) {
+ ret = arch_syscall_enter_tracehook(regs);
+ if (ret || (ti_work & _TIF_SYSCALL_EMU))
+ return -1L;
+ }
Powered by blists - more mailing lists