Skip to content

cache: fix cache logic not go into invalid state

HATAYAMA Daisuke kexec 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cache: allocate buffers at initialization to detect malloc() failurecache.c cache.h makedumpfile.c+26 -70 replies
2/2cache: reuse entry in pending listcache.c+13 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 7 lines
Thanks.
HATAYAMA, Daisuke

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec