All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs/083: redirect populate stderr to avoid spurious attr restore warnings
@ 2026-07-10 19:53 Avinesh Kumar
  2026-07-10 23:46 ` Darrick J. Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Avinesh Kumar @ 2026-07-10 19:53 UTC (permalink / raw)
  To: fstests; +Cc: zlang, djwong

From: Avinesh Kumar <avinesh.kumar@suse.com>

attr 2.6.0 (CVE-2026-54371 fix)[0] makes "setfattr --restore" print warnings
on stderr. _scratch_populate uses it, and xfs/083 only redirects stdout,
so the warnings leak into the test output and fail it.
Redirect stderr to $seqres.full too.

+Warning: option --restore=file is unsafe without option -P (--physical) as it traverses symbolic links in pathnames
+Warning: option --restore=file is unsafe without option -h (--no-dereference) as it dereferences symbolic link pathnames

[0] https://cgit.git.savannah.nongnu.org/cgit/attr.git/commit/?id=3fb06b9ba314d37035d0877e6de313de754f1ac8

Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 tests/xfs/083 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/083 b/tests/xfs/083
index 9291c8c0..48deaafa 100755
--- a/tests/xfs/083
+++ b/tests/xfs/083
@@ -91,7 +91,7 @@ echo "+ create scratch fs" >> $seqres.full
 _scratch_mkfs_xfs >> $seqres.full 2>&1
 
 echo "+ populate fs image" >> $seqres.full
-_scratch_populate >> $seqres.full
+_scratch_populate >> $seqres.full 2>&1
 
 echo "+ check fs" >> $seqres.full
 _repair_scratch_fs >> $seqres.full 2>&1 || _fail "should pass initial fsck"
-- 
2.54.0


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

end of thread, other threads:[~2026-07-13 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 19:53 [PATCH] xfs/083: redirect populate stderr to avoid spurious attr restore warnings Avinesh Kumar
2026-07-10 23:46 ` Darrick J. Wong
2026-07-13 13:52   ` [PATCH v2] common: strip attr 2.6.0 --restore safety warnings Avinesh Kumar
2026-07-13 16:14     ` Darrick J. Wong
2026-07-13 19:21       ` Avinesh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.