[<prev] [next>] [day] [month] [year] [list]
Message-Id: <6c4d42542afeed40435ba0abb94e753e1d259ce1.1761035574.git.xiaopei01@kylinos.cn>
Date: Tue, 21 Oct 2025 16:35:06 +0800
From: Pei Xiao <xiaopei01@...inos.cn>
To: syzbot+01fcd39a0d90cdb0e3df@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
Pei Xiao <xiaopei01@...inos.cn>
Subject: [PATCH] syz test
#syz test
---
lib/crypto/poly1305.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/crypto/poly1305.c b/lib/crypto/poly1305.c
index f313ccc4b4dd..25018e3fb487 100644
--- a/lib/crypto/poly1305.c
+++ b/lib/crypto/poly1305.c
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/string.h>
#include <linux/unaligned.h>
+#include <linux/kmsan.h>
#ifdef CONFIG_CRYPTO_LIB_POLY1305_ARCH
#include "poly1305.h" /* $(SRCARCH)/poly1305.h */
@@ -31,6 +32,7 @@ void poly1305_init(struct poly1305_desc_ctx *desc,
desc->s[3] = get_unaligned_le32(key + 28);
desc->buflen = 0;
poly1305_block_init(&desc->state, key);
+ kmsan_unpoison_memory(desc, sizeof(struct poly1305_desc_ctx));
}
EXPORT_SYMBOL(poly1305_init);
--
2.25.1
Powered by blists - more mailing lists