[PATCH 0/2] cache: fix cache logic not go into invalid state

Atsushi Kumagai kumagai-atsushi at mxc.nes.nec.co.jp
Thu Sep 19 04:18:59 EDT 2013


Hello HATAYAMA-san,

(2013/09/19 9:54), HATAYAMA Daisuke wrote:
> Hello Kumagai-san,
>
> Could you review these patches?

Good catch, thanks for your fixing.
I'll merge this patch set into v1.5.5.

BTW, I'm going to be on vacation from Sep 21 until Sep 30,
I can't reply for a while.


Thanks
Atsushi Kumagai

>
> (2013/09/17 15:29), HATAYAMA Daisuke wrote:
>> I faced failure of sadump phys_base calculation and found a bug in
>> cache.c causes it. Due to the bug, cache_alloc() returns NULL forever
>> throughout execution. The fix is the 2nd patch. During the
>> investigation I also found a lack of malloc() allocation failure
>> check. The fix is the 1st patch. Primary is the 2nd one.
>>
>> I built this patch set on top of devel branch.
>>
>> ---
>>
>> HATAYAMA Daisuke (2):
>>        cache: allocate buffers at initialization to detect malloc() failure
>>        cache: reuse entry in pending list
>>
>>
>>   cache.c        |   50 +++++++++++++++++++++++++++++++++-----------------
>>   cache.h        |    1 +
>>   makedumpfile.c |    3 +++
>>   3 files changed, 37 insertions(+), 17 deletions(-)
>>



More information about the kexec mailing list