From nobody Tue Feb 13 20:45:40 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TZCyc2rfjz59klV for ; Tue, 13 Feb 2024 20:45:44 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZCyb50Sgz4S6L for ; Tue, 13 Feb 2024 20:45:43 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=TV8jk5GN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::42b as permitted sender) smtp.mailfrom=paulf2718@gmail.com Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-33ce2d6a243so332715f8f.1 for ; Tue, 13 Feb 2024 12:45:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707857142; x=1708461942; darn=freebsd.org; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=PwR0Y1CUKeOCziaVhI94AB0jVzTWfhtpLt7cB6UlewU=; b=TV8jk5GNwU1XFXBoMheVddMJxK0DwemiRg8DRsRsp4ehGSkeuwHw1xtEORtrt4jMjX AfsdY3riGGjSaH9rLt4Kce6afJFHzP6AEmbuh78VR5GQb77FNYJBFhxCeI262Iuq3iRb N5AU5RXmcAf4uMhuJ603iQhj7Jv0f9SRamuYuI+Kod78yVSFpea+qkjArIFhLBu/qHBV syNeR1hYBo6hewL25IDBOB3O9XLuGuRLtneeaYMKHMzp2t4LwPlhr0tJJKc5nMSjZAH7 T2ZHxLu6FhNeoydvGUzb6h2xOj99TtMyXjO75bJJ26LY0XoLn6/dMGZ8NC+BFHeORdM4 vbgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707857142; x=1708461942; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=PwR0Y1CUKeOCziaVhI94AB0jVzTWfhtpLt7cB6UlewU=; b=gb/Np9S9T3cIEq5j11aE9WSvdPVoCoyMS15s5boXOK17S8lbDgEDFJfQf3M42F4z4a gpCSYiDePtsyzq3xzoJdhhgLtPoLtW6x1TkxYa3bGd+tMLOvsZGVXYNsXrJ20BYNs+8d yEqEIp5JCMc+jfjkrovd7t+/EMUuR8dKcXxYyNU38PcEK1pTgRjTQGQdtQmq0K9B8Jh0 Dd3+bmEmtzUEpuqR9767Q1tXgSWxAbIrvm0hO91lwtg1BFpYEYbbpzWIoeBLPeqml2Sm 13saAvRhOuqiA1N9oj4JbkkBDrJkzKUwT9YXqZfGkjdGs7BpQCq0tyCvFoxoczSaWFkW JY5Q== X-Gm-Message-State: AOJu0YzeYn+qKfdoxpggl8PTtQ6uA5pHxXhKHBimxhau/jLIeZiDV6bQ 4GgbtILJBtuIM6uXSnX0YIZF8VT26pVOIS1Bl1f92Dn2a9DsHkzC4CdsQRwc3vY= X-Google-Smtp-Source: AGHT+IGRt+jSg8trQ7KgiMnWeH/DR/PWGCxeUodttH7Lv6DF9nB83kaYsXBc4MTRtzgAOxx6f8GJbQ== X-Received: by 2002:a5d:67cf:0:b0:33c:e08d:8291 with SMTP id n15-20020a5d67cf000000b0033ce08d8291mr367274wrw.3.1707857141876; Tue, 13 Feb 2024 12:45:41 -0800 (PST) Received: from [192.168.1.19] ([147.161.183.29]) by smtp.gmail.com with ESMTPSA id o16-20020a5d58d0000000b0033afe816977sm10352554wrf.66.2024.02.13.12.45.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Feb 2024 12:45:41 -0800 (PST) Content-Type: multipart/alternative; boundary="------------9er00jObBxEehLLlXLXUszTG" Message-ID: <1cf9d1fb-66c3-43e1-9bea-d4fc9772938c@gmail.com> Date: Tue, 13 Feb 2024 21:45:40 +0100 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reconstructing mmaps from sysctl KERN_PROC_VMMAP To: freebsd-hackers@freebsd.org References: <09ba49cb-5abc-453b-a49b-75434a188554@gmail.com> Content-Language: en-US From: Paul Floyd In-Reply-To: X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42b:from] X-Rspamd-Queue-Id: 4TZCyb50Sgz4S6L This is a multi-part message in MIME format. --------------9er00jObBxEehLLlXLXUszTG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/02/2024 08:54, Konstantin Belousov wrote: > If you see a guard entry which is followed by a swap map entry with > KVME_FLAG_GROWS_DOWN flag, then this is definitely the stack pair. OK thanks. I'll rewrite those functions to look for that kind of pattern. A+ Paul --------------9er00jObBxEehLLlXLXUszTG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 12/02/2024 08:54, Konstantin Belousov wrote:
If you see a guard entry which is followed by a swap map entry with
KVME_FLAG_GROWS_DOWN flag, then this is definitely the stack pair.

OK thanks. I'll rewrite those functions to look for that kind of pattern.

A+

Paul

--------------9er00jObBxEehLLlXLXUszTG--