]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The pa argument for sendfile_iodone() is not necessary a slice of sfio->pa.
authorkib <kib@FreeBSD.org>
Sat, 18 Apr 2020 03:07:18 +0000 (03:07 +0000)
committerkib <kib@FreeBSD.org>
Sat, 18 Apr 2020 03:07:18 +0000 (03:07 +0000)
commit85c7ef14f7aa3aa6c339db9b4bf406e1a0beb0c1
tree269a84722069e3a4828d79e1febb1c3837b50b3f
parent55d544ab04172541ab8ab6c0228245f0697f8514
The pa argument for sendfile_iodone() is not necessary a slice of sfio->pa.

It is true for zfs, but it is not for e.g. vnode or buffer pagers.
When fixing bogus pages, fix them in both places.  Rely on the fact
that pa[0] must have been invalid so it cannot be bogus.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/kern/kern_sendfile.c