/[base]
ViewVC logotype

Revision 357574


Jump to revision: Previous Next
Author: markj
Date: Wed Feb 5 16:09:21 2020 UTC (4 years, 4 months ago)
Changed paths: 1
Log Message:
Avoid releasing object PIP in vn_sendfile() if no pages were grabbed.

sendfile(2) optionally takes a set of headers that get prepended to the
file data.  If the request length is less than that of the headers,
sendfile may not allocate an sfio structure, in which case its pointer
is null and we should be careful not to dereference.  This was
introduced in r356902.

Reported by:	syzkaller
Sponsored by:	The FreeBSD Foundation


Changed paths

Path Details
Directoryhead/sys/kern/kern_sendfile.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27