Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1069538pxj; Thu, 17 Jun 2021 21:52:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDFx3dGdtKxO2EylvjKd/FUx0a9+CvMepPq55/3cXJ+lA6yZ22UThS9yoWTMoh5rAkPsuL X-Received: by 2002:a17:906:6ad3:: with SMTP id q19mr9024375ejs.11.1623991963163; Thu, 17 Jun 2021 21:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623991963; cv=none; d=google.com; s=arc-20160816; b=iMqsPGO90OBX/IvVRxpVYPUncdVNjWsCjLpNNa4KT/MIovNes02SbeP5nIeNdl+sD/ SF0yXZ00Ux4JasS/124id2GkS3wozeZXBMekGzrp7JpcWzICgF85VEpFNY448HvV0vJb wz7dPeO6APypX2uJdS+OuX2IXq6Kr0DLak/pJD3ocMfmDYQWLIGqOl81AtfgELay7e8e tKbYe8aVmBZaD7jhT0N6ORLxrqO2joAMwWa8OR5M7WOiSRyz9IgLO9T6f78x2zCWxb8M 9ZHq5FeeH6HBQicHgKXmew0NaLNfzamLfJpYVTrj1z11vcFrUVUxu5mAJ9hyUyTi8gjU Gbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G4dcuAAGqmXJT5DuFgw0YP7swJ10pImvUBqsUnV4SwU=; b=tuX5ZS8Qt5xuZYLhRMTqTcg8jJ8fPiKA6GvRYHsj1ow93k4948Z85tVX1yHQIK0lTX kFmjZng7HSjDCgG5LZ/mTA8Sjbl58+X+gx8RTU96BfTbx2iNLw4oZSwGewQqgIXpljO9 JjJIvPsTX0OemNggBS4Dpu3my2S59wEnwUUFoRPaYeOTXtX4zJSem6XVHaWiC/hd/TjD uGiiA8mdLiGutkk3u6tb+naDOXON00BygNDOWHGm5WtardBWe1IH6GvyKrWiX+98Rg57 YkVFsPuV8WNIefYAIDK9AC1cKfMr/J1TosMDeyStWtwWhDG7xKj8k0MIAuk47zQthUHD n4Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y7gSkuOj; 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 z23si1447566ejl.394.2021.06.17.21.52.20; Thu, 17 Jun 2021 21:52:43 -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=Y7gSkuOj; 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 S232432AbhFQXMn (ORCPT + 99 others); Thu, 17 Jun 2021 19:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbhFQXMn (ORCPT ); Thu, 17 Jun 2021 19:12:43 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E61AC06175F for ; Thu, 17 Jun 2021 16:10:34 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id 13-20020a17090a08cdb029016eed209ca4so4780121pjn.1 for ; Thu, 17 Jun 2021 16:10:34 -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=G4dcuAAGqmXJT5DuFgw0YP7swJ10pImvUBqsUnV4SwU=; b=Y7gSkuOjUL/6g0t+i6jhPnEHNt13bGmhUPEELQyLifTb3rYdP15UECINaxIcsHLQOy 9AY4SI70jKpGqcC3G9CkNMpamAo9ytBwFG8G2aA+wVUOfMGZAUYfmUXpJc6RN8l7+vrs Vel14aCsvD5ZggKT0ijGN7v+Aq8xEBhEb9q74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G4dcuAAGqmXJT5DuFgw0YP7swJ10pImvUBqsUnV4SwU=; b=h+ZKa8sH0yXJ5nbaThniXQbqWe3gDhVWbltbl4zvkd0oomSmhIGugJa9iWCYO1Wtvm Mn+Y6ibwMwN7VnA5TxhoY7V2iGrnjA7P8FaXaSRIvL4WXThSKXa7j8xgG9WMo7UXZ3Dd hEANpm72TRSIEtUQPV0hB7cg/DFMAz34P/MQ8COx5qQKEW2o7RDWp9lXfDlZCL0DP5Rm fkTPKSnsKD2Cp+9PphnHBiVgpHalEUIC9WCR47GVW7oQ/EEZPcEziaLcg1/lIN23rFiG 3+PHdGrgvtLXWicFTD8HjN+5Uv07MR79Ap9fsJUob6FCYRr6Avml82nDQc84Df8ThLYA G+8Q== X-Gm-Message-State: AOAM533IqpUMabsQUXKynZKq8OQk8VVPTGaQuvsm6yZngvUt38O6I7dG /TPFP81pbgJkV0AKe02Vl3RGQw== X-Received: by 2002:a17:90a:46c8:: with SMTP id x8mr19225624pjg.216.1623971434053; Thu, 17 Jun 2021 16:10:34 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id n17sm5882819pfv.125.2021.06.17.16.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 16:10:33 -0700 (PDT) From: Kees Cook To: Shuah Khan Cc: Kees Cook , stable@vger.kernel.org, Guillaume Tucker , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/lkdtm: Use /bin/sh not $SHELL Date: Thu, 17 Jun 2021 16:10:27 -0700 Message-Id: <20210617231027.3908585-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; g=0ca552e2a18e1ba1dde7ae32c796988c0c6cd64c; i=lfnT3xbl3M4bSoo3fY1JvS2JIxARVoZVIzxV1pBNVzw=; m=tr/oXMpsj/GZG/QCgR+VpXKeGRmUnEu0qybVzfQX7mM=; p=RhCkpoFJvGHGfnnLBQ9fmzwicmX3HukxRspK8EAoIHY= X-Patch-Sig: m=pgp; i=keescook@chromium.org; s=0x0x8972F4DFDC6DC026; b=iQIzBAABCgAdFiEEpcP2jyKd1g9yPm4TiXL039xtwCYFAmDL1mIACgkQiXL039xtwCZztw/+NVn v2mbVjKtpS3XGzGAX+kkH4H+LhNd3BRQ5LSXYugv1a2DlD8mXybYmVnRR8Vp9HhXbim2R5ZIyPBFQ m05CYeTKTrgTQPcViD9UFZ+sf8dHCnV0hNjPyi0TU7d24+BRKw5yxM/fvX3+izjYdgnCAstNgB5dO eW5aL5dcVGdfmUOBR1FLLjmxOVm8Supd2C7y+at5rhA+AWKqvyprSE3RGlhSOKpoqOXPrSHtYlSDS wMQ0rFAd4wrgPwyAv2h1QTRIyYvk8TGELEpkW+0etL6k/c2EtqgPMCKYFp7aaitM5scEJFjUtxW0g xqLQupiieEwrnBzdJcqK/OP2l0L72vpp3oE39wLEVr6iamaYSGI2baDu4RtYvt9zy2h2Q/ViOML0m 4LtWG+b0/a2R3WRqbtPnrwK5HIXIfXfeD77vQGq2kb98iTEJJfWCfqoJOVNLs6Co3BiiDOf8cPxt0 Y2KqZzP1rJ+CpgwQrgaAWB+ojrN74VKbK5Z2jncyG/po+0ebPsRalMzEPpVrL2zaFx1n40PFCPkBM j5QMzZiyZrbU/z65tHQtQv7KpTLj9KiG5J5QyXRxlQzExrJSMWn+yRJvU+XOUR/758/tr3oo7vtsC fBGS61ozPQKnbNiifKjIuvxBWrongX3JyN3EP6zxZTmOLZ9n84CTS7h/u60uIylU= Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some environments (e.g. kerneci.org) do not set $SHELL for their test environment. There's no need to use $SHELL here anyway, so just replace it with hard-coded /bin/sh instead. Without this, the LKDTM tests would never actually run on kerneci.org. Fixes: 46d1a0f03d66 ("selftests/lkdtm: Add tests for LKDTM targets") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook --- tools/testing/selftests/lkdtm/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lkdtm/run.sh b/tools/testing/selftests/lkdtm/run.sh index bb7a1775307b..968ff3cf5667 100755 --- a/tools/testing/selftests/lkdtm/run.sh +++ b/tools/testing/selftests/lkdtm/run.sh @@ -79,7 +79,7 @@ dmesg > "$DMESG" # Most shells yell about signals and we're expecting the "cat" process # to usually be killed by the kernel. So we have to run it in a sub-shell # and silence errors. -($SHELL -c 'cat <(echo '"$test"') >'"$TRIGGER" 2>/dev/null) || true +(/bin/sh -c 'cat <(echo '"$test"') >'"$TRIGGER" 2>/dev/null) || true # Record and dump the results dmesg | comm --nocheck-order -13 "$DMESG" - > "$LOG" || true -- 2.25.1