NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/59324: t_crypt:crypt_salts fails on low-memory testbeds



>Number:         59324
>Category:       misc
>Synopsis:       t_crypt:crypt_salts fails on low-memory testbeds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 19 01:45:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The SaltyBSD Memorial Foundation
>Environment:
>Description:
This test involves computing, e.g., this Argon2 hash: $argon2id$v=19$m=65536,t=2,p=1$c29tZXNhbHQ$C4TWUs9rDEvq7w3+J4umqA32aWKB1+DSiRuBfYxFj94", "differentpassword

The m=65536 parameter means that it uses 65536 KiB of working memory.

The sparc testbed runs with 64 MiB of RAM.  (The hpcmips is configured with even less, 48 MiB, but it hasn't worked in a while.)  This is not enough -- without some swap space, anyway -- to complete the test.
>How-To-Repeat:
cd /usr/tests/lib/libcrypt
atf-run t_crypt | atf-report
>Fix:
1. Split the test into several test cases, low-memory and high-memory.
2. Declare the memory requirement for the high-memory ones: atf_tc_set_md_var(tc, "require.memory", "64M");



Home | Main Index | Thread Index | Old Index