Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2223357ybl; Sat, 7 Dec 2019 10:48:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwnLc+epXqlTqIcrBxM6/gquphsL9nqsrgHuh27QxfPMVcHlK84iJl5PQBSZT4nt+EETsOu X-Received: by 2002:a05:6830:1415:: with SMTP id v21mr2150871otp.188.1575744537226; Sat, 07 Dec 2019 10:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575744537; cv=none; d=google.com; s=arc-20160816; b=DMkY6YAbrSv/5VbKkC4/bGxzwpzg5+nJDuFK3Q8N5plk7Y08irKhL6HmvSdCnqKn3w 0a2r0Z+jZhAV1DzXMJHor5UqRf3WyNfHi1OLOfxSmcdxfGFYncx/eH5xh3m/g8FgVGwj 8yQwJPNLHp5CZbTf8QiNY0NclV3RVCY7iSW8TxdOuo5sSU7z+0dL/hmwphCOB8oX0OTn EEkmbwhW4+8yllPiAF37dEz9yZN6MuzjrVzEHP/W5RTZyLXssDnd/9kdn3KgpSCNPjMn KnzAvP9XDgGlrRTNokOFZDw6FIYZjHg/RnkjHFBsmWgekw4K9c9YA22xDYYPg6wLC8jN EAZw== 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=gIYTvT9Yg0a3HYHkSd1eqhNX0DVUa1na6x4qIySAj/s=; b=vCH6khEkAUpz9RAXCbrO1breL0D6CophkIueS/VG5PNWyT6OdjhHChlI/cHl7gJ9ZA iuPQHWIO9Nqllp1WizrWOeOPQ25t1QVtCzzAslUaftRCrzHjHJj5MG7IvDAlR68FXG4B lLVBjYYm00MeE8mDXf2WnBr1ZTebMb/Y1xSMBrFv9P/2hT+WFt0VpSJvBtSjUKweg5/Z OF+He8C/jegNhhPyOiAQu0a+U9hHegG3LZfxe+WBkB2bodGkwKgGka2mZKQpezlfYMUp iVQQuS/WSexYKxBZJUdX0Be5SOp6KQja9Be7+dLc89fTI6iWfgR0NJuJ5F33iJx2i2yR LBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kDanjmi2; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si9816331oic.119.2019.12.07.10.48.45; Sat, 07 Dec 2019 10:48:57 -0800 (PST) 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=@chromium.org header.s=google header.b=kDanjmi2; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbfLGSsC (ORCPT + 99 others); Sat, 7 Dec 2019 13:48:02 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38323 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfLGSsC (ORCPT ); Sat, 7 Dec 2019 13:48:02 -0500 Received: by mail-pl1-f193.google.com with SMTP id o8so4087985pls.5 for ; Sat, 07 Dec 2019 10:48:02 -0800 (PST) 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=gIYTvT9Yg0a3HYHkSd1eqhNX0DVUa1na6x4qIySAj/s=; b=kDanjmi2KTqwcxU+vWAA6MY44bNeH/m6+LJ+PXBtyz8m0/IEd5Id3ctmrutsjQlWol nzRhS9ee3BeqtPgZQwsptPbKTwka3iyzO+GMbTS5U45YPei2BeQ4m1/Obijuy1h6PjDR Fs/96o+Lq/d1RGFXUVbM7TUzvcWvzYHi/YCHc= 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=gIYTvT9Yg0a3HYHkSd1eqhNX0DVUa1na6x4qIySAj/s=; b=LNJWl/LG1u5TMFsAZUZMW8ChHFPj7nlpYzLeGTYj8/ki9l2IaNJ7/oDB2wplZpHU4b qXQzb99+IZOsebe/dHyKA89FSotK1zwRgvT/xH1OXpVKBYAQnHuW5E22JqZgsTYcno/P XIORo2Oko4KeJO0gynBye9NtAMNZJLm2Szhx82DsryB+TdfPo2zVw0d533/H+Jl5WlF0 rn8F8+XvTpdQWksFXCHyi0eAANPbD77/EryeDip0NnnVpkrbC0m5VeURCwyjVxjCoXuD /zFJwhRrB65wm5z4nidtf1Kdpms+NX1OE+74sSLApjeoB9oSi2/QaKNDtu986IZjdGDC zZ0g== X-Gm-Message-State: APjAAAXElAixDuL40U9IlV27Isr/2PukMyw4PI37aaaPWszF5ONCa/Ai 746pRbR224kk6UbwnyKvl8LgXyTqvfA= X-Received: by 2002:a17:90a:e291:: with SMTP id d17mr23575494pjz.116.1575744481553; Sat, 07 Dec 2019 10:48:01 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 3sm18140868pfi.13.2019.12.07.10.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2019 10:48:00 -0800 (PST) Date: Sat, 7 Dec 2019 10:47:59 -0800 From: Kees Cook To: SeongJae Park Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, sj38.park@gmail.com, SeongJae Park Subject: Re: [PATCH 2/2] kselftest: Support old perl versions Message-ID: <201912071047.D7BDF3DD9F@keescook> References: <20191202114221.827-1-sjpark@amazon.com> <20191202114221.827-2-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191202114221.827-2-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 02, 2019 at 12:42:21PM +0100, SeongJae Park wrote: > From: SeongJae Park > > On an old perl such as v5.10.1, `kselftest/prefix.pl` gives below error > message: > > Can't locate object method "autoflush" via package "IO::Handle" at kselftest/prefix.pl line 10. > > This commit fixes the error by explicitly specifying the use of the > `IO::Handle` package. > > Signed-off-by: SeongJae Park Good catch! Acked-by: Kees Cook -Kees > --- > tools/testing/selftests/kselftest/prefix.pl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/kselftest/prefix.pl b/tools/testing/selftests/kselftest/prefix.pl > index ec7e48118183..31f7c2a0a8bd 100755 > --- a/tools/testing/selftests/kselftest/prefix.pl > +++ b/tools/testing/selftests/kselftest/prefix.pl > @@ -3,6 +3,7 @@ > # Prefix all lines with "# ", unbuffered. Command being piped in may need > # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd". > use strict; > +use IO::Handle; > > binmode STDIN; > binmode STDOUT; > -- > 2.17.1 > -- Kees Cook