[PATCH 4.14 009/176] kdb: Make memory allocations more robust