Bug 215900 - kernel hangs when running commands on F2FS file system
Summary: kernel hangs when running commands on F2FS file system
Status: RESOLVED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: f2fs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Default virtual assignee for f2fs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-27 12:59 UTC by bughunter
Modified: 2022-05-03 00:56 UTC (History)
1 user (show)

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


Attachments
case.c (5.09 KB, text/plain)
2022-04-27 12:59 UTC, bughunter
Details

Description bughunter 2022-04-27 12:59:43 UTC
Created attachment 300824 [details]
case.c

I have mounted a F2FS image on the Linux system. When I was performing file operations on the mounted directory, the kernel hangs. I tried to kill the running process but failed. Any operations on the directory have no response. I am wondering whether a deadlock is in the kernel.

This issue can be reproduced by running the following scripts:

gcc -o case case.c
losetup /dev/loop0 case.img
mount -o "disable_ext_identify,inline_data,nobarrier,extent_cache,grpquota,fsync_mode=nobarrier,test_dummy_encryption" -t f2fs /dev/loop0 /root/mnt
./case

The image can be found at (https://drive.google.com/file/d/1bjCQR_-Sz6iF_wshMGU3wWZDQ8tQIFdj/view?usp=sharing)
Comment 1 Chao Yu 2022-04-30 13:32:58 UTC
I doubt this has been fixed, could you please help to verify with recent fixing patches in below branch?

https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/log/?h=dev-test
Comment 2 bughunter 2022-04-30 14:23:41 UTC
Yes, after adding these patches, this bug has been fixed! Thank you~

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