linux/lib/crypto/tests
Guenter Roeck 8cd876e783 lib/crypto: tests: Annotate worker to be on stack
The following warning traceback is seen if object debugging is enabled
with the new crypto test code.

ODEBUG: object 9000000106237c50 is on stack 9000000106234000, but NOT annotated.
------------[ cut here ]------------
WARNING: lib/debugobjects.c:655 at lookup_object_or_alloc.part.0+0x19c/0x1f4, CPU#0: kunit_try_catch/468
...

This also results in a boot stall when running the code in qemu:loongarch.

Initializing the worker with INIT_WORK_ONSTACK() fixes the problem.

Fixes: 950a81224e ("lib/crypto: tests: Add hash-test-template.h and gen-hash-testvecs.py")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250721231917.3182029-1-linux@roeck-us.net
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2025-07-21 20:10:36 -07:00
..
hash-test-template.h lib/crypto: tests: Annotate worker to be on stack 2025-07-21 20:10:36 -07:00
Kconfig lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
Makefile lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
poly1305-testvecs.h lib/crypto: tests: Add KUnit tests for Poly1305 2025-07-14 11:29:36 -07:00
poly1305_kunit.c lib/crypto: tests: Add KUnit tests for Poly1305 2025-07-14 11:29:36 -07:00
sha1-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
sha1_kunit.c lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
sha224-testvecs.h
sha224_kunit.c
sha256-testvecs.h
sha256_kunit.c
sha384-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha384_kunit.c lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha512-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha512_kunit.c lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00