Page MenuHomeFreeBSD

Avoid overflow in vtruncbuf()
ClosedPublic

Authored by tuexen on Jan 6 2019, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 8:23 PM
Unknown Object (File)
Sat, Nov 2, 2:13 AM
Unknown Object (File)
Mon, Oct 28, 11:53 AM
Unknown Object (File)
Oct 18 2024, 10:43 AM
Unknown Object (File)
Oct 7 2024, 1:42 PM
Unknown Object (File)
Sep 16 2024, 6:03 AM
Unknown Object (File)
Sep 9 2024, 11:28 PM
Unknown Object (File)
Sep 8 2024, 8:13 AM
Subscribers

Details

Summary

When running the attached test program, the kernel panics due to trunclbn becoming negative. Therefore use a larger type (int64_t).

This issue was found by running syzkaller.

Test Plan

Run the attached test program.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable