Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp661939lqt; Fri, 19 Apr 2024 07:02:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdQydVgS3R6lXWe83iG4cXECNO+q2FbPR7q+9F5DSJodSwGfMKc9pU8iMIi02gj+K8amiPSLGfuuziiKH7XDbglxgLJY63iLOlUJTJPw== X-Google-Smtp-Source: AGHT+IF+C0cJJzfyT5xo0YhS6t7VXD9nfSTRMepAnVyyh9LO98Z3aNiyyfMXXkO4CSMJIlLYg58u X-Received: by 2002:ac8:5941:0:b0:437:9fdb:9817 with SMTP id 1-20020ac85941000000b004379fdb9817mr2780942qtz.20.1713535363105; Fri, 19 Apr 2024 07:02:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713535363; cv=pass; d=google.com; s=arc-20160816; b=hnOFFnkUJhTMmzkl0jlclWHSbl9vX4asISttYvhAMYbUkeFh4xteO8Pt/uO8HSRi+Y nWu3oOXhhU1lF2LK9lMbBD+EAx5TZJrymtPgOTJto1SmACS/+gWcZaMtYee3vf7sRQRC WBB8BvnSTfuwmx/Avd6joCpUZXJDPet7nr7KrHzUP05ytvoNNXYZAy6JHrhngn2ncuk2 U6sOQF0XiHKRe/6pg2H09elT/HzVjDWXmhdhqYE/Y8B3JNawbCxYV+TNfnlNH/0+MGFh X6H4HsiOqcO77ydln0RdneVC6+LSaM0OImkX8lAErwvH1qd7eCItfINYxrfnXCkDbaf8 gOFQ== 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=UPm6fkN1iYXlaDXVKllaNg4Nw5S8W2+SHSueAxLwIM8=; fh=50wkhcz1T9tZcS42vQDBKTFr+Vdq+qM7kHgU7GykG5o=; b=JIURvvBE0DSW70Bz5AXceOz+UcByot6mVW14horHEuETLgEgUivezteTfZ+2XeXMqV 6S8Y1UO6AURoZYgynHKAZzjnVZbgQrPJoKl4Tbvgq90Tu5p6cly0qNEsqqJo2Yk1Qmma wIzWKL4MkX/XPii2NIeyvnrOXL+1LRLWd5H8UBeok88FLXRng6iV8UseYFZrcfPfxT06 /G7N+vMQpyWXVuUlNjzpgd68kX4na0GzFZVBWcEKTKNzYDEp2tdeH7AzdD1vRPAtXK41 n7Refm66DNPQ+L/S36mrXQ7aIJcnVhUd9KcD0lamQXIKQvvwGvYccVy1brNMM+pTWXuY j9Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IdI+jK1q; 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-151521-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020a05622a138d00b00436b933ea0csi4120055qtk.505.2024.04.19.07.02.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151521-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IdI+jK1q; 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-151521-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151521-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CB2E61C22BBF for ; Fri, 19 Apr 2024 14:02:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DF2F12F38A; Fri, 19 Apr 2024 14:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IdI+jK1q" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 827F812DD93 for ; Fri, 19 Apr 2024 14:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535319; cv=none; b=Qyq1b2eB5EhdHpRLpQFcOgp+Akx+sDVvXIFY9jn8kzSM9HMI6fITKMsmZ9TU9D4+8Na/3cUJDWH6HWL7n4t6Z+VdFnAIviZjK6tu0hPNIhKyuop8I4VcXQ6PZqeTIwxuVsOHBoCN8ol3+J2I5ELA9tG6EJmbMqa+7UZK1YtdKh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535319; c=relaxed/simple; bh=GldqlCvmlruHkKQBpE0bNU0iavQG0JdnTn/3ZGPU5A8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=q3tf5fzHM0FnNaOA0Xwjep52bDQe+wdOKwHBKhrDdtHQqqZmXWei/QCLYuu58S2yHZK8Kd5iuICzCe917T1DrbuZjsmNwkWH3hIWRomXavyoEM5zBV1R8PhTVitAgVnQ8OiKF3GivFggcDqcM7nfSkLKkpNNeHq4Dv/o8GOk9Zs= 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=IdI+jK1q; arc=none smtp.client-ip=209.85.210.180 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-pf1-f180.google.com with SMTP id d2e1a72fcca58-6edb76d83d0so1738223b3a.0 for ; Fri, 19 Apr 2024 07:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713535318; x=1714140118; 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=UPm6fkN1iYXlaDXVKllaNg4Nw5S8W2+SHSueAxLwIM8=; b=IdI+jK1q4QtwWYm7v6U/KV1J5ZIBeSY+GAYHi5ziLqMmL2ZCutwcmmrvh3oXOEHgVe 4/M/83WN0go0qT/rt3NynhqSSsVx+W3IJKsCsD/a6EV+LfvDBUVloa3pym5mmBwMqVCI v27vms+AiL4zliPMHOngA/sUyWu3eCHTmh4gQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713535318; x=1714140118; 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=UPm6fkN1iYXlaDXVKllaNg4Nw5S8W2+SHSueAxLwIM8=; b=byi6ywUexZIVb+H483xfDhiV3ThJLDK0BVz+mz8lodG7nmpvbcV6ph3luo82lY6otn pk0Jg2V5rG6Fef/wHvHcJX9PiwtH/VDatG8zSqPSU1rSpYR2jGe+7fOAFnvt9PZo89Ng gAfbp0BqYyAAg4hDXUlc9364BXD6ihE3P4heD7FfHsmXAXd9hykufsrFfp1vJQnqot9H IGmyxTxD40szlsQkMMsD815B4s2UY6yi5WhgSbiUTkQTP6jj/xAOLvdX4czqXddQL/J0 Txnp2+Jz2mIUp805bK4Pcm3ovOU142NhdFYsehbcMowYXQWxGLcIOSYrm3+eBJF6VQaW B95A== X-Forwarded-Encrypted: i=1; AJvYcCWIAPfNJTHZY8nfKfLP4H9gkzK0dBL4tLDV8yz7OKy0jia2P0VlL947ckwBcrcrML135+by0ehkhPNIwe8Dc3oZTRG3WGFdi7HZit1P X-Gm-Message-State: AOJu0Yxi9WyElYIHO2CzbyEf2cnkTsrqosKINqQQYBNH8xWAakFWe05W HCG57X0ofcsTeS7HrX/3pUV3x0ZikOsmxeP1S5z2BgHosJc0D1i3+pD6KF9jEgQpqNIftCztwYk = X-Received: by 2002:a05:6a20:431d:b0:1a9:8d1f:df84 with SMTP id h29-20020a056a20431d00b001a98d1fdf84mr2900301pzk.57.1713535317889; Fri, 19 Apr 2024 07:01:57 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id fk24-20020a056a003a9800b006ed9d839c4csm3238088pfb.4.2024.04.19.07.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:01:56 -0700 (PDT) From: Kees Cook To: Andy Shevchenko Cc: Kees Cook , Ivan Orlov , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH 0/5] string: Merge separate tests into string_kunit.c Date: Fri, 19 Apr 2024 07:01:49 -0700 Message-Id: <20240419140017.work.012-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=951; i=keescook@chromium.org; h=from:subject:message-id; bh=GldqlCvmlruHkKQBpE0bNU0iavQG0JdnTn/3ZGPU5A8=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBmInlRcBERwrPJam6TUpi+MUNTcOLEOk1vAHhFn GrPyZN5CWyJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZiJ5UQAKCRCJcvTf3G3A Js0rD/9LqSJcefGj/x8ivHbnZtQUT4ETomnU6kJE/YN7YsWgmL0gy90uKZXt38TlMqg5m90iZUc 6n56CUUoCfYXsV+Il3A81p70aA1VO09mSbwTt62XgjpiaVhtuG2xzpCfH2uQIICuDrCaCoBbAyT 4D/ooppsootEkqhPxxl/SxFgdMGYwRJh5foJtSVZ6QWn/q330kIZtQk1EpgkGpvUyy7siKM/KSD tPaMl1Qs+7k8a6pQ98HbZfXS7k8cT/oGwVl6tbB5BHSKtFJYPjHxtJsSjazsX7/d83+0ADM2hmm S2Ittey+7z8HFYhVCSz6wrOLSB03X+ETh5mSknEwxBR7HyarjdbPFEjWgyyMCfWbnbB2Ew8psLT dMvEDHpifYFq7Rh8iaBYTj8I2M3LF7+nPcwK/wW5SUOoUbs9hu37xSVbwA15SwP8ax/G1HgK4EB HLlZo2dZ1WeSfLLc7CPZVIxw7gG6NnVUXGH1/FYsF6r+1dY3zzS/oFNiWqJjsH0DolFdxiJsDxg T8Jq3IRuzvnt0186j81iW0QQ+SqjO/OH218OF23fmIB5L7N3s8iJ1VdnykYKOYtFZcUuKNxjLn3 2degp0+6NeJeEGwIPdHgfGKvKqWOklvk8OfP+6FO31xtYknFqEL+vC1hjjX0QQez+ZpTV4Q6Fes +v7tIVUD PNINDug== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Hi, We have a few lone function tests (strscpy and strcat) that are better collected into the common string_kunit.c test suite. Perform various renamings, merge everything, and clean up after them. -Kees Kees Cook (5): string: Prepare to merge strscpy_kunit.c into string_kunit.c string: Merge strscpy KUnit tests into string_kunit.c string: Prepare to merge strcat KUnit tests into string_kunit.c string: Merge strcat KUnit tests into string_kunit.c string: Convert KUnit test names to standard convention MAINTAINERS | 2 - lib/Kconfig.debug | 10 -- lib/Makefile | 2 - lib/strcat_kunit.c | 104 ------------------ lib/string_kunit.c | 258 +++++++++++++++++++++++++++++++++++++++----- lib/strscpy_kunit.c | 142 ------------------------ 6 files changed, 230 insertions(+), 288 deletions(-) delete mode 100644 lib/strcat_kunit.c delete mode 100644 lib/strscpy_kunit.c -- 2.34.1