Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp213976imu; Wed, 12 Dec 2018 15:17:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNlilXek7PZ4V3LryODOif6C8AA3xKRddazVoa4qsyjyWuUP0X/JnCgGeIvItaUaqs7l11 X-Received: by 2002:a63:2222:: with SMTP id i34mr18288991pgi.83.1544656666789; Wed, 12 Dec 2018 15:17:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544656666; cv=none; d=google.com; s=arc-20160816; b=VQp2m7Mk4JZf7Jb66snodEPekHGds0d+4g+tr6/wyhxCzqdnCjwQi9oqDv+oGLNQhp 3WmfmdPWpjY4Ovw9UCH+TWjItMc1DgQNVXqDc3LwtWV3oZ/uJhpkwvzy2BDkDYDi54IN dpEXceBrcgwO8vb2d4cKcWVSRGbmsscPInYnfLi6i4pblsIux2LVzEpWzvROawiJpSk2 FIDZnso2GCdjRFLSGpdt0TbMV0ruGXatFkCqSASYqKdXZB8CXthIcT32xUoMiOnxpeaB 7faa89MdThIt3iRvdxm2Mf929KJl/rbSAcUFx9BzAU4CypPRHTBJ46YtskffhVMicu8I CPKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=DXa5uRlh0huHpXYItEvyQ55WkZSxKksF2U/9xlrXEhE=; b=IBHrQDuqpc4ax8pocagAWpDq9JM3GjWM9XjJFlZpruShukicp8V1Q2lUF3ReRLIURs 7FgjRAh1IOPhG44g1DmcaPo7RDMX8JnVmDzXYzsXEWt6YeSy4jjCwt+fv45bFlK8xcFP EuNjTGCc0f0ktbQZpX9m3hx2Wn8iVaRR8ahqh8mm1ska6V0TNywMBpX7U2B4jL2pzF61 mnfP+tp5Jb5sM8BdAKoF/cs8E5z02l0RB+npcL15VpudutRGFkkvDEjs1gQ5MiyfNs9W OlrOR2NSfNopzBveioSaeGA0/zHjAdKUVh8s2VvwOWEOEGZ6vZ7zct6nsagc0vIxR0uJ evtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Uxyanzt/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si101949pfg.185.2018.12.12.15.17.31; Wed, 12 Dec 2018 15:17:46 -0800 (PST) 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=@chromium.org header.s=google header.b="Uxyanzt/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728127AbeLLXQd (ORCPT + 99 others); Wed, 12 Dec 2018 18:16:33 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46360 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbeLLXQc (ORCPT ); Wed, 12 Dec 2018 18:16:32 -0500 Received: by mail-pl1-f196.google.com with SMTP id t13so50138ply.13 for ; Wed, 12 Dec 2018 15:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=DXa5uRlh0huHpXYItEvyQ55WkZSxKksF2U/9xlrXEhE=; b=Uxyanzt/1LLMVqY1nRIbCKsfg/E8J2Lq1SwLx+a6hgZ8kpgX6+APE9dBMe+D30dWoH sEwDoP9N/j0Q+aSJeiKGfZzUJZeiXy+t9b6CwBugvLek3I39/YQ4Gsbol4M82guCPNTF Zin/KP98mrDIIjxd6CMmqGQdw8d/Hldg5hqdw= 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:mime-version :content-disposition; bh=DXa5uRlh0huHpXYItEvyQ55WkZSxKksF2U/9xlrXEhE=; b=EA7EMSOAoG7Nc/iwwWbcZJWI/g5bYfI8vVjV52UuQl1jcP3jQLy0BiLuJvB0Cl8QgN fMZETZ8H49TSnwfRQvNxK8TUFAhQyxmXQX6gd2p8S8F+DHZ13/5XLyPLmG/305YD1759 J6xbIH1kpiWg2IXKLLnm4HfESljC2kwqoFFgL1Oto/3qPzjRF01gTpBmeGFrb4u19iu3 yU+OrDm5yzejoeftu1jaP5okCY0DVp3pi4QC5NwZt1Ark1I9aoHNiuFaoRHHREnikvK/ m4XsZCExiC4IFdB7rGza5Zjp+Suzqoif/vdR9b5+TJFsdY43KubQiYd9CkouX1ST5SxG xEBA== X-Gm-Message-State: AA+aEWamZs5voige7l86c+fxJU1dvyqhce0lmb6leEJO1rhdAyhfTtlw Q2PIV0c7a+1Jmn4P9WYSsWuJkw== X-Received: by 2002:a17:902:298a:: with SMTP id h10mr21848274plb.312.1544656591982; Wed, 12 Dec 2018 15:16:31 -0800 (PST) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id t24sm117262pfh.21.2018.12.12.15.16.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Dec 2018 15:16:31 -0800 (PST) Date: Wed, 12 Dec 2018 15:16:30 -0800 From: Kees Cook To: James Morris Cc: linux-kernel@vger.kernel.org, Kees Cook , Serge Hallyn , Tycho Andersen Subject: [GIT PULL] seccomp updates for next Message-ID: <20181212231630.GA31584@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, Please pull these seccomp changes for next. Thanks! -Kees The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/seccomp-next for you to fetch changes up to fec7b6690541b8128663a13c9586b1daf42b0a6c: samples: add an example of seccomp user trap (2018-12-11 16:32:11 -0800) ---------------------------------------------------------------- Add SECCOMP_RET_USER_NOTIF ---------------------------------------------------------------- Tycho Andersen (4): seccomp: hoist struct seccomp_data recalculation higher seccomp: switch system call argument type to void * seccomp: add a return code to trap to userspace samples: add an example of seccomp user trap Documentation/ioctl/ioctl-number.txt | 1 + Documentation/userspace-api/seccomp_filter.rst | 84 +++++ include/linux/seccomp.h | 9 +- include/linux/syscalls.h | 2 +- include/uapi/linux/seccomp.h | 40 ++- kernel/seccomp.c | 468 ++++++++++++++++++++++++- samples/seccomp/.gitignore | 1 + samples/seccomp/Makefile | 7 +- samples/seccomp/user-trap.c | 375 ++++++++++++++++++++ tools/testing/selftests/seccomp/seccomp_bpf.c | 447 ++++++++++++++++++++++- 10 files changed, 1411 insertions(+), 23 deletions(-) create mode 100644 samples/seccomp/user-trap.c -- Kees Cook