From: Kees Cook <keescook@chromium.org>
To: Matthew Wilcox <willy@infradead.org>
Cc: Joe Perches <joe@perches.com>,
LKML <linux-kernel@vger.kernel.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
LukasBulwahn <lukas.bulwahn@gmail.com>,
linux-doc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kbuild@vger.kernel.org, linux-hardening@vger.kernel.org,
linux-riscv@lists.infradead.org, netdev@vger.kernel.org,
linux-csky@vger.kernel.org
Subject: Re: What is the oldest perl version being used with the kernel ? update oldest supported to 5.14 ?
Date: Fri, 20 Aug 2021 22:43:08 -0700 [thread overview]
Message-ID: <202108201856.41AB391@keescook> (raw)
In-Reply-To: <YR/zrjiCwnzMMcmA@casper.infradead.org>
On Fri, Aug 20, 2021 at 07:25:50PM +0100, Matthew Wilcox wrote:
> On Fri, Aug 20, 2021 at 10:27:59AM -0700, Joe Perches wrote:
> > Perl 5.8 is nearly 20 years old now.
> >
> > https://en.wikipedia.org/wiki/Perl_5_version_history
> >
> > checkpatch uses regexes that are incompatible with perl versions
> > earlier than 5.10, but these uses are currently runtime checked
> > and skipped if the perl version is too old. This runtime checking
> > skips several useful tests.
> >
> > There is also some desire for tools like kernel-doc, checkpatch and
> > get_maintainer to use a common library of regexes and functions:
> > https://lore.kernel.org/lkml/YR2lexDd9N0sWxIW@casper.infradead.org/
> >
> > It'd be useful to set the minimum perl version to something more modern.
> >
> > I believe perl 5.14, now only a decade old, is a reasonable target.
> >
> > Any objections or suggestions for a newer minimum version?
>
> Not an objection per se, but some data points.
>
> Oracle Linux 5 (released 2007, still under support) has perl 5.8.8
> Oracle Linux 6 (released 2011) has perl 5.10.1
> Oracle Linux 7 (released 2014) has perl 5.16.3
> Oracle Linux 8 (released 2019) has perl 5.26.3
>
> I don't know that we need to be able to build on a distro from 2007
> or even from 2011. I think it's reasonable to require updating to a
> 2014 distro in order to build a 2021 kernel.
>
> For comparison, we currently require gcc-4.9 to build the kernel, and
> 4.9.0 was released in 2014. So perl-5.16 wouldn't be an unreasonable
> requirement, I believe.
Ubuntu name/version mapping: https://wiki.ubuntu.com/
Ubuntu Perl versions: https://launchpad.net/ubuntu/+source/perl
The oldest publicly supported Ubuntu (18.04 Bionic) uses Perl 5.26.
--
Kees Cook
WARNING: multiple messages have this Message-ID (diff)
From: Kees Cook <keescook@chromium.org>
To: Matthew Wilcox <willy@infradead.org>
Cc: Joe Perches <joe@perches.com>,
LKML <linux-kernel@vger.kernel.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
LukasBulwahn <lukas.bulwahn@gmail.com>,
linux-doc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kbuild@vger.kernel.org, linux-hardening@vger.kernel.org,
linux-riscv@lists.infradead.org, netdev@vger.kernel.org,
linux-csky@vger.kernel.org
Subject: Re: What is the oldest perl version being used with the kernel ? update oldest supported to 5.14 ?
Date: Fri, 20 Aug 2021 22:43:08 -0700 [thread overview]
Message-ID: <202108201856.41AB391@keescook> (raw)
In-Reply-To: <YR/zrjiCwnzMMcmA@casper.infradead.org>
On Fri, Aug 20, 2021 at 07:25:50PM +0100, Matthew Wilcox wrote:
> On Fri, Aug 20, 2021 at 10:27:59AM -0700, Joe Perches wrote:
> > Perl 5.8 is nearly 20 years old now.
> >
> > https://en.wikipedia.org/wiki/Perl_5_version_history
> >
> > checkpatch uses regexes that are incompatible with perl versions
> > earlier than 5.10, but these uses are currently runtime checked
> > and skipped if the perl version is too old. This runtime checking
> > skips several useful tests.
> >
> > There is also some desire for tools like kernel-doc, checkpatch and
> > get_maintainer to use a common library of regexes and functions:
> > https://lore.kernel.org/lkml/YR2lexDd9N0sWxIW@casper.infradead.org/
> >
> > It'd be useful to set the minimum perl version to something more modern.
> >
> > I believe perl 5.14, now only a decade old, is a reasonable target.
> >
> > Any objections or suggestions for a newer minimum version?
>
> Not an objection per se, but some data points.
>
> Oracle Linux 5 (released 2007, still under support) has perl 5.8.8
> Oracle Linux 6 (released 2011) has perl 5.10.1
> Oracle Linux 7 (released 2014) has perl 5.16.3
> Oracle Linux 8 (released 2019) has perl 5.26.3
>
> I don't know that we need to be able to build on a distro from 2007
> or even from 2011. I think it's reasonable to require updating to a
> 2014 distro in order to build a 2021 kernel.
>
> For comparison, we currently require gcc-4.9 to build the kernel, and
> 4.9.0 was released in 2014. So perl-5.16 wouldn't be an unreasonable
> requirement, I believe.
Ubuntu name/version mapping: https://wiki.ubuntu.com/
Ubuntu Perl versions: https://launchpad.net/ubuntu/+source/perl
The oldest publicly supported Ubuntu (18.04 Bionic) uses Perl 5.26.
--
Kees Cook
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2021-08-21 5:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-20 17:27 What is the oldest perl version being used with the kernel ? update oldest supported to 5.14 ? Joe Perches
2021-08-20 17:27 ` Joe Perches
2021-08-20 17:33 ` Willy Tarreau
2021-08-20 17:33 ` Willy Tarreau
2021-08-20 18:25 ` Matthew Wilcox
2021-08-20 18:25 ` Matthew Wilcox
2021-08-21 5:43 ` Kees Cook [this message]
2021-08-21 5:43 ` Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108201856.41AB391@keescook \
--to=keescook@chromium.org \
--cc=dave.hansen@linux.intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dwaipayanray1@gmail.com \
--cc=joe@perches.com \
--cc=linux-csky@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lukas.bulwahn@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.