Bug 215709 - kernel deadlocks while mounting the image
Summary: kernel deadlocks while mounting the image
Alias: None
Product: File System
Classification: Unclassified
Component: f2fs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Default virtual assignee for f2fs
Depends on:
Reported: 2022-03-21 10:54 UTC by bughunter
Modified: 2022-03-25 22:18 UTC (History)
1 user (show)

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


Description bughunter 2022-03-21 10:54:32 UTC
I have created an image with mkfs.f2fs, and modified some of the metadata of the image. Unfortunately, when I tried to mount the image with a loop device, the kernel deadlocked. I have attempted many ways to stop the mount process, even executed a 'kill' command, but they are failed, only what I can do is to reboot the system. Can anyone tell me why the kernel deadlocked, and how can I fix this problem?

I have upload the image to the Google Drive (https://drive.google.com/file/d/1DBwKP0-MpkD3eHPTluz3KPcxbdZAw06t/view?usp=sharing). Looking forward to getting a reply :)
Comment 1 Chao Yu 2022-03-21 15:26:14 UTC
Hi, thanks for the report.

I've figured out a patch to fix this, could you please verify with it?


Comment 2 bughunter 2022-03-22 04:01:50 UTC
Thank you for prompt reply! I have tried this patch, and it seems that the bug has been fixed.
Comment 3 Chao Yu 2022-03-25 22:18:45 UTC
Thanks for the test. ;)

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