Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2021 21:44:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260453] ZFS truncated write to O_APPEND file from mmap'ed memory
Message-ID:  <bug-260453-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260453

            Bug ID: 260453
           Summary: ZFS truncated write to O_APPEND file from mmap'ed
                    memory
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: phk@FreeBSD.org

Summary:
        A file is opened for O_APPEND
        writev(2) is called with 480 bytes from a mmap'ed neighbor file.
        writev(2) returns 480
        The file only grows by 194 bytes.

Seen on: 13.0p5, emaste reproduced on ref13-amd64

ZFS seems to be a requirement for the failure.

To reproduce:

        git clone https://github.com/bsdphk/AardWARC
        cd AardWARC
        make test  (The action happens in /tmp)

The bug triggers the following assert:

        Assert error in silo_attempt_append(), wsilo.c line 436:
          Condition((off_t)s == (after - before)) not true.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260453-227>