You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I discovered multiple questionable to bugged code places in xattr.c:
If a directory gets the file_type flag due to its content, the flag is only visible if a listxattr has been executed before the getxattr call.
An implicit file_type flag set by listxattr or getxattr persists even if the condition is no longer true. This even happens if the file system is mounted as read-only.
The setxattr handler does not use a transaction for its data. Therefore, crash states are possible where the parent directory has an implicit flag but the file doesn't and vice versa.
For some crash states, getxattr even fails.
Further, pmfs_new_data_blocks sets the huge_aligned_file flag even if this part of the inode is not part of them transaction.
Therefore, crash states are possible where the overall operation succeeded but the flag (and therefore the implicit) attribute is not set and vice versa.
While inspecting the code, I could only prove that it was necessary for the fallocate syscall to include the whole inode in the transaction.
I assume that there are more places but I have not yet found them.
The text was updated successfully, but these errors were encountered:
Hello,
I discovered multiple questionable to bugged code places in xattr.c:
Further,
pmfs_new_data_blocks
sets the huge_aligned_file flag even if this part of the inode is not part of them transaction.Therefore, crash states are possible where the overall operation succeeded but the flag (and therefore the implicit) attribute is not set and vice versa.
While inspecting the code, I could only prove that it was necessary for the fallocate syscall to include the whole inode in the transaction.
I assume that there are more places but I have not yet found them.
The text was updated successfully, but these errors were encountered: