lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 2 Apr 2021 00:48:41 +0200 From: Frederic Weisbecker <frederic@...nel.org> To: "Paul E. McKenney" <paulmck@...nel.org> Cc: LKML <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language On Thu, Apr 01, 2021 at 03:33:29PM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 11:08:02PM +0200, Frederic Weisbecker wrote: > How about like this? I put this only in kvm.sh for the moment, but > if these keep cropping up I will just hit all the scripts. ;-) Sure, works for me! Thanks. > > Thanx, Paul > > ------------------------------------------------------------------------ > > commit 4ca332016ed81c15ebb3b744dbfc462281c544b8 > Author: Paul E. McKenney <paulmck@...nel.org> > Date: Thu Apr 1 15:26:56 2021 -0700 > > torture: Set kvm.sh language to English > > Some of the code invoked directly and indirectly from kvm.sh parses > the output of commands. This parsing assumes English, which can cause > failures if the user has set some other language. In a few cases, > there are language-independent commands available, but this is not > always the case. Therefore, as an alternative to polyglot parsing, > this commit sets the LANG environment variable to en_US.UTF-8. > > Reported-by: Frederic Weisbecker <frederic@...nel.org> > Signed-off-by: Paul E. McKenney <paulmck@...nel.org> > > diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh > index fab3bd9..390bb97 100755 > --- a/tools/testing/selftests/rcutorture/bin/kvm.sh > +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh > @@ -20,6 +20,9 @@ mkdir $T > > cd `dirname $scriptname`/../../../../../ > > +# This script knows only English. > +LANG=en_US.UTF-8; export LANG > + > dur=$((30*60)) > dryrun="" > KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
Powered by blists - more mailing lists