From: Eric Biggers <ebiggers@kernel.org> Date: 2025-08-18 20:28:47
To prevent timing attacks, MACs need to be compared in constant time.
Use the appropriate helper function for this.
Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
v2: sent as standalone patch targeting net instead of net-next.
net/ipv6/seg6_hmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Andrea Mayer <andrea.mayer@uniroma2.it> Date: 2025-08-20 15:37:51
On Mon, 18 Aug 2025 13:27:24 -0700
Eric Biggers [off-list ref] wrote:
To prevent timing attacks, MACs need to be compared in constant time.
Use the appropriate helper function for this.
Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
v2: sent as standalone patch targeting net instead of net-next.
net/ipv6/seg6_hmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
The fix looks good to me. Thanks!
Ciao,
Andrea
Reviewed-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:
On Mon, 18 Aug 2025 13:27:24 -0700 you wrote:
To prevent timing attacks, MACs need to be compared in constant time.
Use the appropriate helper function for this.
Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
[...]