From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f74.google.com (mail-dl1-f74.google.com [74.125.82.74]) (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 9E553194A60 for ; Tue, 3 Mar 2026 01:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772499642; cv=none; b=LF80XiOC3BNl/sqYV/iJKii+FlRhgVNeIh7M1fcA2qtuPZMOD61fVHlgud0jPXumY3cHRz76VzQJVEEMzJhZpwQ84zsSklOU15ac00HhLOM9527oaT9aEWhEeHURYt5uhNhwfAl1wEDmnHRj+QQbMEVtTn2IOrldA82VnEw9MkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772499642; c=relaxed/simple; bh=q5g61Mq+z5tPhBoMmVca7ubhPTjnA7nxuIqm+Fwj0js=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=oNhwbLIYhpan2nQYFi8xro2rQYllPOsJe65+Fwl7bbs+rqFUt+rxSKh9A6IjRdfqfE3N/qY7AR0kFJT9ErKMtVRnD4xE/9Oe2+4Nzc3snLxuQucnoG5EdFzons+eF2hnj/CAQoLLZPEDN9w694rFFlKsxp1k6h+xy1ZfYsE6IAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jordanrichards.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=QoYCiBWP; arc=none smtp.client-ip=74.125.82.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jordanrichards.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QoYCiBWP" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-1270dcd11c1so6735646c88.0 for ; Mon, 02 Mar 2026 17:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772499641; x=1773104441; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=zm1LTC1JWmja4CORTzDR8ARPE6yG1MLArG1qV/pvpmI=; b=QoYCiBWPsxYW4SDyHvhSPjX7naLJhOf4oQ0cwumClgX+hSWCcyL0UcwZOxhKdAK0P5 UVvOM6Y84t4W4rbP0336f+sqqLNfsHwcJqjxeWB+RwIliCdb0N2oh+8LxAbQGTQNVckJ FHu2fsKfmaTqd36iIqWkDhhLiVmymTJGZwNA/w8QI6k0TfS+Ebulqg/LyAOZx1RxD7+8 JzsOrSYmg6Q14KKChkGEPHluDHaatKy2VOZBs2vDNBdZ3pde8dYk3gNlFCltz7J0Csi0 FLgywZ9P5eOLqCRIJ+SGLzDkApj2YsUdLFapv95YvzQAOrDY41sMNlXmGn+PplqYI++H YILA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772499641; x=1773104441; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zm1LTC1JWmja4CORTzDR8ARPE6yG1MLArG1qV/pvpmI=; b=Z9Coz2QUrszaUFX2w/UesxOJkDSu/PovSQUBlrAn4v6HEgaPaSPTss/1lJflduDkzR A9sTfDqEu9ijRjhTnceQLcuAGLiZtK1gngQT8wQizlzAMuHdwqd8vkMyBQn0c5l8URwP AfzCklA7axG4jyfh2YzE+O4NhmsXN9aX7sMmTLwhIPBfy7Q3nfs7TxqyauLCCZQVipN4 Uask0DmxUM9QbBBgtk/n077Ix8ILYRpcILjHQuYqsCnw1n10z/UiRjgjSjvn5ft5Z3Eh aJxQuhwugFvb8udnVFA0/zPvWIgeDhLchY8jb5aGqWAXLdE+TLUCDLL1jG5OMUsrEIei iAkA== X-Forwarded-Encrypted: i=1; AJvYcCWtSAZkVRVu7nN6WEFrRACMn2S5SS9AYTexSELkPD0U6ofxexirQ+vTLS6SfLOuaVJwTjb2YbEGhjjbMFU=@vger.kernel.org X-Gm-Message-State: AOJu0YytGsAy/LRt/M3Fs9ls4O4daos5Icj3MywKcM8qYxOV0K8mfoTW kYZ7es7DZsXVErlzajW3dr+Gy8xM3OS+2mjWxznWfTxyP48kdPyY7OAgYPx7IXnVM9OikmAVJUO yr+DCNYPYpkYjznWXw2Uf0dD2Bgh3tvOZeNNDPw== X-Received: from dlbqc5.prod.google.com ([2002:a05:7023:a85:b0:127:5503:dc9e]) (user=jordanrichards job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:418c:b0:124:9acd:3c4b with SMTP id a92af1059eb24-1278fd2ad4amr5435794c88.42.1772499640432; Mon, 02 Mar 2026 17:00:40 -0800 (PST) Date: Tue, 3 Mar 2026 01:00:37 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.473.g4a7958ca14-goog Message-ID: <20260303010039.2969125-1-jordanrichards@google.com> Subject: [PATCH v3 0/2] selftests/liveupdate: add end to end test infrastructure and scripts From: Jordan Richards To: Pasha Tatashin , Mike Rapoport , Pratyush Yadav , Shuah Khan , Willy Tarreau , "=?UTF-8?q?Thomas=20Wei=C3=9Fschuh?=" Cc: Jason Miu , David Matlack , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Jordan Richards Content-Type: text/plain; charset="UTF-8" This patch series adds end to end testing infrastructure required to verify the liveupdate feature, building and running the existing selftests on supported architectures. To support executing the selftests as part of an init process, this patch series also adds ftruncate() to nolibc. Changelog from v2 [1]: - Removed unncessary nolibc/sys.h include in luo_test_utils.c - In ftruncate(), use __NR_ftruncate64 when necessary - Add ftruncate() test case to selftests/nolibc [1] https://lore.kernel.org/linux-mm/20260205222329.2419035-1-jordanrichards@google.com/ Jordan Richards (1): tools/nolibc: add ftruncate() Pasha Tatashin (1): selftests/liveupdate: add end to end test infrastructure and scripts tools/include/nolibc/arch-arm.h | 11 + tools/include/nolibc/arch-mips.h | 11 + tools/include/nolibc/arch-powerpc.h | 11 + tools/include/nolibc/unistd.h | 35 +++ tools/testing/selftests/liveupdate/.gitignore | 1 + tools/testing/selftests/liveupdate/config | 1 + .../selftests/liveupdate/config.aarch64 | 2 + .../selftests/liveupdate/config.x86_64 | 2 + tools/testing/selftests/liveupdate/init.c | 179 ++++++++++++ .../testing/selftests/liveupdate/luo_test.sh | 276 ++++++++++++++++++ .../selftests/liveupdate/luo_test_utils.c | 23 +- tools/testing/selftests/liveupdate/run.sh | 63 ++++ tools/testing/selftests/nolibc/nolibc-test.c | 51 ++++ 13 files changed, 653 insertions(+), 13 deletions(-) create mode 100644 tools/testing/selftests/liveupdate/config.aarch64 create mode 100644 tools/testing/selftests/liveupdate/config.x86_64 create mode 100644 tools/testing/selftests/liveupdate/init.c create mode 100755 tools/testing/selftests/liveupdate/luo_test.sh create mode 100755 tools/testing/selftests/liveupdate/run.sh base-commit: c95c8315909f078d16bffa2687346b4c63baf0a1 -- 2.53.0.473.g4a7958ca14-goog