]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid overfow in vtruncbuf()
authortuexen <tuexen@FreeBSD.org>
Tue, 8 Jan 2019 09:04:27 +0000 (09:04 +0000)
committertuexen <tuexen@FreeBSD.org>
Tue, 8 Jan 2019 09:04:27 +0000 (09:04 +0000)
commite8a9c3693fb0d71700ac532d6c018bb01eef5ede
tree0eef36dcea493fff425b8730a53d7b0020870bca
parentaa320c199b4a90339730b61b5d77366b5cea33f4
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