From b4d304b208cef7c67e3b61a58e84e0568ddb2299 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 15 Oct 2025 12:14:54 +0200 Subject: [PATCH] Handle FUSE_GETXATTR during FUSE FS mount in tests (RHEL-121433) Resolves: RHEL-121433 --- glibc-RHEL-121433.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 glibc-RHEL-121433.patch diff --git a/glibc-RHEL-121433.patch b/glibc-RHEL-121433.patch new file mode 100644 index 0000000..ee16c69 --- /dev/null +++ b/glibc-RHEL-121433.patch @@ -0,0 +1,39 @@ +commit 6f999af332c91035350390ef8af96388b8f4fd2c +Author: Arjun Shankar +Date: Mon Aug 18 15:33:13 2025 +0200 + + support: Handle FUSE_GETXATTR during FUSE FS mount + + When testing with some kernel versions, support FUSE infrastructure + encounters a FUSE_GETXATTR request, leading to FUSE tests hanging until + timed out. Therefore, pass FUSE_GETXATTR requests from + support_fuse_handle_mountpoint to support_fuse_handle_directory, and + adjust support_fuse_handle_directory to return ENOSYS so that tests can + proceed. + + Reviewed-by: Florian Weimer + +diff --git a/support/support_fuse.c b/support/support_fuse.c +index f6c063b549e2c26c..5af2f7d8ab93a5ea 100644 +--- a/support/support_fuse.c ++++ b/support/support_fuse.c +@@ -212,6 +212,9 @@ support_fuse_handle_directory (struct support_fuse *f) + support_fuse_reply_prepared (f); + } + return true; ++ case FUSE_GETXATTR: ++ support_fuse_reply_error (f, ENOSYS); ++ return true; + default: + return false; + } +@@ -222,7 +225,8 @@ support_fuse_handle_mountpoint (struct support_fuse *f) + { + TEST_VERIFY (f->inh != NULL); + /* 1 is the root node. */ +- if (f->inh->opcode == FUSE_GETATTR && f->inh->nodeid == 1) ++ if ((f->inh->opcode == FUSE_GETATTR || f->inh->opcode == FUSE_GETXATTR) ++ && f->inh->nodeid == 1) + return support_fuse_handle_directory (f); + return false; + }