Fix ext4 corrupted bitmap error path (pointed out by Eric Sandeen)
This commit is contained in:
parent
8aec6133a3
commit
a5827f34f1
1
TODO
1
TODO
@ -10,6 +10,7 @@
|
|||||||
drm-edid-try-harder-to-fix-up-broken-headers.patch
|
drm-edid-try-harder-to-fix-up-broken-headers.patch
|
||||||
Bluetooth-Add-support-for-BCM20702A0-0a5c-21e3.patch
|
Bluetooth-Add-support-for-BCM20702A0-0a5c-21e3.patch
|
||||||
ext4-Support-check-none-nocheck-mount-options.patch
|
ext4-Support-check-none-nocheck-mount-options.patch
|
||||||
|
ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
|
||||||
|
|
||||||
**** Other stuff that should go upstream (in decreasing likelyhood) ************************************
|
**** Other stuff that should go upstream (in decreasing likelyhood) ************************************
|
||||||
|
|
||||||
|
19
ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
Normal file
19
ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
|
||||||
|
index 00beb4f..8fb6844 100644
|
||||||
|
--- a/fs/ext4/ialloc.c
|
||||||
|
+++ b/fs/ext4/ialloc.c
|
||||||
|
@@ -885,8 +885,12 @@ got:
|
||||||
|
if (IS_DIRSYNC(inode))
|
||||||
|
ext4_handle_sync(handle);
|
||||||
|
if (insert_inode_locked(inode) < 0) {
|
||||||
|
- err = -EINVAL;
|
||||||
|
- goto fail_drop;
|
||||||
|
+ /*
|
||||||
|
+ * Likely a bitmap corruption causing inode to be allocated
|
||||||
|
+ * twice.
|
||||||
|
+ */
|
||||||
|
+ err = -EIO;
|
||||||
|
+ goto fail;
|
||||||
|
}
|
||||||
|
spin_lock(&sbi->s_next_gen_lock);
|
||||||
|
inode->i_generation = sbi->s_next_generation++;
|
@ -752,6 +752,7 @@ Patch21045: nfs-client-freezer.patch
|
|||||||
Patch21065: Bluetooth-Add-support-for-BCM20702A0-0a5c-21e3.patch
|
Patch21065: Bluetooth-Add-support-for-BCM20702A0-0a5c-21e3.patch
|
||||||
|
|
||||||
Patch21070: ext4-Support-check-none-nocheck-mount-options.patch
|
Patch21070: ext4-Support-check-none-nocheck-mount-options.patch
|
||||||
|
Patch21071: ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
|
||||||
|
|
||||||
# compat-wireless patches
|
# compat-wireless patches
|
||||||
Patch50000: compat-wireless-config-fixups.patch
|
Patch50000: compat-wireless-config-fixups.patch
|
||||||
@ -1459,6 +1460,8 @@ ApplyPatch Bluetooth-Add-support-for-BCM20702A0-0a5c-21e3.patch
|
|||||||
|
|
||||||
ApplyPatch ext4-Support-check-none-nocheck-mount-options.patch
|
ApplyPatch ext4-Support-check-none-nocheck-mount-options.patch
|
||||||
|
|
||||||
|
ApplyPatch ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
|
||||||
|
|
||||||
# END OF PATCH APPLICATIONS
|
# END OF PATCH APPLICATIONS
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
@ -2295,6 +2298,7 @@ fi
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 10 2012 Josh Boyer <jwboyer@redhat.com>
|
* Tue Jan 10 2012 Josh Boyer <jwboyer@redhat.com>
|
||||||
- Add patch to fix ext4 compatibility with ext2 mount option (rhbz 770172)
|
- Add patch to fix ext4 compatibility with ext2 mount option (rhbz 770172)
|
||||||
|
- Fix ext4 corrupted bitmap error path (pointed out by Eric Sandeen)
|
||||||
|
|
||||||
* Thu Jan 05 2012 Adam Jackson <ajax@redhat.com>
|
* Thu Jan 05 2012 Adam Jackson <ajax@redhat.com>
|
||||||
- Disable unsupported DRI1-only DRM drivers: i810, r128, tdfx
|
- Disable unsupported DRI1-only DRM drivers: i810, r128, tdfx
|
||||||
|
Loading…
Reference in New Issue
Block a user