Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2980270yba; Mon, 8 Apr 2019 08:36:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHkstiBHI7f769qhiVdWWMR9zY8B+Q66v8ll2CA0tRDP/V6slLP0yKf7fx3wMeYv1vh3bC X-Received: by 2002:aa7:8d9a:: with SMTP id i26mr18568887pfr.220.1554737800095; Mon, 08 Apr 2019 08:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554737800; cv=none; d=google.com; s=arc-20160816; b=WmP9fU+ESdqdqSO4iYI698ezpGbxNfVs1GF7/Nk2GgDP+EFe0YCoawI80KBzh7QNk6 CxedQqmtGBsqAdIAMzQsILTIYtceBHVxNgRkYuwF58Mdm5oz2V39NqEdhz2oUMfx+DXo WnWutdQNyKArnPdoZjI3ugDKfgOgKiWIWxwrbJ16YbrPpCbXgO4ixFW69mBE3RONpH6t v7aCg5ha5VzpXSxWcuVJL+SMSdfBsvecvVTEGf+DwC1pm6UjSUIo98RZwKN9/iTFnc9M Hjj+refgSWWVg7s7+hUxN4fS0P0AFDhBNbfZsohAFtcMWM5ajstEKYJ5DqVxfntwLXD1 lsDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2j9KGN3V9bHDAHbVsBA5KRa9HoniWC/ZrVZoNiDyh+c=; b=F0wiVfaFausKHDAS+tsP/rUFv9kc5bLboB2k2jLcIHkkN8PRJtrE1ufIwPeGLv4Cts 29C21MuEzag4B4Ux0jUiOxEw9hhiD1AavRFi0/xR1plafnQuTwg0tCgqcpEfN3+0nyz4 Pfs0kGnsuE1JgdIUVhNvmmOfT0KfrM1vjgoOntDt7RMAzNDyp/Nkt4vhE/1aF24sF9zX ZD3hmAuD3eVHIkKfrWIkm2bCgyoMTidkIHQzaKu6gMxc0oBovUFFGeGj5niz9Ksnj539 fUH1RhKUi9nY5Z5Fj8ylWIT702jpYejIHJ1c/u4oLUb9fSU0qv720bu2m7FBZBWYM2Ti DJRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tv32B8r2; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cv9si28157886plb.371.2019.04.08.08.36.24; Mon, 08 Apr 2019 08:36:40 -0700 (PDT) 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=@kernel.org header.s=default header.b=Tv32B8r2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726936AbfDHOJA (ORCPT + 99 others); Mon, 8 Apr 2019 10:09:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:36852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfDHOI7 (ORCPT ); Mon, 8 Apr 2019 10:08:59 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 07A7D20883; Mon, 8 Apr 2019 14:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554732538; bh=Dk0wePsmzGllGLI1Tfcx9rPsXy1gIkozkBirqlGseWI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Tv32B8r2m+6I5xTkRHUX3FvYOtI0iAgHan3EAuI0NjqImBbNIl1HuxL1+RpM52zQI fK+sSEziXWpnLWa6DdnVGzkoNMS+zJFLg5rxj0r4VhrANl5AWsCjNg2BKXBzaqA4Oi OVVNfig/rbcrhgHzIeAVqsakJIldJFpa3dSb5gH8= Subject: Re: [PATCH v4 0/6] lib/string: Add strscpy_pad() function To: "Tobin C. Harding" Cc: Kees Cook , Jann Horn , Andy Shevchenko , Randy Dunlap , Rasmus Villemoes , Stephen Rothwell , Andy Lutomirski , Daniel Micay , Arnd Bergmann , Miguel Ojeda , "Gustavo A. R. Silva" , Greg Kroah-Hartman , Alexander Shishkin , kernel-hardening@lists.openwall.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah References: <20190405015859.32755-1-tobin@kernel.org> From: shuah Message-ID: <3d1bc44f-313b-5a58-3492-b706d9510d34@kernel.org> Date: Mon, 8 Apr 2019 08:08:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190405015859.32755-1-tobin@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/4/19 7:58 PM, Tobin C. Harding wrote: > Hi Shua, > > Here is the set with cleanup as suggested by Kees on v3. > > Configured, built, and tested all modules loaded by > tools/testing/selftests/lib/*.sh > >>From previous cover letters ... > > While doing the testing for strscpy_pad() it was noticed that there is > duplication in how test modules are being fed to kselftest and also in > the test modules themselves. > > This set makes an attempt at adding a framework to kselftest for writing > kernel test modules. It also adds a script for use in creating script > test runners for kselftest. My macro-foo is not great, all criticism > and suggestions very much appreciated. The design is based on test > modules lib/test_printf.c, lib/test_bitmap.c, lib/test_xarray.c. > > Changes since last version: > > - Remove dependency on Bash (thanks Kees) > - Use oneliner to implement kselftest test runners (thanks Kees) > - Squash patch that adds kselftest script creator script with patch > that uses it. > - Fix typos (thanks Randy) > - Add Kees' Acked-by tags to all patches > > thanks, > Tobin. > > Hi Tobin, Thanks for this restructuring work and adding the framework. Thanks Kees for the reviews. The patch is series in now in linux-kselftest next for 5.2 thanks, -- Shuah