On Tue, 2024-02-20 at 15:58 -0600, Timur Tabi wrote: +static int add_registry(struct nvkm_gsp *gsp, const char *key, + enum registry_type type, const void *data, size_t length) +{ + struct registry_list_entry *reg; + size_t nlen = strlen(key) + 1; + size_t vlen; /* value length, non-zero if binary or string */ + + /* Set an arbitrary limit to avoid problems with broken command lines */ + if (nlen > 64) + return -EFBIG; Oops, I forgot to change this to -EINVAL.