Bug 218672 - ubifs: add orphan entry twice for tmpfile
Summary: ubifs: add orphan entry twice for tmpfile
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 12:10 UTC by Zhihao Cheng
Modified: 2024-04-02 12:10 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
diff (1.00 KB, patch)
2024-04-02 12:10 UTC, Zhihao Cheng
Details | Diff
a.c (1.68 KB, text/plain)
2024-04-02 12:10 UTC, Zhihao Cheng
Details

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

Note You need to log in before you can comment on or make changes to this bug.