Page MenuHomeFreeBSD

Avoid overflow in vtruncbuf()
ClosedPublic

Authored by tuexen on Jan 6 2019, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 5:12 PM
Unknown Object (File)
Nov 18 2024, 8:23 PM
Unknown Object (File)
Nov 2 2024, 2:13 AM
Unknown Object (File)
Oct 28 2024, 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
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