diff options
| author | Guenter Roeck <[email protected]> | 2025-07-21 23:19:17 +0000 |
|---|---|---|
| committer | Eric Biggers <[email protected]> | 2025-07-22 03:10:36 +0000 |
| commit | 8cd876e7833758f8a924db2e39530d2a9afd2703 (patch) | |
| tree | c4239f5e7964d639a654f3451a71d154805e4460 /net/unix/af_unix.c | |
| parent | lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 (diff) | |
| download | kernel-8cd876e7833758f8a924db2e39530d2a9afd2703.tar.gz kernel-8cd876e7833758f8a924db2e39530d2a9afd2703.zip | |
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: 950a81224e8b ("lib/crypto: tests: Add hash-test-template.h and gen-hash-testvecs.py")
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
