* Re: [PATCH v2] selftests/kselftest/runner/run_one(): Allow running non-executable files [not found] <20210810164534.25902-1-sj38.park@gmail.com> @ 2023-04-25 0:46 ` SeongJae Park 2023-04-27 8:29 ` Greg KH 0 siblings, 1 reply; 2+ messages in thread From: SeongJae Park @ 2023-04-25 0:46 UTC (permalink / raw) To: gregkh, sashal Cc: stable, sj, shuah, sj38.park, akpm, linux-kselftest, linux-kernel, SeongJae Park Hi Greg and Sasha, On Tue, 10 Aug 2021 16:45:34 +0000 SeongJae Park <sj38.park@gmail.com> wrote: > From: SeongJae Park <sjpark@amazon.de> > > When running a test program, 'run_one()' checks if the program has the > execution permission and fails if it doesn't. However, it's easy to > mistakenly missing the permission, as some common tools like 'diff' > don't support the permission change well[1]. Compared to that, making > mistakes in the test program's path would only rare, as those are > explicitly listed in 'TEST_PROGS'. Therefore, it might make more sense > to resolve the situation on our own and run the program. > > For the reason, this commit makes the test program runner function to > still print the warning message but try parsing the interpreter of the > program and explicitly run it with the interpreter, in the case. > > [1] https://lore.kernel.org/mm-commits/YRJisBs9AunccCD4@kroah.com/ > > Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Signed-off-by: SeongJae Park <sjpark@amazon.de> This patch has merged into the mainline by the commit 303f8e2d0200 ("selftests/kselftest/runner/run_one(): allow running non-executable files"). However, this patch has not added to v5.15.y, while there are some selftests having no execution permission, including that for DAMON. As a result, the selftests always fail unless this patch is manually applied. Could you please add this patch to v5.15.y? I confirmed this patch can cleanly cherry-picked on the latest v5.15.y. Thanks, SJ ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] selftests/kselftest/runner/run_one(): Allow running non-executable files 2023-04-25 0:46 ` [PATCH v2] selftests/kselftest/runner/run_one(): Allow running non-executable files SeongJae Park @ 2023-04-27 8:29 ` Greg KH 0 siblings, 0 replies; 2+ messages in thread From: Greg KH @ 2023-04-27 8:29 UTC (permalink / raw) To: SeongJae Park Cc: sashal, stable, shuah, sj38.park, akpm, linux-kselftest, linux-kernel, SeongJae Park On Tue, Apr 25, 2023 at 12:46:37AM +0000, SeongJae Park wrote: > Hi Greg and Sasha, > > On Tue, 10 Aug 2021 16:45:34 +0000 SeongJae Park <sj38.park@gmail.com> wrote: > > > From: SeongJae Park <sjpark@amazon.de> > > > > When running a test program, 'run_one()' checks if the program has the > > execution permission and fails if it doesn't. However, it's easy to > > mistakenly missing the permission, as some common tools like 'diff' > > don't support the permission change well[1]. Compared to that, making > > mistakes in the test program's path would only rare, as those are > > explicitly listed in 'TEST_PROGS'. Therefore, it might make more sense > > to resolve the situation on our own and run the program. > > > > For the reason, this commit makes the test program runner function to > > still print the warning message but try parsing the interpreter of the > > program and explicitly run it with the interpreter, in the case. > > > > [1] https://lore.kernel.org/mm-commits/YRJisBs9AunccCD4@kroah.com/ > > > > Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > > Signed-off-by: SeongJae Park <sjpark@amazon.de> > > This patch has merged into the mainline by the commit 303f8e2d0200 > ("selftests/kselftest/runner/run_one(): allow running non-executable files"). > However, this patch has not added to v5.15.y, while there are some selftests > having no execution permission, including that for DAMON. As a result, the > selftests always fail unless this patch is manually applied. Could you please > add this patch to v5.15.y? I confirmed this patch can cleanly cherry-picked on > the latest v5.15.y. Now queued up, thanks. greg k-h ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-27 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210810164534.25902-1-sj38.park@gmail.com>
2023-04-25 0:46 ` [PATCH v2] selftests/kselftest/runner/run_one(): Allow running non-executable files SeongJae Park
2023-04-27 8:29 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox