From nobody Fri Nov 21 19:54:18 2025 X-Original-To: freebsd-current@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 4dCmBt6cMjz6HgRF for ; Fri, 21 Nov 2025 19:54:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dCmBt3R64z3hth; Fri, 21 Nov 2025 19:54:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 5ALJsIdr050665; Fri, 21 Nov 2025 21:54:21 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 5ALJsIdr050665 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 5ALJsIA8050664; Fri, 21 Nov 2025 21:54:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 21 Nov 2025 21:54:18 +0200 From: Konstantin Belousov To: Michal Meloun Cc: FreeBSD Current Subject: Re: mmap( MAP_ANON) is broken on current. (was Still seeing Failed assertion: "p[i] == 0" on armv7 buildworld) Message-ID: References: <8657a2f4-cb32-49a5-bbf6-cd5a4394c7be@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dCmBt3R64z3hth On Fri, Nov 21, 2025 at 08:08:47PM +0100, Michal Meloun wrote: > First, many thanks for your efforts, but this check doesn't trigger when the > problem occurs > Hm, ok. This is a data point, in fact. > > To be more precise, testing case > on fresh kernel(d8bfcacd12aba73188c44a157c707908e275825d) > with PMAP_DEBUG defined in pmap-v6.c and with > trivial zero check for first page at this place -> > https://cgit.freebsd.org/src/tree/contrib/jemalloc/src/pages.c#n281 > > causes this failure: > > __je_pages_map: addr: 0x0, ret: 0x3087b000, size: 4096, alignment: 4096, > prot: 0x00000003, flags: 0x0C001002 > __je_pages_map: i: 0, p[i]: 0xFFFFFFFF, p: 0x3087b000 > __je_pages_map: i: 23, p[i]: 0x308E5F94, p: 0x3087b000 Could you, please, when the failure is detected, spawn 'procstat -v ' and dump the memory map of the process? To be clear, I want to see all of this: - the address of the mapping returned by mmap - its size - the location of the first non-zero byte - memory map