db, kernel: when kmalloc() succeeds that implies the size was reasonable