Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3468858ybi; Fri, 19 Jul 2019 03:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkytg4mRcyP+XW/c+G6G8o6RtksqqSK54gWYog/iQyO0V4lqaaJNlzpJ4ndKBPPINQrRnY X-Received: by 2002:a17:902:8696:: with SMTP id g22mr54857118plo.249.1563533330202; Fri, 19 Jul 2019 03:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563533330; cv=none; d=google.com; s=arc-20160816; b=F0KxCHoVSjRfHKnda5QALQXHXj1OcUuAYkKOxDZIYo8C3C4+DNxgiQ304yAt6AqLqb TaYC50s5jOckXWSOja/wheNOsf3MiWAsejJQXBgSMBP8idaJuNfixDtT+bBkolxId0bK oP/hL5Jf9BW/mGu6cjluoGzHTiwtMEmkXGm662CkXmLc4PIS69m4TMSTqEYwUraX0j3k AuCiBVzLcWYEoR7rXjXitA7q6/EiMzsAhiwkUk63NB9VHLow8rluJ5KT3BYFnEyZa8Ek 9U22lzZgdGaDdNl+TpUPGowBcAbzmMAgoFrZVi+OfxtYtKkSAbNDbulAxz0utzpinQZl 30UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/54Z+i2NAAKKYqTyaHCknB2yONX433P+mrrcxDIdMKQ=; b=Lr8cmau5CxQMT+svOjAipcskGDgUwkljb6Q+wNzBgl8vlAjwCjZktvNZvA5BXr9Tf8 BIRqfsKOmLRn63EQQfvcuFI3rh1ng5drm4JGIs3z3GFGEKIncAYMmH3lGlZ+QcujCzGr YtYCcEqvBB5ztIb/z03h2fUW4w9HMUroSdIsZEasvkq27M2QELlnpEbx0TOkhkuh7St6 oyL5MfhdWuyOFnfMeu0OErC8zwUlBJdD7nEveH9Q0Ru6Ejdrh85Ar/LITyoDdZyxKqEM t8mWXuEjDNbrOinZq/Q+/UF+FPt/a3DBH3RugQPgV95LRJQ+Pn6gUTk7KGZGwKDYrOtn 1+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=JAjsDhcT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si45761plt.167.2019.07.19.03.48.34; Fri, 19 Jul 2019 03:48:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=JAjsDhcT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727602AbfGSK3w (ORCPT + 99 others); Fri, 19 Jul 2019 06:29:52 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50487 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727520AbfGSK3v (ORCPT ); Fri, 19 Jul 2019 06:29:51 -0400 Received: by mail-wm1-f68.google.com with SMTP id v15so28317368wml.0 for ; Fri, 19 Jul 2019 03:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/54Z+i2NAAKKYqTyaHCknB2yONX433P+mrrcxDIdMKQ=; b=JAjsDhcTKFikvYch2sdYf3M1YIU4lD8gtr6ULD+m66RVXVuqlNpAWJ5aCmwhzsJqfu NYMs/ngfnZnIR8qK+5gnlfw/LTN1DoKaojW4kG3ixmkDG7tw9PX3Gi1H6Z3rJyqaYFRY gtdhUxjOR3aQahCtFDINrBG/OSP8pnsgZFupRZsDuzUdLCVJo0FcPvznY5c5cU461qY8 z6fVQ/+Mbzs3h37QWljm/AYaqqO87pyj8pyd6RorqrMiW7iIeyvakf6A7A7GAM2bH4rw cbSgv5bCTz5aSE0toZ8ZOUCkVQ0c1BjSzCzQ1F1IbaB+eNv/4FBgS3Np35nlQBPDWp48 Qe+g== 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:user-agent; bh=/54Z+i2NAAKKYqTyaHCknB2yONX433P+mrrcxDIdMKQ=; b=J72iJxhMCLbH1SlSOKu77LoViiB3sz7dw91jff+YDyhJyfGwKQXIDPbHxLxxaadZGT v17P9cJ/tNgmpsop61pm2V03Dczx3mt1xNuABIRE/WrcetezxVbWqGbbO1bkATbGsxkN cGXVYnHJjcdNY8CKatML1jFhkn9NFPbI1685ThSNpJoKpZH2nCdMyONSw8nDDqMUSsE4 Ch75Xw3p9BXSLyiuEBrR9P74LTp2D5llVZuW1n4vfAXHfio91qAYsZkDDjNS9CyX8HFl mAWO8yw8aECayHAYWi5MdAuesrlegQUzg72HAwyoI59rpmU30wBGlEAAp74qVvjda7VN Hf/g== X-Gm-Message-State: APjAAAX4cnCowIqFepbURaGhiHFcuvMRP1kNAJbLp2xJYdtljd0H/vzB hZSU0cDafbIBr6NnmsgwukE= X-Received: by 2002:a1c:c145:: with SMTP id r66mr47654238wmf.139.1563532189209; Fri, 19 Jul 2019 03:29:49 -0700 (PDT) Received: from brauner.io ([81.92.17.140]) by smtp.gmail.com with ESMTPSA id v4sm25167633wmg.22.2019.07.19.03.29.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 19 Jul 2019 03:29:49 -0700 (PDT) Date: Fri, 19 Jul 2019 12:29:41 +0200 From: Christian Brauner To: "Dmitry V. Levin" Cc: Arnd Bergmann , Aleksa Sarai , Al Viro , Jeff Layton , "J. Bruce Fields" , David Howells , Shuah Khan , Shuah Khan , Eric Biederman , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Kees Cook , Jann Horn , Tycho Andersen , David Drysdale , Chanho Min , Oleg Nesterov , Aleksa Sarai , Linus Torvalds , containers@lists.linux-foundation.org, alpha , Linux API , linux-arch , Linux ARM , Linux FS-devel Mailing List , linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , linux-m68k , linux-mips@vger.kernel.org, Parisc List , linuxppc-dev , linux-s390 , Linux-sh list , linux-xtensa@linux-xtensa.org, sparclinux Subject: Re: [PATCH v9 08/10] open: openat2(2) syscall Message-ID: <20190719102932.274pvmxnrbjcc6gu@brauner.io> References: <20190706145737.5299-1-cyphar@cyphar.com> <20190706145737.5299-9-cyphar@cyphar.com> <20190718161231.xcno272nvqpln3wj@yavin> <20190719021218.GB18022@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190719021218.GB18022@altlinux.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 19, 2019 at 05:12:18AM +0300, Dmitry V. Levin wrote: > On Thu, Jul 18, 2019 at 11:29:50PM +0200, Arnd Bergmann wrote: > [...] > > 5. you get the same problem with seccomp and strace that > > clone3() has -- these and others only track the register > > arguments by default. > > Just for the record, this is definitely not the case for strace: > it decodes arrays, structures, netlink messages, and so on by default. There sure is value in trying to design syscalls that can be handled nicely by seccomp but that shouldn't become a burden on designing extensible syscalls. I suggested a session for Ksummit where we can discuss if and how we can make seccomp more compatible with pointer-args in syscalls. Christian