From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Subject: Re: [patch V4 01/15] seccomp: Provide stub for __secure_computing() Date: Tue, 21 Jul 2020 14:21:09 -0700 Message-ID: <202007211421.FE862FEE@keescook> References: <20200721105706.030914876@linutronix.de> <20200721110808.348199175@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200721110808.348199175@linutronix.de> Sender: kvm-owner@vger.kernel.org To: Thomas Gleixner Cc: LKML , x86@kernel.org, linux-arch@vger.kernel.org, Will Deacon , Arnd Bergmann , Mark Rutland , Keno Fischer , Paolo Bonzini , kvm@vger.kernel.org, Gabriel Krisman Bertazi List-Id: linux-arch.vger.kernel.org On Tue, Jul 21, 2020 at 12:57:07PM +0200, Thomas Gleixner wrote: > To avoid #ifdeffery in the upcoming generic syscall entry work code provide > a stub for __secure_computing() as this is preferred over > secure_computing() because the TIF flag is already evaluated. > > Signed-off-by: Thomas Gleixner Acked-by: Kees Cook -- Kees Cook From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731143AbgGUVVL (ORCPT ); Tue, 21 Jul 2020 17:21:11 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59494C061794 for ; Tue, 21 Jul 2020 14:21:11 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x72so60226pfc.6 for ; Tue, 21 Jul 2020 14:21:11 -0700 (PDT) Date: Tue, 21 Jul 2020 14:21:09 -0700 From: Kees Cook Subject: Re: [patch V4 01/15] seccomp: Provide stub for __secure_computing() Message-ID: <202007211421.FE862FEE@keescook> References: <20200721105706.030914876@linutronix.de> <20200721110808.348199175@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200721110808.348199175@linutronix.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Thomas Gleixner Cc: LKML , x86@kernel.org, linux-arch@vger.kernel.org, Will Deacon , Arnd Bergmann , Mark Rutland , Keno Fischer , Paolo Bonzini , kvm@vger.kernel.org, Gabriel Krisman Bertazi Message-ID: <20200721212109.fDA98_Zg0wR6IB1-RNKq_VtqDSYiIcZYxHyAiJEVBkI@z> On Tue, Jul 21, 2020 at 12:57:07PM +0200, Thomas Gleixner wrote: > To avoid #ifdeffery in the upcoming generic syscall entry work code provide > a stub for __secure_computing() as this is preferred over > secure_computing() because the TIF flag is already evaluated. > > Signed-off-by: Thomas Gleixner Acked-by: Kees Cook -- Kees Cook