NetBSD Problem Report #59324

From www@netbsd.org  Sat Apr 19 01:43:14 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F2ACE1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 19 Apr 2025 01:43:13 +0000 (UTC)
Message-Id: <20250419014312.6AF9A1A923D@mollari.NetBSD.org>
Date: Sat, 19 Apr 2025 01:43:12 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: t_crypt:crypt_salts fails on low-memory testbeds
X-Send-Pr-Version: www-1.0

>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");

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.