public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb
@ 2024-08-31 16:09 cel
  2024-08-31 18:00 ` Petr Vorel
  2024-09-03  7:31 ` Petr Vorel
  0 siblings, 2 replies; 3+ messages in thread
From: cel @ 2024-08-31 16:09 UTC (permalink / raw)
  To: ltp; +Cc: Amir Goldstein, Petr Vorel, stable, Chuck Lever

From: Chuck Lever <chuck.lever@oracle.com>

I backported commit e730558adffb ("fsnotify: consistent behavior for
parent not watching children") to v5.15.y and v5.10.y. Update
fanotify09 to test older LTS kernels containing that commit.

Suggested-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 testcases/kernel/syscalls/fanotify/fanotify09.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Untested.

diff --git a/testcases/kernel/syscalls/fanotify/fanotify09.c b/testcases/kernel/syscalls/fanotify/fanotify09.c
index f61c4e45a88c..48b198b9415a 100644
--- a/testcases/kernel/syscalls/fanotify/fanotify09.c
+++ b/testcases/kernel/syscalls/fanotify/fanotify09.c
@@ -29,7 +29,6 @@
  *      7372e79c9eb9 fanotify: fix logic of reporting name info with watched parent
  *
  * Test cases #6-#7 are regression tests for commit:
- * (from v5.19, unlikely to be backported thus not in .tags):
  *
  *      e730558adffb fanotify: consistent behavior for parent not watching children
  */
@@ -380,9 +379,9 @@ static void test_fanotify(unsigned int n)
 		return;
 	}
 
-	if (tc->ignore && tst_kvercmp(5, 19, 0) < 0) {
+	if (tc->ignore && tst_kvercmp(5, 10, 0) < 0) {
 		tst_res(TCONF, "ignored mask on parent dir has undefined "
-				"behavior on kernel < 5.19");
+				"behavior on kernel < 5.10");
 		return;
 	}
 
@@ -520,6 +519,7 @@ static struct tst_test test = {
 		{"linux-git", "b469e7e47c8a"},
 		{"linux-git", "55bf882c7f13"},
 		{"linux-git", "7372e79c9eb9"},
+		{"linux-git", "e730558adffb"},
 		{}
 	}
 };
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb
  2024-08-31 16:09 [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb cel
@ 2024-08-31 18:00 ` Petr Vorel
  2024-09-03  7:31 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2024-08-31 18:00 UTC (permalink / raw)
  To: cel
  Cc: ltp, Amir Goldstein, stable, Chuck Lever, Li Wang, Martin Doucha,
	Jan Kara

Hi Chuck, Amir, all,

[ Add some enterprise folks just to notify ]

> From: Chuck Lever <chuck.lever@oracle.com>

Thanks for the fix!

> I backported commit e730558adffb ("fsnotify: consistent behavior for
> parent not watching children") to v5.15.y and v5.10.y. Update
> fanotify09 to test older LTS kernels containing that commit.

> Suggested-by: Amir Goldstein <amir73il@gmail.com>
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

For others, suggested here:
https://lore.kernel.org/all/CAOQ4uxiUwSiRQ9tLPw6FPDB05rRLFdjxruFM4Lk=HcZfP2tfqA@mail.gmail.com/

Reviewed-by: Petr Vorel <pvorel@suse.cz>

NOTE: we might need to add check for enterprise kernels, but that should be
trivial. I'll test it on Monday on SLES and maybe add follow up for it.

Kind regards,
Petr
> ---
>  testcases/kernel/syscalls/fanotify/fanotify09.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

> Untested.

> diff --git a/testcases/kernel/syscalls/fanotify/fanotify09.c b/testcases/kernel/syscalls/fanotify/fanotify09.c
> index f61c4e45a88c..48b198b9415a 100644
> --- a/testcases/kernel/syscalls/fanotify/fanotify09.c
> +++ b/testcases/kernel/syscalls/fanotify/fanotify09.c
> @@ -29,7 +29,6 @@
>   *      7372e79c9eb9 fanotify: fix logic of reporting name info with watched parent
>   *
>   * Test cases #6-#7 are regression tests for commit:
> - * (from v5.19, unlikely to be backported thus not in .tags):
>   *
>   *      e730558adffb fanotify: consistent behavior for parent not watching children
>   */
> @@ -380,9 +379,9 @@ static void test_fanotify(unsigned int n)
>  		return;
>  	}

> -	if (tc->ignore && tst_kvercmp(5, 19, 0) < 0) {
> +	if (tc->ignore && tst_kvercmp(5, 10, 0) < 0) {
>  		tst_res(TCONF, "ignored mask on parent dir has undefined "
> -				"behavior on kernel < 5.19");
> +				"behavior on kernel < 5.10");
>  		return;
>  	}

> @@ -520,6 +519,7 @@ static struct tst_test test = {
>  		{"linux-git", "b469e7e47c8a"},
>  		{"linux-git", "55bf882c7f13"},
>  		{"linux-git", "7372e79c9eb9"},
> +		{"linux-git", "e730558adffb"},
>  		{}
>  	}
>  };

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb
  2024-08-31 16:09 [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb cel
  2024-08-31 18:00 ` Petr Vorel
@ 2024-09-03  7:31 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2024-09-03  7:31 UTC (permalink / raw)
  To: cel; +Cc: ltp, Amir Goldstein, stable, Chuck Lever

Hi Chuck,

thanks for your patch, merged!

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-03  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31 16:09 [PATCH RFC] syscalls/fanotify09: Note backport of commit e730558adffb cel
2024-08-31 18:00 ` Petr Vorel
2024-09-03  7:31 ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox