Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2443566pxk; Mon, 14 Sep 2020 13:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOnSOwbPR6fpcDMjk0zEZ3O3LwBjllOZxin6U4llG7a7woPpN5uXCHacjU7b39bZvmDEx2 X-Received: by 2002:a17:906:f9d8:: with SMTP id lj24mr16956953ejb.379.1600115647903; Mon, 14 Sep 2020 13:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600115647; cv=none; d=google.com; s=arc-20160816; b=OVDhaTJfc620P0bkHsavFFX0NslUvIMeRC8oc5jHJzRU/5EALqy6H8gQpjKZGmgwI4 kiV3Y1gVX/fUcwLd5gYHVTkZMM8HhmvPnq/Nnhle+ywB5Wr1U0AGSIOaa2RPnr1s9UX2 UA2Q6x1O3bhZJ0+Wx2tX/WbZ638AYY69wfX7Hc5/UBdN0ehOJkXbh4isxDrmlDgyDoMI L4P49VyWA+ZrMgkptvGcv7Gbt5AVkBn4WoCNZbk+Dq7JW93/WaEiEKZiBxyzFSmozKzd 9k4xMgomfa5G50GeKn5tUx77KpauZ4HnCglzmK/chvDDNGC/9b0+PcZMSExuKC8pO9q8 3HCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MAegNs4VOwWv9UrQbG/3KsC+fif9tz3H9h+v9DTenlg=; b=DMD+XN1no8CJWbYcXrTlNdvn3DJ+TOigDBIdtyvyGbnjM0Wl6ZJ/i6U89Mxe9C1b06 HgmwOxe7UoYXpkZ9L8cpBlyuzKW9bgbARdu6B2Wy4Xs89zmp34C9Yfs3QR5h12CfTtw4 zIM/wGCKxXOC0OzgWyLZYfF3aIGYAHCNMaLEHEvOu39tSrms68leNtXVQI8AtweivAgQ L0lOBsc4BR6Yst3jzVnxSxGWzfdh+UA/CdHmwMdWIOCHtJ1lsjh/E/JhokB3og88FH4W y9elZjVcEBCvavQGHGeEXh0e5IWNTthGb8r/1sOwl26uTXZwYo6bCQqnSUMXziYDNx/7 MPQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fLq43tsj; 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 h22si7739273ejd.367.2020.09.14.13.33.45; Mon, 14 Sep 2020 13:34:07 -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=fLq43tsj; 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 S1726062AbgINUdE (ORCPT + 99 others); Mon, 14 Sep 2020 16:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbgINUcN (ORCPT ); Mon, 14 Sep 2020 16:32:13 -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 94E57C06174A for ; Mon, 14 Sep 2020 13:32:11 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id u3so492948pjr.3 for ; Mon, 14 Sep 2020 13:32:11 -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=MAegNs4VOwWv9UrQbG/3KsC+fif9tz3H9h+v9DTenlg=; b=fLq43tsj0idL5YeRKTDNHNUi+/bcp9W/YMHPxve4qth42qg71hfTUM5Xq3cazIdDrI NFB+4SH1S70GAC48b8DplcyZACd4EXVyXgXskD80RFmDCDa/3pUt9RLyrlu1vxpWwB4f i2X0eeheLlVij915s5y5BUr4hEXriYpLc1OPM= 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=MAegNs4VOwWv9UrQbG/3KsC+fif9tz3H9h+v9DTenlg=; b=Plyh0pq5/I0fDkD4bVHaKoXQjgnZi+O1W07URBilWrYtuuwoWjb6gtvBl9rYJnJ0sh Np73XJ4CnOAnAoSD76VQm9N8UY3AvNHRQ7AgfZIXU1puwKaIdWrssW5XFqdgjkQanowI 23yxPUqnwAGgXvZGRIYKEUnbep5m0yJ39hO5oz4GNxFdrKLFtwy0FU8D1q/sGAXjO1E/ dCF0F93fTdmbIFCB22P/r9z7k0ajOvE1m2DSe/7TJSqQP/IlOrcbS94E0rJkUTzbLJRo /PklwLOh/xxBtdRiTvFlbI9qn/DoNTAiBJ7RWQT1MJ5DQeFzutgG+wR9WO2ipyLx0LfY SG5A== X-Gm-Message-State: AOAM531PjOd/owPQhZEvO+RzioqHvYfYI/R1gRV5wJgeb152+mxHlH0P zHDqJYWs7XADMj6QWRZuODVifQ== X-Received: by 2002:a17:90b:364c:: with SMTP id nh12mr972235pjb.182.1600115531070; Mon, 14 Sep 2020 13:32:11 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j19sm11207357pfi.51.2020.09.14.13.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 13:32:10 -0700 (PDT) Date: Mon, 14 Sep 2020 13:32:09 -0700 From: Kees Cook To: Michael Ellerman Cc: linux-kernel@vger.kernel.org, Thadeu Lima de Souza Cascardo , Max Filippov , Christian Brauner , Andy Lutomirski , Will Drewry , linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 00/15] selftests/seccomp: Refactor change_syscall() Message-ID: <202009141321.366935EF52@keescook> References: <20200912110820.597135-1-keescook@chromium.org> <87wo0wpnah.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wo0wpnah.fsf@mpe.ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 10:15:18PM +1000, Michael Ellerman wrote: > Kees Cook writes: > > Hi, > > > > This refactors the seccomp selftest macros used in change_syscall(), > > in an effort to remove special cases for mips, arm, arm64, and xtensa, > > which paves the way for powerpc fixes. > > > > I'm not entirely done testing, but all-arch build tests and x86_64 > > selftests pass. I'll be doing arm, arm64, and i386 selftests shortly, > > but I currently don't have an easy way to check xtensa, mips, nor > > powerpc. Any help there would be appreciated! > > The series builds fine for me, and all the tests pass (see below). > > Thanks for picking up those changes to deal with powerpc being oddball. > > Tested-by: Michael Ellerman (powerpc) Awesome; thanks! However... > > cheers > > > ./seccomp_bpf > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > # RUN global.kcmp ... > # OK global.kcmp > ok 1 global.kcmp > [...] > # RUN global.KILL_thread ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. Was this a mis-paste, or has something very very bad happened here in global.KILL_one_arg_six finishes? > # RUN global.kcmp ... > # OK global.kcmp > ok 1 global.kcmp > [...] > # RUN global.user_notification_basic ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_basic ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_signal ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_closed_listener ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_child_pid_ns ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_sibling_pid_ns ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_sibling_pid_ns ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_sibling_pid_ns ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_fault_recv ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_continue ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_filter_empty ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_filter_empty_threaded ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_addfd ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # RUN global.user_notification_addfd_rlimit ... > TAP version 13 > 1..86 > # Starting 86 tests from 7 test cases. > [...] > # PASSED: 86 / 86 tests passed. > # Totals: pass:86 fail:0 xfail:0 xpass:0 skip:0 error:0 And after every user_notification test? O_O -- Kees Cook