From nobody Thu Apr 13 14:07:23 2023 X-Original-To: bugs@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 4Py1cD3DQhz4592Z for ; Thu, 13 Apr 2023 14:07:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Py1cD205tz3FpH for ; Thu, 13 Apr 2023 14:07:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681394844; 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=Lg4gh3Q28GOFuXWDYqY9rfbYp+Ux8QOZKTQ8tq1X8l8=; b=H/dmvT6LcOjyXi1oK0zYc+Y4/CfM6GGhudRZIBph0SNmmVJhnjaT3UYXLbhj+ouV1iCk60 aS6/+8LViZtWiDqx7xG8EFUSx3ipxGqPQlq2sYUmilmbd/gwRVum6WbSUGbDN4ZxT+gLsA HsD2vGFNKQZ/pBmJxkGnR7KFa+BhQiR79LoV6OWVwIdCPlLPHKE1oMkiipU6QLpPbY+1WX +hALBYthkKwXnzYJV4intNaLL4+22pT0DdKx4icYHUy5MZ4DdVx6+IOjTN0yGeO0dDj59w +IkgsfI3kDvp37HrC+bELeen/6XQnBU/bKL5XotXuwE+9N1M8jvRhjnYHSBvQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681394844; a=rsa-sha256; cv=none; b=pKtY1fN7OYEXhR3d3933MUU+muirV6XbOjwBVyS0OajDy9D09tMOiDWgzjkC2hJ9ZplP59 UFMi21mLrxJbvLX36mjjFMs5Bn4Lz0AlM4EjI1vahjb9Ltp5RyKbV3AMJswS34IutI9SRH vzWx/RmiM3acS/+kF4QHOS0o0lreMZDXh+TIzDJg/dKS3TuzWndRqES2kQ9NwkZ4RLhx09 rRJIFj1GtZOopwvjO2ZaIr1DFxJnBff8SPxGEnojlqEdWk4JEikTyYtzLOQrM/gXgDvwIS PeDB2XbIMWXbhoX6PTKg1nlhxEJvQWw/tnJPd3roKeJ+Ve8bA1OQVgM1EhKDmQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Py1cD0jCXzlN0 for ; Thu, 13 Apr 2023 14:07:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33DE7Oxe054124 for ; Thu, 13 Apr 2023 14:07:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33DE7OPp054123 for bugs@FreeBSD.org; Thu, 13 Apr 2023 14:07:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270810] munmap does not always sync the underlying file Date: Thu, 13 Apr 2023 14:07:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: geoffrey@dommett.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270810 --- Comment #2 from geoffrey@dommett.com --- Well, most writes are updated on the server, (and all seem to be if the pro= gram performs other activity before exiting) but pages get randomly missed if the program exits soon after ther writes. Not guaranteeing the writes seems completely against the posix standard which states: The mmap() function adds an extra reference to the file associated with the file descriptor fildes which is not removed by a subsequent close() on that file descriptor. This reference is removed when there are no more mappings = to the file. Also see this stackoverflow question=20 https://stackoverflow.com/questions/17490033/do-i-need-to-keep-a-file-open-= after-calling-mmap-on-it --=20 You are receiving this mail because: You are the assignee for the bug.=