Bug 218672

Summary: ubifs: add orphan entry twice for tmpfile
Product: File System Reporter: Zhihao Cheng (chengzhihao1)
Component: OtherAssignee: fs_other
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: diff
a.c

Description Zhihao Cheng 2024-04-02 12:10:05 UTC
1. Apply diff
2. gcc -oaa a.c
3. ./aa

unlink fail: Invalid argument

[  547.684277] commit
[  547.701235] wait link and unlink
[  548.700856] UBIFS error (ubi0:0 pid 7735): orphan_add [ubifs]: orphaned twice
[  549.755214] wait done
[  549.756252] commit
Comment 1 Zhihao Cheng 2024-04-02 12:10:18 UTC
Created attachment 306079 [details]
diff
Comment 2 Zhihao Cheng 2024-04-02 12:10:28 UTC
Created attachment 306080 [details]
a.c