Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5757823pxj; Wed, 23 Jun 2021 08:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTafJnGXyu7/ztVHqFSTbkHmd/Hx2wH/9KG7okA5s5hldlwfBEAeK1lIm7DezKrpzti/+d X-Received: by 2002:a05:6e02:de9:: with SMTP id m9mr3455469ilj.89.1624461659264; Wed, 23 Jun 2021 08:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624461659; cv=none; d=google.com; s=arc-20160816; b=WV74LtS2DCPy+x1dYarHw+88NnmOOcBhViJwXCkiCT2AHsQuCpzDjwXFF3OQkp905b lWiI0DBLrqotcQa91ZUqGXfwoGB5Gsm7NjxeMtiqXFjTaMCp0bBShy5P2MZ6a8K/BkIB 3BNb+R1PehciRweiJ5tw3kqjNqQ6PpzcnrhJsCbphKVH8VCrljHBOWJbs0bz0Kx60Vvv ffqbEQYOEXWe6lGeUwLflssKyDbKFQsRTynibFfqzCtCY8X9cCH2NqF7S2Wqi8zMjvcK jt9vohhQK+Cp/JVuFT9CJpWUIT28C4gDq45dNSNzeOcG+1Ro3o6pbLT2JeuCSXgQm1t6 SauA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=nQizUpSBskuC91ErMlZMVU7zn2YT/fNgmiyXBzYbVX0=; b=flq3eO8Cy5WnBVKwd/al8+FuPE80e4tzI3XN8ObtuvrCVoy/RJ4dRAfLWuucUVdu7Q xWat8k/VvgX/N3U5QxIqez7SRMbJHZYNbzAOEYlYqCPKIyodKJycSIO8+QTMkzhiEZdZ T1+FeWL2zIs65S5fkhZxwzIJTPV/UFGsDP63kd/Leo2Az5xzGbOJ1PAlpWk3wuSR8cAm wgispbr2fIhyWldDYlDUi+LTblCACt+rek3ZPLFYDeU5pIPINrD0oDJ1SrP1fTbPLDmR Yvls/zEWEhgofQIma98u2MylokEm6xp3FiepA5vlrmDVAXCiNV7jVyRU/Sbk2TYmMJyu srkA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si7519409ilm.10.2021.06.23.08.20.45; Wed, 23 Jun 2021 08:20:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231350AbhFWPWF (ORCPT + 99 others); Wed, 23 Jun 2021 11:22:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231320AbhFWPWE (ORCPT ); Wed, 23 Jun 2021 11:22:04 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A25DAC061574; Wed, 23 Jun 2021 08:19:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 69D8D1F4388C Subject: Re: [PATCH v2] selftests/lkdtm: Use /bin/sh not $SHELL To: Kees Cook Cc: Shuah Khan , stable@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, "kernelci@groups.io" , Collabora Kernel ML References: <20210619025834.2505201-1-keescook@chromium.org> <202106230734.78A239D@keescook> From: Guillaume Tucker Message-ID: Date: Wed, 23 Jun 2021 16:19:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <202106230734.78A239D@keescook> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +kernelci +collabora On 23/06/2021 15:38, Kees Cook wrote: > On Wed, Jun 23, 2021 at 01:39:57PM +0100, Guillaume Tucker wrote: >> On 19/06/2021 03:58, Kees Cook wrote: >>> Some environments do not set $SHELL when running tests. There's no need >>> to use $SHELL here anyway, so just replace it with hard-coded path >>> instead. Additionally avoid using bash-isms in the command, so that >>> regular /bin/sh can be used. >>> >>> Suggested-by: Guillaume Tucker >>> Fixes: 46d1a0f03d66 ("selftests/lkdtm: Add tests for LKDTM targets") >>> Cc: stable@vger.kernel.org >>> Signed-off-by: Kees Cook >> >> >> Tested-by: "kernelci.org bot" >> >> >> Sample staging results with this patch applied on top of >> next-20210622: >> >> https://staging.kernelci.org/test/plan/id/60d2dbdc3cfb88da0924bf41/ >> >> Full log: >> >> https://storage.staging.kernelci.org/kernelci/staging-next/staging-next-20210623.0/x86_64/x86_64_defconfig+x86-chromebook+kselftest/clang-13/lab-collabora/kselftest-lkdtm-asus-C523NA-A20057-coral.html > > Awesome! This looks great. :) > > What's needed to build these kernels will different CONFIGs? I see a > bunch of things (commonly found in distro kernels) that are not set: > > CONFIG_SLAB_FREELIST_HARDENED=y > CONFIG_FORTIFY_SOURCE=y > CONFIG_HARDENED_USERCOPY=y > # CONFIG_HARDENED_USERCOPY_FALLBACK is not set > > Should I add these to the kselftest "config" file for LKDTM? Yes, that's the current way to do it. KernelCI is simply concatenating all the config files found under tools/testing/selftests into one big kselftest fragment which is then merged with the defconfig. We could enable arbitrary things for KernelCI but of course it's much better to not do that and stick to what's in the kernel tree. If you do send such a patch, please CC kernelci@groups.io or myself and we can give it a spin on staging.kernelci.org as well. Best wishes, Guillaume