Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 15:57:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236466] [sendfile]: panic when VOP_READ returns an error
Message-ID:  <bug-236466-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236466

            Bug ID: 236466
           Summary: [sendfile]: panic when VOP_READ returns an error
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

sendfile will panic if it can't read the pages it wants to send.  This pani=
c is
easily reproducible using FUSE.  I've seen the error when the fuse filesyst=
em
returns either EOPNOTSUP or EIO for its read, but presumably it can happen =
with
any sort of read error.

FreeBSD fbsd12.lauralan.noip.me 13.0-CURRENT FreeBSD 13.0-CURRENT #3
r344740:344786M: Tue Mar  5 10:37:58 MST 2019=20=20=20=20
somers@fbsd12.lauralan.noip.me:/usr/obj/usr/home/somers/freebsd/base/projec=
ts/fuse2/amd64.amd64/sys/GENERIC
 amd64

panic: sendfile_swapin: pager fail obj 0xfffff800343f6300 page
0xfffff800b9a93430

cpuid =3D 3
time =3D 1552317254
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0031fc1=
5d0
vpanic() at vpanic+0x1b4/frame 0xfffffe0031fc1630
panic() at panic+0x43/frame 0xfffffe0031fc1690
vn_sendfile() at vn_sendfile+0x1619/frame 0xfffffe0031fc1900
sendfile() at sendfile+0x12b/frame 0xfffffe0031fc1990
amd64_syscall() at amd64_syscall+0x276/frame 0xfffffe0031fc1ab0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0031fc1ab0
--- syscall (393, FreeBSD ELF64, sys_sendfile), rip =3D 0x8005077da, rsp =3D
0x7fffffffe6e8, rbp =3D 0x7fffffffe840 ---
KDB: enter: panic

I'll commit a reproduction case shortly.

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



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