]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid overfow in vtruncbuf()
authorMichael Tuexen <tuexen@FreeBSD.org>
Tue, 8 Jan 2019 09:04:27 +0000 (09:04 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Tue, 8 Jan 2019 09:04:27 +0000 (09:04 +0000)
commit735835ed5c82f9c9429f99d0743b6dedc11df3f2
tree0eef36dcea493fff425b8730a53d7b0020870bca
parente0dd0fe31e16b4fd3be4a4dc55af844205d6f4ba
Avoid overfow in vtruncbuf()

Using daddr_t instead of int avoids trunclbn to become negative when it
shouldn't.
This isssue was found by running syzkaller.

Reviewed by: mckusick, kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18763
sys/kern/vfs_subr.c