Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1598046ybh; Mon, 20 Jul 2020 02:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6oNoLnN7VqUjiHGtfTgTS05J19XW9tYLfGaqvn3To5d9WPfbK1mzPerXQP7sXmyvpmhAS X-Received: by 2002:a50:d9cb:: with SMTP id x11mr19726129edj.93.1595237029412; Mon, 20 Jul 2020 02:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595237029; cv=none; d=google.com; s=arc-20160816; b=w12b/I+6tGbRGQpnO5E355ET6xmnNdbknsZy6cFa+mTB9JvzFl28Rp7VxU52T2oZ0+ k9+v6CdimNCC5rZ9VVx2L0tr/NALT7ttoBOi4IEJQdXsC/fzmNjP7YesLli9gfKYnk7u Z+9Wsit6jGSSN0yd8xf3Ws3X5zO+WphkVxFu2qJIOON1/Hf8cimCvOrweScbzfV7/0eB j5mPxbrPEu2Y/jn4BfU8gOVs1OzJN/K5xjjLBw+pvkS11DD6YV+gn9ldzC+hfpT0+NAB hmourlYsdcf36MFJbfIrbqbv1vVB1OHcp6byytG9bbyrjCOPoW1xqsupl+BSrbL/YOiG 4XMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=g9BNAc85U7zjpSEDSfX62xvbyUEcp+gIOP471mP4nTA=; b=RbLfr/fKbklEZmNC7JA3/g3+AtX99+NnNJwqwK7L/8IAmoHgR9hUL88wwMHt/ZR3BN QT76Y7W7sC52kFzp4U7Lz03SF0ZAnwPC33nkR1EdzEVgQhWmpJT5Ec6spwLXlbv/QxPV XKv2+LMUsPJtUCZ7k4OyKq6fJhV0SBQgGKrZVVz2ys+4GjkBHFuartEuGT1Qo5eeLQjB Ld7ugCYfvotPAzB2VxMeqatsNhVvuw6xLxnEbdq/nYD7yfS1ulpMCHq3LNrmKoIa1t1z KWvsIplYrhVgClfA4buFKOC2Tjfxhj4kNarbnyw8zhnoldecL2SlmyFT6zp87idfAiU0 D9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="jm0wsL/N"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt13si9996011ejb.297.2020.07.20.02.23.25; Mon, 20 Jul 2020 02:23:49 -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=@linutronix.de header.s=2020 header.b="jm0wsL/N"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728091AbgGTJXQ (ORCPT + 99 others); Mon, 20 Jul 2020 05:23:16 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56320 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728017AbgGTJXQ (ORCPT ); Mon, 20 Jul 2020 05:23:16 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595236993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g9BNAc85U7zjpSEDSfX62xvbyUEcp+gIOP471mP4nTA=; b=jm0wsL/NI+UtXEk9215WIQhOEpwW4iQZptuYBnRfUdN9VoE0HgdaQQciiNlYcYG6WkvR/F NxMF7kCpLhkU2Nw8tqyG7jHj0dltSxf57M9+WzCOHOCwEZufuEbt7v1j7neTIMsLjirP0R df1nWCPIY+LYytI1h5+2XP0nn0Y+6nRwtOHk7rPMFJZwhMyADGZ+M+IlyroTyryi7SzRZ/ 7YnJcBpxisaMFjqLA4/N9AkE0H0OQcrh6K/zLhHox/5JHAY57WDLbKF9Z/JJ43+GhKk53b VLIB++aFNksw2F9hRxu7IfjiCh8uzvulz2EZX+fB2YG06C1KpDZC0iHYsC3t7g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595236993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g9BNAc85U7zjpSEDSfX62xvbyUEcp+gIOP471mP4nTA=; b=PhOAz/NPRfnvR/VW+21DZgtdobYVbCKiQuopwntd9GWEaikRV4Y6q7S5ncz/S60pmTn2dD vvQMaYZ5uDN+f1Bg== To: Andy Lutomirski , Gabriel Krisman Bertazi Cc: LKML , kernel@collabora.com, Matthew Wilcox , Andrew Lutomirski , Paul Gofman , Kees Cook , "open list\:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Subject: Re: [PATCH v4 1/2] kernel: Implement selective syscall userspace redirection In-Reply-To: References: <20200716193141.4068476-1-krisman@collabora.com> <20200716193141.4068476-2-krisman@collabora.com> Date: Mon, 20 Jul 2020 11:23:13 +0200 Message-ID: <874kq2o7zy.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski writes: > On Thu, Jul 16, 2020 at 12:31 PM Gabriel Krisman Bertazi > wrote: > The amount of syscall entry wiring that arches need to do is IMO > already a bit out of hand. Should we instead rename TIF_SECCOMP to > TIF_SYSCALL_INTERCEPTION and have one generic callback that handles > seccomp and this new thing? The right way to go is to consolidate all the stupidly different entry/exit work handling implementations and have exactly one in generic code, i.e. what I posted a few days ago. Then we can make new features only available in the generic version by hiding the new functionality in the core code and not exposing the functions to architecture implementations. Making it easy for architectures to keep their own variant forever just proliferates the mess we have right now. Thanks, tglx