From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35D2F443E for ; Wed, 21 Feb 2024 00:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708476598; cv=none; b=ZV0Erryirv33rx9fIirNW01xggQ9C0FknZyJ0QeaQDTocCv48SXRzYpua2GYyCbvHfeA5V8HOESPr7E4pGz8QWkmD/9OpmQiF5a0P3/4GOjOhopUnGwZ1xEbDoPIRDWOJRJFGlM/RrGTJMIiNu2UVb1IexZReEwpei7q5emxqAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708476598; c=relaxed/simple; bh=70+cboh+R10PUtYIytfNWxwR6L0MddrmKGm16ZtgHKI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VpvMtpeROj3H9LCbZX5zRU+ud/BZIx/L3OICfU5mQRomp/rOUXtg161lRpttzMypU3tfQaC0+p62Fj4WgaOW1AkygZcwC4MWeb9rN8dRnfwHcizdpMgwIToPIlvY+8yFU2naO5LJujAw2BFQe/mSQ5UPDdjzc5sccPdP5wzgazU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=crYWPAsk; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="crYWPAsk" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d7431e702dso60173505ad.1 for ; Tue, 20 Feb 2024 16:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708476596; x=1709081396; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aEpA/O0h+RXbPW9lyhYatDMrYbk8elnxsP4c7EZA4p0=; b=crYWPAsku8ZcKPu6VhzjS2X3kK+6ZIvu3grSAe+n19o/qF0Nyoogn1kYP2ZiNZf5rj VjLgVusYRJioAGc0hcVCiWoANzhK0/okSFS+P3gKPQK+4AYe43dWSTRCW5FlFJgqw2XO GUPaob+7mt7FhiFiXkSBn6avtzYY9xe0U9EzA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708476596; x=1709081396; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aEpA/O0h+RXbPW9lyhYatDMrYbk8elnxsP4c7EZA4p0=; b=uqXUKDvGJi7OFdbOefPTCd3lciAGDYcD3aIZT2zLHTeQAoYHZ7gm3rbTA2+QPmhqBy pJfZmrVXeF2htU2FW+plYXTErVwd6ExECJUTQUK/Q7D5WongPtM7tgiyZCpUarUWxOAe XFnHCVLOiMM4i+okTthWzetW/dAnYp0bMzF8EAMxhE0crA5DREcUdUBI+SG1qMdKJsJS kjdAFC4fk5A0Oa2HGfzlDxNNCSe/dK+1/xAX5dO/AMU4Fwnu7KACbxS8WJ2jJVuVpONu WGRrk3CZB5rfs5r4p1SJHKMMPbasFLSId7iwGm2Yrdj9sv8mME1c92S13c7ty0ENpq4Z +mEw== X-Forwarded-Encrypted: i=1; AJvYcCUPaQ1RRi6IvR9kvsQSNL4b1BsvvK5XeJ0UdL1Db8t2poGNH7rQE2VjZHK+y0MYKrpApHQKsPViNUwgPVhossG7Ot9Eb633 X-Gm-Message-State: AOJu0Yz+NfpMD1WARj1pmUMuvbp04GJ94wzWOkllNGdtDUC7/PdIHSBT lnlQmgHK6kNKEPv5xD4yQy1ucYQY/+S6l4/qyba3zg8ZWBr348JItTzkiRDsZ4xsEtJSSd0rpMU = X-Google-Smtp-Source: AGHT+IHN78NFZuTVNdvjx4fisZqXjohZioxW3mJ5Akp/F3MBFBmZREEQJXW39mALAwt/z7vJqe4Htg== X-Received: by 2002:a17:902:c944:b0:1db:cf64:732a with SMTP id i4-20020a170902c94400b001dbcf64732amr11375487pla.62.1708476596356; Tue, 20 Feb 2024 16:49:56 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id x12-20020a170902e04c00b001db86c491e1sm6812758plx.32.2024.02.20.16.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 16:49:56 -0800 (PST) Date: Tue, 20 Feb 2024 16:49:55 -0800 From: Kees Cook To: Jakub Kicinski Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, mic@digikod.net, linux-security-module@vger.kernel.org, jakub@cloudflare.com Subject: Re: [PATCH net-next v3 06/11] selftests: kselftest: add ksft_test_result_code(), handling all exit codes Message-ID: <202402201649.DF5ED3264@keescook> References: <20240220192235.2953484-1-kuba@kernel.org> <20240220192235.2953484-7-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220192235.2953484-7-kuba@kernel.org> On Tue, Feb 20, 2024 at 11:22:30AM -0800, Jakub Kicinski wrote: > For generic test harness code it's more useful to deal with exit > codes directly, rather than having to switch on them and call > the right ksft_test_result_*() helper. Add such function to kselftest.h. > > Note that "directive" and "diagnostic" are what ktap docs call > those parts of the message. > > Signed-off-by: Jakub Kicinski Reviewed-by: Kees Cook -- Kees Cook