HomeFreeBSD

MFC r342857:

Description

MFC r342857:

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
Differential Revision: https://reviews.freebsd.org/D18763

Details

Provenance
tuexenAuthored on
Reviewer
mckusick
Differential Revision
D18763: Avoid overflow in vtruncbuf()
Parents
rS343432: MFC r338138:
Branches
Unknown
Tags
Unknown