[TRUSTY SRU][PATCH] xfs: xfs_dir2_block_to_sf temp buffer allocation fails
Rafael David Tinoco
rafael.tinoco at canonical.com
Tue Oct 21 00:08:48 UTC 2014
Buglink: https://bugs.launchpad.net/bugs/1382333
Impact:
- xfs can hang on lack of contiguous memory page to be allocated.
Fix:
- upstream patch (b3f03bac8132207a20286d5602eda64500c19724).
Testcase:
- buddyinfo showing lack of contiguous blocks to be allocated (fragmented memory)
- to create 1 million files in 1 directory (attached script as an example)
- to observe message: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
Observations:
This patch removes the need for a directory sized allocation from
xfs funcion responsible to convert directory structure to shorter
form. This reduces dramatically the probability of getting kernel
memory allocations failure when memory is fragmented.
--
2.1.1
More information about the kernel-team
mailing list