Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp240840lqc; Thu, 29 Feb 2024 16:27:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCKOWv9yPnhUdosoiMLvRbWeZ4gOYm4A/2DOGZf+wK8tDY7Nu1xczgsTC6vVb9qDAQyYnTMF4Gm5CHaVXCiuiAYzez5GAJzNLTPZeHmQ== X-Google-Smtp-Source: AGHT+IGQIUcGtzfNxUoPEn5ZfmKC5rx0QzDLAVQGPU2EgGs6FwxyAQASBaYVYcTbV5DeTivWsLvT X-Received: by 2002:a05:6e02:1b08:b0:363:d8dc:2a31 with SMTP id i8-20020a056e021b0800b00363d8dc2a31mr255982ilv.14.1709252821617; Thu, 29 Feb 2024 16:27:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252821; cv=pass; d=google.com; s=arc-20160816; b=TXpAJ/0PmGyQ31nOFZracH8prUf/epzfflcKONTX8URn0Xg2zMTmZaZf4Iu90QMbxy qlNnhCRibLf9Nyaw5w76av2Ft7CEDZmjn7qrRXae5OOWnNYV/ES2IFrOJkEx/564HVdG W+CkfHuUUHYKdQWFDVzgf+GfLFwAKGPEd2ybWPTJlYWRAaTbcqGCMxrmrhW1PAIFDKEg I2Ra7L6OOcMwZxcwMYfSqMZeVtM3qCpCtZjWNiDjVALCZa+/3PU9hhn2waT2p6oI1bLG NjJJSEBvkrtmXqDkjezVu8iut2Yi6KDcoAf49PYf+xtDHIri4AdlhGPD+M7gL+5TpC5c TLFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; fh=NPA6+xRNxeJL84FDwgZgsY/zSJbMLb4u5O3v6AYYOMQ=; b=s3XnZ5BDj8l2DcHVz5akC/ipTdmo0kTcwBtStsrl3x2rBBQSODrDuqeo3yzB36KuIt pVyEv6D/g4NfpkH9NHnbukgnMeodRFLjF7/wub3Q4gNHYq+7NIxiVNJr/xSepvgqolXM hfkAVifftcFST9vSkZPRKzZG/iiAevkaK66/LgsDdYWyHOTlTtrn4Sw5L1vTP+75B05K +UqDbslN6iMDmaJmUIV+3H6qfKZ2oHs27Jbl9j7M9HqMSzNKpSuerQOMnpeeEeMvF5ML J1J3hw6FMvZb6wmvoxaQ4sDj3ApfCfzVJEijFHx6C74U8bzuWs8z3VN6VqOSr0xRGLuN hTIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="dH292u/1"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y19-20020a056a00191300b006e46ea33371si2393037pfi.246.2024.02.29.16.27.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="dH292u/1"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BF44283797 for ; Fri, 1 Mar 2024 00:27:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A19C7E6; Fri, 1 Mar 2024 00:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dH292u/1" Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (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 CF1F3368 for ; Fri, 1 Mar 2024 00:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709252814; cv=none; b=aJf1pnwYEi84IHVEuH1gs/MYTw3t8CGjr/uOWZ6pbrBB6i+oqbgO5sjpionG1+q+RqNKDAMbsqauw0zFiYPKeCX2SXgD974BG/zvZTdtC7lQcbV2SNCknFNTzTzPpnBDQxAoCnhy8F1IfbKFu73DRrUuSZyDamCMPVOIfyN9CzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709252814; c=relaxed/simple; bh=moYrqqxo2UDnuGHZWzH0ODEv4jfFfQLJ2rNJTkxWGDg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eYQEwg1jTIpoBdKP4xwq0PBFe6VGFctlBEbGOLEuDdyds0rzrnW+EeQ/GGtFt5mBkdqKSU3OSYbUdehFBmTM5HcQnm2hFdN7EfA8Gh2KL3bpfH98WgJ+WbCKFD/Cjq5FXiN6dsxDjNlCFPRCO54hZpWEQkMzwQpYC6AvEonvZq0= 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=dH292u/1; arc=none smtp.client-ip=209.85.167.181 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 Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3c1a2f7e1d2so829717b6e.1 for ; Thu, 29 Feb 2024 16:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709252812; x=1709857612; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; b=dH292u/1WWBJblIgtYZoIn6cRYLmh7BgnOEtQ+4MdItsmgDL1RXoCsQpGKvvz0L6vH qneVxIe1+N1ra1os89nGS+j0iZZrC+CFcV63s1r4IR2p6Q/LfkksTIJjveC6mkz+naf5 sQTSfWAXVdQWy8LN3eXqBfHLyF7TqgwQ8X2/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709252812; x=1709857612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; b=VuuuFsbDauV80fOlk7NqZofSLmEqIUXv1pVeOoOla+V7LPlitB8lpvQTsz3TE2AUc4 H+iUmmCPH3+7S3vGMkAIJRYNxn5G0ZJhcUZWtJtuHHL3oD7Zbzdc5kGLfJAzb0tCzbTA Kw7f8gngIls8fugsidkXY2Y1PQZFWDoPPsTqzp/Kj3FqCKTvmJDBwYQXbp1YMzOdjeb4 /V8AHMqdFj8GG5eh0hONmS3sUbEKASKqpGn69iLKRTrP78z3nR/zhy3jBKuoqvrUUK1z 2Km0LKe6cZuz8QUzDnR5tmp2Z0VcLhLYOIy25OupPW7es8sgdMlUKQaq+EVSDI9Quybr XLLg== X-Forwarded-Encrypted: i=1; AJvYcCV6hsMDy5v5cAiIG1GCozc/ZKDmxz/2d7+U61hB/5Ee2AHWYhyjp0XO6ZJVPf627+Ic4l8HYt6VNH/5VRnlFrW0JZ3L6PJMGYic5qI6 X-Gm-Message-State: AOJu0YyUKUit3NjpRA5O9HKv+/ZLkAFnh8TzHeSgZ/SPf6AnNTbuF/k/ L3ng4FZ+AxpgTfropcIBuXlT6IJxVbDdq4JoI4CVEXXPrTUMP2hU0E6XhK5DDg== X-Received: by 2002:a05:6808:3c93:b0:3c1:41fc:d012 with SMTP id gs19-20020a0568083c9300b003c141fcd012mr247384oib.34.1709252811946; Thu, 29 Feb 2024 16:26:51 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id d4-20020aa78684000000b006e4ecc3e394sm1841748pfo.79.2024.02.29.16.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:26:50 -0800 (PST) From: Kees Cook To: Andy Shevchenko Cc: Kees Cook , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v2 0/2] string: Convert selftests to KUnit Date: Thu, 29 Feb 2024 16:26:46 -0800 Message-Id: <20240301002416.it.092-kees@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=893; i=keescook@chromium.org; h=from:subject:message-id; bh=moYrqqxo2UDnuGHZWzH0ODEv4jfFfQLJ2rNJTkxWGDg=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBl4SDIx+1hzENuYl6hlOaohCcjbErtMu6nYDGpe tlKDFUKztOJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZeEgyAAKCRCJcvTf3G3A Jj8YD/9tmTSBz1IaC0rs2X8jkqHkNcS3dAM5KC6mzlItIbkMb2ZHf9M465ykfWmEP+2Q1wihYN5 ptkoLrHxVV3arN+ciF1A/vkdxajkFcKlp8PSEQHzgT+COw2fgNBbTfZgRPl1s/u7x/K9MkEy5zg 2tRLQ2dwT0g/OSw7naV/4f2+JlpCmhPslQzluJZoO5/hsuIUEhuqdSAEWTqPO52a6KdXXOKh9dl XM4glyth1t1Zu2ASU7rcBjYzq06bnBtLZHQJw44eA3eZAtH/MXlN7/de+DLcRTnaE4/GZiMfgzf hykOx05svh8WhAlwl0YjWMS2awUhhuhjQm7aIIhqzMomIldvNN+MxQBMC+KMDvjjOYhE54hmXKz tdezZPI0n7Vs2jSfPGZdOgccwILJefwZu6Ft1H5jlgLCE1qwPwgksrpf68+AqSX+57KxOGmbSSk 7TWjRcr19DJIHp2ZO9Ck+U04XW5wuuRptge/eO6ztTAxsiCaE4d2qmlRCm9X42UKBG6JegT/ef0 S8Nwsbs/rI90TkUFvhZfnZwh3dpl3f4/Q/Y/NffZtnuoC5GZvGU5n29zsdea7OeqjUwFE+++VNe TzAwT6XQth1oHb6iNeuOMxINtdY5JYTidKMFTy0CvYyy6HeZt9VnnGV9/hOZrvT1aAqtLIMJZx5 knHIZ5A6 Q8Jq0Eg== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Hi, I realized the string selftests hadn't been converted to KUnit yet. Do that. -Kees v2: rebase onto https://lore.kernel.org/r/20240229205345.93902-1-andriy.shevchenko@linux.intel.com v1: https://lore.kernel.org/linux-hardening/20240229233432.work.675-kees@kernel.org/ Kees Cook (2): string: Convert selftest to KUnit string: Convert helpers selftest to KUnit MAINTAINERS | 4 +- lib/Kconfig.debug | 12 +- lib/Makefile | 4 +- ...tring_helpers.c => string_helpers_kunit.c} | 177 ++++++++++-------- lib/{test_string.c => string_kunit.c} | 166 ++++++---------- 5 files changed, 164 insertions(+), 199 deletions(-) rename lib/{test-string_helpers.c => string_helpers_kunit.c} (78%) rename lib/{test_string.c => string_kunit.c} (54%) -- 2.34.1