From: Josef Bacik <josef@toxicpanda.com>
To: Mark Brown <broonie@kernel.org>
Cc: Aishwarya TCV <aishwarya.tcv@arm.com>,
Christian Brauner <brauner@kernel.org>,
linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk,
jack@suse.cz, david@fromorbit.com, hch@lst.de,
Linus Torvalds <torvalds@linux-foundation.org>,
amir73il@gmail.com, Naresh Kamboju <naresh.kamboju@linaro.org>
Subject: Re: [PATCH] fs: don't block i_writecount during exec
Date: Thu, 6 Jun 2024 12:53:18 -0400 [thread overview]
Message-ID: <20240606165318.GB2529118@perftesting> (raw)
In-Reply-To: <9bfb5ebb-80f4-4f43-80af-e0d7d28234fc@sirena.org.uk>
On Thu, Jun 06, 2024 at 04:37:49PM +0100, Mark Brown wrote:
> On Thu, Jun 06, 2024 at 01:45:05PM +0100, Aishwarya TCV wrote:
> > On 31/05/2024 14:01, Christian Brauner wrote:
>
> > > Back in 2021 we already discussed removing deny_write_access() for
> > >
> > > executables. Back then I was hesistant because I thought that this might
> > >
> > > cause issues in userspace. But even back then I had started taking some
> > >
> > > notes on what could potentially depend on this and I didn't come up with
> > >
> > > a lot so I've changed my mind and I would like to try this.
>
> > LTP test "execve04" is failing when run against
> > next-master(next-20240606) kernel with Arm64 on JUNO in our CI.
>
> It's also causing the LTP creat07 test to fail with basically the same
> bisection (I started from next/pending-fixes rather than the -rc so the
> initial phases were different):
>
> tst_test.c:1690: TINFO: LTP version: 20230929
> tst_test.c:1574: TINFO: Timeout per run is 0h 01m 30s
> creat07.c:37: TFAIL: creat() succeeded unexpectedly
> Test timeouted, sending SIGKILL!
> tst_test.c:1622: TINFO: Killed the leftover descendant processes
> tst_test.c:1628: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1
> tst_test.c:1630: TBROK: Test killed! (timeout?)
>
> The code in the testcase is below:
>
> static void verify_creat(void)
> {
> pid_t pid;
>
> pid = SAFE_FORK();
> if (pid == 0) {
> SAFE_EXECL(TEST_APP, TEST_APP, NULL);
> exit(1);
> }
>
> TST_CHECKPOINT_WAIT(0);
>
> TEST(creat(TEST_APP, O_WRONLY));
>
> if (TST_RET != -1) {
> tst_res(TFAIL, "creat() succeeded unexpectedly");
> return;
> }
>
> if (TST_ERR == ETXTBSY)
> tst_res(TPASS, "creat() received EXTBSY");
> else
> tst_res(TFAIL | TTERRNO, "creat() failed unexpectedly");
>
These tests will have to be updated, as this patch removes that behavior.
Thanks,
Josef
next prev parent reply other threads:[~2024-06-06 16:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 20:41 [PATCH][RFC] fs: add levels to inode write access Josef Bacik
2024-05-29 22:00 ` Jeff Layton
2024-05-30 1:14 ` Matthew Wilcox
2024-05-30 10:32 ` Christian Brauner
2024-05-30 12:57 ` Amir Goldstein
2024-05-30 14:58 ` Josef Bacik
2024-05-30 15:23 ` Christian Brauner
2024-05-30 15:49 ` Linus Torvalds
2024-05-31 10:02 ` Christian Brauner
2024-05-31 12:32 ` Christian Brauner
2024-05-31 13:01 ` [PATCH] fs: don't block i_writecount during exec Christian Brauner
2024-05-31 15:40 ` Linus Torvalds
2024-05-31 18:08 ` Jeff Layton
2024-05-31 22:08 ` Josef Bacik
2024-06-03 13:52 ` (subset) " Christian Brauner
2024-06-06 12:45 ` Aishwarya TCV
2024-06-06 15:37 ` Mark Brown
2024-06-06 16:53 ` Josef Bacik [this message]
2024-06-06 17:33 ` Mark Brown
2024-06-06 17:49 ` Mark Brown
2024-08-07 9:59 ` Tudor Ambarus
2024-09-04 17:04 ` Jann Horn
2024-09-05 7:38 ` Roberto Sassu
2024-05-31 13:09 ` [PATCH][RFC] fs: add levels to inode write access Amir Goldstein
2024-05-31 14:50 ` Christian Brauner
2024-05-31 15:47 ` Matthew Wilcox
2024-05-31 22:14 ` Matthew Wilcox
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=20240606165318.GB2529118@perftesting \
--to=josef@toxicpanda.com \
--cc=aishwarya.tcv@arm.com \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=broonie@kernel.org \
--cc=david@fromorbit.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=naresh.kamboju@linaro.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).