From nobody Tue Dec 2 02:30:05 2025 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 41C512EBBB7 for ; Wed, 19 Nov 2025 15:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567127; cv=none; b=Cz7zfMNwKczf74wfh0r9NmlsNJTVgvIRHF4hZDH1dxnd/6uff5AQ3db6RU4XrUOWDziFTWr14Rz4McFq4/QfjB98T/025jyk1WI42rmVocUTIyhVQxWTYj0eSEckS8i+XmDFj8LmRrBWotE7t6Zum2MKIWQho0VS0zN8uYa7VQM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567127; c=relaxed/simple; bh=u6+tt3XawPHF2h0PehB6Hh7l1nZTQ0AU8uD6w2tCd9w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LBNzxIQo+tjOk3fjIHj1yIyeTmd0ttUlU2hVVlROleEkjpusaChYbvw9UCCKo5QQbsoIuMedqJ8Hq+Ajw5v7ZZ35y99fHCYCBfG33ph55YEoo6CJpZ6WFtiY6kimtD3JF8EEOpJiPL+HP/GL7+KAA1jHmCFsqOyVF/qpipZyflI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=S5pyMbCL; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="S5pyMbCL" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42b32900c8bso3968611f8f.0 for ; Wed, 19 Nov 2025 07:45:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763567120; x=1764171920; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IgUegTKLQ5c0JCFFEcjPGQkSMjLGl3oe1WVgssxW3WQ=; b=S5pyMbCLkC+99Hx1gcI70qTu4rEHdL33Myi9JVWNml9rEIK8AWQfKJChpsnOS0UXSD xT/grITh57yDq5oiBWFs9gcA/vwkvJvSVf3fFbGjJew9lJHf/W54qPdFGXHI27RSZ4As 7wtTkt42jRzrr0w4QQR4QBSzJv4PWWykiLymHhJNfnm6CDzJ1dLWtfC3uBB9XM3mU1cK FOQ3ib967M/9a3nhOC8EWr6flSDFk6rCgVV1g9lIsY3rurcRSu3uOB6VQWjXNzku79Lo 2U28dsxwUkHJs6xhLfM/kz7nq1RnfFvGWiLU3ZHW4hdsQr3pf70KGHr6ddavAO0o5uqe rwAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763567120; x=1764171920; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IgUegTKLQ5c0JCFFEcjPGQkSMjLGl3oe1WVgssxW3WQ=; b=ghORUJ7vMLXvqvRVtxoPfAlmRe5BwmcG5XY4zTrrJw5OEczncJNhCJRti5Wvq8SHEZ T/31KCvr1y4M2Yn7Jfsux6QjxBCaOwCgcY47FEK3/TaCodVMGPJhWfy7otCAORvW1b7R fL/W6GtSONKDXjMIHt7CHu2H3N8QST18xfFiaDVjJE6QvMdlsWizxLMvY/gjDcOZJE75 6Afk/HS2Mr6KkQpd2n4U6NfDtX03vnr7VliE0UcUQvM4A+sbYoqZzcIPe+UpOYNUr3b2 4Ep/pRTIpMBxKj/f+VyWP9i5ALvFx8IQzhyY/qk5Tta9z6hARICEEV7mqNUH6Y7xlQwy SBAg== X-Forwarded-Encrypted: i=1; AJvYcCUR+2OZ+uHS5XcRbyBD04nC2Q1DSWqlzyyCHA+fnEJUiRARyNZllEGl/3IBNRmHuf1rgMcyaVh2Xu5Y95A=@vger.kernel.org X-Gm-Message-State: AOJu0Yx1iue2HVjur5tc2zOX++XuCLPkkxwXqD4HxiDMHovweGBzwaU2 NSoJ95neNySSL8GWdaVbLsBBwuik0mc7lIpKhsOHeggMn5i/ZFMJ5BvfWWeVQxr1u1c= X-Gm-Gg: ASbGnctZDP3x6m4YLQYWulW1K6K5Q8PQhDQxiplS5aG+OWVfH+inxulbTcf+BWgT42j TE9OekK5mhvEvJZeNZNIF+V71Y9+kRikbGO0BSqyv3AoRiGsh2+bhluch5tA7Icy3sZYfPrmBa6 gS5zMqRT/gtYxtMZ6H5eASumOvtVd3YkCsvBp/USguMaC1F2oIPwqdyPKDcnFUt9wXqIEv+nLXZ vRY17MDHbuyOz4UFyHKjBEw2yW2rAoaUGhUxAWDFtjE44rtaPM2dNjBTWU3Ju5/uB7OKrcmGj66 eslUGYC3HvKckEwBTsHjioskliIhrJQX/W8UhCej+5gmbQPnT4XlzGPi0xhmUTdkCCElqoqnEYU /p0TmXxRnC+mgO6XlRLIPPL7xkYlS4gWj1bma7bpL0BMLP4+sk2zZow96Pn4XffQQ34AawqkWMB k3DM5Zqk0yjbforBNToNuq1QHwb5xU7tOjO3pZfxR2 X-Google-Smtp-Source: AGHT+IE38LHRCo1rRgXHbp1dPmtNTHQzc/1FY0jCSEqGBXN/4naA4QLiTpPfAdRH3ooZXhi3gOLsPg== X-Received: by 2002:a05:6000:2087:b0:42b:3ab7:b8b8 with SMTP id ffacd0b85a97d-42cb1f5d859mr3485815f8f.25.1763567120163; Wed, 19 Nov 2025 07:45:20 -0800 (PST) Received: from eugen-station.. ([82.76.24.202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53dea1c9sm38765632f8f.0.2025.11.19.07.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 07:45:19 -0800 (PST) From: Eugen Hristev To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, andersson@kernel.org, pmladek@suse.com, rdunlap@infradead.org, corbet@lwn.net, david@redhat.com, mhocko@suse.com Cc: tudor.ambarus@linaro.org, mukesh.ojha@oss.qualcomm.com, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, jonechou@google.com, rostedt@goodmis.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arch@vger.kernel.org, tony.luck@intel.com, kees@kernel.org, Eugen Hristev Subject: [PATCH 02/26] init/version: Annotate static information into meminspect Date: Wed, 19 Nov 2025 17:44:03 +0200 Message-ID: <20251119154427.1033475-3-eugen.hristev@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251119154427.1033475-1-eugen.hristev@linaro.org> References: <20251119154427.1033475-1-eugen.hristev@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Annotate vital static information into inspection table: - init_uts_ns - linux_banner Information on these variables is stored into dedicated meminspect section. Signed-off-by: Eugen Hristev --- init/version-timestamp.c | 3 +++ init/version.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/init/version-timestamp.c b/init/version-timestamp.c index d071835121c2..6f920d0e1169 100644 --- a/init/version-timestamp.c +++ b/init/version-timestamp.c @@ -6,6 +6,7 @@ #include #include #include +#include =20 struct uts_namespace init_uts_ns =3D { .ns.ns_type =3D ns_common_type(&init_uts_ns), @@ -29,3 +30,5 @@ struct uts_namespace init_uts_ns =3D { const char linux_banner[] =3D "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; + +MEMINSPECT_SIMPLE_ENTRY(linux_banner); diff --git a/init/version.c b/init/version.c index 94c96f6fbfe6..eeb139236562 100644 --- a/init/version.c +++ b/init/version.c @@ -16,6 +16,7 @@ #include #include #include +#include =20 static int __init early_hostname(char *arg) { @@ -51,4 +52,6 @@ const char linux_banner[] __weak; =20 #include "version-timestamp.c" =20 +MEMINSPECT_SIMPLE_ENTRY(init_uts_ns); + EXPORT_SYMBOL_GPL(init_uts_ns); --=20 2.43.0