Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'tpmdd-next-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd

Pull tpm updates from Jarkko Sakkinen:
"Just a few bug fixes this time"

* tag 'tpmdd-next-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
selftest: tpm2: Add Client.__del__() to close /dev/tpm* handle
security/keys: Remove inconsistent __user annotation
char: move from strlcpy with unused retval to strscpy

+6 -2
+1 -1
drivers/char/tpm/tpm_ppi.c
··· 380 380 TPM_PPI_FN_VERSION, 381 381 NULL, ACPI_TYPE_STRING); 382 382 if (obj) { 383 - strlcpy(chip->ppi_version, obj->string.pointer, 383 + strscpy(chip->ppi_version, obj->string.pointer, 384 384 sizeof(chip->ppi_version)); 385 385 ACPI_FREE(obj); 386 386 }
+1 -1
security/keys/keyring.c
··· 79 79 static void keyring_destroy(struct key *keyring); 80 80 static void keyring_describe(const struct key *keyring, struct seq_file *m); 81 81 static long keyring_read(const struct key *keyring, 82 - char __user *buffer, size_t buflen); 82 + char *buffer, size_t buflen); 83 83 84 84 struct key_type key_type_keyring = { 85 85 .name = "keyring",
+4
tools/testing/selftests/tpm2/tpm2.py
··· 371 371 fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags) 372 372 self.tpm_poll = select.poll() 373 373 374 + def __del__(self): 375 + if self.tpm: 376 + self.tpm.close() 377 + 374 378 def close(self): 375 379 self.tpm.close() 376 380