New: xfs stops if link count is to high
https://bugzilla.kernel.org/show_bug.cgi?id=222081
Bug ID: 222081
Summary: xfs stops if link count is to high
Product: File System
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: high
Priority: P3
Component: XFS
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 310977
--> https://bugzilla.kernel.org/attachment.cgi?id=310977&action=edit
Kernel trace
Environment is an docker on a xfs with overlay. Inside the docker a bitbake/yocto build is running.
Is link count reaches 552 an allocation error occours and the filesystem is stopped.
Kernels: 6.18.28 and 6.18.48
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #1 from [email protected] ---
Created attachment 310978
--> https://bugzilla.kernel.org/attachment.cgi?id=310978&action=edit
Output of xfs_info
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #2 from [email protected] ---
Created attachment 310979
--> https://bugzilla.kernel.org/attachment.cgi?id=310979&action=edit
Output of find with link count
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #3 from [email protected] ---
mkfs.xfs version 6.19.0
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #4 from [email protected] ---
Note: Creating the the filesystem with "parent=0" the crash not occurs.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Re: [Bug 222081] xfs stops if link count is to high
Could you capture a metadump of the affected filesystem, please?
I couldn't reproduce it on upstream 7.3-rc6 and nobody's responsible for QA'ing 6.18 so there's little to work from, I'm afraid.
--D
Quoted 10 lines · On Wed, Sep 30, 2026 at 08:24:33PM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #4 from [email protected] ---
Note: Creating the the filesystem with "parent=0" the crash not occurs.Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #5 from Darrick J. Wong ([email protected]) --- Could you capture a metadump of the affected filesystem, please?
I couldn't reproduce it on upstream 7.3-rc6 and nobody's responsible for QA'ing 6.18 so there's little to work from, I'm afraid.
--D
Quoted 10 lines · On Wed, Sep 30, 2026 at 08:24:33PM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #4 from [email protected] ---
Note: Creating the the filesystem with "parent=0" the crash not occurs.Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #6 from [email protected] ---
The crashed filesystem no longer exists because its a productive system which must be fixed fast.
From the current running filesystem I can create it if you provide me the commands.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Re: [Bug 222081] xfs stops if link count is to high
Quoted 7 lines · On Wed, Oct 07, 2026 at 07:50:37AM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #6 from [email protected] ---
The crashed filesystem no longer exists because its a productive system which must be fixed fast.
From the current running filesystem I can create it if you provide me the commands.
# xfs_metadump -a -g -o /dev/sdXX /tmp/brokenfs.metadump # zstd -9 /tmp/brokenfs.metadump
--D
Quoted 5 lines
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #7 from Darrick J. Wong ([email protected]) ---
Quoted 7 lines · On Wed, Oct 07, 2026 at 07:50:37AM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #6 from [email protected] ---
The crashed filesystem no longer exists because its a productive system which must be fixed fast.
From the current running filesystem I can create it if you provide me the commands.
# xfs_metadump -a -g -o /dev/sdXX /tmp/brokenfs.metadump # zstd -9 /tmp/brokenfs.metadump
--D
Quoted 5 lines
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #8 from [email protected] ---
Is the a possibility to create the dump without filenames? It current created dump contains to much internal data.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #9 from [email protected] ---
I found option -o, but I think you need the extended attributes.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Re: [Bug 222081] xfs stops if link count is to high
Quoted 4 lines · On Mon, Oct 12, 2026 at 08:01:01AM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #9 from [email protected] ---
I found option -o, but I think you need the extended attributes.
Yes, omitting -o will obfuscate names if that's critical for being able to share a filesystem metadata image. It will also pick up (and obfuscate) the xattrs, even for parent pointers.
--D
Quoted 5 lines
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #10 from Darrick J. Wong ([email protected]) ---
Quoted 4 lines · On Mon, Oct 12, 2026 at 08:01:01AM +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #9 from [email protected] ---
I found option -o, but I think you need the extended attributes.
Yes, omitting -o will obfuscate names if that's critical for being able to share a filesystem metadata image. It will also pick up (and obfuscate) the xattrs, even for parent pointers.
--D
Quoted 5 lines
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
--- Comment #11 from [email protected] ---
I have created a dump without -o but it already contains filenames which provide to much information to upload it.
Any ideas I can help you?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222081] xfs stops if link count is to high
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222081
Eric Sandeen ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #12 from Eric Sandeen ([email protected]) --- Without -o, any filename of length > 4 should get obfuscated. Is that not happening?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.