Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
Lustre 1.8.6
-
None
-
3
-
5072
Description
I have been chasing a weird bug with MMP on 2.6.39-rc1 (i want to push MMP upstream) and it turns out to be an horrible memory corruption which can impact any kernels.
+ mmpd_data = kmalloc(sizeof(struct mmpd_data *), GFP_KERNEL); ^^^^^^^^^^^^^^^^^^^ OUCH!!! should be sizeof(struct mmpd_data) + if (!mmpd_data) { + ext3_warning(sb, KERN_ERR, "not enough memory for mmpd_data"); + goto failed; + } + mmpd_data->sb = sb; + mmpd_data->bh = bh;
The memory corruption was introduced by bugzilla ticket 22117 in 1.8.5.
This issue can cause all sorts of oops everywhere in the kernel.
Attachments
Issue Links
- Trackbacks
-
Lustre 1.8.x known issues tracker While testing against Lustre b18 branch, we would hit known bugs which were already reported in Lustre Bugzilla https://bugzilla.lustre.org/. In order to move away from relying on Bugzilla, we would create a JIRA