HomeFreeBSD

Avoid overfow in vtruncbuf()

Description

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

Details

Committed
tuexenJan 8 2019, 9:04 AM
Reviewer
mckusick
Differential Revision
D18763: Avoid overflow in vtruncbuf()
Parents
rS342856: Added support for the SIOCGI2C ioctl.
Branches
Unknown
Tags
Unknown