Strangely enough, __invalid_creds seems to be defined :
# grep -lrs "__invalid_creds" .
./aosp/android/abi_gki_aarch64_generic
./aosp/kernel/cred.c
./aosp/include/linux/cred.h
./private/gs-google/android/abi_gki_aarch64_generic
./private/gs-google/kernel/cred.c
./private/gs-google/include/linux/cred.h
Looking at ./private/gs-google/kernel/cred.c :
/*
* report use of invalid credentials
*/
void __invalid_creds(const struct cred *cred, const char *file, unsigned line)
{
printk(KERN_ERR "CRED: Invalid credentials\n");
printk(KERN_ERR "CRED: At %s:%u\n", file, line);
dump_invalid_creds(cred, "Specified", current);
BUG();
}
EXPORT_SYMBOL(__invalid_creds);