Article View: muc.lists.freebsd.bugs
Article #906[Bug 301482] mincore(2): a scan restart after a concurrent map change zeroes vector entries already filled, and can fail with EN...
From: bugzilla-noreply
Date: Fri, 04 Dec 2026 09:25
Date: Fri, 04 Dec 2026 09:25
34 lines
3440 bytes
3440 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301482
Noel Minamino <noel.minamino@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #278178|0 |1
is obsolete| |
--- Comment #6 from Noel Minamino <noel.minamino@gmail.com> ---
Created attachment 278188
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=278188&action=edit
proposed fix: scan in 64-page chunks, no restart (replaces
mincore-restart.diff)
Correction to my previous comment: I propose mincore-chunk.diff as the
fix for this report, replacing mincore-restart.diff (now marked
obsolete), not as an alternative to it.
The chunked patch fixes the wrong zeros, the ENOMEM and the slowness.
It changes how long the map lock is held, so the chunk size (64 pages)
may deserve a look in review. If a minimal change is wanted, for example
for a stable branch, the obsoleted one-line patch still fixes the wrong
values and the ENOMEM, but not the slowness.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-301482-227-o9Cr87RBc5@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-301482-227@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301482] mincore(2): a scan restart after a concurrent map change zeroes vector entries already filled, and can fail with ENOMEM Date: Fri, 04 Dec 2026 09:25:29 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301482-227-o9Cr87RBc5@https.bugs.freebsd.org/bugzilla/> References: <bug-301482-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="63379"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1796376329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yFAAyiLehH458kvzZ+gqxFjv1BuASBnRhp7vF1rY4QI=; b=GQD1OPbm64UR5uapLR0GqyxUZRRG+IbFA6PVn/RClcqqY4PwjXODnUH5DeNrB7Tb5tmJ7Q Bz+LhMfzQmnXmoWPQKphOtJgsMNaPiVaPISzkwQY7X4DRlO8hRCBlZ5jddcelAAviZ2q5h SBw+10gMYYdXa6y6cJ9vgturyL6nWYnTs0MgMm6KZSnw/Gc+/7dwvlMJz/nnNXUBgCywC/ LB5YGkYhpge0Jjq+qsuMjApj0GWar3tL3j/K6fnqxqNO3rxWmgTgDjUmjAWDcsnbatsmKS q58HXf2uKosCtxh2zmTM7BJZr39Ie2XE4KqfhdWS2KYiI8p7mxUupkeMYkB4+Q== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-301482-227@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes