Jarkko Sakkinen 7ca110f267 tpm: Address !chip->auth in tpm_buf_append_hmac_session*()
Unless tpm_chip_bootstrap() was called by the driver, !chip->auth can
cause a null derefence in tpm_buf_hmac_session*().  Thus, address
!chip->auth in tpm_buf_hmac_session*() and remove the fallback
implementation for !TCG_TPM2_HMAC.

Cc: stable@vger.kernel.org # v6.9+
Reported-by: Stefan Berger <stefanb@linux.ibm.com>
Closes: https://lore.kernel.org/linux-integrity/20240617193408.1234365-1-stefanb@linux.ibm.com/
Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
Tested-by: Michael Ellerman <mpe@ellerman.id.au> # ppc
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
2024-07-05 02:12:27 +03:00
..
2024-03-07 21:52:03 +00:00
2024-03-19 16:11:42 +01:00
2024-05-15 10:02:36 -07:00
2024-05-14 15:07:07 -07:00
2024-05-16 08:56:49 -07:00
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-05-23 13:39:42 -07:00
2024-05-23 12:04:36 -07:00
2024-06-18 14:48:27 +01:00
2024-05-14 15:07:07 -07:00
2024-05-02 20:35:57 +02:00
2024-05-21 15:29:01 -07:00
2024-05-21 13:02:56 -07:00
2024-04-17 08:44:03 -06:00
2024-03-11 15:37:23 -07:00
2024-04-29 16:28:07 -07:00
2024-05-21 09:51:42 -07:00
2024-06-24 18:29:20 +02:00
2024-03-11 19:53:15 -07:00
2024-04-23 09:03:37 +09:00
2024-05-05 17:53:55 -07:00
2024-03-11 09:38:17 -07:00
2024-03-07 20:37:04 +00:00
2024-02-20 14:22:55 -05:00
2024-02-20 14:22:51 -05:00
2024-03-12 23:08:29 -07:00
2024-05-11 00:41:15 +00:00
2024-05-22 10:45:12 -07:00
2024-04-15 16:03:24 -04:00
2024-05-09 13:02:39 +02:00
2024-05-21 15:29:01 -07:00
2024-05-19 14:36:17 -07:00
2024-05-19 14:40:44 -07:00
2024-04-23 13:16:03 +02:00
2024-06-21 13:33:17 +02:00
2024-02-28 19:36:39 -08:00
2024-03-10 14:38:04 -07:00
2024-02-14 11:14:40 +01:00
2024-05-21 09:51:42 -07:00
2024-06-17 12:30:07 -07:00
2024-05-22 11:53:02 -07:00
2024-02-17 16:20:41 +01:00
2024-06-05 19:19:26 -07:00
2024-05-12 03:16:47 -04:00
2024-05-03 10:44:42 +01:00
2024-03-16 10:04:12 -07:00
2024-06-24 20:52:09 -07:00
2024-05-21 10:09:28 -07:00
2024-03-09 09:14:50 -05:00
2024-03-19 11:57:26 -07:00
2024-05-05 17:53:49 -07:00
2024-03-26 11:07:20 -07:00
2024-05-21 10:09:28 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-04-15 19:43:48 +02:00
2024-04-02 18:03:32 -07:00
2024-03-08 12:05:10 +01:00
2024-04-03 09:59:38 +01:00
2024-02-15 12:17:28 -05:00
2024-05-02 16:28:15 +02:00
2024-03-03 15:06:58 -08:00
2024-04-09 10:53:44 +02:00
2024-03-26 09:01:18 +01:00
2024-05-04 18:57:21 +02:00
2024-05-17 17:31:24 -07:00
2024-02-20 13:36:34 +01:00
2024-04-08 11:49:02 +01:00
2024-03-11 19:53:15 -07:00
2024-03-27 07:52:34 -07:00
2024-05-06 12:05:00 +02:00
2024-05-15 12:34:46 -07:00
2024-04-07 02:42:36 -04:00
2024-04-25 20:55:48 -07:00