Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp915pxu; Sat, 21 Nov 2020 20:03:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdqQQqTd7SgFkLGS4ajsZHYQZ3EKEkY1HW8BF18qdTflknqCJVBV6uTAi2TqDbipmL4tuG X-Received: by 2002:a17:906:a195:: with SMTP id s21mr37542369ejy.146.1606017816168; Sat, 21 Nov 2020 20:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606017816; cv=none; d=google.com; s=arc-20160816; b=Nq9ov15RZvdU4FsBMd7uX4NHJesXg94WIoESxmddhkooCEq+JLLSnhnYk3wRHm6j1t YWma1dYXnfecB0p68xL0S7TfWyoSgeet2rdDmyhegVDv5ho2+SKKuIvqjCEcxYtjB05x APPzq/7JfQ9AyQ14Ac2MI7P+UP8OfK1GqKUIAry8vSEsY48w9lKbXlQFvm0Mhl/BDIg3 BmBW+HKtk1Gp/qhXoiewhwttyxDmk/eJ6UC2ANEJc+RWthz92NgizHA6htB4PVvcfWHm wvzhDvJBYe9sk0gHzzD52GUTDkxjYTM9EogM8RwEwrGfSON/PwQPYsc3CtjGBUSDhf3y xJig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bv3H194m/hnmBEVdRGE8Qj7MxuK1aGdSzZsaOTB1Xmo=; b=axt8IPUJbWRn5PhSoZsIMrI2TEcABXH5hVno4/6vYAUE11e3lt4TwUWWSbd7BY1ZFP fjQzlbMoGBUPKruGaRuiQEF0CF9hblhczgLen18HE89vvx7QSsZ1mzAenz33a8ACa2qh BEc1pyHEc8galUMvlfc5NbGypDbC4biRi1L7YuXPirDiXgzJCE3Z0plyM6KXaILUrRXN hrTBxPMApVPBF+VoPClJn0T+POlyteka4lp1IICZH+AfcmZ32btkFK1Dsr/bzpUNIDqr VCRP0fwiAbmc/VQ3PkspT5NQplyXdAL/p5KKLyLAQjXhdHWb2HPizK1oO9hc5VSmx86p 830g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="2kk/o/n2"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr14si2150968ejc.396.2020.11.21.20.03.13; Sat, 21 Nov 2020 20:03:36 -0800 (PST) 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=@kernel.org header.s=default header.b="2kk/o/n2"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727141AbgKVEB3 (ORCPT + 99 others); Sat, 21 Nov 2020 23:01:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:50588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbgKVEB3 (ORCPT ); Sat, 21 Nov 2020 23:01:29 -0500 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5225820936 for ; Sun, 22 Nov 2020 04:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606017688; bh=LnEcfZ7EAuRy2LnECDQWn5gnjgsq8GFNBn8ODQ8+JHw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=2kk/o/n2UXsfdST6NrShZUKZx/bEouQTk/Uf/iK4FXK6jujwtSM0cvU5mDUlhoiCm JloGw20EL2XYMwmQM/5np5luC2U+XCYoz98vRUDswUQp7TGa3gY7ZKvEEu0wzGk+qN 1iCMFoIYtVZmO9fucvcghC0ljetLapqj1o2Vvfb8= Received: by mail-wr1-f54.google.com with SMTP id p8so15018381wrx.5 for ; Sat, 21 Nov 2020 20:01:28 -0800 (PST) X-Gm-Message-State: AOAM530tbLiUkv8YEwrJbf2RLJ0y2Whd+5VykegBHjlIf6hoKQuK9sMn UpWkfsEMembFkqvi2fOmD7z9bdUrRM8Qh+SNvQ5eQw== X-Received: by 2002:a5d:4e87:: with SMTP id e7mr5785186wru.70.1606017686782; Sat, 21 Nov 2020 20:01:26 -0800 (PST) MIME-Version: 1.0 References: <20201118032840.3429268-1-krisman@collabora.com> <20201118032840.3429268-4-krisman@collabora.com> <87a6vdmedy.fsf@collabora.com> <202011201618.62E507D@keescook> In-Reply-To: <202011201618.62E507D@keescook> From: Andy Lutomirski Date: Sat, 21 Nov 2020 20:01:10 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 3/7] kernel: Implement selective syscall userspace redirection To: Kees Cook Cc: Gabriel Krisman Bertazi , Andrew Lutomirski , Rich Felker , Thomas Gleixner , Christian Brauner , Peter Zijlstra , Matthew Wilcox , Shuah Khan , LKML , Linux API , "open list:KERNEL SELFTEST FRAMEWORK" , X86 ML , Paul Gofman , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 4:18 PM Kees Cook wrote: > > On Thu, Nov 19, 2020 at 12:43:05PM -0500, Gabriel Krisman Bertazi wrote: > > The existing interface could be extended with a flags field as part of > > the opcode passed in argument 2, which is currently reserved, and then > > return a FD, just like seccomp(2) does. So it is not like the current > > patches couldn't be extended in the future if needed, unless I'm > > mistaken. > > Yes, I'd prefer this series go in as-is, and if there is a need for > extending the API, arg2 can have more values added. I agree. > > -- > Kees Cook