Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jan 2021 16:44:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252331] zfs over ggate terminates ggated with 0 length read
Message-ID:  <bug-252331-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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

            Bug ID: 252331
           Summary: zfs over ggate terminates ggated with 0 length read
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: ota@j.email.ne.jp

When ZFS is used over ggate devises, ggated somehow receives 0 length read and
results in terminating ggatec and ggated connection.

How to reproduce:

% mdconfig -a -t swap -s 1GB
md0
% echo 127.0.0.1 RW /dev/md0 > /tmp/ggated.conf
% ggated /tmp/ggated.conf
% ggatec create -orw 127.0.0.1 /dev/md0
ggate0
% zpool create -m /mnt/test test /dev/ggate0
% cp -pr /usr/src/ /mnt/test/
ggate connection is dropped randomly.

After running truss, I discovered that ggated read 0 length input from a socket
and closes the connection although ggatec does not write 0 length over the
connection.  As a result, ggatec terminates its connection as well and zfs/cp
hangs.

-- 
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-252331-227>