From patchwork Wed Nov 3 16:30:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12601187 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6071BC433F5 for ; Wed, 3 Nov 2021 16:30:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43FA560F10 for ; Wed, 3 Nov 2021 16:30:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232880AbhKCQdW (ORCPT ); Wed, 3 Nov 2021 12:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbhKCQdV (ORCPT ); Wed, 3 Nov 2021 12:33:21 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17BAC061203 for ; Wed, 3 Nov 2021 09:30:44 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id b13so2879260plg.2 for ; Wed, 03 Nov 2021 09:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=odA894FizgYT2uqpjfguRRE1S63B/axih7mjOQLAm08=; b=OIpDm1ALg/qwvFARnuZVOvXmKYt6SVIv/XuBIQNPjQujjPo3LX/hxSqAtcr6anQ+9b FgUgp7sSi1NWDQJWcA0USotmuadaVFW3OdifnNjeY1fbDbAMtz0xWjCSMgO26Pqv17kg 72g01cfgXQLlCFk3PAIjbt0GQHa0S4ZlCZDUo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=odA894FizgYT2uqpjfguRRE1S63B/axih7mjOQLAm08=; b=5f913jgnn5u45GidXIiL91AzKB7zB9DAz+UTIqvRATHm8MmD3cmoCbPFhwL7348Dmx 7e/FMPNPe8JlCw3upmCm65LhxVCAgm1t8LmX3nbven5YiHbEZBWeADuM6QGbpGcgoeH2 y945jU0FY5F7E7WTRoS4hWmkgvNm71oO0PTNlnxvG6+MlNCiRLMUrnFvMiYi9JIPi8oL e0t05CnPYEoawYdNtwT1qZVusBko97kLi/dnANrI5G5G0S52tOP5bmPBxg+8dG4ozmlL HVyez+wNW6WRyUOMmPnHvuc3cn/vcMFsPvDP255rLD3bP4LSuP9JUmZlhJHzKvKLri7B Z4bw== X-Gm-Message-State: AOAM533nHqSlydVzmUEUxBNSyA7rPZksnXVtUzUWYPewOqEKVMnsavzV Mu34I0HF5/d4lMwQi760l25ERg== X-Google-Smtp-Source: ABdhPJxqHPFG+x4rwiV8Mgj3grtvz42LF03NLpAtBBMNOAXSQoeECLEJUC/OA5E0KQz31slWgI4bOw== X-Received: by 2002:a17:90b:390e:: with SMTP id ob14mr9186031pjb.44.1635957044237; Wed, 03 Nov 2021 09:30:44 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id p14sm2250717pjb.9.2021.11.03.09.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 09:30:43 -0700 (PDT) From: Kees Cook To: "Eric W. Biederman" Cc: Kees Cook , Andy Lutomirski , Will Drewry , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH 0/2] selftests/seccomp: Report event mismatches more clearly Date: Wed, 3 Nov 2021 09:30:37 -0700 Message-Id: <20211103163039.2104830-1-keescook@chromium.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=496; h=from:subject; bh=bBcjzOR1RktEnR+WvZ1blWW2pvGaJgCZ/HftjhRG4ng=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBhgrku01EHfrhMdq4hLtNKWO/m2RdoO65pi/ftqDp6 UFbzSbmJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCYYK5LgAKCRCJcvTf3G3AJtTZD/ 4o1jD+SyQTsbUKkFJbgto1xyzQMiDwRrCEovTQfixmizO0VQchPSDeZOIcKUhJhRg2h1AJ9fJ0nHEP 4KcS+MHoGO7ZWRYdNDI/k1xGZ9uYwp2Ir/E6DI+FfAYDDGaXWlUnipQ+ITqPCZ6Qw0TC8GYrXebcm8 fxhevz+e1cScBY+Ze/2ESESVSNa6GfWF2Et52tbPCOM53jv0Ni96BqiAM2vDeZPgicP4pYuPD4IVLC gGgpX8M1i8bnmRU9bgBg8QDoyry8soLa2jBy3p6JQmA62YoPNcdpwEPe/iQZ0sAYlP+vHIafzVYKw9 JhbQ0PYy9aPrUdC4FOLDf0nvEVbFn0oVA262dshM2mR/8oVj/GoE1o8zTl0V9G0rR3cCVZmW/nZaSL ckokBw9Wt0gIDLgbNjCbYfLESxEXBYLfIaGQ03bPaL/oAxK7knZGLs6CT5P6NHnUYeW64V8soQp0VW NtkMVfDXoiw7jRmch7Y1M6yUMwwXYNfhwSm31tWt2KqMSTlYZtjaBTENd0hxmH/dr9dAs7ICzB1VhT uHCYZM4++xnkbVCvTIAWTJFoYoMHsaWsKDsfoyU65peKPOMceRRlooh/Tv+dr/pHM+yyZSXuemduxt 7fM+N55zkew0PoEsrtr7vKLCssy3AItHKHD3m5BvZOEUTJf9z9IcG5wppt4A== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Hi, This expands the seccomp selftests slightly to add additional debug reporting detail and a new "immediate fatal SIGSYS under tracing" test. I expect to be taking these via my seccomp tree. Thanks, -Kees Kees Cook (2): selftests/seccomp: Stop USER_NOTIF test if kcmp() fails selftests/seccomp: Report event mismatches more clearly tools/testing/selftests/seccomp/seccomp_bpf.c | 56 +++++++++++++++++-- 1 file changed, 50 insertions(+), 6 deletions(-) Acked-by: "Eric W. Biederman"