diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-08-14 05:00:21 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-08-14 14:35:39 +0000 |
| commit | 4b17776d9afd0009ac8547126c59c97eda0f3fc9 (patch) | |
| tree | 975e00fcf525a481379adfe6b3fb0b4d024033e1 | |
| parent | 1a71d24ecd0dbaf61fd2a44166e9be07c328b198 (diff) | |
compat/freebsd32: set uio_rw for trailer's uio in freebsd32_sendfile()
PR: 297516
Reported by: asomers
Fixes: dfad790c8cca ("sendfile: stop abusing kern_writev()")
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
| -rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index e899c55ee5b1..08e15140317d 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -2251,6 +2251,8 @@ freebsd32_do_sendfile(struct thread *td, hdtr32.trl_cnt, &trl_uio); if (error) goto out; + trl_uio->uio_rw = UIO_WRITE; + trl_uio->uio_td = td; } } |
