From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.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 8A361145324 for ; Fri, 16 Feb 2024 21:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708118649; cv=none; b=bgEeTxRVFYjgi1/ixds+cT4tKgqROQTIBepALr8iIS2CbUAPaBd68wyXzqok0V54PPpddIJz7zJGufoWPYQ9k9pqJrhBUk4w4vA2Lm1XiRW6vs2gt8sCMrImlXOvLWzKGBhfC+4gBholvFlI7qBAM44pHMa5r/oCyWYLT0lC6XM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708118649; c=relaxed/simple; bh=yRurr6ML5my94Dnd4u7LtKpxo/x71aqlWH801mpbrsE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lDZC+eBa1l1C13YhAnxdusxzJmO9pA6I54jSeZSybLqyoQMMxNoT9ETE+RmtxTQ/SAQzsAaDAg/RQfNLKQZ7+evLH9CUY1T/+VYcuQv/aSyAshpIBM4UaNhLoW1S0jWKbVWshcY5A8wGBpZD+NYF8/xuDu+x5DK8pyXlbHq/UPY= 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=IE/wX3pE; arc=none smtp.client-ip=209.85.215.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="IE/wX3pE" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso987978a12.3 for ; Fri, 16 Feb 2024 13:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708118648; x=1708723448; 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=z1VzBaRjpVm2EeH9yEls9HP/gc/d5h0w1w0aikTVjxk=; b=IE/wX3pERmofrRXbJhztc9ipPiNhomXUEPmrRWsOQyb0VhIZA1PiQpcB+hXoDxmR/K znCSIGe5TBMtzWF8NA6/1SIbG43sVeWSRiwfTe+Nh+ri1YAaOmbwvz6g4NjaexY1l4yw U9g45GZjZEEimztrYyuBAbhVKl+Qd8oa83lqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708118648; x=1708723448; 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=z1VzBaRjpVm2EeH9yEls9HP/gc/d5h0w1w0aikTVjxk=; b=XHV/eyDDMyu2GFlD7RblQa30JXuXP/sIGGZxV8VB5Yox2CRuP6lHDcR/N2Ca4HybOz ZQXyE2nuW1+HChRIF350DdWMQUiXGm/X/cosVUT+hyxNk/EsMFy8VetkVSZkBiRr63dL KPDv8NAsKfOYdKKMM6df+hCy5f4vMRctidF35zOlWtqHWZ/NjdYjYIFhJCA9fTAlq8dl +TCdzwomGE0bm4/D4qEjUUyq8XtIVj/t7iPt3SsJervVKA8whefl2oProh+kYejz/gAB o4++hSbsNCVEKBSXhFChiPbtX6CppkYHZILtjR3lkEFBBD0ZL5wCKihJPEMqG2QeuE+z NVvA== X-Forwarded-Encrypted: i=1; AJvYcCXn1ommXE5QbyWvI0rgFDzFwPd+iBO3AsYUEt4UKAsBrL+qSNzPYNw3DLGOTEIE2p9yAVbY8e87entIjrhBCWbBPZGOGZRKl59u/5QIdpm5 X-Gm-Message-State: AOJu0YzFgVJCn2Gc79kTL102NPRe9ybsaZE2jMrJHpgseaJfcxXxyH79 fd13MAYvL3ReF/ZjHXnpNvx/Mf9v2ppThEUSmpDgwBFu2qV95DIJebJkBKpQNg== X-Google-Smtp-Source: AGHT+IEgMy7RTzlVQNWimMaIo+ptqO8KQitq3MmUZTdXY+kjpPmq2SiCR+FO7RZ9XdiAB9UrspCZiA== X-Received: by 2002:a17:90b:1091:b0:299:2951:e2fc with SMTP id gj17-20020a17090b109100b002992951e2fcmr4117500pjb.41.1708118647835; Fri, 16 Feb 2024 13:24:07 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id pm15-20020a17090b3c4f00b00298d8804ba8sm453213pjb.46.2024.02.16.13.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 13:24:07 -0800 (PST) Date: Fri, 16 Feb 2024 13:24:06 -0800 From: Kees Cook To: Jakub Kicinski Cc: jakub@cloudflare.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC 1/7] selftests: kselftest_harness: generate test name once Message-ID: <202402161323.8F286606@keescook> References: <20240216004122.2004689-1-kuba@kernel.org> <20240216004122.2004689-2-kuba@kernel.org> Precedence: bulk X-Mailing-List: linux-kselftest@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: <20240216004122.2004689-2-kuba@kernel.org> On Thu, Feb 15, 2024 at 04:41:16PM -0800, Jakub Kicinski wrote: > Since we added variant support generating full test case > name takes 4 string arguments. We're about to need it > in another two places. Stop the duplication and print > once into a temporary buffer. > > Suggested-by: Jakub Sitnicki > Signed-off-by: Jakub Kicinski Clean refactoring -- makes this much more readable. Acked-by: Kees Cook -- Kees Cook