[Bug 236466] [sendfile]: panic when VOP_READ returns an error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 11 15:57:35 UTC 2019


            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 at FreeBSD.org
          Reporter: asomers at FreeBSD.org

sendfile will panic if it can't read the pages it wants to send.  This panic is
easily reproducible using FUSE.  I've seen the error when the fuse filesystem
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    
somers at fbsd12.lauralan.noip.me:/usr/obj/usr/home/somers/freebsd/base/projects/fuse2/amd64.amd64/sys/GENERIC

panic: sendfile_swapin: pager fail obj 0xfffff800343f6300 page

cpuid = 3
time = 1552317254
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0031fc15d0
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 = 0x8005077da, rsp =
0x7fffffffe6e8, rbp = 0x7fffffffe840 ---
KDB: enter: panic

I'll commit a reproduction case shortly.

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

More information about the freebsd-bugs mailing list