From nobody Sat Feb 7 07:09:37 2026 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 CA0A736A00F for ; Wed, 19 Nov 2025 15:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567144; cv=none; b=Xc8had5EkyuYcAV0fT5RnaEYCO1K7gUbJhrIEe607OaoiTXdmZXiWYwqdYcSBZBzvW4uqTPw/vrwikZXjy4q4TEif4SX/NXSiQvzNy4RtdipTkX+ivemjghGQH34cWSG/TvjUcf6rgOUQ8W3dyGt2lQGD3ZOrgeihwjMsjvGbEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567144; c=relaxed/simple; bh=3D6cMAtJFcH0eGhpLiRPBCAWIwBu4/DIokVo2lKhkeY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h5KaOGfCVn7cKnkqT8ayKqJc0wmswIDF4A8URf9DaUqBAn3IzLmin/oOKRifb6f2Zt4ngUoOxBYMAamzgqtcJNDbwPAzd53EJP3FDZfsOS+ngSEmLwqd+MJ0FtpqDUnZWHLj0nvXJPr+7u46YB7J8roqPvORXFNT4lk5OQlnT/s= 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=pYLbNjJI; arc=none smtp.client-ip=209.85.221.46 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="pYLbNjJI" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-42b3669ca3dso3464149f8f.0 for ; Wed, 19 Nov 2025 07:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763567136; x=1764171936; 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=1EgUtWpxUoehpDvVbPcVA+GkHlZFESzHxIeFdx8HGLc=; b=pYLbNjJIY4xqxEIuEns8uXjvZ7F9isi/7jugo5Qj7mhP9MDL/QpwdMISZcJdNL9qP/ y9ZVXz8oEfwgevPWLkpZcPeLF47jsOb/XLf6/K0XXuPwugKhs+phJYcFTU6ZYG5E4S/r o+Gp6z+r3MWbQ861Bcu8Uuld23esVOU+yE3rs15fEovLoc4dr+ngBE2HsPuDyaaBMk7k PRsZEYjW7PPvzzPVl2RzcO++pOHfy+eUzYEjW15SHSG2mnuw9/5gHaT85gJU5KvJyeWx dle+WOQC/9zPb3r7giPWeiI3kW7J2GODRp8Myf5WewGW6sR4l53Vhkhm3IGgtNkPpyaU tTVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763567136; x=1764171936; 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=1EgUtWpxUoehpDvVbPcVA+GkHlZFESzHxIeFdx8HGLc=; b=xM67kbz18xhh1NLugAdNumT+r60i4NRGUHCQ32zb4WFYEcZn77vPuwShRSLbgHSZc1 G4C7CLq6OS2YkpI48wrnkVKFf9saHq/wIOZXay4SfLCYSw/6yHeWUzyNWR0hsKeBDXBG L+/viubVevMGU9wc/p4W18w6rMpIyBBEC/jb4UVpMuArNuQCFkcgv36V7bajN/Xbxh0o ZknX2eMmrZGyhUrg8yMQpuIMnTzNQTEgT6M1mTEVICB6n+h0xTLJ6tp9E7/c/bbTLtky Q4GcUFbZxN5r+0ZwfrOxdLdloPZ0wrsqUKrhvkj4cdxad6xnQV0rFcVC7H0RcPYc/bzX jc0g== X-Forwarded-Encrypted: i=1; AJvYcCXjS9dTtWpxhKWn+3LFsvu0zsqLH5+wj0CgTZp9f77NXeXdf2M2h5QYHFs7+yjOJ0uwVd/BJO5MGGpCeMM=@vger.kernel.org X-Gm-Message-State: AOJu0YxpA+Ja/1xLMop52ROx8JhyBDOk/X/enyYKYo3bePOBWY/Np5ac j75my1DIX8raaXLYoEjF83unupi0NK/EuWW+CURqRnt/cJ7UKAbbAMvLNVVtTtVs1yw= X-Gm-Gg: ASbGnctwOj35dN38xQ8J7jfnOsKBsOLyd5kUFIt7h1Co+h7YJ7KrwjFkieV0Auz6HOe bhv9iSoZ8SNipqGbujl4XPENMezaUFR0xhUT7vxm5ibBTUIozL5Ulky1HVPPduSHKDdUCWP24Ai f9vQW7hIxm3Y5u/jAf8X9Zil4us/kdHCuqrwHZT2IpWErtVUHqxf9tgwxLZbncVfFJ36rlimro6 IOTityAZWq+viDJt4fIn8hAXn7IaptbRUVXdhT7WDWR1eMSaYeod9e4ziu8fV6GvIuIPZsl458B Fj0sR967oN18dXWCb0Z7CdifEdW9D6TwEQ+2Q790xZlVUautF/2OYv3c1VNttsh/Fnc4RHOp5wD NycbR+hFi/7zQ+8fCAb6ENw6DTiIghYYnqpkTPL6YJynN6v+4jO9VnRHc/vYAQzvYyCD2FI566E /90kmuoJ06gmx4pn6Vz0SXtp6RocWUcg== X-Google-Smtp-Source: AGHT+IGKFFWZ+AqolHJ3imLY6SMDSF30b2mMpFX+Q/YU64RzAj2P3ofwp9AZZn8blv/guB2oFBfRQw== X-Received: by 2002:a5d:5f93:0:b0:42b:43cc:982e with SMTP id ffacd0b85a97d-42b595a497fmr21650580f8f.36.1763567135863; Wed, 19 Nov 2025 07:45:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 07:45:35 -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 11/26] kernel/vmcore_info: Register dynamic information into meminspect Date: Wed, 19 Nov 2025 17:44:12 +0200 Message-ID: <20251119154427.1033475-12-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" Register vmcoreinfo information into inspection table. Because the size of the info is computed after all entries are being added, there is no point in registering the whole page, rather, call the inspection registration once everything is in place with the right size. A second reason is that the vmcoreinfo is added as a region inside the ELF coreimage note, there is no point in having blank space at the end. Signed-off-by: Eugen Hristev --- kernel/vmcore_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/vmcore_info.c b/kernel/vmcore_info.c index e066d31d08f8..6a9658d6ec9a 100644 --- a/kernel/vmcore_info.c +++ b/kernel/vmcore_info.c @@ -14,6 +14,7 @@ #include #include #include +#include =20 #include #include @@ -227,6 +228,9 @@ static int __init crash_save_vmcoreinfo_init(void) arch_crash_save_vmcoreinfo(); update_vmcoreinfo_note(); =20 + meminspect_register_id_va(MEMINSPECT_ID_VMCOREINFO, + (void *)vmcoreinfo_data, vmcoreinfo_size); + return 0; } =20 --=20 2.43.0