Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4190447pxk; Tue, 22 Sep 2020 12:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVZrhtTc4lk9rhiP3gdZjE717T5XhKnBL0HXar++4CmKJddDa340PsepFVLig3Cob6zylq X-Received: by 2002:a17:906:b47:: with SMTP id v7mr6438293ejg.310.1600803569514; Tue, 22 Sep 2020 12:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600803569; cv=none; d=google.com; s=arc-20160816; b=qB1nh3GgZpfLxBL1aJuX0LywDRd2njNSwrp6sz2KpngZCDXQGvYRy2EkM99b/6UWZY U+xbmysdtv6aht+k29NgnPuR9g8jMcLWWr8jZyEc4qw2G5kNtHKP/mCm+W/o1mFNogy7 jqZSxwq9q50STnx0p+xYYHf8Nsda0CQzL28IhylYBNW3g36YXpm8IcIJWEO7V9NPSnQE dDlpqlU8eePVP91cEh0jGvIjx0PLgyuovYi09rTdRJzqcxWp4KNEsTM8aIG3oQL9LOS4 fIn2ssXQinwxmNnBRVEdvCx2o/GSolFaQ5/h/Hw1m1RRqz6ucnHYIGiQQJrHYEuzyRne ihDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VoNsN4gNoyVIa9dngp5daYP4L9xdQNJFl/CtG0+h+Ss=; b=K1GIWjvXOhEDWyG3N4ENYSWkTeWDFWsHvGarJjo8EpLI2pMXahSFJXJDJgUvnBFNE+ sSbPIHdNPid5w6C+W+afglfYcdb9v8MPwIU36OqteY893tqQuAJzXmT3FYKxKM2P/hfr 2JuxIX/PA8qLm+zkS2IMygtlhNCYFbxJMNMnMoLH7CnuvmjKMgD9tdVr7IpckcFDJpre E3s9DfH9r9PXXHxkdTS1PTlRyi+gFMyo3qWb8+ZviwWdNxpzhp/z7YIkBHnabtNN1CZg BYXVwusJXVVjnaVnfOcoS42jbHoCvmzh+uDsarSK8YGaPIlKD027Scm1LBGqEqPyGfJP 1gVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fEKFgp4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si11394974ejk.522.2020.09.22.12.39.03; Tue, 22 Sep 2020 12:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fEKFgp4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbgIVThF (ORCPT + 99 others); Tue, 22 Sep 2020 15:37:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbgIVThE (ORCPT ); Tue, 22 Sep 2020 15:37:04 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555B3C0613D0 for ; Tue, 22 Sep 2020 12:37:04 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id gf14so1934976pjb.5 for ; Tue, 22 Sep 2020 12:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VoNsN4gNoyVIa9dngp5daYP4L9xdQNJFl/CtG0+h+Ss=; b=fEKFgp4I7N40Nzy6tgs8G5ZG/FVMRNy9LK/zAR9yCffVDCzwFkpclAKN7CrCo6SnuB Mhwrh3TYxcXCS86vuzMWkG/ZoaLgqPC1SYRA26QUSKPHIKKdhBrPaAHOqiC7zeUOIGtN 6iW/8+otolDASDMvHpUoLjZbgqkXBbxL5oPHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VoNsN4gNoyVIa9dngp5daYP4L9xdQNJFl/CtG0+h+Ss=; b=aBISJupiGH6kHvQTNwgGYPLztkLpOEkoSdWxptsNhy3oybwCXIN4/myefCUbaJvZda RHWpwp5xHbDg25DYEw0mRukJTGMMW2cQ8B7O/bGgS5vAE1PVF9IhHyOdKn6a2a+7GIT0 9utgEkCrlmRE3aE8HgCYLp2x+GNHsb0qYXqchZLaOdo0xIyJULcoKYgWVfz9TvCPkr+m A4Dh5zwzOPoe+hXc0p8V3XAySdTFN4Dn+yIxTu1o5iUiw14ZAFE0I+mqi+tdv0j5trL0 SU//pX47s0quBDaub8gLSbPNdDQI+dkhljmohxgEhSPHu2v2PzDKKamCpsaDwGRbe+0R suFw== X-Gm-Message-State: AOAM53327ZqEHsAIQzMTdt1Ixs3O5OZQj5CkjPTmjGC6VFuZHEfoEJWu mKcIdkXD2Qrhe3e+KuQ+KaPWiQ== X-Received: by 2002:a17:90b:4ac2:: with SMTP id mh2mr202994pjb.210.1600803423915; Tue, 22 Sep 2020 12:37:03 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d6sm3319328pjw.0.2020.09.22.12.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 12:37:03 -0700 (PDT) Date: Tue, 22 Sep 2020 12:37:02 -0700 From: Kees Cook To: Gabriel Krisman Bertazi Cc: luto@kernel.org, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, willy@infradead.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, kernel@collabora.com Subject: Re: [PATCH v6 7/9] x86: Enable Syscall User Dispatch Message-ID: <202009221236.04AA334C2@keescook> References: <20200904203147.2908430-1-krisman@collabora.com> <20200904203147.2908430-8-krisman@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200904203147.2908430-8-krisman@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 04, 2020 at 04:31:45PM -0400, Gabriel Krisman Bertazi wrote: > Syscall User Dispatch requirements are fully supported in x86. This > patch flips the switch, marking it as supported. This was tested > against Syscall User Dispatch selftest. > > Signed-off-by: Gabriel Krisman Bertazi > --- > arch/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 7101ac64bb20..56ac8de99021 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -150,6 +150,7 @@ config X86 > select HAVE_ARCH_COMPAT_MMAP_BASES if MMU && COMPAT > select HAVE_ARCH_PREL32_RELOCATIONS > select HAVE_ARCH_SECCOMP_FILTER > + select HAVE_ARCH_SYSCALL_USER_DISPATCH Is this needed at all? I think simply "the architecture uses the generic entry code" is sufficient to enable it. (Especially since there's a top level config for SYSCALL_USER_DISPATCH, it feels like overkill). -- Kees Cook