kernel/relay.c: limit kmalloc size to KMALLOC_MAX_SIZE