Linus Torvalds
5af7f11588
Merge branch 'next-tpm' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
...
Pull tpm updates from James Morris:
- Clean up the transmission flow
Cleaned up the whole transmission flow. Locking of the chip is now
done in the level of tpm_try_get_ops() and tpm_put_ops() instead
taking the chip lock inside tpm_transmit(). The nested calls inside
tpm_transmit(), used with the resource manager, have been refactored
out.
Should make easier to perform more complex transactions with the TPM
without making the subsystem a bigger mess (e.g. encrypted channel
patches by James Bottomley).
- PPI 1.3 support
TPM PPI 1.3 introduces an additional optional command parameter that
may be needed for some commands. Display the parameter if the command
requires such a parameter. Only command 23 (SetPCRBanks) needs one.
The PPI request file will show output like this then:
# echo "23 16" > request
# cat request
23 16
# echo "5" > request
# cat request
5
- Extend all PCR banks in IMA
Instead of static PCR banks array, the array of available PCR banks
is now allocated dynamically. The digests sizes are determined
dynamically using a probe PCR read without relying crypto's static
list of hash algorithms.
This should finally make sealing of measurements in IMA safe and
secure.
- TPM 2.0 selftests
Added a test suite to tools/testing/selftests/tpm2 previously outside
of the kernel tree: https://github.com/jsakkine-intel/tpm2-scripts
* 'next-tpm' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (37 commits)
tpm/ppi: Enable submission of optional command parameter for PPI 1.3
tpm/ppi: Possibly show command parameter if TPM PPI 1.3 is used
tpm/ppi: Display up to 101 operations as define for version 1.3
tpm/ppi: rename TPM_PPI_REVISION_ID to TPM_PPI_REVISION_ID_1
tpm/ppi: pass function revision ID to tpm_eval_dsm()
tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()
KEYS: trusted: explicitly use tpm_chip structure from tpm_default_chip()
tpm: move tpm_chip definition to include/linux/tpm.h
tpm: retrieve digest size of unknown algorithms with PCR read
tpm: rename and export tpm2_digest and tpm2_algorithms
tpm: dynamically allocate the allocated_banks array
tpm: remove @flags from tpm_transmit()
tpm: take TPM chip power gating out of tpm_transmit()
tpm: introduce tpm_chip_start() and tpm_chip_stop()
tpm: remove TPM_TRANSMIT_UNLOCKED flag
tpm: use tpm_try_get_ops() in tpm-sysfs.c.
tpm: remove @space from tpm_transmit()
tpm: move TPM space code out of tpm_transmit()
tpm: move tpm_validate_commmand() to tpm2-space.c
tpm: clean up tpm_try_transmit() error handling flow
...
2019-03-10 17:37:29 -07:00
..
2019-02-06 09:36:36 -08:00
2019-01-07 22:47:48 +01:00
2019-01-01 15:45:48 -08:00
2019-02-15 17:17:57 +01:00
2019-03-06 09:41:12 -08:00
2019-02-14 08:45:22 +01:00
2019-02-02 09:28:51 +00:00
2019-03-06 10:22:26 -08:00
2019-03-08 10:02:58 -08:00
2019-03-09 15:53:03 -08:00
2019-02-28 09:16:12 +01:00
2019-02-25 09:28:54 +01:00
2019-03-01 14:28:43 +01:00
2019-02-07 11:11:05 +05:30
2019-03-10 13:16:37 -07:00
2019-01-20 21:57:43 +01:00
2019-02-08 22:39:01 -08:00
2018-12-20 08:53:23 -08:00
2019-03-03 23:45:27 +00:00
2019-01-28 11:16:04 +01:00
2019-03-08 14:48:40 -08:00
2019-02-12 15:27:14 -06:00
2019-01-30 23:02:10 +00:00
2019-01-02 16:35:23 -08:00
2019-03-01 20:53:41 +01:00
2019-03-08 09:27:33 -08:00
2018-12-17 08:26:24 +01:00
2019-02-11 11:07:49 +01:00
2019-01-31 14:20:54 +01:00
2019-02-08 06:42:53 -07:00
2019-03-03 13:01:49 -08:00
2019-02-13 08:07:31 +01:00
2019-02-07 21:44:27 -05:00
2019-01-22 14:39:38 -07:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:14 -08:00
2019-01-05 13:18:59 -08:00
2019-02-24 08:20:17 -07:00
2019-03-07 18:32:00 -08:00
2019-01-24 11:11:45 -07:00
2018-12-21 08:47:05 -07:00
2019-02-15 08:40:12 -07:00
2019-03-09 16:53:47 -08:00
2019-02-07 12:57:17 -07:00
2019-01-31 10:13:21 +01:00
2019-02-01 20:55:38 +01:00
2019-01-31 10:32:01 +01:00
2019-02-27 17:22:50 +01:00
2019-01-11 18:05:41 -08:00
2019-02-05 21:27:40 -05:00
2019-02-01 20:55:38 +01:00
2019-03-07 18:31:59 -08:00
2019-02-28 13:49:22 -07:00
2019-03-07 12:20:11 -08:00
2019-01-18 13:43:10 -07:00
2019-03-07 10:11:41 -08:00
2019-01-31 06:55:57 -08:00
2019-03-05 21:07:20 -08:00
2019-02-07 00:13:27 +01:00
2019-02-15 19:52:17 +01:00
2019-01-09 11:36:41 +01:00
2019-01-21 07:23:42 +13:00
2019-01-09 11:36:41 +01:00
2019-01-09 11:36:41 +01:00
2019-02-19 13:20:35 +01:00
2019-01-18 13:52:41 +01:00
2019-02-08 12:27:36 +01:00
2019-01-30 19:27:00 +01:00
2019-02-12 23:47:42 +01:00
2019-02-23 12:13:45 +01:00
2019-01-17 22:16:13 +01:00
2019-01-08 13:18:44 -08:00
2019-01-25 18:41:52 +08:00
2019-01-10 13:58:00 +05:30
2019-01-30 11:02:11 -08:00
2019-03-07 18:32:01 -08:00
2019-03-05 14:53:50 -05:00
2019-03-10 11:54:48 -07:00
2019-01-04 09:02:17 +01:00
2019-01-17 10:12:32 +01:00
2019-03-10 12:47:57 -07:00
2018-12-20 09:51:31 -07:00
2019-03-07 18:32:00 -08:00
2019-03-10 10:17:23 -07:00
2019-02-22 12:55:31 -08:00
2019-02-24 17:33:59 -08:00
2019-02-07 16:47:32 +01:00
2019-01-16 17:42:35 +01:00
2019-02-19 10:10:05 +01:00
2018-12-19 09:40:13 +01:00
2019-02-28 08:24:23 -07:00
2019-03-06 07:59:36 -08:00
2018-12-19 10:42:08 +01:00
2019-03-05 21:07:18 -08:00
2019-01-21 17:48:13 +01:00
2019-03-09 10:54:24 -08:00
2019-01-23 23:56:43 -05:00
2019-01-18 10:02:09 +01:00
2019-02-18 12:41:16 +01:00
2019-02-07 16:38:36 +01:00
2018-12-31 11:46:59 -08:00
2019-01-04 13:13:46 -08:00
2018-12-20 09:51:31 -07:00
2019-03-05 21:07:16 -08:00
2019-02-15 16:54:38 +01:00
2019-02-06 10:05:16 +00:00
2019-01-25 19:35:20 +02:00
2019-01-29 12:09:11 +01:00
2019-01-16 14:29:48 +01:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:50 -08:00
2019-03-05 21:07:19 -08:00
2019-02-14 20:56:10 -05:00
2019-02-05 14:05:03 +01:00
2019-02-24 14:43:22 +01:00
2019-01-31 08:25:09 -07:00
2019-02-22 12:56:24 -08:00
2019-01-24 22:45:34 -08:00
2019-02-03 12:11:12 -08:00
2019-01-22 10:23:17 +01:00
2019-02-04 17:36:01 -05:00
2019-01-22 17:18:09 -08:00
2018-12-17 09:19:49 -08:00
2019-02-04 08:53:56 +01:00
2019-01-14 11:42:18 +01:00
2019-01-11 13:10:03 +01:00
2019-01-11 13:10:03 +01:00
2019-01-22 13:37:25 +01:00
2019-01-22 13:37:25 +01:00
2019-02-23 10:53:31 +01:00
2019-01-22 13:39:59 +01:00
2019-01-22 13:39:59 +01:00
2019-02-11 11:26:48 +01:00
2019-02-24 08:20:17 -07:00
2019-03-01 11:24:51 +01:00
2019-01-22 17:18:08 -08:00
2019-02-09 19:48:42 -06:00
2019-03-03 21:05:10 -08:00
2019-03-08 10:09:53 -08:00
2018-12-18 14:22:28 +01:00
2019-02-23 10:53:31 +01:00
2019-03-08 10:09:53 -08:00
2019-01-06 09:46:51 +09:00
2019-01-06 09:46:51 +09:00
2019-03-05 21:07:13 -08:00
2018-12-28 12:11:44 -08:00
2019-03-04 13:42:05 +01:00
2019-03-07 18:31:59 -08:00
2019-03-05 21:07:17 -08:00
2018-12-26 17:03:51 -08:00
2019-02-15 14:12:09 -08:00
2018-12-30 08:33:06 +00:00
2019-01-30 11:52:21 +01:00
2019-03-05 21:07:15 -08:00
2019-03-06 08:14:05 -08:00
2018-12-21 11:28:22 +01:00
2019-01-16 22:08:07 +01:00
2019-02-08 17:33:00 -05:00
2019-01-21 09:57:43 -08:00
2019-03-07 18:31:59 -08:00
2019-03-05 21:07:16 -08:00
2019-01-11 20:51:24 +01:00
2019-02-28 07:55:53 +01:00
2019-03-07 12:20:11 -08:00
2019-03-07 18:32:03 -08:00
2018-12-21 22:31:26 -06:00
2018-12-21 22:31:26 -06:00
2019-02-24 17:45:25 -08:00
2019-02-05 11:51:56 -07:00
2019-02-18 16:43:54 -08:00
2019-02-12 10:38:46 +01:00
2019-02-16 15:02:03 +01:00
2019-03-05 21:07:17 -08:00
2019-03-05 21:07:14 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:51 -08:00
2019-01-04 13:13:48 -08:00
2019-03-09 15:53:03 -08:00
2019-03-07 18:32:03 -08:00
2018-12-28 12:11:50 -08:00
2019-03-05 21:07:21 -08:00
2019-03-10 13:16:37 -07:00
2019-03-09 09:56:17 -08:00
2018-12-20 16:32:56 +00:00
2019-02-08 13:30:10 -06:00
2019-01-30 20:51:47 -05:00
2019-03-07 18:31:59 -08:00
2019-02-16 13:45:01 -08:00
2019-03-02 12:54:35 -08:00
2018-12-19 11:21:37 -08:00
2019-01-06 09:46:51 +09:00
2019-01-28 11:32:58 +01:00
2019-02-04 18:21:12 +01:00
2019-01-06 09:46:51 +09:00
2019-01-19 10:09:58 -08:00
2018-12-19 13:52:45 -05:00
2018-12-19 13:52:46 -05:00
2018-12-19 13:52:46 -05:00
2019-03-05 21:07:20 -08:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:19 -07:00
2019-02-20 07:22:10 -07:00
2019-02-20 07:22:05 -07:00
2019-01-22 10:21:45 +01:00
2019-02-08 15:02:49 -08:00
2019-02-13 09:10:14 +01:00
2019-02-28 11:40:49 -06:00
2019-01-10 16:24:44 -06:00
2018-12-28 12:11:48 -08:00
2018-12-28 12:11:44 -08:00
2019-03-05 21:07:19 -08:00
2018-12-28 12:11:46 -08:00
2018-12-28 12:11:51 -08:00
2019-03-05 21:07:20 -08:00
2019-02-13 19:45:56 +01:00
2019-02-01 17:24:52 -06:00
2019-02-28 11:09:29 +01:00
2019-01-08 07:58:37 -05:00
2019-02-15 10:03:35 +00:00
2019-03-10 12:29:52 -07:00
2019-02-28 07:55:37 +01:00
2019-02-28 08:29:50 +01:00
2019-02-07 18:11:58 -08:00
2019-03-03 21:47:57 -08:00
2019-02-24 12:39:45 -08:00
2019-03-07 18:31:59 -08:00
2019-03-08 10:09:53 -08:00
2019-02-15 11:36:38 +01:00
2019-03-06 12:59:46 -08:00
2019-02-20 11:18:07 +01:00
2019-02-19 10:42:43 +01:00
2019-03-05 21:07:20 -08:00
2019-02-07 00:13:27 +01:00
2019-01-15 16:36:13 +01:00
2019-02-20 00:33:08 +01:00
2019-03-09 09:22:42 -08:00
2019-01-29 10:52:40 +01:00
2019-02-17 15:53:01 -08:00
2019-01-10 17:04:45 -06:00
2019-02-09 08:44:32 -08:00
2019-02-09 08:44:41 -08:00
2019-02-09 08:44:46 -08:00
2019-02-09 08:47:52 -08:00
2019-02-09 08:45:46 -08:00
2019-02-09 08:45:52 -08:00
2019-01-23 15:52:15 +00:00
2019-01-03 18:57:57 -08:00
2019-03-07 18:32:03 -08:00
2019-01-07 16:38:26 +01:00
2019-02-22 13:49:00 +01:00
2019-02-25 21:20:45 +01:00
2018-12-20 12:17:05 -07:00
2019-02-11 15:02:33 -07:00
2019-03-07 12:20:11 -08:00
2019-03-07 12:20:11 -08:00
2018-12-17 16:02:57 +01:00
2019-03-05 21:07:18 -08:00
2019-01-12 11:48:20 -06:00
2019-03-09 09:56:17 -08:00
2018-12-20 23:47:09 +01:00
2018-12-28 12:11:44 -08:00
2018-12-29 11:21:49 -08:00
2019-03-05 21:07:14 -08:00
2019-02-03 11:17:31 -08:00
2019-02-09 08:47:52 -08:00
2019-02-09 08:45:59 -08:00
2019-02-09 08:47:52 -08:00
2019-02-07 16:38:35 +01:00
2019-01-30 22:24:49 -08:00
2018-12-22 22:50:29 -05:00
2019-03-05 21:07:21 -08:00
2019-03-10 12:47:57 -07:00
2019-03-08 14:48:40 -08:00
2019-02-28 13:49:29 +01:00
2019-02-07 00:13:27 +01:00
2019-02-07 00:13:28 +01:00
2018-12-18 16:13:05 +01:00
2018-12-18 16:13:05 +01:00
2019-02-07 00:13:28 +01:00
2019-02-09 08:47:52 -08:00
2019-02-13 09:48:51 +02:00
2019-02-13 09:48:52 +02:00
2018-12-18 14:08:12 -08:00
2019-03-07 18:31:59 -08:00
2019-01-04 12:56:09 -08:00
2019-01-11 18:05:40 -08:00
2019-02-04 17:34:07 -05:00
2019-03-06 11:19:57 -05:00
2019-02-24 12:06:19 -08:00
2019-03-06 11:19:15 -05:00
2018-12-28 12:11:51 -08:00
2019-02-26 12:53:55 +01:00
2019-02-11 08:34:04 +01:00
2018-12-22 12:15:29 +01:00
2019-03-07 08:46:07 -08:00
2019-03-06 14:52:48 -08:00
2019-01-17 07:19:42 -05:00
2018-12-28 12:11:46 -08:00