Eric Biggers <ebiggers3@xxxxxxxxx> wrote: > + if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { > + ret = -ENOKEY; > + goto error2; > + } It might be better to do this check in key_validate(). Also, it should perhaps take the error from key->reject_error. David